added --disable-vararg_macros option to allow not using vararg macros even if they...
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for wxWidgets 2.8.0.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91   echo "#! /bin/sh" >conf$$.sh
92   echo  "exit 0"   >>conf$$.sh
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS="   $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete.  It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='wxWidgets'
272 PACKAGE_TARNAME='wxwidgets'
273 PACKAGE_VERSION='2.8.0'
274 PACKAGE_STRING='wxWidgets 2.8.0'
275 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
276
277 ac_unique_file="wx-config.in"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 #  include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 #  include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 #  include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subdirs_all="$ac_subdirs_all src/expat"
316 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os wx_top_builddir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG ac_pt_PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS CAIRO_CFLAGS CAIRO_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET AROPTIONS NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING BK_DEPS GCC_PCH ICC_PCH BK_MAKE_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_TOOLKIT_MGL COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_DFB COND_TOOLKIT_DFB_USE_GUI_1 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
317 ac_subst_files=''
318
319 # Initialize some variables set by options.
320 ac_init_help=
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
324 cache_file=/dev/null
325 exec_prefix=NONE
326 no_create=
327 no_recursion=
328 prefix=NONE
329 program_prefix=NONE
330 program_suffix=NONE
331 program_transform_name=s,x,x,
332 silent=
333 site=
334 srcdir=
335 verbose=
336 x_includes=NONE
337 x_libraries=NONE
338
339 # Installation directory options.
340 # These are left unexpanded so users can "make install exec_prefix=/foo"
341 # and all the variables that are supposed to be based on exec_prefix
342 # by default will actually change.
343 # Use braces instead of parens because sh, perl, etc. also accept them.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
356
357 ac_prev=
358 for ac_option
359 do
360   # If the previous option needs an argument, assign it.
361   if test -n "$ac_prev"; then
362     eval "$ac_prev=\$ac_option"
363     ac_prev=
364     continue
365   fi
366
367   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369   # Accept the important Cygnus configure options, so we can diagnose typos.
370
371   case $ac_option in
372
373   -bindir | --bindir | --bindi | --bind | --bin | --bi)
374     ac_prev=bindir ;;
375   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376     bindir=$ac_optarg ;;
377
378   -build | --build | --buil | --bui | --bu)
379     ac_prev=build_alias ;;
380   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381     build_alias=$ac_optarg ;;
382
383   -cache-file | --cache-file | --cache-fil | --cache-fi \
384   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385     ac_prev=cache_file ;;
386   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388     cache_file=$ac_optarg ;;
389
390   --config-cache | -C)
391     cache_file=config.cache ;;
392
393   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394     ac_prev=datadir ;;
395   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396   | --da=*)
397     datadir=$ac_optarg ;;
398
399   -disable-* | --disable-*)
400     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401     # Reject names that are not valid shell variable names.
402     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404    { (exit 1); exit 1; }; }
405     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406     eval "enable_$ac_feature=no" ;;
407
408   -enable-* | --enable-*)
409     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410     # Reject names that are not valid shell variable names.
411     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413    { (exit 1); exit 1; }; }
414     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415     case $ac_option in
416       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417       *) ac_optarg=yes ;;
418     esac
419     eval "enable_$ac_feature='$ac_optarg'" ;;
420
421   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423   | --exec | --exe | --ex)
424     ac_prev=exec_prefix ;;
425   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427   | --exec=* | --exe=* | --ex=*)
428     exec_prefix=$ac_optarg ;;
429
430   -gas | --gas | --ga | --g)
431     # Obsolete; use --with-gas.
432     with_gas=yes ;;
433
434   -help | --help | --hel | --he | -h)
435     ac_init_help=long ;;
436   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437     ac_init_help=recursive ;;
438   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439     ac_init_help=short ;;
440
441   -host | --host | --hos | --ho)
442     ac_prev=host_alias ;;
443   -host=* | --host=* | --hos=* | --ho=*)
444     host_alias=$ac_optarg ;;
445
446   -includedir | --includedir | --includedi | --included | --include \
447   | --includ | --inclu | --incl | --inc)
448     ac_prev=includedir ;;
449   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450   | --includ=* | --inclu=* | --incl=* | --inc=*)
451     includedir=$ac_optarg ;;
452
453   -infodir | --infodir | --infodi | --infod | --info | --inf)
454     ac_prev=infodir ;;
455   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456     infodir=$ac_optarg ;;
457
458   -libdir | --libdir | --libdi | --libd)
459     ac_prev=libdir ;;
460   -libdir=* | --libdir=* | --libdi=* | --libd=*)
461     libdir=$ac_optarg ;;
462
463   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464   | --libexe | --libex | --libe)
465     ac_prev=libexecdir ;;
466   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467   | --libexe=* | --libex=* | --libe=*)
468     libexecdir=$ac_optarg ;;
469
470   -localstatedir | --localstatedir | --localstatedi | --localstated \
471   | --localstate | --localstat | --localsta | --localst \
472   | --locals | --local | --loca | --loc | --lo)
473     ac_prev=localstatedir ;;
474   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477     localstatedir=$ac_optarg ;;
478
479   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480     ac_prev=mandir ;;
481   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482     mandir=$ac_optarg ;;
483
484   -nfp | --nfp | --nf)
485     # Obsolete; use --without-fp.
486     with_fp=no ;;
487
488   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489   | --no-cr | --no-c | -n)
490     no_create=yes ;;
491
492   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494     no_recursion=yes ;;
495
496   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498   | --oldin | --oldi | --old | --ol | --o)
499     ac_prev=oldincludedir ;;
500   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503     oldincludedir=$ac_optarg ;;
504
505   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506     ac_prev=prefix ;;
507   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508     prefix=$ac_optarg ;;
509
510   -program-prefix | --program-prefix | --program-prefi | --program-pref \
511   | --program-pre | --program-pr | --program-p)
512     ac_prev=program_prefix ;;
513   -program-prefix=* | --program-prefix=* | --program-prefi=* \
514   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515     program_prefix=$ac_optarg ;;
516
517   -program-suffix | --program-suffix | --program-suffi | --program-suff \
518   | --program-suf | --program-su | --program-s)
519     ac_prev=program_suffix ;;
520   -program-suffix=* | --program-suffix=* | --program-suffi=* \
521   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522     program_suffix=$ac_optarg ;;
523
524   -program-transform-name | --program-transform-name \
525   | --program-transform-nam | --program-transform-na \
526   | --program-transform-n | --program-transform- \
527   | --program-transform | --program-transfor \
528   | --program-transfo | --program-transf \
529   | --program-trans | --program-tran \
530   | --progr-tra | --program-tr | --program-t)
531     ac_prev=program_transform_name ;;
532   -program-transform-name=* | --program-transform-name=* \
533   | --program-transform-nam=* | --program-transform-na=* \
534   | --program-transform-n=* | --program-transform-=* \
535   | --program-transform=* | --program-transfor=* \
536   | --program-transfo=* | --program-transf=* \
537   | --program-trans=* | --program-tran=* \
538   | --progr-tra=* | --program-tr=* | --program-t=*)
539     program_transform_name=$ac_optarg ;;
540
541   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542   | -silent | --silent | --silen | --sile | --sil)
543     silent=yes ;;
544
545   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546     ac_prev=sbindir ;;
547   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548   | --sbi=* | --sb=*)
549     sbindir=$ac_optarg ;;
550
551   -sharedstatedir | --sharedstatedir | --sharedstatedi \
552   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553   | --sharedst | --shareds | --shared | --share | --shar \
554   | --sha | --sh)
555     ac_prev=sharedstatedir ;;
556   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559   | --sha=* | --sh=*)
560     sharedstatedir=$ac_optarg ;;
561
562   -site | --site | --sit)
563     ac_prev=site ;;
564   -site=* | --site=* | --sit=*)
565     site=$ac_optarg ;;
566
567   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568     ac_prev=srcdir ;;
569   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570     srcdir=$ac_optarg ;;
571
572   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573   | --syscon | --sysco | --sysc | --sys | --sy)
574     ac_prev=sysconfdir ;;
575   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577     sysconfdir=$ac_optarg ;;
578
579   -target | --target | --targe | --targ | --tar | --ta | --t)
580     ac_prev=target_alias ;;
581   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582     target_alias=$ac_optarg ;;
583
584   -v | -verbose | --verbose | --verbos | --verbo | --verb)
585     verbose=yes ;;
586
587   -version | --version | --versio | --versi | --vers | -V)
588     ac_init_version=: ;;
589
590   -with-* | --with-*)
591     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592     # Reject names that are not valid shell variable names.
593     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594       { echo "$as_me: error: invalid package name: $ac_package" >&2
595    { (exit 1); exit 1; }; }
596     ac_package=`echo $ac_package| sed 's/-/_/g'`
597     case $ac_option in
598       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599       *) ac_optarg=yes ;;
600     esac
601     eval "with_$ac_package='$ac_optarg'" ;;
602
603   -without-* | --without-*)
604     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605     # Reject names that are not valid shell variable names.
606     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607       { echo "$as_me: error: invalid package name: $ac_package" >&2
608    { (exit 1); exit 1; }; }
609     ac_package=`echo $ac_package | sed 's/-/_/g'`
610     eval "with_$ac_package=no" ;;
611
612   --x)
613     # Obsolete; use --with-x.
614     with_x=yes ;;
615
616   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617   | --x-incl | --x-inc | --x-in | --x-i)
618     ac_prev=x_includes ;;
619   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621     x_includes=$ac_optarg ;;
622
623   -x-libraries | --x-libraries | --x-librarie | --x-librari \
624   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625     ac_prev=x_libraries ;;
626   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628     x_libraries=$ac_optarg ;;
629
630   -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632    { (exit 1); exit 1; }; }
633     ;;
634
635   *=*)
636     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637     # Reject names that are not valid shell variable names.
638     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640    { (exit 1); exit 1; }; }
641     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642     eval "$ac_envvar='$ac_optarg'"
643     export $ac_envvar ;;
644
645   *)
646     # FIXME: should be removed in autoconf 3.0.
647     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651     ;;
652
653   esac
654 done
655
656 if test -n "$ac_prev"; then
657   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658   { echo "$as_me: error: missing argument to $ac_option" >&2
659    { (exit 1); exit 1; }; }
660 fi
661
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
664 do
665   eval ac_val=$`echo $ac_var`
666   case $ac_val in
667     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669    { (exit 1); exit 1; }; };;
670   esac
671 done
672
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675               localstatedir libdir includedir oldincludedir infodir mandir
676 do
677   eval ac_val=$`echo $ac_var`
678   case $ac_val in
679     [\\/$]* | ?:[\\/]* ) ;;
680     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681    { (exit 1); exit 1; }; };;
682   esac
683 done
684
685 # There might be people who depend on the old broken behavior: `$host'
686 # used to hold the argument of --host etc.
687 # FIXME: To remove some day.
688 build=$build_alias
689 host=$host_alias
690 target=$target_alias
691
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694   if test "x$build_alias" = x; then
695     cross_compiling=maybe
696     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697     If a cross compiler is detected then cross compile mode will be used." >&2
698   elif test "x$build_alias" != "x$host_alias"; then
699     cross_compiling=yes
700   fi
701 fi
702
703 ac_tool_prefix=
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706 test "$silent" = yes && exec 6>/dev/null
707
708
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711   ac_srcdir_defaulted=yes
712   # Try the directory containing this script, then its parent.
713   ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715          X"$0" : 'X\(//\)[^/]' \| \
716          X"$0" : 'X\(//\)$' \| \
717          X"$0" : 'X\(/\)' \| \
718          .     : '\(.\)' 2>/dev/null ||
719 echo X"$0" |
720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722           /^X\(\/\/\)$/{ s//\1/; q; }
723           /^X\(\/\).*/{ s//\1/; q; }
724           s/.*/./; q'`
725   srcdir=$ac_confdir
726   if test ! -r $srcdir/$ac_unique_file; then
727     srcdir=..
728   fi
729 else
730   ac_srcdir_defaulted=no
731 fi
732 if test ! -r $srcdir/$ac_unique_file; then
733   if test "$ac_srcdir_defaulted" = yes; then
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735    { (exit 1); exit 1; }; }
736   else
737     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738    { (exit 1); exit 1; }; }
739   fi
740 fi
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743    { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
758 ac_env_CC_value=$CC
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
777 ac_env_CXX_set=${CXX+set}
778 ac_env_CXX_value=$CXX
779 ac_cv_env_CXX_set=${CXX+set}
780 ac_cv_env_CXX_value=$CXX
781 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782 ac_env_CXXFLAGS_value=$CXXFLAGS
783 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785 ac_env_CXXCPP_set=${CXXCPP+set}
786 ac_env_CXXCPP_value=$CXXCPP
787 ac_cv_env_CXXCPP_set=${CXXCPP+set}
788 ac_cv_env_CXXCPP_value=$CXXCPP
789 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
790 ac_env_PKG_CONFIG_value=$PKG_CONFIG
791 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
792 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
793 ac_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
794 ac_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
795 ac_cv_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
796 ac_cv_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
797 ac_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
798 ac_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
799 ac_cv_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
800 ac_cv_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
801 ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
802 ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
803 ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
804 ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
805 ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
806 ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
807 ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
808 ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
809 ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
810 ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
811 ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
812 ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
813 ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
814 ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
815 ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
816 ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
817 ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
818 ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
819 ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
820 ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
821 ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
822 ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
823 ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
824 ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
825 ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
826 ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
827 ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
828 ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
829 ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
830 ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
831 ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
832 ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
833 ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
834 ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
835 ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
836 ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
837 ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
838 ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
839 ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
840 ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
841 ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
842 ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
843 ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
844 ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
845 ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
846 ac_env_HILDON_LIBS_value=$HILDON_LIBS
847 ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
848 ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
849 ac_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
850 ac_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
851 ac_cv_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
852 ac_cv_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
853 ac_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
854 ac_env_CAIRO_LIBS_value=$CAIRO_LIBS
855 ac_cv_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
856 ac_cv_env_CAIRO_LIBS_value=$CAIRO_LIBS
857 ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
858 ac_env_GST_CFLAGS_value=$GST_CFLAGS
859 ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
860 ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
861 ac_env_GST_LIBS_set=${GST_LIBS+set}
862 ac_env_GST_LIBS_value=$GST_LIBS
863 ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
864 ac_cv_env_GST_LIBS_value=$GST_LIBS
865
866 #
867 # Report the --help message.
868 #
869 if test "$ac_init_help" = "long"; then
870   # Omit some internal or obsolete options to make the list less imposing.
871   # This message is too long to be a string in the A/UX 3.1 sh.
872   cat <<_ACEOF
873 \`configure' configures wxWidgets 2.8.0 to adapt to many kinds of systems.
874
875 Usage: $0 [OPTION]... [VAR=VALUE]...
876
877 To assign environment variables (e.g., CC, CFLAGS...), specify them as
878 VAR=VALUE.  See below for descriptions of some of the useful variables.
879
880 Defaults for the options are specified in brackets.
881
882 Configuration:
883   -h, --help              display this help and exit
884       --help=short        display options specific to this package
885       --help=recursive    display the short help of all the included packages
886   -V, --version           display version information and exit
887   -q, --quiet, --silent   do not print \`checking...' messages
888       --cache-file=FILE   cache test results in FILE [disabled]
889   -C, --config-cache      alias for \`--cache-file=config.cache'
890   -n, --no-create         do not create output files
891       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
892
893 _ACEOF
894
895   cat <<_ACEOF
896 Installation directories:
897   --prefix=PREFIX         install architecture-independent files in PREFIX
898                           [$ac_default_prefix]
899   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
900                           [PREFIX]
901
902 By default, \`make install' will install all the files in
903 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
904 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
905 for instance \`--prefix=\$HOME'.
906
907 For better control, use the options below.
908
909 Fine tuning of the installation directories:
910   --bindir=DIR           user executables [EPREFIX/bin]
911   --sbindir=DIR          system admin executables [EPREFIX/sbin]
912   --libexecdir=DIR       program executables [EPREFIX/libexec]
913   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
914   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
915   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
916   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
917   --libdir=DIR           object code libraries [EPREFIX/lib]
918   --includedir=DIR       C header files [PREFIX/include]
919   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
920   --infodir=DIR          info documentation [PREFIX/info]
921   --mandir=DIR           man documentation [PREFIX/man]
922 _ACEOF
923
924   cat <<\_ACEOF
925
926 X features:
927   --x-includes=DIR    X include files are in DIR
928   --x-libraries=DIR   X library files are in DIR
929
930 System types:
931   --build=BUILD     configure for building on BUILD [guessed]
932   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
933   --target=TARGET   configure for building compilers for TARGET [HOST]
934 _ACEOF
935 fi
936
937 if test -n "$ac_init_help"; then
938   case $ac_init_help in
939      short | recursive ) echo "Configuration of wxWidgets 2.8.0:";;
940    esac
941   cat <<\_ACEOF
942
943 Optional Features:
944   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
945   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
946   --enable-gui            use GUI classes
947   --enable-monolithic     build wxWidgets as single library
948   --enable-plugins        build parts of wxWidgets as loadable components
949   --enable-universal      use wxWidgets GUI controls instead of native ones
950   --enable-nanox          use NanoX
951   --disable-gtk2          use GTK+ 1.2 instead of 2.0
952   --enable-gpe            use GNOME PDA Environment features if possible
953   --enable-shared         create shared library code
954   --enable-optimise       create optimised code
955   --enable-debug          same as debug_flag and debug_info
956   --enable-stl            use STL for containers
957   --enable-omf            use OMF object format
958   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
959   --enable-debug_info     create code with debugging information
960   --enable-debug_gdb      create code with extra GDB debugging information
961   --enable-debug_cntxt    use wxDebugContext
962   --enable-mem_tracing    create code with memory tracing
963   --enable-profile        create code with profiling information
964   --enable-no_rtti        create code without RTTI information
965   --enable-no_exceptions  create code without C++ exceptions handling
966   --enable-permissive     compile code disregarding strict ANSI
967   --enable-no_deps        create code without dependency information
968   --disable-vararg_macros don't use vararg macros, even if they are supported
969   --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
970   --enable-compat24       enable wxWidgets 2.4 compatibility
971   --disable-compat26      disable wxWidgets 2.6 compatibility
972   --disable-rpath         disable use of rpath for uninstalled builds
973   --enable-intl           use internationalization system
974   --enable-config         use wxConfig (and derived) classes
975   --enable-protocols      use wxProtocol and derived classes
976   --enable-ftp            use wxFTP (requires wxProtocol
977   --enable-http           use wxHTTP (requires wxProtocol
978   --enable-fileproto      use wxFileProto class (requires wxProtocol
979   --enable-sockets        use socket/network classes
980   --enable-ole            use OLE classes (Win32 only)
981   --enable-dataobj        use data object classes
982   --enable-ipc            use interprocess communication (wxSocket etc.)
983   --enable-apple_ieee     use the Apple IEEE codec
984   --enable-arcstream      use wxArchive streams
985   --enable-backtrace      use wxStackWalker class for getting backtraces
986   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
987   --enable-cmdline        use wxCmdLineParser class
988   --enable-datetime       use wxDateTime class
989   --enable-debugreport    use wxDebugReport class
990   --enable-dialupman      use dialup network classes
991   --enable-dynlib         use wxLibrary class for DLL loading
992   --enable-dynamicloader  use (new) wxDynamicLibrary class
993   --enable-exceptions     build exception-safe library
994   --enable-ffile          use wxFFile class
995   --enable-file           use wxFile class
996   --enable-filesystem     use virtual file systems classes
997   --enable-fontmap        use font encodings conversion classes
998   --enable-fs_archive     use virtual archive filesystems
999   --enable-fs_inet        use virtual HTTP/FTP filesystems
1000   --enable-fs_zip         now replaced by fs_archive
1001   --enable-geometry       use geometry class
1002   --enable-log            use logging system
1003   --enable-longlong       use wxLongLong class
1004   --enable-mimetype       use wxMimeTypesManager
1005   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1006   --enable-snglinst       use wxSingleInstanceChecker class
1007   --enable-std_iostreams  use standard C++ stream classes
1008   --enable-std_string     use standard C++ string classes
1009   --enable-stdpaths       use wxStandardPaths class
1010   --enable-stopwatch      use wxStopWatch class
1011   --enable-streams        use wxStream etc classes
1012   --enable-sysoptions     use wxSystemOptions
1013   --enable-tarstream      use wxTar streams
1014   --enable-textbuf        use wxTextBuffer class
1015   --enable-textfile       use wxTextFile class
1016   --enable-timer          use wxTimer class
1017   --enable-unicode        compile wxString with Unicode support
1018   --enable-sound          use wxSound class
1019   --enable-mediactrl      use wxMediaCtrl class
1020   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1021   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1022   --enable-zipstream      use wxZip streams
1023   --enable-url            use wxURL class
1024   --enable-variant        use wxVariant class
1025   --enable-protocol       use wxProtocol class
1026   --enable-protocol-http  HTTP support in wxProtocol
1027   --enable-protocol-ftp   FTP support in wxProtocol
1028   --enable-protocol-file  FILE support in wxProtocol
1029   --enable-threads        use threads
1030   --enable-docview        use document view architecture
1031   --enable-help           use help subsystem
1032   --enable-mshtmlhelp     use MS HTML Help (win32)
1033   --enable-html           use wxHTML sub-library
1034   --enable-htmlhelp       use wxHTML-based help
1035   --enable-xrc            use XRC resources sub-library
1036   --enable-aui            use AUI docking library
1037   --enable-constraints    use layout-constraints system
1038   --enable-printarch      use printing architecture
1039   --enable-mdi            use multiple document interface architecture
1040   --enable-mdidoc         use docview architecture with MDI
1041   --enable-loggui         use standard GUI logger
1042   --enable-logwin         use wxLogWindow
1043   --enable-logdialog      use wxLogDialog
1044   --enable-webkit         use wxWebKitCtrl (Mac)
1045   --enable-richtext       use wxRichTextCtrl
1046   --enable-graphics_ctx   use graphics context 2D drawing API
1047   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1048   --enable-prologio       not available; see contrib
1049   --enable-resources      not available; see contrib
1050   --enable-clipboard      use wxClipboard class
1051   --enable-dnd            use Drag'n'Drop classes
1052   --enable-metafile       use win32 metafiles
1053   --enable-controls       use all usual controls
1054   --enable-accel          use accelerators
1055   --enable-animatectrl    use wxAnimationCtrl class
1056   --enable-button         use wxButton class
1057   --enable-bmpbutton      use wxBitmapButton class
1058   --enable-bmpcombobox    use wxBitmapComboBox class
1059   --enable-calendar       use wxCalendarCtrl class
1060   --enable-caret          use wxCaret class
1061   --enable-checkbox       use wxCheckBox class
1062   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1063   --enable-choice         use wxChoice class
1064   --enable-choicebook     use wxChoicebook class
1065   --enable-collpane       use wxCollapsiblePane class
1066   --enable-colourpicker   use wxColourPickerCtrl class
1067   --enable-combobox       use wxComboBox class
1068   --enable-comboctrl      use wxComboCtrl class
1069   --enable-datepick       use wxDatePickerCtrl class
1070   --enable-dirpicker      use wxDirPickerCtrl class
1071   --enable-display        use wxDisplay class
1072   --enable-detect_sm      use code to detect X11 session manager
1073   --enable-filepicker     use wxFilePickerCtrl class
1074   --enable-fontpicker     use wxFontPickerCtrl class
1075   --enable-gauge          use wxGauge class
1076   --enable-grid           use wxGrid class
1077   --enable-dataviewctrl,  use wxDataViewCtrl class
1078   --enable-hyperlink      use wxHyperlinkCtrl class
1079   --enable-imaglist       use wxImageList class
1080   --enable-listbook       use wxListbook class
1081   --enable-listbox        use wxListBox class
1082   --enable-listctrl       use wxListCtrl class
1083   --enable-notebook       use wxNotebook class
1084   --enable-odcombobox     use wxOwnerDrawnComboBox class
1085   --enable-radiobox       use wxRadioBox class
1086   --enable-radiobtn       use wxRadioButton class
1087   --enable-sash           use wxSashWindow class
1088   --enable-scrollbar      use wxScrollBar class and scrollable windows
1089   --enable-slider         use wxSlider class
1090   --enable-spinbtn        use wxSpinButton class
1091   --enable-spinctrl       use wxSpinCtrl class
1092   --enable-splitter       use wxSplitterWindow class
1093   --enable-statbmp        use wxStaticBitmap class
1094   --enable-statbox        use wxStaticBox class
1095   --enable-statline       use wxStaticLine class
1096   --enable-stattext       use wxStaticText class
1097   --enable-statusbar      use wxStatusBar class
1098   --enable-tabdialog      use wxTabControl class
1099   --enable-textctrl       use wxTextCtrl class
1100   --enable-togglebtn      use wxToggleButton class
1101   --enable-toolbar        use wxToolBar class
1102   --enable-tbarnative     use native wxToolBar class
1103   --enable-treebook       use wxTreebook class
1104   --enable-toolbook       use wxToolbook class
1105   --enable-treectrl       use wxTreeCtrl class
1106   --enable-tipwindow      use wxTipWindow class
1107   --enable-popupwin       use wxPopUpWindow class
1108   --enable-commondlg      use all common dialogs
1109   --enable-aboutdlg       use wxAboutBox
1110   --enable-choicedlg      use wxChoiceDialog
1111   --enable-coldlg         use wxColourDialog
1112   --enable-filedlg        use wxFileDialog
1113   --enable-finddlg        use wxFindReplaceDialog
1114   --enable-fontdlg        use wxFontDialog
1115   --enable-dirdlg         use wxDirDialog
1116   --enable-msgdlg         use wxMessageDialog
1117   --enable-numberdlg      use wxNumberEntryDialog
1118   --enable-splash         use wxSplashScreen
1119   --enable-textdlg        use wxTextDialog
1120   --enable-tipdlg         use startup tips
1121   --enable-progressdlg    use wxProgressDialog
1122   --enable-wizarddlg      use wxWizard
1123   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1124   --enable-miniframe      use wxMiniFrame class
1125   --enable-tooltips       use wxToolTip class
1126   --enable-splines        use spline drawing code
1127   --enable-mousewheel     use mousewheel
1128   --enable-validators     use wxValidator and derived classes
1129   --enable-busyinfo       use wxBusyInfo
1130   --enable-joystick       use wxJoystick
1131   --enable-metafiles      use wxMetaFile (Win32 only)
1132   --enable-dragimage      use wxDragImage
1133   --enable-accessibility  enable accessibility support
1134   --enable-dccache        cache temporary wxDC objects (Win32 only)
1135   --enable-palette        use wxPalette class
1136   --enable-image          use wxImage class
1137   --enable-gif            use gif images (GIF file format)
1138   --enable-pcx            use pcx images (PCX file format)
1139   --enable-tga            use tga images (TGA file format)
1140   --enable-iff            use iff images (IFF file format)
1141   --enable-pnm            use pnm images (PNM file format)
1142   --enable-xpm            use xpm images (XPM file format)
1143   --enable-icocur         use Windows ICO and CUR formats
1144   --enable-official_build official build of wxWidgets (win32 DLL only)
1145   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1146   --disable-largefile     omit support for large files
1147   --disable-gtktest       do not try to compile and run a test GTK+ program
1148   --disable-gtktest       Do not try to compile and run a test GTK program
1149   --disable-sdltest       Do not try to compile and run a test SDL program
1150   --enable-omf            use OMF object format (OS/2)
1151   --disable-dependency-tracking
1152                           don't use dependency tracking even if the compiler
1153                           can
1154   --disable-precomp-headers
1155                           don't use precompiled headers even if compiler can
1156
1157 Optional Packages:
1158   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1159   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1160   --without-subdirs       don't generate makefiles for samples/demos/...
1161   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1162   --with-motif            use Motif/Lesstif
1163   --with-mac              use Mac OS X
1164   --with-cocoa            use Cocoa
1165   --with-wine             use Wine
1166   --with-msw              use MS-Windows
1167   --with-pm               use OS/2 Presentation Manager
1168   --with-mgl              use SciTech MGL
1169   --with-directfb         use DirectFB
1170   --with-microwin         use MicroWindows
1171   --with-x11              use X11
1172   --with-libpng           use libpng (PNG image format)
1173   --with-libjpeg          use libjpeg (JPEG file format)
1174   --with-libtiff          use libtiff (TIFF file format)
1175   --with-libxpm           use libxpm (XPM file format)
1176   --with-libmspack        use libmspack (CHM help files loading)
1177   --with-sdl              use SDL for audio on Unix
1178   --with-gnomeprint       use GNOME print for printing under GNOME
1179   --with-gnomevfs         use GNOME VFS for associating MIME types
1180   --with-hildon           use Hildon framework for Nokia 770
1181   --with-opengl           use OpenGL (or Mesa)
1182   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1183   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1184   --with-regex            enable support for wxRegEx class
1185   --with-zlib             use zlib for LZW compression
1186   --with-odbc             use the IODBC and wxODBC classes
1187   --with-expat            enable XML support using expat parser
1188   --with-flavour=NAME     specify a name to identify this build
1189   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1190   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1191   --with-x                use the X Window System
1192   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1193   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1194   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1195   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1196   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1197
1198 Some influential environment variables:
1199   CC          C compiler command
1200   CFLAGS      C compiler flags
1201   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1202               nonstandard directory <lib dir>
1203   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1204               headers in a nonstandard directory <include dir>
1205   CPP         C preprocessor
1206   CXX         C++ compiler command
1207   CXXFLAGS    C++ compiler flags
1208   CXXCPP      C++ preprocessor
1209   PKG_CONFIG  path to pkg-config utility
1210   DIRECTFB_CFLAGS
1211               C compiler flags for DIRECTFB, overriding pkg-config
1212   DIRECTFB_LIBS
1213               linker flags for DIRECTFB, overriding pkg-config
1214   PANGOX_CFLAGS
1215               C compiler flags for PANGOX, overriding pkg-config
1216   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1217   PANGOFT2_CFLAGS
1218               C compiler flags for PANGOFT2, overriding pkg-config
1219   PANGOFT2_LIBS
1220               linker flags for PANGOFT2, overriding pkg-config
1221   PANGOXFT_CFLAGS
1222               C compiler flags for PANGOXFT, overriding pkg-config
1223   PANGOXFT_LIBS
1224               linker flags for PANGOXFT, overriding pkg-config
1225   LIBGNOMEPRINTUI_CFLAGS
1226               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1227   LIBGNOMEPRINTUI_LIBS
1228               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1229   GNOMEVFS_CFLAGS
1230               C compiler flags for GNOMEVFS, overriding pkg-config
1231   GNOMEVFS_LIBS
1232               linker flags for GNOMEVFS, overriding pkg-config
1233   HILDON_CFLAGS
1234               C compiler flags for HILDON, overriding pkg-config
1235   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1236   CAIRO_CFLAGS
1237               C compiler flags for CAIRO, overriding pkg-config
1238   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1239   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1240   GST_LIBS    linker flags for GST, overriding pkg-config
1241
1242 Use these variables to override the choices made by `configure' or to help
1243 it to find libraries and programs with nonstandard names/locations.
1244
1245 Report bugs to <wx-dev@lists.wxwidgets.org>.
1246 _ACEOF
1247 fi
1248
1249 if test "$ac_init_help" = "recursive"; then
1250   # If there are subdirs, report their specific --help.
1251   ac_popdir=`pwd`
1252   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1253     test -d $ac_dir || continue
1254     ac_builddir=.
1255
1256 if test "$ac_dir" != .; then
1257   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1258   # A "../" for each directory in $ac_dir_suffix.
1259   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1260 else
1261   ac_dir_suffix= ac_top_builddir=
1262 fi
1263
1264 case $srcdir in
1265   .)  # No --srcdir option.  We are building in place.
1266     ac_srcdir=.
1267     if test -z "$ac_top_builddir"; then
1268        ac_top_srcdir=.
1269     else
1270        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1271     fi ;;
1272   [\\/]* | ?:[\\/]* )  # Absolute path.
1273     ac_srcdir=$srcdir$ac_dir_suffix;
1274     ac_top_srcdir=$srcdir ;;
1275   *) # Relative path.
1276     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1277     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1278 esac
1279
1280 # Do not use `cd foo && pwd` to compute absolute paths, because
1281 # the directories may not exist.
1282 case `pwd` in
1283 .) ac_abs_builddir="$ac_dir";;
1284 *)
1285   case "$ac_dir" in
1286   .) ac_abs_builddir=`pwd`;;
1287   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1288   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1289   esac;;
1290 esac
1291 case $ac_abs_builddir in
1292 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1293 *)
1294   case ${ac_top_builddir}. in
1295   .) ac_abs_top_builddir=$ac_abs_builddir;;
1296   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1297   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1298   esac;;
1299 esac
1300 case $ac_abs_builddir in
1301 .) ac_abs_srcdir=$ac_srcdir;;
1302 *)
1303   case $ac_srcdir in
1304   .) ac_abs_srcdir=$ac_abs_builddir;;
1305   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1306   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1307   esac;;
1308 esac
1309 case $ac_abs_builddir in
1310 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1311 *)
1312   case $ac_top_srcdir in
1313   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1314   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1315   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1316   esac;;
1317 esac
1318
1319     cd $ac_dir
1320     # Check for guested configure; otherwise get Cygnus style configure.
1321     if test -f $ac_srcdir/configure.gnu; then
1322       echo
1323       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1324     elif test -f $ac_srcdir/configure; then
1325       echo
1326       $SHELL $ac_srcdir/configure  --help=recursive
1327     elif test -f $ac_srcdir/configure.ac ||
1328            test -f $ac_srcdir/configure.in; then
1329       echo
1330       $ac_configure --help
1331     else
1332       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1333     fi
1334     cd "$ac_popdir"
1335   done
1336 fi
1337
1338 test -n "$ac_init_help" && exit 0
1339 if $ac_init_version; then
1340   cat <<\_ACEOF
1341 wxWidgets configure 2.8.0
1342 generated by GNU Autoconf 2.59
1343
1344 Copyright (C) 2003 Free Software Foundation, Inc.
1345 This configure script is free software; the Free Software Foundation
1346 gives unlimited permission to copy, distribute and modify it.
1347 _ACEOF
1348   exit 0
1349 fi
1350 exec 5>config.log
1351 cat >&5 <<_ACEOF
1352 This file contains any messages produced by compilers while
1353 running configure, to aid debugging if configure makes a mistake.
1354
1355 It was created by wxWidgets $as_me 2.8.0, which was
1356 generated by GNU Autoconf 2.59.  Invocation command line was
1357
1358   $ $0 $@
1359
1360 _ACEOF
1361 {
1362 cat <<_ASUNAME
1363 ## --------- ##
1364 ## Platform. ##
1365 ## --------- ##
1366
1367 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1368 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1369 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1370 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1371 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1372
1373 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1374 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1375
1376 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1377 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1378 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1379 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1380 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1381 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1382 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1383
1384 _ASUNAME
1385
1386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387 for as_dir in $PATH
1388 do
1389   IFS=$as_save_IFS
1390   test -z "$as_dir" && as_dir=.
1391   echo "PATH: $as_dir"
1392 done
1393
1394 } >&5
1395
1396 cat >&5 <<_ACEOF
1397
1398
1399 ## ----------- ##
1400 ## Core tests. ##
1401 ## ----------- ##
1402
1403 _ACEOF
1404
1405
1406 # Keep a trace of the command line.
1407 # Strip out --no-create and --no-recursion so they do not pile up.
1408 # Strip out --silent because we don't want to record it for future runs.
1409 # Also quote any args containing shell meta-characters.
1410 # Make two passes to allow for proper duplicate-argument suppression.
1411 ac_configure_args=
1412 ac_configure_args0=
1413 ac_configure_args1=
1414 ac_sep=
1415 ac_must_keep_next=false
1416 for ac_pass in 1 2
1417 do
1418   for ac_arg
1419   do
1420     case $ac_arg in
1421     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1422     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1423     | -silent | --silent | --silen | --sile | --sil)
1424       continue ;;
1425     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1426       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1427     esac
1428     case $ac_pass in
1429     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1430     2)
1431       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1432       if test $ac_must_keep_next = true; then
1433         ac_must_keep_next=false # Got value, back to normal.
1434       else
1435         case $ac_arg in
1436           *=* | --config-cache | -C | -disable-* | --disable-* \
1437           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1438           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1439           | -with-* | --with-* | -without-* | --without-* | --x)
1440             case "$ac_configure_args0 " in
1441               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1442             esac
1443             ;;
1444           -* ) ac_must_keep_next=true ;;
1445         esac
1446       fi
1447       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1448       # Get rid of the leading space.
1449       ac_sep=" "
1450       ;;
1451     esac
1452   done
1453 done
1454 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1455 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1456
1457 # When interrupted or exit'd, cleanup temporary files, and complete
1458 # config.log.  We remove comments because anyway the quotes in there
1459 # would cause problems or look ugly.
1460 # WARNING: Be sure not to use single quotes in there, as some shells,
1461 # such as our DU 5.0 friend, will then `close' the trap.
1462 trap 'exit_status=$?
1463   # Save into config.log some information that might help in debugging.
1464   {
1465     echo
1466
1467     cat <<\_ASBOX
1468 ## ---------------- ##
1469 ## Cache variables. ##
1470 ## ---------------- ##
1471 _ASBOX
1472     echo
1473     # The following way of writing the cache mishandles newlines in values,
1474 {
1475   (set) 2>&1 |
1476     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1477     *ac_space=\ *)
1478       sed -n \
1479         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1480           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1481       ;;
1482     *)
1483       sed -n \
1484         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1485       ;;
1486     esac;
1487 }
1488     echo
1489
1490     cat <<\_ASBOX
1491 ## ----------------- ##
1492 ## Output variables. ##
1493 ## ----------------- ##
1494 _ASBOX
1495     echo
1496     for ac_var in $ac_subst_vars
1497     do
1498       eval ac_val=$`echo $ac_var`
1499       echo "$ac_var='"'"'$ac_val'"'"'"
1500     done | sort
1501     echo
1502
1503     if test -n "$ac_subst_files"; then
1504       cat <<\_ASBOX
1505 ## ------------- ##
1506 ## Output files. ##
1507 ## ------------- ##
1508 _ASBOX
1509       echo
1510       for ac_var in $ac_subst_files
1511       do
1512         eval ac_val=$`echo $ac_var`
1513         echo "$ac_var='"'"'$ac_val'"'"'"
1514       done | sort
1515       echo
1516     fi
1517
1518     if test -s confdefs.h; then
1519       cat <<\_ASBOX
1520 ## ----------- ##
1521 ## confdefs.h. ##
1522 ## ----------- ##
1523 _ASBOX
1524       echo
1525       sed "/^$/d" confdefs.h | sort
1526       echo
1527     fi
1528     test "$ac_signal" != 0 &&
1529       echo "$as_me: caught signal $ac_signal"
1530     echo "$as_me: exit $exit_status"
1531   } >&5
1532   rm -f core *.core &&
1533   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1534     exit $exit_status
1535      ' 0
1536 for ac_signal in 1 2 13 15; do
1537   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1538 done
1539 ac_signal=0
1540
1541 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1542 rm -rf conftest* confdefs.h
1543 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1544 echo >confdefs.h
1545
1546 # Predefined preprocessor variables.
1547
1548 cat >>confdefs.h <<_ACEOF
1549 #define PACKAGE_NAME "$PACKAGE_NAME"
1550 _ACEOF
1551
1552
1553 cat >>confdefs.h <<_ACEOF
1554 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1555 _ACEOF
1556
1557
1558 cat >>confdefs.h <<_ACEOF
1559 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1560 _ACEOF
1561
1562
1563 cat >>confdefs.h <<_ACEOF
1564 #define PACKAGE_STRING "$PACKAGE_STRING"
1565 _ACEOF
1566
1567
1568 cat >>confdefs.h <<_ACEOF
1569 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1570 _ACEOF
1571
1572
1573 # Let the site file select an alternate cache file if it wants to.
1574 # Prefer explicitly selected file to automatically selected ones.
1575 if test -z "$CONFIG_SITE"; then
1576   if test "x$prefix" != xNONE; then
1577     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1578   else
1579     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1580   fi
1581 fi
1582 for ac_site_file in $CONFIG_SITE; do
1583   if test -r "$ac_site_file"; then
1584     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1585 echo "$as_me: loading site script $ac_site_file" >&6;}
1586     sed 's/^/| /' "$ac_site_file" >&5
1587     . "$ac_site_file"
1588   fi
1589 done
1590
1591 if test -r "$cache_file"; then
1592   # Some versions of bash will fail to source /dev/null (special
1593   # files actually), so we avoid doing that.
1594   if test -f "$cache_file"; then
1595     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1596 echo "$as_me: loading cache $cache_file" >&6;}
1597     case $cache_file in
1598       [\\/]* | ?:[\\/]* ) . $cache_file;;
1599       *)                      . ./$cache_file;;
1600     esac
1601   fi
1602 else
1603   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1604 echo "$as_me: creating cache $cache_file" >&6;}
1605   >$cache_file
1606 fi
1607
1608 # Check that the precious variables saved in the cache have kept the same
1609 # value.
1610 ac_cache_corrupted=false
1611 for ac_var in `(set) 2>&1 |
1612                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1613   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1614   eval ac_new_set=\$ac_env_${ac_var}_set
1615   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1616   eval ac_new_val="\$ac_env_${ac_var}_value"
1617   case $ac_old_set,$ac_new_set in
1618     set,)
1619       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1620 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1621       ac_cache_corrupted=: ;;
1622     ,set)
1623       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1624 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1625       ac_cache_corrupted=: ;;
1626     ,);;
1627     *)
1628       if test "x$ac_old_val" != "x$ac_new_val"; then
1629         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1630 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1631         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1632 echo "$as_me:   former value:  $ac_old_val" >&2;}
1633         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1634 echo "$as_me:   current value: $ac_new_val" >&2;}
1635         ac_cache_corrupted=:
1636       fi;;
1637   esac
1638   # Pass precious variables to config.status.
1639   if test "$ac_new_set" = set; then
1640     case $ac_new_val in
1641     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1642       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1643     *) ac_arg=$ac_var=$ac_new_val ;;
1644     esac
1645     case " $ac_configure_args " in
1646       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1647       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1648     esac
1649   fi
1650 done
1651 if $ac_cache_corrupted; then
1652   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1653 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1654   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1655 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1656    { (exit 1); exit 1; }; }
1657 fi
1658
1659 ac_ext=c
1660 ac_cpp='$CPP $CPPFLAGS'
1661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694 ac_aux_dir=
1695 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1696   if test -f $ac_dir/install-sh; then
1697     ac_aux_dir=$ac_dir
1698     ac_install_sh="$ac_aux_dir/install-sh -c"
1699     break
1700   elif test -f $ac_dir/install.sh; then
1701     ac_aux_dir=$ac_dir
1702     ac_install_sh="$ac_aux_dir/install.sh -c"
1703     break
1704   elif test -f $ac_dir/shtool; then
1705     ac_aux_dir=$ac_dir
1706     ac_install_sh="$ac_aux_dir/shtool install -c"
1707     break
1708   fi
1709 done
1710 if test -z "$ac_aux_dir"; then
1711   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1712 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1713    { (exit 1); exit 1; }; }
1714 fi
1715 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1716 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1717 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1718
1719 # Make sure we can run config.sub.
1720 $ac_config_sub sun4 >/dev/null 2>&1 ||
1721   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1722 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1723    { (exit 1); exit 1; }; }
1724
1725 echo "$as_me:$LINENO: checking build system type" >&5
1726 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1727 if test "${ac_cv_build+set}" = set; then
1728   echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730   ac_cv_build_alias=$build_alias
1731 test -z "$ac_cv_build_alias" &&
1732   ac_cv_build_alias=`$ac_config_guess`
1733 test -z "$ac_cv_build_alias" &&
1734   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1735 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1736    { (exit 1); exit 1; }; }
1737 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1738   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1739 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1740    { (exit 1); exit 1; }; }
1741
1742 fi
1743 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1744 echo "${ECHO_T}$ac_cv_build" >&6
1745 build=$ac_cv_build
1746 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1747 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1748 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1749
1750
1751 echo "$as_me:$LINENO: checking host system type" >&5
1752 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1753 if test "${ac_cv_host+set}" = set; then
1754   echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756   ac_cv_host_alias=$host_alias
1757 test -z "$ac_cv_host_alias" &&
1758   ac_cv_host_alias=$ac_cv_build_alias
1759 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1760   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1761 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1762    { (exit 1); exit 1; }; }
1763
1764 fi
1765 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1766 echo "${ECHO_T}$ac_cv_host" >&6
1767 host=$ac_cv_host
1768 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1769 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1770 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1771
1772
1773 echo "$as_me:$LINENO: checking target system type" >&5
1774 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1775 if test "${ac_cv_target+set}" = set; then
1776   echo $ECHO_N "(cached) $ECHO_C" >&6
1777 else
1778   ac_cv_target_alias=$target_alias
1779 test "x$ac_cv_target_alias" = "x" &&
1780   ac_cv_target_alias=$ac_cv_host_alias
1781 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1782   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1783 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1784    { (exit 1); exit 1; }; }
1785
1786 fi
1787 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1788 echo "${ECHO_T}$ac_cv_target" >&6
1789 target=$ac_cv_target
1790 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1791 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1792 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1793
1794
1795 # The aliases save the names the user supplied, while $host etc.
1796 # will get canonicalized.
1797 test -n "$target_alias" &&
1798   test "$program_prefix$program_suffix$program_transform_name" = \
1799     NONENONEs,x,x, &&
1800   program_prefix=${target_alias}-
1801
1802
1803
1804 wx_major_version_number=2
1805 wx_minor_version_number=8
1806 wx_release_number=0
1807 wx_subrelease_number=0
1808
1809 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1810 WX_VERSION=$WX_RELEASE.$wx_release_number
1811 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
1812
1813 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
1814
1815
1816 wx_top_builddir="`pwd`"
1817
1818
1819
1820
1821 USE_UNIX=1
1822 USE_OS2=0
1823 USE_WIN32=0
1824 USE_DOS=0
1825 USE_BEOS=0
1826 USE_MAC=0
1827
1828 USE_AIX=
1829 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1830 USE_GNU=                            USE_HPUX=
1831 USE_LINUX=
1832 USE_NETBSD=
1833 USE_OPENBSD=
1834 USE_OSF=                            USE_SGI=
1835 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1836 USE_ULTRIX=
1837 USE_UNIXWARE=
1838
1839 USE_ALPHA=
1840
1841 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1842
1843 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
1844
1845 DEFAULT_wxUSE_COCOA=0
1846 DEFAULT_wxUSE_GTK=0
1847 DEFAULT_wxUSE_MAC=0
1848 DEFAULT_wxUSE_MGL=0
1849 DEFAULT_wxUSE_MICROWIN=0
1850 DEFAULT_wxUSE_MOTIF=0
1851 DEFAULT_wxUSE_MSW=0
1852 DEFAULT_wxUSE_PM=0
1853 DEFAULT_wxUSE_X11=0
1854 DEFAULT_wxUSE_DFB=0
1855
1856 DEFAULT_DEFAULT_wxUSE_COCOA=0
1857 DEFAULT_DEFAULT_wxUSE_GTK=0
1858 DEFAULT_DEFAULT_wxUSE_MAC=0
1859 DEFAULT_DEFAULT_wxUSE_MGL=0
1860 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1861 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1862 DEFAULT_DEFAULT_wxUSE_MSW=0
1863 DEFAULT_DEFAULT_wxUSE_PM=0
1864 DEFAULT_DEFAULT_wxUSE_X11=0
1865 DEFAULT_DEFAULT_wxUSE_DFB=0
1866
1867 PROGRAM_EXT=
1868 SO_SUFFIX=so
1869 SAMPLES_RPATH_FLAG=
1870 SAMPLES_RPATH_POSTLINK=
1871
1872 DEFAULT_STD_FLAG=yes
1873
1874 case "${host}" in
1875   *-hp-hpux* )
1876     USE_HPUX=1
1877     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1878     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1879     SO_SUFFIX=sl
1880     cat >>confdefs.h <<\_ACEOF
1881 #define __HPUX__ 1
1882 _ACEOF
1883
1884
1885             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
1886   ;;
1887   *-*-linux* )
1888     USE_LINUX=1
1889     cat >>confdefs.h <<\_ACEOF
1890 #define __LINUX__ 1
1891 _ACEOF
1892
1893     TMP=`uname -m`
1894     if test "x$TMP" = "xalpha"; then
1895       USE_ALPHA=1
1896       cat >>confdefs.h <<\_ACEOF
1897 #define __ALPHA__ 1
1898 _ACEOF
1899
1900     fi
1901     DEFAULT_DEFAULT_wxUSE_GTK=1
1902   ;;
1903   *-*-gnu* | *-*-k*bsd*-gnu )
1904     USE_GNU=1
1905     TMP=`uname -m`
1906     if test "x$TMP" = "xalpha"; then
1907       USE_ALPHA=1
1908       cat >>confdefs.h <<\_ACEOF
1909 #define __ALPHA__ 1
1910 _ACEOF
1911
1912     fi
1913     DEFAULT_DEFAULT_wxUSE_GTK=1
1914   ;;
1915   *-*-irix5* | *-*-irix6* )
1916     USE_SGI=1
1917     USE_SVR4=1
1918     cat >>confdefs.h <<\_ACEOF
1919 #define __SGI__ 1
1920 _ACEOF
1921
1922     cat >>confdefs.h <<\_ACEOF
1923 #define __SVR4__ 1
1924 _ACEOF
1925
1926     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1927   ;;
1928   *-*-solaris2* )
1929     USE_SUN=1
1930     USE_SOLARIS=1
1931     USE_SVR4=1
1932     cat >>confdefs.h <<\_ACEOF
1933 #define __SUN__ 1
1934 _ACEOF
1935
1936     cat >>confdefs.h <<\_ACEOF
1937 #define __SOLARIS__ 1
1938 _ACEOF
1939
1940     cat >>confdefs.h <<\_ACEOF
1941 #define __SVR4__ 1
1942 _ACEOF
1943
1944     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1945     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1946   ;;
1947   *-*-sunos4* )
1948     USE_SUN=1
1949     USE_SUNOS=1
1950     USE_BSD=1
1951     cat >>confdefs.h <<\_ACEOF
1952 #define __SUN__ 1
1953 _ACEOF
1954
1955     cat >>confdefs.h <<\_ACEOF
1956 #define __SUNOS__ 1
1957 _ACEOF
1958
1959     cat >>confdefs.h <<\_ACEOF
1960 #define __BSD__ 1
1961 _ACEOF
1962
1963     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1964   ;;
1965   *-*-freebsd*)
1966     USE_BSD=1
1967     USE_FREEBSD=1
1968     cat >>confdefs.h <<\_ACEOF
1969 #define __FREEBSD__ 1
1970 _ACEOF
1971
1972     cat >>confdefs.h <<\_ACEOF
1973 #define __BSD__ 1
1974 _ACEOF
1975
1976     DEFAULT_DEFAULT_wxUSE_GTK=1
1977   ;;
1978   *-*-openbsd*|*-*-mirbsd*)
1979     USE_BSD=1
1980     USE_OPENBSD=1
1981     cat >>confdefs.h <<\_ACEOF
1982 #define __OPENBSD__ 1
1983 _ACEOF
1984
1985     cat >>confdefs.h <<\_ACEOF
1986 #define __BSD__ 1
1987 _ACEOF
1988
1989     DEFAULT_DEFAULT_wxUSE_GTK=1
1990   ;;
1991   *-*-netbsd*)
1992     USE_BSD=1
1993     USE_NETBSD=1
1994     cat >>confdefs.h <<\_ACEOF
1995 #define __NETBSD__ 1
1996 _ACEOF
1997
1998     cat >>confdefs.h <<\_ACEOF
1999 #define __BSD__ 1
2000 _ACEOF
2001
2002     DEFAULT_DEFAULT_wxUSE_GTK=1
2003     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2004
2005             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2006   ;;
2007   *-*-osf* )
2008     USE_ALPHA=1
2009     USE_OSF=1
2010     cat >>confdefs.h <<\_ACEOF
2011 #define __ALPHA__ 1
2012 _ACEOF
2013
2014     cat >>confdefs.h <<\_ACEOF
2015 #define __OSF__ 1
2016 _ACEOF
2017
2018     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2019     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2020   ;;
2021   *-*-dgux5* )
2022     USE_ALPHA=1
2023     USE_SVR4=1
2024     cat >>confdefs.h <<\_ACEOF
2025 #define __ALPHA__ 1
2026 _ACEOF
2027
2028     cat >>confdefs.h <<\_ACEOF
2029 #define __SVR4__ 1
2030 _ACEOF
2031
2032     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2033   ;;
2034   *-*-sysv5* )
2035     USE_SYSV=1
2036     USE_SVR4=1
2037     cat >>confdefs.h <<\_ACEOF
2038 #define __SYSV__ 1
2039 _ACEOF
2040
2041     cat >>confdefs.h <<\_ACEOF
2042 #define __SVR4__ 1
2043 _ACEOF
2044
2045     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2046   ;;
2047   *-*-aix* )
2048     USE_AIX=1
2049     USE_SYSV=1
2050     USE_SVR4=1
2051                         SO_SUFFIX=a
2052     cat >>confdefs.h <<\_ACEOF
2053 #define __AIX__ 1
2054 _ACEOF
2055
2056     cat >>confdefs.h <<\_ACEOF
2057 #define __SYSV__ 1
2058 _ACEOF
2059
2060     cat >>confdefs.h <<\_ACEOF
2061 #define __SVR4__ 1
2062 _ACEOF
2063
2064     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2065   ;;
2066
2067   *-*-*UnixWare*)
2068     USE_SYSV=1
2069     USE_SVR4=1
2070     USE_UNIXWARE=1
2071     cat >>confdefs.h <<\_ACEOF
2072 #define __UNIXWARE__ 1
2073 _ACEOF
2074
2075   ;;
2076
2077   *-*-cygwin* | *-*-mingw32* )
2078                 SO_SUFFIX=dll
2079     PROGRAM_EXT=".exe"
2080     DEFAULT_DEFAULT_wxUSE_MSW=1
2081   ;;
2082
2083   *-pc-msdosdjgpp )
2084     USE_UNIX=0
2085     USE_DOS=1
2086     cat >>confdefs.h <<\_ACEOF
2087 #define __DOS__ 1
2088 _ACEOF
2089
2090     PROGRAM_EXT=".exe"
2091     DEFAULT_DEFAULT_wxUSE_MGL=1
2092   ;;
2093
2094   *-pc-os2_emx | *-pc-os2-emx )
2095     cat >>confdefs.h <<\_ACEOF
2096 #define __EMX__ 1
2097 _ACEOF
2098
2099     USE_OS2=1
2100     cat >>confdefs.h <<\_ACEOF
2101 #define __OS2__ 1
2102 _ACEOF
2103
2104     PROGRAM_EXT=".exe"
2105     DEFAULT_DEFAULT_wxUSE_PM=1
2106         CXX=gcc
2107     LDFLAGS="$LDFLAGS -Zcrtdll"
2108                         ac_executable_extensions=".exe"
2109     export ac_executable_extensions
2110             ac_save_IFS="$IFS"
2111     IFS='\\'
2112     ac_TEMP_PATH=
2113     for ac_dir in $PATH; do
2114       IFS=$ac_save_IFS
2115       if test -z "$ac_TEMP_PATH"; then
2116         ac_TEMP_PATH="$ac_dir"
2117       else
2118         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2119       fi
2120     done
2121     export PATH="$ac_TEMP_PATH"
2122     unset ac_TEMP_PATH
2123     DEFAULT_STD_FLAG=no
2124   ;;
2125
2126   *-*-darwin* )
2127         USE_BSD=1
2128     USE_DARWIN=1
2129     SO_SUFFIX=dylib
2130     cat >>confdefs.h <<\_ACEOF
2131 #define __BSD__ 1
2132 _ACEOF
2133
2134     cat >>confdefs.h <<\_ACEOF
2135 #define __DARWIN__ 1
2136 _ACEOF
2137
2138     cat >>confdefs.h <<\_ACEOF
2139 #define TARGET_CARBON 1
2140 _ACEOF
2141
2142     DEFAULT_DEFAULT_wxUSE_MAC=1
2143     DEFAULT_STD_FLAG=no
2144   ;;
2145   powerpc-apple-macos* )
2146         USE_UNIX=0
2147             ac_cv_c_bigendian=yes
2148     SO_SUFFIX=shlib
2149             DEFAULT_DEFAULT_wxUSE_MAC=1
2150     DEFAULT_STD_FLAG=no
2151   ;;
2152
2153   *-*-beos* )
2154         USE_BEOS=1
2155     cat >>confdefs.h <<\_ACEOF
2156 #define __BEOS__ 1
2157 _ACEOF
2158
2159   ;;
2160
2161   *)
2162     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2163 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2164     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2165 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2166
2167     DEFAULT_DEFAULT_wxUSE_X11=1
2168     DEFAULT_wxUSE_SHARED=no
2169 esac
2170
2171
2172
2173
2174           wx_arg_cache_file="configarg.cache"
2175           echo "loading argument cache $wx_arg_cache_file"
2176           rm -f ${wx_arg_cache_file}.tmp
2177           touch ${wx_arg_cache_file}.tmp
2178           touch ${wx_arg_cache_file}
2179
2180
2181 DEBUG_CONFIGURE=0
2182 if test $DEBUG_CONFIGURE = 1; then
2183   DEFAULT_wxUSE_UNIVERSAL=no
2184   DEFAULT_wxUSE_STL=no
2185
2186   DEFAULT_wxUSE_NANOX=no
2187
2188   DEFAULT_wxUSE_THREADS=yes
2189
2190   DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
2191   DEFAULT_wxUSE_OPTIMISE=no
2192   DEFAULT_wxUSE_PROFILE=no
2193   DEFAULT_wxUSE_NO_DEPS=no
2194   DEFAULT_wxUSE_VARARG_MACROS=no
2195   DEFAULT_wxUSE_NO_RTTI=no
2196   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2197   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2198   DEFAULT_wxUSE_RPATH=yes
2199   DEFAULT_wxUSE_PERMISSIVE=no
2200   DEFAULT_wxUSE_DEBUG_FLAG=yes
2201   DEFAULT_wxUSE_DEBUG_INFO=yes
2202   DEFAULT_wxUSE_DEBUG_GDB=yes
2203   DEFAULT_wxUSE_MEM_TRACING=no
2204   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2205   DEFAULT_wxUSE_DMALLOC=no
2206   DEFAULT_wxUSE_APPLE_IEEE=no
2207
2208   DEFAULT_wxUSE_EXCEPTIONS=no
2209   DEFAULT_wxUSE_LOG=yes
2210   DEFAULT_wxUSE_LOGWINDOW=no
2211   DEFAULT_wxUSE_LOGGUI=no
2212   DEFAULT_wxUSE_LOGDIALOG=no
2213
2214   DEFAULT_wxUSE_GUI=yes
2215   DEFAULT_wxUSE_CONTROLS=no
2216
2217   DEFAULT_wxUSE_REGEX=no
2218   DEFAULT_wxUSE_XML=no
2219   DEFAULT_wxUSE_EXPAT=no
2220   DEFAULT_wxUSE_ZLIB=no
2221   DEFAULT_wxUSE_LIBPNG=no
2222   DEFAULT_wxUSE_LIBJPEG=no
2223   DEFAULT_wxUSE_LIBTIFF=no
2224   DEFAULT_wxUSE_LIBXPM=no
2225   DEFAULT_wxUSE_LIBMSPACK=no
2226   DEFAULT_wxUSE_LIBSDL=no
2227   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2228   DEFAULT_wxUSE_LIBGNOMEVFS=no
2229   DEFAULT_wxUSE_LIBHILDON=no
2230   DEFAULT_wxUSE_ODBC=no
2231   DEFAULT_wxUSE_OPENGL=no
2232
2233   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2234   DEFAULT_wxUSE_STACKWALKER=no
2235   DEFAULT_wxUSE_DEBUGREPORT=no
2236   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2237   DEFAULT_wxUSE_STD_IOSTREAM=no
2238   DEFAULT_wxUSE_STD_STRING=no
2239   DEFAULT_wxUSE_CMDLINE_PARSER=no
2240   DEFAULT_wxUSE_DATETIME=no
2241   DEFAULT_wxUSE_TIMER=no
2242   DEFAULT_wxUSE_STOPWATCH=no
2243   DEFAULT_wxUSE_FILE=no
2244   DEFAULT_wxUSE_FFILE=no
2245   DEFAULT_wxUSE_STDPATHS=no
2246   DEFAULT_wxUSE_TEXTBUFFER=no
2247   DEFAULT_wxUSE_TEXTFILE=no
2248   DEFAULT_wxUSE_SOUND=no
2249   DEFAULT_wxUSE_MEDIACTRL=no
2250   DEFAULT_wxUSE_GSTREAMER8=no
2251   DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
2252   DEFAULT_wxUSE_INTL=no
2253   DEFAULT_wxUSE_CONFIG=no
2254   DEFAULT_wxUSE_FONTMAP=no
2255   DEFAULT_wxUSE_STREAMS=no
2256   DEFAULT_wxUSE_SOCKETS=no
2257   DEFAULT_wxUSE_OLE=no
2258   DEFAULT_wxUSE_DATAOBJ=no
2259   DEFAULT_wxUSE_DIALUP_MANAGER=no
2260   DEFAULT_wxUSE_JOYSTICK=no
2261   DEFAULT_wxUSE_DYNLIB_CLASS=no
2262   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2263   DEFAULT_wxUSE_LONGLONG=no
2264   DEFAULT_wxUSE_GEOMETRY=no
2265
2266   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2267   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2268   DEFAULT_wxUSE_POSTSCRIPT=no
2269
2270   DEFAULT_wxUSE_CLIPBOARD=no
2271   DEFAULT_wxUSE_TOOLTIPS=no
2272   DEFAULT_wxUSE_DRAG_AND_DROP=no
2273   DEFAULT_wxUSE_DRAGIMAGE=no
2274   DEFAULT_wxUSE_SPLINES=no
2275   DEFAULT_wxUSE_MOUSEWHEEL=no
2276
2277   DEFAULT_wxUSE_MDI=no
2278   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2279   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2280   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2281
2282   DEFAULT_wxUSE_RESOURCES=no
2283   DEFAULT_wxUSE_CONSTRAINTS=no
2284   DEFAULT_wxUSE_IPC=no
2285   DEFAULT_wxUSE_HELP=no
2286   DEFAULT_wxUSE_MS_HTML_HELP=no
2287   DEFAULT_wxUSE_WXHTML_HELP=no
2288   DEFAULT_wxUSE_TREELAYOUT=no
2289   DEFAULT_wxUSE_METAFILE=no
2290   DEFAULT_wxUSE_MIMETYPE=no
2291   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2292   DEFAULT_wxUSE_PROTOCOL=no
2293   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2294   DEFAULT_wxUSE_PROTOCOL_FTP=no
2295   DEFAULT_wxUSE_PROTOCOL_FILE=no
2296   DEFAULT_wxUSE_URL=no
2297   DEFAULT_wxUSE_VARIANT=no
2298
2299   DEFAULT_wxUSE_ABOUTDLG=no
2300   DEFAULT_wxUSE_COMMONDLGS=no
2301   DEFAULT_wxUSE_CHOICEDLG=no
2302   DEFAULT_wxUSE_COLOURDLG=no
2303   DEFAULT_wxUSE_DIRDLG=no
2304   DEFAULT_wxUSE_FILEDLG=no
2305   DEFAULT_wxUSE_FINDREPLDLG=no
2306   DEFAULT_wxUSE_FONTDLG=no
2307   DEFAULT_wxUSE_MSGDLG=no
2308   DEFAULT_wxUSE_NUMBERDLG=no
2309   DEFAULT_wxUSE_TEXTDLG=no
2310   DEFAULT_wxUSE_SPLASH=no
2311   DEFAULT_wxUSE_STARTUP_TIPS=no
2312   DEFAULT_wxUSE_PROGRESSDLG=no
2313   DEFAULT_wxUSE_WIZARDDLG=no
2314
2315   DEFAULT_wxUSE_MENUS=no
2316   DEFAULT_wxUSE_MINIFRAME=no
2317   DEFAULT_wxUSE_HTML=no
2318   DEFAULT_wxUSE_RICHTEXT=no
2319   DEFAULT_wxUSE_XRC=no
2320   DEFAULT_wxUSE_AUI=no
2321   DEFAULT_wxUSE_WEBKIT=no
2322   DEFAULT_wxUSE_FILESYSTEM=no
2323   DEFAULT_wxUSE_FS_INET=no
2324   DEFAULT_wxUSE_FS_ZIP=no
2325   DEFAULT_wxUSE_FS_ARCHIVE=no
2326   DEFAULT_wxUSE_BUSYINFO=no
2327   DEFAULT_wxUSE_ARCHIVE_STREAMS=no
2328   DEFAULT_wxUSE_ZIPSTREAM=no
2329   DEFAULT_wxUSE_TARSTREAM=no
2330   DEFAULT_wxUSE_VALIDATORS=no
2331
2332   DEFAULT_wxUSE_ACCEL=no
2333   DEFAULT_wxUSE_ANIMATIONCTRL=no
2334   DEFAULT_wxUSE_BUTTON=no
2335   DEFAULT_wxUSE_BMPBUTTON=no
2336   DEFAULT_wxUSE_BITMAPCOMBOBOX=no
2337   DEFAULT_wxUSE_CALCTRL=no
2338   DEFAULT_wxUSE_CARET=no
2339   DEFAULT_wxUSE_CHECKBOX=no
2340   DEFAULT_wxUSE_CHECKLST=no
2341   DEFAULT_wxUSE_CHOICE=no
2342   DEFAULT_wxUSE_CHOICEBOOK=no
2343   DEFAULT_wxUSE_COLLPANE=no
2344   DEFAULT_wxUSE_COLOURPICKERCTRL=no
2345   DEFAULT_wxUSE_COMBOBOX=no
2346   DEFAULT_wxUSE_COMBOCTRL=no
2347   DEFAULT_wxUSE_DATEPICKCTRL=no
2348   DEFAULT_wxUSE_DISPLAY=no
2349   DEFAULT_wxUSE_DETECT_SM=no
2350   DEFAULT_wxUSE_DIRPICKERCTRL=no
2351   DEFAULT_wxUSE_FILEPICKERCTRL=no
2352   DEFAULT_wxUSE_FONTPICKERCTRL=no
2353   DEFAULT_wxUSE_GAUGE=no
2354   DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2355   DEFAULT_wxUSE_GRID=no
2356   DEFAULT_wxUSE_HYPERLINKCTRL=no
2357   DEFAULT_wxUSE_DATAVIEWCTRL=no
2358   DEFAULT_wxUSE_IMAGLIST=no
2359   DEFAULT_wxUSE_LISTBOOK=no
2360   DEFAULT_wxUSE_LISTBOX=no
2361   DEFAULT_wxUSE_LISTCTRL=no
2362   DEFAULT_wxUSE_NOTEBOOK=no
2363   DEFAULT_wxUSE_ODCOMBOBOX=no
2364   DEFAULT_wxUSE_RADIOBOX=no
2365   DEFAULT_wxUSE_RADIOBTN=no
2366   DEFAULT_wxUSE_SASH=no
2367   DEFAULT_wxUSE_SCROLLBAR=no
2368   DEFAULT_wxUSE_SLIDER=no
2369   DEFAULT_wxUSE_SPINBTN=no
2370   DEFAULT_wxUSE_SPINCTRL=no
2371   DEFAULT_wxUSE_SPLITTER=no
2372   DEFAULT_wxUSE_STATBMP=no
2373   DEFAULT_wxUSE_STATBOX=no
2374   DEFAULT_wxUSE_STATLINE=no
2375   DEFAULT_wxUSE_STATTEXT=no
2376   DEFAULT_wxUSE_STATUSBAR=yes
2377   DEFAULT_wxUSE_TAB_DIALOG=no
2378   DEFAULT_wxUSE_TEXTCTRL=no
2379   DEFAULT_wxUSE_TOGGLEBTN=no
2380   DEFAULT_wxUSE_TOOLBAR=no
2381   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2382   DEFAULT_wxUSE_TREEBOOK=no
2383   DEFAULT_wxUSE_TOOLBOOK=no
2384   DEFAULT_wxUSE_TREECTRL=no
2385   DEFAULT_wxUSE_POPUPWIN=no
2386   DEFAULT_wxUSE_TIPWINDOW=no
2387
2388   DEFAULT_wxUSE_UNICODE=no
2389   DEFAULT_wxUSE_UNICODE_MSLU=no
2390   DEFAULT_wxUSE_WCSRTOMBS=no
2391
2392   DEFAULT_wxUSE_PALETTE=no
2393   DEFAULT_wxUSE_IMAGE=no
2394   DEFAULT_wxUSE_GIF=no
2395   DEFAULT_wxUSE_PCX=no
2396   DEFAULT_wxUSE_TGA=no
2397   DEFAULT_wxUSE_PNM=no
2398   DEFAULT_wxUSE_IFF=no
2399   DEFAULT_wxUSE_XPM=no
2400   DEFAULT_wxUSE_ICO_CUR=no
2401   DEFAULT_wxUSE_ACCESSIBILITY=no
2402
2403   DEFAULT_wxUSE_MONOLITHIC=no
2404   DEFAULT_wxUSE_PLUGINS=no
2405   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2406 else
2407   DEFAULT_wxUSE_UNIVERSAL=no
2408   DEFAULT_wxUSE_STL=no
2409
2410   DEFAULT_wxUSE_NANOX=no
2411
2412   DEFAULT_wxUSE_THREADS=yes
2413
2414   DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
2415   DEFAULT_wxUSE_OPTIMISE=yes
2416   DEFAULT_wxUSE_PROFILE=no
2417   DEFAULT_wxUSE_NO_DEPS=no
2418   DEFAULT_wxUSE_VARARG_MACROS=yes
2419   DEFAULT_wxUSE_NO_RTTI=no
2420   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2421   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2422   DEFAULT_wxUSE_RPATH=yes
2423   DEFAULT_wxUSE_PERMISSIVE=no
2424   DEFAULT_wxUSE_DEBUG_FLAG=no
2425   DEFAULT_wxUSE_DEBUG_INFO=no
2426   DEFAULT_wxUSE_DEBUG_GDB=no
2427   DEFAULT_wxUSE_MEM_TRACING=no
2428   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2429   DEFAULT_wxUSE_DMALLOC=no
2430   DEFAULT_wxUSE_APPLE_IEEE=yes
2431
2432   DEFAULT_wxUSE_EXCEPTIONS=yes
2433   DEFAULT_wxUSE_LOG=yes
2434   DEFAULT_wxUSE_LOGWINDOW=yes
2435   DEFAULT_wxUSE_LOGGUI=yes
2436   DEFAULT_wxUSE_LOGDIALOG=yes
2437
2438   DEFAULT_wxUSE_GUI=yes
2439
2440   DEFAULT_wxUSE_REGEX=yes
2441   DEFAULT_wxUSE_XML=yes
2442   DEFAULT_wxUSE_EXPAT=yes
2443   DEFAULT_wxUSE_ZLIB=yes
2444   DEFAULT_wxUSE_LIBPNG=yes
2445   DEFAULT_wxUSE_LIBJPEG=yes
2446   DEFAULT_wxUSE_LIBTIFF=yes
2447   DEFAULT_wxUSE_LIBXPM=yes
2448   DEFAULT_wxUSE_LIBMSPACK=yes
2449   DEFAULT_wxUSE_LIBSDL=no
2450   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2451   DEFAULT_wxUSE_LIBGNOMEVFS=no
2452   DEFAULT_wxUSE_LIBHILDON=no
2453   DEFAULT_wxUSE_ODBC=no
2454   DEFAULT_wxUSE_OPENGL=no
2455
2456   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2457   DEFAULT_wxUSE_STACKWALKER=yes
2458   DEFAULT_wxUSE_DEBUGREPORT=yes
2459   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2460   DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2461   DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2462   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2463   DEFAULT_wxUSE_DATETIME=yes
2464   DEFAULT_wxUSE_TIMER=yes
2465   DEFAULT_wxUSE_STOPWATCH=yes
2466   DEFAULT_wxUSE_FILE=yes
2467   DEFAULT_wxUSE_FFILE=yes
2468   DEFAULT_wxUSE_STDPATHS=yes
2469   DEFAULT_wxUSE_TEXTBUFFER=yes
2470   DEFAULT_wxUSE_TEXTFILE=yes
2471   DEFAULT_wxUSE_SOUND=yes
2472   DEFAULT_wxUSE_MEDIACTRL=no
2473   DEFAULT_wxUSE_GSTREAMER8=no
2474   DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
2475   DEFAULT_wxUSE_INTL=yes
2476   DEFAULT_wxUSE_CONFIG=yes
2477   DEFAULT_wxUSE_FONTMAP=yes
2478   DEFAULT_wxUSE_STREAMS=yes
2479   DEFAULT_wxUSE_SOCKETS=yes
2480   DEFAULT_wxUSE_OLE=yes
2481   DEFAULT_wxUSE_DATAOBJ=yes
2482   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2483   DEFAULT_wxUSE_JOYSTICK=yes
2484   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2485   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2486   DEFAULT_wxUSE_LONGLONG=yes
2487   DEFAULT_wxUSE_GEOMETRY=yes
2488
2489   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2490   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2491   DEFAULT_wxUSE_POSTSCRIPT=yes
2492
2493   DEFAULT_wxUSE_CLIPBOARD=yes
2494   DEFAULT_wxUSE_TOOLTIPS=yes
2495   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2496   DEFAULT_wxUSE_DRAGIMAGE=yes
2497   DEFAULT_wxUSE_SPLINES=yes
2498   DEFAULT_wxUSE_MOUSEWHEEL=yes
2499
2500   DEFAULT_wxUSE_MDI=yes
2501   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2502   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2503   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2504
2505   DEFAULT_wxUSE_RESOURCES=no
2506   DEFAULT_wxUSE_CONSTRAINTS=yes
2507   DEFAULT_wxUSE_IPC=yes
2508   DEFAULT_wxUSE_HELP=yes
2509   DEFAULT_wxUSE_MS_HTML_HELP=yes
2510   DEFAULT_wxUSE_WXHTML_HELP=yes
2511   DEFAULT_wxUSE_TREELAYOUT=yes
2512   DEFAULT_wxUSE_METAFILE=yes
2513   DEFAULT_wxUSE_MIMETYPE=yes
2514   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2515   DEFAULT_wxUSE_PROTOCOL=yes
2516   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2517   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2518   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2519   DEFAULT_wxUSE_URL=yes
2520   DEFAULT_wxUSE_VARIANT=yes
2521
2522   DEFAULT_wxUSE_ABOUTDLG=yes
2523   DEFAULT_wxUSE_COMMONDLGS=yes
2524   DEFAULT_wxUSE_CHOICEDLG=yes
2525   DEFAULT_wxUSE_COLOURDLG=yes
2526   DEFAULT_wxUSE_DIRDLG=yes
2527   DEFAULT_wxUSE_FILEDLG=yes
2528   DEFAULT_wxUSE_FINDREPLDLG=yes
2529   DEFAULT_wxUSE_FONTDLG=yes
2530   DEFAULT_wxUSE_MSGDLG=yes
2531   DEFAULT_wxUSE_NUMBERDLG=yes
2532   DEFAULT_wxUSE_TEXTDLG=yes
2533   DEFAULT_wxUSE_SPLASH=yes
2534   DEFAULT_wxUSE_STARTUP_TIPS=yes
2535   DEFAULT_wxUSE_PROGRESSDLG=yes
2536   DEFAULT_wxUSE_WIZARDDLG=yes
2537
2538   DEFAULT_wxUSE_MENUS=yes
2539   DEFAULT_wxUSE_MINIFRAME=yes
2540   DEFAULT_wxUSE_HTML=yes
2541   DEFAULT_wxUSE_RICHTEXT=yes
2542   DEFAULT_wxUSE_XRC=yes
2543   DEFAULT_wxUSE_AUI=yes
2544   DEFAULT_wxUSE_WEBKIT=yes
2545   DEFAULT_wxUSE_FILESYSTEM=yes
2546   DEFAULT_wxUSE_FS_INET=yes
2547   DEFAULT_wxUSE_FS_ZIP=yes
2548   DEFAULT_wxUSE_FS_ARCHIVE=yes
2549   DEFAULT_wxUSE_BUSYINFO=yes
2550   DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
2551   DEFAULT_wxUSE_ZIPSTREAM=yes
2552   DEFAULT_wxUSE_TARSTREAM=yes
2553   DEFAULT_wxUSE_VALIDATORS=yes
2554
2555   DEFAULT_wxUSE_ACCEL=yes
2556   DEFAULT_wxUSE_ANIMATIONCTRL=yes
2557   DEFAULT_wxUSE_BUTTON=yes
2558   DEFAULT_wxUSE_BMPBUTTON=yes
2559   DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
2560   DEFAULT_wxUSE_CALCTRL=yes
2561   DEFAULT_wxUSE_CARET=yes
2562   DEFAULT_wxUSE_CHECKBOX=yes
2563   DEFAULT_wxUSE_CHECKLST=yes
2564   DEFAULT_wxUSE_CHOICE=yes
2565   DEFAULT_wxUSE_CHOICEBOOK=yes
2566   DEFAULT_wxUSE_COLLPANE=yes
2567   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
2568   DEFAULT_wxUSE_COMBOBOX=yes
2569   DEFAULT_wxUSE_COMBOCTRL=yes
2570   DEFAULT_wxUSE_DATEPICKCTRL=yes
2571   DEFAULT_wxUSE_DISPLAY=yes
2572   DEFAULT_wxUSE_DETECT_SM=yes
2573   DEFAULT_wxUSE_DIRPICKERCTRL=yes
2574   DEFAULT_wxUSE_FILEPICKERCTRL=yes
2575   DEFAULT_wxUSE_FONTPICKERCTRL=yes
2576   DEFAULT_wxUSE_GAUGE=yes
2577   DEFAULT_wxUSE_GRID=yes
2578   DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2579   DEFAULT_wxUSE_HYPERLINKCTRL=yes
2580   DEFAULT_wxUSE_DATAVIEWCTRL=no
2581   DEFAULT_wxUSE_IMAGLIST=yes
2582   DEFAULT_wxUSE_LISTBOOK=yes
2583   DEFAULT_wxUSE_LISTBOX=yes
2584   DEFAULT_wxUSE_LISTCTRL=yes
2585   DEFAULT_wxUSE_NOTEBOOK=yes
2586   DEFAULT_wxUSE_ODCOMBOBOX=yes
2587   DEFAULT_wxUSE_RADIOBOX=yes
2588   DEFAULT_wxUSE_RADIOBTN=yes
2589   DEFAULT_wxUSE_SASH=yes
2590   DEFAULT_wxUSE_SCROLLBAR=yes
2591   DEFAULT_wxUSE_SLIDER=yes
2592   DEFAULT_wxUSE_SPINBTN=yes
2593   DEFAULT_wxUSE_SPINCTRL=yes
2594   DEFAULT_wxUSE_SPLITTER=yes
2595   DEFAULT_wxUSE_STATBMP=yes
2596   DEFAULT_wxUSE_STATBOX=yes
2597   DEFAULT_wxUSE_STATLINE=yes
2598   DEFAULT_wxUSE_STATTEXT=yes
2599   DEFAULT_wxUSE_STATUSBAR=yes
2600   DEFAULT_wxUSE_TAB_DIALOG=no
2601   DEFAULT_wxUSE_TEXTCTRL=yes
2602   DEFAULT_wxUSE_TOGGLEBTN=yes
2603   DEFAULT_wxUSE_TOOLBAR=yes
2604   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2605   DEFAULT_wxUSE_TREEBOOK=yes
2606   DEFAULT_wxUSE_TOOLBOOK=yes
2607   DEFAULT_wxUSE_TREECTRL=yes
2608   DEFAULT_wxUSE_POPUPWIN=yes
2609   DEFAULT_wxUSE_TIPWINDOW=yes
2610
2611   DEFAULT_wxUSE_UNICODE=no
2612   DEFAULT_wxUSE_UNICODE_MSLU=yes
2613   DEFAULT_wxUSE_WCSRTOMBS=no
2614
2615   DEFAULT_wxUSE_PALETTE=yes
2616   DEFAULT_wxUSE_IMAGE=yes
2617   DEFAULT_wxUSE_GIF=yes
2618   DEFAULT_wxUSE_PCX=yes
2619   DEFAULT_wxUSE_TGA=yes
2620   DEFAULT_wxUSE_IFF=no    DEFAULT_wxUSE_PNM=yes
2621   DEFAULT_wxUSE_XPM=yes
2622   DEFAULT_wxUSE_ICO_CUR=yes
2623   DEFAULT_wxUSE_ACCESSIBILITY=no
2624
2625   DEFAULT_wxUSE_MONOLITHIC=no
2626   DEFAULT_wxUSE_PLUGINS=no
2627   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2628
2629     DEFAULT_wxUSE_GTK2=yes
2630 fi
2631
2632
2633
2634
2635 for toolkit in `echo $ALL_TOOLKITS`; do
2636   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2637   if test "x$LINE" != "x" ; then
2638     has_toolkit_in_cache=1
2639     eval "DEFAULT_$LINE"
2640     eval "CACHE_$toolkit=1"
2641
2642     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2643     if test "x$LINE" != "x" ; then
2644         eval "DEFAULT_$LINE"
2645     fi
2646   fi
2647 done
2648
2649
2650
2651           enablestring=
2652           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2653 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2654           no_cache=0
2655           # Check whether --enable-gui or --disable-gui was given.
2656 if test "${enable_gui+set}" = set; then
2657   enableval="$enable_gui"
2658
2659                           if test "$enableval" = yes; then
2660                             ac_cv_use_gui='wxUSE_GUI=yes'
2661                           else
2662                             ac_cv_use_gui='wxUSE_GUI=no'
2663                           fi
2664
2665 else
2666
2667                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2668                           if test "x$LINE" != x ; then
2669                             eval "DEFAULT_$LINE"
2670                           else
2671                             no_cache=1
2672                           fi
2673
2674                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2675
2676 fi;
2677
2678           eval "$ac_cv_use_gui"
2679           if test "$no_cache" != 1; then
2680             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2681           fi
2682
2683           if test "$wxUSE_GUI" = yes; then
2684             echo "$as_me:$LINENO: result: yes" >&5
2685 echo "${ECHO_T}yes" >&6
2686           else
2687             echo "$as_me:$LINENO: result: no" >&5
2688 echo "${ECHO_T}no" >&6
2689           fi
2690
2691
2692           enablestring=
2693           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2694 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2695           no_cache=0
2696           # Check whether --enable-monolithic or --disable-monolithic was given.
2697 if test "${enable_monolithic+set}" = set; then
2698   enableval="$enable_monolithic"
2699
2700                           if test "$enableval" = yes; then
2701                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2702                           else
2703                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2704                           fi
2705
2706 else
2707
2708                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2709                           if test "x$LINE" != x ; then
2710                             eval "DEFAULT_$LINE"
2711                           else
2712                             no_cache=1
2713                           fi
2714
2715                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2716
2717 fi;
2718
2719           eval "$ac_cv_use_monolithic"
2720           if test "$no_cache" != 1; then
2721             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2722           fi
2723
2724           if test "$wxUSE_MONOLITHIC" = yes; then
2725             echo "$as_me:$LINENO: result: yes" >&5
2726 echo "${ECHO_T}yes" >&6
2727           else
2728             echo "$as_me:$LINENO: result: no" >&5
2729 echo "${ECHO_T}no" >&6
2730           fi
2731
2732
2733           enablestring=
2734           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2735 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2736           no_cache=0
2737           # Check whether --enable-plugins or --disable-plugins was given.
2738 if test "${enable_plugins+set}" = set; then
2739   enableval="$enable_plugins"
2740
2741                           if test "$enableval" = yes; then
2742                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2743                           else
2744                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
2745                           fi
2746
2747 else
2748
2749                           LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2750                           if test "x$LINE" != x ; then
2751                             eval "DEFAULT_$LINE"
2752                           else
2753                             no_cache=1
2754                           fi
2755
2756                           ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2757
2758 fi;
2759
2760           eval "$ac_cv_use_plugins"
2761           if test "$no_cache" != 1; then
2762             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2763           fi
2764
2765           if test "$wxUSE_PLUGINS" = yes; then
2766             echo "$as_me:$LINENO: result: yes" >&5
2767 echo "${ECHO_T}yes" >&6
2768           else
2769             echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6
2771           fi
2772
2773
2774           withstring=without
2775           echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2776 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2777           no_cache=0
2778
2779 # Check whether --with-subdirs or --without-subdirs was given.
2780 if test "${with_subdirs+set}" = set; then
2781   withval="$with_subdirs"
2782
2783                         if test "$withval" = yes; then
2784                           ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2785                         else
2786                           ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2787                         fi
2788
2789 else
2790
2791                         LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2792                         if test "x$LINE" != x ; then
2793                           eval "DEFAULT_$LINE"
2794                         else
2795                           no_cache=1
2796                         fi
2797
2798                         ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2799
2800 fi;
2801
2802           eval "$ac_cv_use_subdirs"
2803           if test "$no_cache" != 1; then
2804             echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2805           fi
2806
2807           if test "$wxWITH_SUBDIRS" = yes; then
2808             echo "$as_me:$LINENO: result: yes" >&5
2809 echo "${ECHO_T}yes" >&6
2810           else
2811             echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6
2813           fi
2814
2815
2816 if test "$wxUSE_GUI" = "yes"; then
2817
2818
2819           enablestring=
2820           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2821 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2822           no_cache=0
2823           # Check whether --enable-universal or --disable-universal was given.
2824 if test "${enable_universal+set}" = set; then
2825   enableval="$enable_universal"
2826
2827                           if test "$enableval" = yes; then
2828                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2829                           else
2830                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2831                           fi
2832
2833 else
2834
2835                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2836                           if test "x$LINE" != x ; then
2837                             eval "DEFAULT_$LINE"
2838                           else
2839                             no_cache=1
2840                           fi
2841
2842                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2843
2844 fi;
2845
2846           eval "$ac_cv_use_universal"
2847           if test "$no_cache" != 1; then
2848             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2849           fi
2850
2851           if test "$wxUSE_UNIVERSAL" = yes; then
2852             echo "$as_me:$LINENO: result: yes" >&5
2853 echo "${ECHO_T}yes" >&6
2854           else
2855             echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6
2857           fi
2858
2859
2860 # Check whether --with-gtk or --without-gtk was given.
2861 if test "${with_gtk+set}" = set; then
2862   withval="$with_gtk"
2863   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2864 fi;
2865
2866 # Check whether --with-motif or --without-motif was given.
2867 if test "${with_motif+set}" = set; then
2868   withval="$with_motif"
2869   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2870 fi;
2871
2872 # Check whether --with-mac or --without-mac was given.
2873 if test "${with_mac+set}" = set; then
2874   withval="$with_mac"
2875   wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
2876 fi;
2877
2878 # Check whether --with-cocoa or --without-cocoa was given.
2879 if test "${with_cocoa+set}" = set; then
2880   withval="$with_cocoa"
2881   wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
2882 fi;
2883
2884 # Check whether --with-wine or --without-wine was given.
2885 if test "${with_wine+set}" = set; then
2886   withval="$with_wine"
2887   wxUSE_WINE="$withval" CACHE_WINE=1
2888 fi;
2889
2890 # Check whether --with-msw or --without-msw was given.
2891 if test "${with_msw+set}" = set; then
2892   withval="$with_msw"
2893   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2894 fi;
2895
2896 # Check whether --with-pm or --without-pm was given.
2897 if test "${with_pm+set}" = set; then
2898   withval="$with_pm"
2899   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2900 fi;
2901
2902 # Check whether --with-mgl or --without-mgl was given.
2903 if test "${with_mgl+set}" = set; then
2904   withval="$with_mgl"
2905   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2906 fi;
2907
2908 # Check whether --with-directfb or --without-directfb was given.
2909 if test "${with_directfb+set}" = set; then
2910   withval="$with_directfb"
2911   wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2912 fi;
2913
2914 # Check whether --with-microwin or --without-microwin was given.
2915 if test "${with_microwin+set}" = set; then
2916   withval="$with_microwin"
2917   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2918 fi;
2919
2920 # Check whether --with-x11 or --without-x11 was given.
2921 if test "${with_x11+set}" = set; then
2922   withval="$with_x11"
2923   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2924 fi;
2925
2926           enablestring=
2927           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2928 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2929           no_cache=0
2930           # Check whether --enable-nanox or --disable-nanox was given.
2931 if test "${enable_nanox+set}" = set; then
2932   enableval="$enable_nanox"
2933
2934                           if test "$enableval" = yes; then
2935                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2936                           else
2937                             ac_cv_use_nanox='wxUSE_NANOX=no'
2938                           fi
2939
2940 else
2941
2942                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2943                           if test "x$LINE" != x ; then
2944                             eval "DEFAULT_$LINE"
2945                           else
2946                             no_cache=1
2947                           fi
2948
2949                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2950
2951 fi;
2952
2953           eval "$ac_cv_use_nanox"
2954           if test "$no_cache" != 1; then
2955             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2956           fi
2957
2958           if test "$wxUSE_NANOX" = yes; then
2959             echo "$as_me:$LINENO: result: yes" >&5
2960 echo "${ECHO_T}yes" >&6
2961           else
2962             echo "$as_me:$LINENO: result: no" >&5
2963 echo "${ECHO_T}no" >&6
2964           fi
2965
2966
2967 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2968 if test "${enable_gtk2+set}" = set; then
2969   enableval="$enable_gtk2"
2970   wxUSE_GTK2="$enableval"
2971 fi;
2972
2973           enablestring=
2974           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2975 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2976           no_cache=0
2977           # Check whether --enable-gpe or --disable-gpe was given.
2978 if test "${enable_gpe+set}" = set; then
2979   enableval="$enable_gpe"
2980
2981                           if test "$enableval" = yes; then
2982                             ac_cv_use_gpe='wxUSE_GPE=yes'
2983                           else
2984                             ac_cv_use_gpe='wxUSE_GPE=no'
2985                           fi
2986
2987 else
2988
2989                           LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2990                           if test "x$LINE" != x ; then
2991                             eval "DEFAULT_$LINE"
2992                           else
2993                             no_cache=1
2994                           fi
2995
2996                           ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2997
2998 fi;
2999
3000           eval "$ac_cv_use_gpe"
3001           if test "$no_cache" != 1; then
3002             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
3003           fi
3004
3005           if test "$wxUSE_GPE" = yes; then
3006             echo "$as_me:$LINENO: result: yes" >&5
3007 echo "${ECHO_T}yes" >&6
3008           else
3009             echo "$as_me:$LINENO: result: no" >&5
3010 echo "${ECHO_T}no" >&6
3011           fi
3012
3013
3014
3015           echo "$as_me:$LINENO: checking for --with-libpng" >&5
3016 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
3017           no_cache=0
3018
3019 # Check whether --with-libpng or --without-libpng was given.
3020 if test "${with_libpng+set}" = set; then
3021   withval="$with_libpng"
3022
3023                         if test "$withval" = yes; then
3024                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
3025                         elif test "$withval" = no; then
3026                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
3027                         elif test "$withval" = sys; then
3028                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
3029                         elif test "$withval" = builtin; then
3030                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
3031                         else
3032                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3033 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3034    { (exit 1); exit 1; }; }
3035                         fi
3036
3037 else
3038
3039                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3040                         if test "x$LINE" != x ; then
3041                           eval "DEFAULT_$LINE"
3042                         else
3043                           no_cache=1
3044                         fi
3045
3046                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3047
3048 fi;
3049
3050           eval "$ac_cv_use_libpng"
3051           if test "$no_cache" != 1; then
3052             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3053           fi
3054
3055           if test "$wxUSE_LIBPNG" = yes; then
3056             echo "$as_me:$LINENO: result: yes" >&5
3057 echo "${ECHO_T}yes" >&6
3058           elif test "$wxUSE_LIBPNG" = no; then
3059             echo "$as_me:$LINENO: result: no" >&5
3060 echo "${ECHO_T}no" >&6
3061           elif test "$wxUSE_LIBPNG" = sys; then
3062             echo "$as_me:$LINENO: result: system version" >&5
3063 echo "${ECHO_T}system version" >&6
3064           elif test "$wxUSE_LIBPNG" = builtin; then
3065             echo "$as_me:$LINENO: result: builtin version" >&5
3066 echo "${ECHO_T}builtin version" >&6
3067           else
3068             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3069 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3070    { (exit 1); exit 1; }; }
3071           fi
3072
3073
3074           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3075 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3076           no_cache=0
3077
3078 # Check whether --with-libjpeg or --without-libjpeg was given.
3079 if test "${with_libjpeg+set}" = set; then
3080   withval="$with_libjpeg"
3081
3082                         if test "$withval" = yes; then
3083                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3084                         elif test "$withval" = no; then
3085                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3086                         elif test "$withval" = sys; then
3087                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3088                         elif test "$withval" = builtin; then
3089                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3090                         else
3091                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3092 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3093    { (exit 1); exit 1; }; }
3094                         fi
3095
3096 else
3097
3098                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3099                         if test "x$LINE" != x ; then
3100                           eval "DEFAULT_$LINE"
3101                         else
3102                           no_cache=1
3103                         fi
3104
3105                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3106
3107 fi;
3108
3109           eval "$ac_cv_use_libjpeg"
3110           if test "$no_cache" != 1; then
3111             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3112           fi
3113
3114           if test "$wxUSE_LIBJPEG" = yes; then
3115             echo "$as_me:$LINENO: result: yes" >&5
3116 echo "${ECHO_T}yes" >&6
3117           elif test "$wxUSE_LIBJPEG" = no; then
3118             echo "$as_me:$LINENO: result: no" >&5
3119 echo "${ECHO_T}no" >&6
3120           elif test "$wxUSE_LIBJPEG" = sys; then
3121             echo "$as_me:$LINENO: result: system version" >&5
3122 echo "${ECHO_T}system version" >&6
3123           elif test "$wxUSE_LIBJPEG" = builtin; then
3124             echo "$as_me:$LINENO: result: builtin version" >&5
3125 echo "${ECHO_T}builtin version" >&6
3126           else
3127             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3128 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3129    { (exit 1); exit 1; }; }
3130           fi
3131
3132
3133           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3134 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3135           no_cache=0
3136
3137 # Check whether --with-libtiff or --without-libtiff was given.
3138 if test "${with_libtiff+set}" = set; then
3139   withval="$with_libtiff"
3140
3141                         if test "$withval" = yes; then
3142                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3143                         elif test "$withval" = no; then
3144                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3145                         elif test "$withval" = sys; then
3146                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3147                         elif test "$withval" = builtin; then
3148                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3149                         else
3150                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3151 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3152    { (exit 1); exit 1; }; }
3153                         fi
3154
3155 else
3156
3157                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3158                         if test "x$LINE" != x ; then
3159                           eval "DEFAULT_$LINE"
3160                         else
3161                           no_cache=1
3162                         fi
3163
3164                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3165
3166 fi;
3167
3168           eval "$ac_cv_use_libtiff"
3169           if test "$no_cache" != 1; then
3170             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3171           fi
3172
3173           if test "$wxUSE_LIBTIFF" = yes; then
3174             echo "$as_me:$LINENO: result: yes" >&5
3175 echo "${ECHO_T}yes" >&6
3176           elif test "$wxUSE_LIBTIFF" = no; then
3177             echo "$as_me:$LINENO: result: no" >&5
3178 echo "${ECHO_T}no" >&6
3179           elif test "$wxUSE_LIBTIFF" = sys; then
3180             echo "$as_me:$LINENO: result: system version" >&5
3181 echo "${ECHO_T}system version" >&6
3182           elif test "$wxUSE_LIBTIFF" = builtin; then
3183             echo "$as_me:$LINENO: result: builtin version" >&5
3184 echo "${ECHO_T}builtin version" >&6
3185           else
3186             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3187 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3188    { (exit 1); exit 1; }; }
3189           fi
3190
3191
3192           echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3193 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3194           no_cache=0
3195
3196 # Check whether --with-libxpm or --without-libxpm was given.
3197 if test "${with_libxpm+set}" = set; then
3198   withval="$with_libxpm"
3199
3200                         if test "$withval" = yes; then
3201                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3202                         elif test "$withval" = no; then
3203                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3204                         elif test "$withval" = sys; then
3205                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3206                         elif test "$withval" = builtin; then
3207                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3208                         else
3209                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3210 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3211    { (exit 1); exit 1; }; }
3212                         fi
3213
3214 else
3215
3216                         LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3217                         if test "x$LINE" != x ; then
3218                           eval "DEFAULT_$LINE"
3219                         else
3220                           no_cache=1
3221                         fi
3222
3223                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3224
3225 fi;
3226
3227           eval "$ac_cv_use_libxpm"
3228           if test "$no_cache" != 1; then
3229             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3230           fi
3231
3232           if test "$wxUSE_LIBXPM" = yes; then
3233             echo "$as_me:$LINENO: result: yes" >&5
3234 echo "${ECHO_T}yes" >&6
3235           elif test "$wxUSE_LIBXPM" = no; then
3236             echo "$as_me:$LINENO: result: no" >&5
3237 echo "${ECHO_T}no" >&6
3238           elif test "$wxUSE_LIBXPM" = sys; then
3239             echo "$as_me:$LINENO: result: system version" >&5
3240 echo "${ECHO_T}system version" >&6
3241           elif test "$wxUSE_LIBXPM" = builtin; then
3242             echo "$as_me:$LINENO: result: builtin version" >&5
3243 echo "${ECHO_T}builtin version" >&6
3244           else
3245             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3246 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3247    { (exit 1); exit 1; }; }
3248           fi
3249
3250
3251           withstring=
3252           echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3253 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
3254           no_cache=0
3255
3256 # Check whether --with-libmspack or --without-libmspack was given.
3257 if test "${with_libmspack+set}" = set; then
3258   withval="$with_libmspack"
3259
3260                         if test "$withval" = yes; then
3261                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3262                         else
3263                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3264                         fi
3265
3266 else
3267
3268                         LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3269                         if test "x$LINE" != x ; then
3270                           eval "DEFAULT_$LINE"
3271                         else
3272                           no_cache=1
3273                         fi
3274
3275                         ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3276
3277 fi;
3278
3279           eval "$ac_cv_use_libmspack"
3280           if test "$no_cache" != 1; then
3281             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3282           fi
3283
3284           if test "$wxUSE_LIBMSPACK" = yes; then
3285             echo "$as_me:$LINENO: result: yes" >&5
3286 echo "${ECHO_T}yes" >&6
3287           else
3288             echo "$as_me:$LINENO: result: no" >&5
3289 echo "${ECHO_T}no" >&6
3290           fi
3291
3292
3293           withstring=
3294           echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3295 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
3296           no_cache=0
3297
3298 # Check whether --with-sdl or --without-sdl was given.
3299 if test "${with_sdl+set}" = set; then
3300   withval="$with_sdl"
3301
3302                         if test "$withval" = yes; then
3303                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3304                         else
3305                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
3306                         fi
3307
3308 else
3309
3310                         LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3311                         if test "x$LINE" != x ; then
3312                           eval "DEFAULT_$LINE"
3313                         else
3314                           no_cache=1
3315                         fi
3316
3317                         ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3318
3319 fi;
3320
3321           eval "$ac_cv_use_sdl"
3322           if test "$no_cache" != 1; then
3323             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3324           fi
3325
3326           if test "$wxUSE_LIBSDL" = yes; then
3327             echo "$as_me:$LINENO: result: yes" >&5
3328 echo "${ECHO_T}yes" >&6
3329           else
3330             echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6
3332           fi
3333
3334
3335           withstring=
3336           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3337 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
3338           no_cache=0
3339
3340 # Check whether --with-gnomeprint or --without-gnomeprint was given.
3341 if test "${with_gnomeprint+set}" = set; then
3342   withval="$with_gnomeprint"
3343
3344                         if test "$withval" = yes; then
3345                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3346                         else
3347                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3348                         fi
3349
3350 else
3351
3352                         LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3353                         if test "x$LINE" != x ; then
3354                           eval "DEFAULT_$LINE"
3355                         else
3356                           no_cache=1
3357                         fi
3358
3359                         ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3360
3361 fi;
3362
3363           eval "$ac_cv_use_gnomeprint"
3364           if test "$no_cache" != 1; then
3365             echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3366           fi
3367
3368           if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3369             echo "$as_me:$LINENO: result: yes" >&5
3370 echo "${ECHO_T}yes" >&6
3371           else
3372             echo "$as_me:$LINENO: result: no" >&5
3373 echo "${ECHO_T}no" >&6
3374           fi
3375
3376
3377           withstring=
3378           echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3379 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3380           no_cache=0
3381
3382 # Check whether --with-gnomevfs or --without-gnomevfs was given.
3383 if test "${with_gnomevfs+set}" = set; then
3384   withval="$with_gnomevfs"
3385
3386                         if test "$withval" = yes; then
3387                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3388                         else
3389                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3390                         fi
3391
3392 else
3393
3394                         LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3395                         if test "x$LINE" != x ; then
3396                           eval "DEFAULT_$LINE"
3397                         else
3398                           no_cache=1
3399                         fi
3400
3401                         ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3402
3403 fi;
3404
3405           eval "$ac_cv_use_gnomevfs"
3406           if test "$no_cache" != 1; then
3407             echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3408           fi
3409
3410           if test "$wxUSE_LIBGNOMEVFS" = yes; then
3411             echo "$as_me:$LINENO: result: yes" >&5
3412 echo "${ECHO_T}yes" >&6
3413           else
3414             echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3416           fi
3417
3418
3419           withstring=
3420           echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3421 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3422           no_cache=0
3423
3424 # Check whether --with-hildon or --without-hildon was given.
3425 if test "${with_hildon+set}" = set; then
3426   withval="$with_hildon"
3427
3428                         if test "$withval" = yes; then
3429                           ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3430                         else
3431                           ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3432                         fi
3433
3434 else
3435
3436                         LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3437                         if test "x$LINE" != x ; then
3438                           eval "DEFAULT_$LINE"
3439                         else
3440                           no_cache=1
3441                         fi
3442
3443                         ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3444
3445 fi;
3446
3447           eval "$ac_cv_use_hildon"
3448           if test "$no_cache" != 1; then
3449             echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3450           fi
3451
3452           if test "$wxUSE_LIBHILDON" = yes; then
3453             echo "$as_me:$LINENO: result: yes" >&5
3454 echo "${ECHO_T}yes" >&6
3455           else
3456             echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6
3458           fi
3459
3460
3461           withstring=
3462           echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3463 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
3464           no_cache=0
3465
3466 # Check whether --with-opengl or --without-opengl was given.
3467 if test "${with_opengl+set}" = set; then
3468   withval="$with_opengl"
3469
3470                         if test "$withval" = yes; then
3471                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
3472                         else
3473                           ac_cv_use_opengl='wxUSE_OPENGL=no'
3474                         fi
3475
3476 else
3477
3478                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3479                         if test "x$LINE" != x ; then
3480                           eval "DEFAULT_$LINE"
3481                         else
3482                           no_cache=1
3483                         fi
3484
3485                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3486
3487 fi;
3488
3489           eval "$ac_cv_use_opengl"
3490           if test "$no_cache" != 1; then
3491             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3492           fi
3493
3494           if test "$wxUSE_OPENGL" = yes; then
3495             echo "$as_me:$LINENO: result: yes" >&5
3496 echo "${ECHO_T}yes" >&6
3497           else
3498             echo "$as_me:$LINENO: result: no" >&5
3499 echo "${ECHO_T}no" >&6
3500           fi
3501
3502
3503 if test "$wxUSE_UNIVERSAL" = "yes"; then
3504
3505 # Check whether --with-themes or --without-themes was given.
3506 if test "${with_themes+set}" = set; then
3507   withval="$with_themes"
3508   wxUNIV_THEMES="$withval"
3509 fi;
3510 fi
3511
3512 fi
3513
3514
3515           withstring=
3516           echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3517 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
3518           no_cache=0
3519
3520 # Check whether --with-dmalloc or --without-dmalloc was given.
3521 if test "${with_dmalloc+set}" = set; then
3522   withval="$with_dmalloc"
3523
3524                         if test "$withval" = yes; then
3525                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3526                         else
3527                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3528                         fi
3529
3530 else
3531
3532                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3533                         if test "x$LINE" != x ; then
3534                           eval "DEFAULT_$LINE"
3535                         else
3536                           no_cache=1
3537                         fi
3538
3539                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3540
3541 fi;
3542
3543           eval "$ac_cv_use_dmalloc"
3544           if test "$no_cache" != 1; then
3545             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3546           fi
3547
3548           if test "$wxUSE_DMALLOC" = yes; then
3549             echo "$as_me:$LINENO: result: yes" >&5
3550 echo "${ECHO_T}yes" >&6
3551           else
3552             echo "$as_me:$LINENO: result: no" >&5
3553 echo "${ECHO_T}no" >&6
3554           fi
3555
3556
3557           echo "$as_me:$LINENO: checking for --with-regex" >&5
3558 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3559           no_cache=0
3560
3561 # Check whether --with-regex or --without-regex was given.
3562 if test "${with_regex+set}" = set; then
3563   withval="$with_regex"
3564
3565                         if test "$withval" = yes; then
3566                           ac_cv_use_regex='wxUSE_REGEX=yes'
3567                         elif test "$withval" = no; then
3568                           ac_cv_use_regex='wxUSE_REGEX=no'
3569                         elif test "$withval" = sys; then
3570                           ac_cv_use_regex='wxUSE_REGEX=sys'
3571                         elif test "$withval" = builtin; then
3572                           ac_cv_use_regex='wxUSE_REGEX=builtin'
3573                         else
3574                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3575 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3576    { (exit 1); exit 1; }; }
3577                         fi
3578
3579 else
3580
3581                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3582                         if test "x$LINE" != x ; then
3583                           eval "DEFAULT_$LINE"
3584                         else
3585                           no_cache=1
3586                         fi
3587
3588                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3589
3590 fi;
3591
3592           eval "$ac_cv_use_regex"
3593           if test "$no_cache" != 1; then
3594             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3595           fi
3596
3597           if test "$wxUSE_REGEX" = yes; then
3598             echo "$as_me:$LINENO: result: yes" >&5
3599 echo "${ECHO_T}yes" >&6
3600           elif test "$wxUSE_REGEX" = no; then
3601             echo "$as_me:$LINENO: result: no" >&5
3602 echo "${ECHO_T}no" >&6
3603           elif test "$wxUSE_REGEX" = sys; then
3604             echo "$as_me:$LINENO: result: system version" >&5
3605 echo "${ECHO_T}system version" >&6
3606           elif test "$wxUSE_REGEX" = builtin; then
3607             echo "$as_me:$LINENO: result: builtin version" >&5
3608 echo "${ECHO_T}builtin version" >&6
3609           else
3610             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3611 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3612    { (exit 1); exit 1; }; }
3613           fi
3614
3615
3616           echo "$as_me:$LINENO: checking for --with-zlib" >&5
3617 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3618           no_cache=0
3619
3620 # Check whether --with-zlib or --without-zlib was given.
3621 if test "${with_zlib+set}" = set; then
3622   withval="$with_zlib"
3623
3624                         if test "$withval" = yes; then
3625                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
3626                         elif test "$withval" = no; then
3627                           ac_cv_use_zlib='wxUSE_ZLIB=no'
3628                         elif test "$withval" = sys; then
3629                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
3630                         elif test "$withval" = builtin; then
3631                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3632                         else
3633                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3634 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3635    { (exit 1); exit 1; }; }
3636                         fi
3637
3638 else
3639
3640                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3641                         if test "x$LINE" != x ; then
3642                           eval "DEFAULT_$LINE"
3643                         else
3644                           no_cache=1
3645                         fi
3646
3647                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3648
3649 fi;
3650
3651           eval "$ac_cv_use_zlib"
3652           if test "$no_cache" != 1; then
3653             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3654           fi
3655
3656           if test "$wxUSE_ZLIB" = yes; then
3657             echo "$as_me:$LINENO: result: yes" >&5
3658 echo "${ECHO_T}yes" >&6
3659           elif test "$wxUSE_ZLIB" = no; then
3660             echo "$as_me:$LINENO: result: no" >&5
3661 echo "${ECHO_T}no" >&6
3662           elif test "$wxUSE_ZLIB" = sys; then
3663             echo "$as_me:$LINENO: result: system version" >&5
3664 echo "${ECHO_T}system version" >&6
3665           elif test "$wxUSE_ZLIB" = builtin; then
3666             echo "$as_me:$LINENO: result: builtin version" >&5
3667 echo "${ECHO_T}builtin version" >&6
3668           else
3669             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3670 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3671    { (exit 1); exit 1; }; }
3672           fi
3673
3674
3675           echo "$as_me:$LINENO: checking for --with-odbc" >&5
3676 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3677           no_cache=0
3678
3679 # Check whether --with-odbc or --without-odbc was given.
3680 if test "${with_odbc+set}" = set; then
3681   withval="$with_odbc"
3682
3683                         if test "$withval" = yes; then
3684                           ac_cv_use_odbc='wxUSE_ODBC=yes'
3685                         elif test "$withval" = no; then
3686                           ac_cv_use_odbc='wxUSE_ODBC=no'
3687                         elif test "$withval" = sys; then
3688                           ac_cv_use_odbc='wxUSE_ODBC=sys'
3689                         elif test "$withval" = builtin; then
3690                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
3691                         else
3692                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3693 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3694    { (exit 1); exit 1; }; }
3695                         fi
3696
3697 else
3698
3699                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3700                         if test "x$LINE" != x ; then
3701                           eval "DEFAULT_$LINE"
3702                         else
3703                           no_cache=1
3704                         fi
3705
3706                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3707
3708 fi;
3709
3710           eval "$ac_cv_use_odbc"
3711           if test "$no_cache" != 1; then
3712             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3713           fi
3714
3715           if test "$wxUSE_ODBC" = yes; then
3716             echo "$as_me:$LINENO: result: yes" >&5
3717 echo "${ECHO_T}yes" >&6
3718           elif test "$wxUSE_ODBC" = no; then
3719             echo "$as_me:$LINENO: result: no" >&5
3720 echo "${ECHO_T}no" >&6
3721           elif test "$wxUSE_ODBC" = sys; then
3722             echo "$as_me:$LINENO: result: system version" >&5
3723 echo "${ECHO_T}system version" >&6
3724           elif test "$wxUSE_ODBC" = builtin; then
3725             echo "$as_me:$LINENO: result: builtin version" >&5
3726 echo "${ECHO_T}builtin version" >&6
3727           else
3728             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3729 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3730    { (exit 1); exit 1; }; }
3731           fi
3732
3733
3734           echo "$as_me:$LINENO: checking for --with-expat" >&5
3735 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3736           no_cache=0
3737
3738 # Check whether --with-expat or --without-expat was given.
3739 if test "${with_expat+set}" = set; then
3740   withval="$with_expat"
3741
3742                         if test "$withval" = yes; then
3743                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3744                         elif test "$withval" = no; then
3745                           ac_cv_use_expat='wxUSE_EXPAT=no'
3746                         elif test "$withval" = sys; then
3747                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3748                         elif test "$withval" = builtin; then
3749                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3750                         else
3751                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3752 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3753    { (exit 1); exit 1; }; }
3754                         fi
3755
3756 else
3757
3758                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3759                         if test "x$LINE" != x ; then
3760                           eval "DEFAULT_$LINE"
3761                         else
3762                           no_cache=1
3763                         fi
3764
3765                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3766
3767 fi;
3768
3769           eval "$ac_cv_use_expat"
3770           if test "$no_cache" != 1; then
3771             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3772           fi
3773
3774           if test "$wxUSE_EXPAT" = yes; then
3775             echo "$as_me:$LINENO: result: yes" >&5
3776 echo "${ECHO_T}yes" >&6
3777           elif test "$wxUSE_EXPAT" = no; then
3778             echo "$as_me:$LINENO: result: no" >&5
3779 echo "${ECHO_T}no" >&6
3780           elif test "$wxUSE_EXPAT" = sys; then
3781             echo "$as_me:$LINENO: result: system version" >&5
3782 echo "${ECHO_T}system version" >&6
3783           elif test "$wxUSE_EXPAT" = builtin; then
3784             echo "$as_me:$LINENO: result: builtin version" >&5
3785 echo "${ECHO_T}builtin version" >&6
3786           else
3787             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3788 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3789    { (exit 1); exit 1; }; }
3790           fi
3791
3792
3793
3794
3795           enablestring=
3796           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3797 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3798           no_cache=0
3799           # Check whether --enable-shared or --disable-shared was given.
3800 if test "${enable_shared+set}" = set; then
3801   enableval="$enable_shared"
3802
3803                           if test "$enableval" = yes; then
3804                             ac_cv_use_shared='wxUSE_SHARED=yes'
3805                           else
3806                             ac_cv_use_shared='wxUSE_SHARED=no'
3807                           fi
3808
3809 else
3810
3811                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3812                           if test "x$LINE" != x ; then
3813                             eval "DEFAULT_$LINE"
3814                           else
3815                             no_cache=1
3816                           fi
3817
3818                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3819
3820 fi;
3821
3822           eval "$ac_cv_use_shared"
3823           if test "$no_cache" != 1; then
3824             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3825           fi
3826
3827           if test "$wxUSE_SHARED" = yes; then
3828             echo "$as_me:$LINENO: result: yes" >&5
3829 echo "${ECHO_T}yes" >&6
3830           else
3831             echo "$as_me:$LINENO: result: no" >&5
3832 echo "${ECHO_T}no" >&6
3833           fi
3834
3835
3836           enablestring=
3837           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3838 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3839           no_cache=0
3840           # Check whether --enable-optimise or --disable-optimise was given.
3841 if test "${enable_optimise+set}" = set; then
3842   enableval="$enable_optimise"
3843
3844                           if test "$enableval" = yes; then
3845                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3846                           else
3847                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3848                           fi
3849
3850 else
3851
3852                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3853                           if test "x$LINE" != x ; then
3854                             eval "DEFAULT_$LINE"
3855                           else
3856                             no_cache=1
3857                           fi
3858
3859                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3860
3861 fi;
3862
3863           eval "$ac_cv_use_optimise"
3864           if test "$no_cache" != 1; then
3865             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3866           fi
3867
3868           if test "$wxUSE_OPTIMISE" = yes; then
3869             echo "$as_me:$LINENO: result: yes" >&5
3870 echo "${ECHO_T}yes" >&6
3871           else
3872             echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3874           fi
3875
3876
3877           enablestring=
3878           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3879 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3880           no_cache=0
3881           # Check whether --enable-debug or --disable-debug was given.
3882 if test "${enable_debug+set}" = set; then
3883   enableval="$enable_debug"
3884
3885                           if test "$enableval" = yes; then
3886                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3887                           else
3888                             ac_cv_use_debug='wxUSE_DEBUG=no'
3889                           fi
3890
3891 else
3892
3893                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3894                           if test "x$LINE" != x ; then
3895                             eval "DEFAULT_$LINE"
3896                           else
3897                             no_cache=1
3898                           fi
3899
3900                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3901
3902 fi;
3903
3904           eval "$ac_cv_use_debug"
3905           if test "$no_cache" != 1; then
3906             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3907           fi
3908
3909           if test "$wxUSE_DEBUG" = yes; then
3910             echo "$as_me:$LINENO: result: yes" >&5
3911 echo "${ECHO_T}yes" >&6
3912           else
3913             echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3915           fi
3916
3917
3918           enablestring=
3919           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3920 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3921           no_cache=0
3922           # Check whether --enable-stl or --disable-stl was given.
3923 if test "${enable_stl+set}" = set; then
3924   enableval="$enable_stl"
3925
3926                           if test "$enableval" = yes; then
3927                             ac_cv_use_stl='wxUSE_STL=yes'
3928                           else
3929                             ac_cv_use_stl='wxUSE_STL=no'
3930                           fi
3931
3932 else
3933
3934                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3935                           if test "x$LINE" != x ; then
3936                             eval "DEFAULT_$LINE"
3937                           else
3938                             no_cache=1
3939                           fi
3940
3941                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3942
3943 fi;
3944
3945           eval "$ac_cv_use_stl"
3946           if test "$no_cache" != 1; then
3947             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3948           fi
3949
3950           if test "$wxUSE_STL" = yes; then
3951             echo "$as_me:$LINENO: result: yes" >&5
3952 echo "${ECHO_T}yes" >&6
3953           else
3954             echo "$as_me:$LINENO: result: no" >&5
3955 echo "${ECHO_T}no" >&6
3956           fi
3957
3958 if test "$USE_OS2" = "1"; then
3959     DEFAULT_wxUSE_OMF=no
3960
3961           enablestring=
3962           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3963 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3964           no_cache=0
3965           # Check whether --enable-omf or --disable-omf was given.
3966 if test "${enable_omf+set}" = set; then
3967   enableval="$enable_omf"
3968
3969                           if test "$enableval" = yes; then
3970                             ac_cv_use_omf='wxUSE_OMF=yes'
3971                           else
3972                             ac_cv_use_omf='wxUSE_OMF=no'
3973                           fi
3974
3975 else
3976
3977                           LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3978                           if test "x$LINE" != x ; then
3979                             eval "DEFAULT_$LINE"
3980                           else
3981                             no_cache=1
3982                           fi
3983
3984                           ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3985
3986 fi;
3987
3988           eval "$ac_cv_use_omf"
3989           if test "$no_cache" != 1; then
3990             echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3991           fi
3992
3993           if test "$wxUSE_OMF" = yes; then
3994             echo "$as_me:$LINENO: result: yes" >&5
3995 echo "${ECHO_T}yes" >&6
3996           else
3997             echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
3999           fi
4000
4001 fi
4002
4003 if test "$wxUSE_DEBUG" = "yes"; then
4004   DEFAULT_wxUSE_DEBUG_FLAG=yes
4005   DEFAULT_wxUSE_DEBUG_INFO=yes
4006   BUILD=debug
4007 elif test "$wxUSE_DEBUG" = "no"; then
4008   DEFAULT_wxUSE_DEBUG_FLAG=no
4009   DEFAULT_wxUSE_DEBUG_INFO=no
4010   BUILD=release
4011 fi
4012
4013
4014           enablestring=
4015           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4016 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
4017           no_cache=0
4018           # Check whether --enable-debug_flag or --disable-debug_flag was given.
4019 if test "${enable_debug_flag+set}" = set; then
4020   enableval="$enable_debug_flag"
4021
4022                           if test "$enableval" = yes; then
4023                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4024                           else
4025                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4026                           fi
4027
4028 else
4029
4030                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
4031                           if test "x$LINE" != x ; then
4032                             eval "DEFAULT_$LINE"
4033                           else
4034                             no_cache=1
4035                           fi
4036
4037                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4038
4039 fi;
4040
4041           eval "$ac_cv_use_debug_flag"
4042           if test "$no_cache" != 1; then
4043             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4044           fi
4045
4046           if test "$wxUSE_DEBUG_FLAG" = yes; then
4047             echo "$as_me:$LINENO: result: yes" >&5
4048 echo "${ECHO_T}yes" >&6
4049           else
4050             echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6
4052           fi
4053
4054
4055           enablestring=
4056           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4057 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4058           no_cache=0
4059           # Check whether --enable-debug_info or --disable-debug_info was given.
4060 if test "${enable_debug_info+set}" = set; then
4061   enableval="$enable_debug_info"
4062
4063                           if test "$enableval" = yes; then
4064                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4065                           else
4066                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4067                           fi
4068
4069 else
4070
4071                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4072                           if test "x$LINE" != x ; then
4073                             eval "DEFAULT_$LINE"
4074                           else
4075                             no_cache=1
4076                           fi
4077
4078                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4079
4080 fi;
4081
4082           eval "$ac_cv_use_debug_info"
4083           if test "$no_cache" != 1; then
4084             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4085           fi
4086
4087           if test "$wxUSE_DEBUG_INFO" = yes; then
4088             echo "$as_me:$LINENO: result: yes" >&5
4089 echo "${ECHO_T}yes" >&6
4090           else
4091             echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6
4093           fi
4094
4095
4096           enablestring=
4097           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4098 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4099           no_cache=0
4100           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4101 if test "${enable_debug_gdb+set}" = set; then
4102   enableval="$enable_debug_gdb"
4103
4104                           if test "$enableval" = yes; then
4105                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4106                           else
4107                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4108                           fi
4109
4110 else
4111
4112                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4113                           if test "x$LINE" != x ; then
4114                             eval "DEFAULT_$LINE"
4115                           else
4116                             no_cache=1
4117                           fi
4118
4119                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4120
4121 fi;
4122
4123           eval "$ac_cv_use_debug_gdb"
4124           if test "$no_cache" != 1; then
4125             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4126           fi
4127
4128           if test "$wxUSE_DEBUG_GDB" = yes; then
4129             echo "$as_me:$LINENO: result: yes" >&5
4130 echo "${ECHO_T}yes" >&6
4131           else
4132             echo "$as_me:$LINENO: result: no" >&5
4133 echo "${ECHO_T}no" >&6
4134           fi
4135
4136
4137           enablestring=
4138           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4139 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4140           no_cache=0
4141           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4142 if test "${enable_debug_cntxt+set}" = set; then
4143   enableval="$enable_debug_cntxt"
4144
4145                           if test "$enableval" = yes; then
4146                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4147                           else
4148                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4149                           fi
4150
4151 else
4152
4153                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4154                           if test "x$LINE" != x ; then
4155                             eval "DEFAULT_$LINE"
4156                           else
4157                             no_cache=1
4158                           fi
4159
4160                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4161
4162 fi;
4163
4164           eval "$ac_cv_use_debug_cntxt"
4165           if test "$no_cache" != 1; then
4166             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4167           fi
4168
4169           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4170             echo "$as_me:$LINENO: result: yes" >&5
4171 echo "${ECHO_T}yes" >&6
4172           else
4173             echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4175           fi
4176
4177
4178           enablestring=
4179           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4180 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4181           no_cache=0
4182           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4183 if test "${enable_mem_tracing+set}" = set; then
4184   enableval="$enable_mem_tracing"
4185
4186                           if test "$enableval" = yes; then
4187                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4188                           else
4189                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4190                           fi
4191
4192 else
4193
4194                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4195                           if test "x$LINE" != x ; then
4196                             eval "DEFAULT_$LINE"
4197                           else
4198                             no_cache=1
4199                           fi
4200
4201                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4202
4203 fi;
4204
4205           eval "$ac_cv_use_mem_tracing"
4206           if test "$no_cache" != 1; then
4207             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4208           fi
4209
4210           if test "$wxUSE_MEM_TRACING" = yes; then
4211             echo "$as_me:$LINENO: result: yes" >&5
4212 echo "${ECHO_T}yes" >&6
4213           else
4214             echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4216           fi
4217
4218
4219           enablestring=
4220           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4221 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4222           no_cache=0
4223           # Check whether --enable-profile or --disable-profile was given.
4224 if test "${enable_profile+set}" = set; then
4225   enableval="$enable_profile"
4226
4227                           if test "$enableval" = yes; then
4228                             ac_cv_use_profile='wxUSE_PROFILE=yes'
4229                           else
4230                             ac_cv_use_profile='wxUSE_PROFILE=no'
4231                           fi
4232
4233 else
4234
4235                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4236                           if test "x$LINE" != x ; then
4237                             eval "DEFAULT_$LINE"
4238                           else
4239                             no_cache=1
4240                           fi
4241
4242                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4243
4244 fi;
4245
4246           eval "$ac_cv_use_profile"
4247           if test "$no_cache" != 1; then
4248             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4249           fi
4250
4251           if test "$wxUSE_PROFILE" = yes; then
4252             echo "$as_me:$LINENO: result: yes" >&5
4253 echo "${ECHO_T}yes" >&6
4254           else
4255             echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6
4257           fi
4258
4259
4260           enablestring=
4261           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4262 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4263           no_cache=0
4264           # Check whether --enable-no_rtti or --disable-no_rtti was given.
4265 if test "${enable_no_rtti+set}" = set; then
4266   enableval="$enable_no_rtti"
4267
4268                           if test "$enableval" = yes; then
4269                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4270                           else
4271                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4272                           fi
4273
4274 else
4275
4276                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4277                           if test "x$LINE" != x ; then
4278                             eval "DEFAULT_$LINE"
4279                           else
4280                             no_cache=1
4281                           fi
4282
4283                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4284
4285 fi;
4286
4287           eval "$ac_cv_use_no_rtti"
4288           if test "$no_cache" != 1; then
4289             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4290           fi
4291
4292           if test "$wxUSE_NO_RTTI" = yes; then
4293             echo "$as_me:$LINENO: result: yes" >&5
4294 echo "${ECHO_T}yes" >&6
4295           else
4296             echo "$as_me:$LINENO: result: no" >&5
4297 echo "${ECHO_T}no" >&6
4298           fi
4299
4300
4301           enablestring=
4302           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4303 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4304           no_cache=0
4305           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4306 if test "${enable_no_exceptions+set}" = set; then
4307   enableval="$enable_no_exceptions"
4308
4309                           if test "$enableval" = yes; then
4310                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4311                           else
4312                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4313                           fi
4314
4315 else
4316
4317                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4318                           if test "x$LINE" != x ; then
4319                             eval "DEFAULT_$LINE"
4320                           else
4321                             no_cache=1
4322                           fi
4323
4324                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4325
4326 fi;
4327
4328           eval "$ac_cv_use_no_exceptions"
4329           if test "$no_cache" != 1; then
4330             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4331           fi
4332
4333           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4334             echo "$as_me:$LINENO: result: yes" >&5
4335 echo "${ECHO_T}yes" >&6
4336           else
4337             echo "$as_me:$LINENO: result: no" >&5
4338 echo "${ECHO_T}no" >&6
4339           fi
4340
4341
4342           enablestring=
4343           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4344 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4345           no_cache=0
4346           # Check whether --enable-permissive or --disable-permissive was given.
4347 if test "${enable_permissive+set}" = set; then
4348   enableval="$enable_permissive"
4349
4350                           if test "$enableval" = yes; then
4351                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4352                           else
4353                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4354                           fi
4355
4356 else
4357
4358                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4359                           if test "x$LINE" != x ; then
4360                             eval "DEFAULT_$LINE"
4361                           else
4362                             no_cache=1
4363                           fi
4364
4365                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4366
4367 fi;
4368
4369           eval "$ac_cv_use_permissive"
4370           if test "$no_cache" != 1; then
4371             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4372           fi
4373
4374           if test "$wxUSE_PERMISSIVE" = yes; then
4375             echo "$as_me:$LINENO: result: yes" >&5
4376 echo "${ECHO_T}yes" >&6
4377           else
4378             echo "$as_me:$LINENO: result: no" >&5
4379 echo "${ECHO_T}no" >&6
4380           fi
4381
4382
4383           enablestring=
4384           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4385 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4386           no_cache=0
4387           # Check whether --enable-no_deps or --disable-no_deps was given.
4388 if test "${enable_no_deps+set}" = set; then
4389   enableval="$enable_no_deps"
4390
4391                           if test "$enableval" = yes; then
4392                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4393                           else
4394                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4395                           fi
4396
4397 else
4398
4399                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4400                           if test "x$LINE" != x ; then
4401                             eval "DEFAULT_$LINE"
4402                           else
4403                             no_cache=1
4404                           fi
4405
4406                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4407
4408 fi;
4409
4410           eval "$ac_cv_use_no_deps"
4411           if test "$no_cache" != 1; then
4412             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4413           fi
4414
4415           if test "$wxUSE_NO_DEPS" = yes; then
4416             echo "$as_me:$LINENO: result: yes" >&5
4417 echo "${ECHO_T}yes" >&6
4418           else
4419             echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6
4421           fi
4422
4423
4424           enablestring=
4425           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
4426 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6
4427           no_cache=0
4428           # Check whether --enable-vararg_macros or --disable-vararg_macros was given.
4429 if test "${enable_vararg_macros+set}" = set; then
4430   enableval="$enable_vararg_macros"
4431
4432                           if test "$enableval" = yes; then
4433                             ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
4434                           else
4435                             ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
4436                           fi
4437
4438 else
4439
4440                           LINE=`grep "wxUSE_VARARG_MACROS" ${wx_arg_cache_file}`
4441                           if test "x$LINE" != x ; then
4442                             eval "DEFAULT_$LINE"
4443                           else
4444                             no_cache=1
4445                           fi
4446
4447                           ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS='$DEFAULT_wxUSE_VARARG_MACROS
4448
4449 fi;
4450
4451           eval "$ac_cv_use_vararg_macros"
4452           if test "$no_cache" != 1; then
4453             echo $ac_cv_use_vararg_macros >> ${wx_arg_cache_file}.tmp
4454           fi
4455
4456           if test "$wxUSE_VARARG_MACROS" = yes; then
4457             echo "$as_me:$LINENO: result: yes" >&5
4458 echo "${ECHO_T}yes" >&6
4459           else
4460             echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6
4462           fi
4463
4464
4465           enablestring=
4466           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4467 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4468           no_cache=0
4469           # Check whether --enable-universal_binary or --disable-universal_binary was given.
4470 if test "${enable_universal_binary+set}" = set; then
4471   enableval="$enable_universal_binary"
4472
4473                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
4474
4475 else
4476
4477                           LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4478                           if test "x$LINE" != x ; then
4479                             eval "DEFAULT_$LINE"
4480                             wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4481                           else
4482                             no_cache=1
4483                             wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
4484                           fi
4485
4486 fi;
4487
4488           eval "$wx_cv_use_universal_binary"
4489           if test "$no_cache" != 1; then
4490             echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4491           fi
4492
4493           echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4494 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
4495
4496
4497
4498           enablestring=enable
4499           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4500 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4501           no_cache=0
4502           # Check whether --enable-compat24 or --disable-compat24 was given.
4503 if test "${enable_compat24+set}" = set; then
4504   enableval="$enable_compat24"
4505
4506                           if test "$enableval" = yes; then
4507                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4508                           else
4509                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4510                           fi
4511
4512 else
4513
4514                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4515                           if test "x$LINE" != x ; then
4516                             eval "DEFAULT_$LINE"
4517                           else
4518                             no_cache=1
4519                           fi
4520
4521                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4522
4523 fi;
4524
4525           eval "$ac_cv_use_compat24"
4526           if test "$no_cache" != 1; then
4527             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4528           fi
4529
4530           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4531             echo "$as_me:$LINENO: result: yes" >&5
4532 echo "${ECHO_T}yes" >&6
4533           else
4534             echo "$as_me:$LINENO: result: no" >&5
4535 echo "${ECHO_T}no" >&6
4536           fi
4537
4538
4539           enablestring=disable
4540           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4541 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
4542           no_cache=0
4543           # Check whether --enable-compat26 or --disable-compat26 was given.
4544 if test "${enable_compat26+set}" = set; then
4545   enableval="$enable_compat26"
4546
4547                           if test "$enableval" = yes; then
4548                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
4549                           else
4550                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
4551                           fi
4552
4553 else
4554
4555                           LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
4556                           if test "x$LINE" != x ; then
4557                             eval "DEFAULT_$LINE"
4558                           else
4559                             no_cache=1
4560                           fi
4561
4562                           ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
4563
4564 fi;
4565
4566           eval "$ac_cv_use_compat26"
4567           if test "$no_cache" != 1; then
4568             echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
4569           fi
4570
4571           if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
4572             echo "$as_me:$LINENO: result: yes" >&5
4573 echo "${ECHO_T}yes" >&6
4574           else
4575             echo "$as_me:$LINENO: result: no" >&5
4576 echo "${ECHO_T}no" >&6
4577           fi
4578
4579
4580
4581           enablestring=
4582           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4583 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4584           no_cache=0
4585           # Check whether --enable-rpath or --disable-rpath was given.
4586 if test "${enable_rpath+set}" = set; then
4587   enableval="$enable_rpath"
4588
4589                           if test "$enableval" = yes; then
4590                             ac_cv_use_rpath='wxUSE_RPATH=yes'
4591                           else
4592                             ac_cv_use_rpath='wxUSE_RPATH=no'
4593                           fi
4594
4595 else
4596
4597                           LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4598                           if test "x$LINE" != x ; then
4599                             eval "DEFAULT_$LINE"
4600                           else
4601                             no_cache=1
4602                           fi
4603
4604                           ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4605
4606 fi;
4607
4608           eval "$ac_cv_use_rpath"
4609           if test "$no_cache" != 1; then
4610             echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4611           fi
4612
4613           if test "$wxUSE_RPATH" = yes; then
4614             echo "$as_me:$LINENO: result: yes" >&5
4615 echo "${ECHO_T}yes" >&6
4616           else
4617             echo "$as_me:$LINENO: result: no" >&5
4618 echo "${ECHO_T}no" >&6
4619           fi
4620
4621
4622
4623
4624
4625           enablestring=
4626           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4627 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4628           no_cache=0
4629           # Check whether --enable-intl or --disable-intl was given.
4630 if test "${enable_intl+set}" = set; then
4631   enableval="$enable_intl"
4632
4633                           if test "$enableval" = yes; then
4634                             ac_cv_use_intl='wxUSE_INTL=yes'
4635                           else
4636                             ac_cv_use_intl='wxUSE_INTL=no'
4637                           fi
4638
4639 else
4640
4641                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4642                           if test "x$LINE" != x ; then
4643                             eval "DEFAULT_$LINE"
4644                           else
4645                             no_cache=1
4646                           fi
4647
4648                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4649
4650 fi;
4651
4652           eval "$ac_cv_use_intl"
4653           if test "$no_cache" != 1; then
4654             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4655           fi
4656
4657           if test "$wxUSE_INTL" = yes; then
4658             echo "$as_me:$LINENO: result: yes" >&5
4659 echo "${ECHO_T}yes" >&6
4660           else
4661             echo "$as_me:$LINENO: result: no" >&5
4662 echo "${ECHO_T}no" >&6
4663           fi
4664
4665
4666           enablestring=
4667           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4668 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4669           no_cache=0
4670           # Check whether --enable-config or --disable-config was given.
4671 if test "${enable_config+set}" = set; then
4672   enableval="$enable_config"
4673
4674                           if test "$enableval" = yes; then
4675                             ac_cv_use_config='wxUSE_CONFIG=yes'
4676                           else
4677                             ac_cv_use_config='wxUSE_CONFIG=no'
4678                           fi
4679
4680 else
4681
4682                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4683                           if test "x$LINE" != x ; then
4684                             eval "DEFAULT_$LINE"
4685                           else
4686                             no_cache=1
4687                           fi
4688
4689                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4690
4691 fi;
4692
4693           eval "$ac_cv_use_config"
4694           if test "$no_cache" != 1; then
4695             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4696           fi
4697
4698           if test "$wxUSE_CONFIG" = yes; then
4699             echo "$as_me:$LINENO: result: yes" >&5
4700 echo "${ECHO_T}yes" >&6
4701           else
4702             echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6
4704           fi
4705
4706
4707
4708           enablestring=
4709           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4710 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4711           no_cache=0
4712           # Check whether --enable-protocols or --disable-protocols was given.
4713 if test "${enable_protocols+set}" = set; then
4714   enableval="$enable_protocols"
4715
4716                           if test "$enableval" = yes; then
4717                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4718                           else
4719                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4720                           fi
4721
4722 else
4723
4724                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4725                           if test "x$LINE" != x ; then
4726                             eval "DEFAULT_$LINE"
4727                           else
4728                             no_cache=1
4729                           fi
4730
4731                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4732
4733 fi;
4734
4735           eval "$ac_cv_use_protocols"
4736           if test "$no_cache" != 1; then
4737             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4738           fi
4739
4740           if test "$wxUSE_PROTOCOL" = yes; then
4741             echo "$as_me:$LINENO: result: yes" >&5
4742 echo "${ECHO_T}yes" >&6
4743           else
4744             echo "$as_me:$LINENO: result: no" >&5
4745 echo "${ECHO_T}no" >&6
4746           fi
4747
4748
4749           enablestring=
4750           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4751 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4752           no_cache=0
4753           # Check whether --enable-ftp or --disable-ftp was given.
4754 if test "${enable_ftp+set}" = set; then
4755   enableval="$enable_ftp"
4756
4757                           if test "$enableval" = yes; then
4758                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4759                           else
4760                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4761                           fi
4762
4763 else
4764
4765                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4766                           if test "x$LINE" != x ; then
4767                             eval "DEFAULT_$LINE"
4768                           else
4769                             no_cache=1
4770                           fi
4771
4772                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4773
4774 fi;
4775
4776           eval "$ac_cv_use_ftp"
4777           if test "$no_cache" != 1; then
4778             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4779           fi
4780
4781           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4782             echo "$as_me:$LINENO: result: yes" >&5
4783 echo "${ECHO_T}yes" >&6
4784           else
4785             echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6
4787           fi
4788
4789
4790           enablestring=
4791           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4792 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4793           no_cache=0
4794           # Check whether --enable-http or --disable-http was given.
4795 if test "${enable_http+set}" = set; then
4796   enableval="$enable_http"
4797
4798                           if test "$enableval" = yes; then
4799                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4800                           else
4801                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4802                           fi
4803
4804 else
4805
4806                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4807                           if test "x$LINE" != x ; then
4808                             eval "DEFAULT_$LINE"
4809                           else
4810                             no_cache=1
4811                           fi
4812
4813                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4814
4815 fi;
4816
4817           eval "$ac_cv_use_http"
4818           if test "$no_cache" != 1; then
4819             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4820           fi
4821
4822           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4823             echo "$as_me:$LINENO: result: yes" >&5
4824 echo "${ECHO_T}yes" >&6
4825           else
4826             echo "$as_me:$LINENO: result: no" >&5
4827 echo "${ECHO_T}no" >&6
4828           fi
4829
4830
4831           enablestring=
4832           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4833 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4834           no_cache=0
4835           # Check whether --enable-fileproto or --disable-fileproto was given.
4836 if test "${enable_fileproto+set}" = set; then
4837   enableval="$enable_fileproto"
4838
4839                           if test "$enableval" = yes; then
4840                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4841                           else
4842                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4843                           fi
4844
4845 else
4846
4847                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4848                           if test "x$LINE" != x ; then
4849                             eval "DEFAULT_$LINE"
4850                           else
4851                             no_cache=1
4852                           fi
4853
4854                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4855
4856 fi;
4857
4858           eval "$ac_cv_use_fileproto"
4859           if test "$no_cache" != 1; then
4860             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4861           fi
4862
4863           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4864             echo "$as_me:$LINENO: result: yes" >&5
4865 echo "${ECHO_T}yes" >&6
4866           else
4867             echo "$as_me:$LINENO: result: no" >&5
4868 echo "${ECHO_T}no" >&6
4869           fi
4870
4871
4872           enablestring=
4873           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4874 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4875           no_cache=0
4876           # Check whether --enable-sockets or --disable-sockets was given.
4877 if test "${enable_sockets+set}" = set; then
4878   enableval="$enable_sockets"
4879
4880                           if test "$enableval" = yes; then
4881                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4882                           else
4883                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4884                           fi
4885
4886 else
4887
4888                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4889                           if test "x$LINE" != x ; then
4890                             eval "DEFAULT_$LINE"
4891                           else
4892                             no_cache=1
4893                           fi
4894
4895                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4896
4897 fi;
4898
4899           eval "$ac_cv_use_sockets"
4900           if test "$no_cache" != 1; then
4901             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4902           fi
4903
4904           if test "$wxUSE_SOCKETS" = yes; then
4905             echo "$as_me:$LINENO: result: yes" >&5
4906 echo "${ECHO_T}yes" >&6
4907           else
4908             echo "$as_me:$LINENO: result: no" >&5
4909 echo "${ECHO_T}no" >&6
4910           fi
4911
4912
4913           enablestring=
4914           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4915 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4916           no_cache=0
4917           # Check whether --enable-ole or --disable-ole was given.
4918 if test "${enable_ole+set}" = set; then
4919   enableval="$enable_ole"
4920
4921                           if test "$enableval" = yes; then
4922                             ac_cv_use_ole='wxUSE_OLE=yes'
4923                           else
4924                             ac_cv_use_ole='wxUSE_OLE=no'
4925                           fi
4926
4927 else
4928
4929                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4930                           if test "x$LINE" != x ; then
4931                             eval "DEFAULT_$LINE"
4932                           else
4933                             no_cache=1
4934                           fi
4935
4936                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4937
4938 fi;
4939
4940           eval "$ac_cv_use_ole"
4941           if test "$no_cache" != 1; then
4942             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4943           fi
4944
4945           if test "$wxUSE_OLE" = yes; then
4946             echo "$as_me:$LINENO: result: yes" >&5
4947 echo "${ECHO_T}yes" >&6
4948           else
4949             echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6
4951           fi
4952
4953
4954           enablestring=
4955           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4956 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4957           no_cache=0
4958           # Check whether --enable-dataobj or --disable-dataobj was given.
4959 if test "${enable_dataobj+set}" = set; then
4960   enableval="$enable_dataobj"
4961
4962                           if test "$enableval" = yes; then
4963                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4964                           else
4965                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4966                           fi
4967
4968 else
4969
4970                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4971                           if test "x$LINE" != x ; then
4972                             eval "DEFAULT_$LINE"
4973                           else
4974                             no_cache=1
4975                           fi
4976
4977                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4978
4979 fi;
4980
4981           eval "$ac_cv_use_dataobj"
4982           if test "$no_cache" != 1; then
4983             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4984           fi
4985
4986           if test "$wxUSE_DATAOBJ" = yes; then
4987             echo "$as_me:$LINENO: result: yes" >&5
4988 echo "${ECHO_T}yes" >&6
4989           else
4990             echo "$as_me:$LINENO: result: no" >&5
4991 echo "${ECHO_T}no" >&6
4992           fi
4993
4994
4995
4996           enablestring=
4997           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4998 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4999           no_cache=0
5000           # Check whether --enable-ipc or --disable-ipc was given.
5001 if test "${enable_ipc+set}" = set; then
5002   enableval="$enable_ipc"
5003
5004                           if test "$enableval" = yes; then
5005                             ac_cv_use_ipc='wxUSE_IPC=yes'
5006                           else
5007                             ac_cv_use_ipc='wxUSE_IPC=no'
5008                           fi
5009
5010 else
5011
5012                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
5013                           if test "x$LINE" != x ; then
5014                             eval "DEFAULT_$LINE"
5015                           else
5016                             no_cache=1
5017                           fi
5018
5019                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
5020
5021 fi;
5022
5023           eval "$ac_cv_use_ipc"
5024           if test "$no_cache" != 1; then
5025             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
5026           fi
5027
5028           if test "$wxUSE_IPC" = yes; then
5029             echo "$as_me:$LINENO: result: yes" >&5
5030 echo "${ECHO_T}yes" >&6
5031           else
5032             echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6
5034           fi
5035
5036
5037
5038           enablestring=
5039           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
5040 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
5041           no_cache=0
5042           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
5043 if test "${enable_apple_ieee+set}" = set; then
5044   enableval="$enable_apple_ieee"
5045
5046                           if test "$enableval" = yes; then
5047                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
5048                           else
5049                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
5050                           fi
5051
5052 else
5053
5054                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
5055                           if test "x$LINE" != x ; then
5056                             eval "DEFAULT_$LINE"
5057                           else
5058                             no_cache=1
5059                           fi
5060
5061                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5062
5063 fi;
5064
5065           eval "$ac_cv_use_apple_ieee"
5066           if test "$no_cache" != 1; then
5067             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
5068           fi
5069
5070           if test "$wxUSE_APPLE_IEEE" = yes; then
5071             echo "$as_me:$LINENO: result: yes" >&5
5072 echo "${ECHO_T}yes" >&6
5073           else
5074             echo "$as_me:$LINENO: result: no" >&5
5075 echo "${ECHO_T}no" >&6
5076           fi
5077
5078
5079           enablestring=
5080           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5081 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
5082           no_cache=0
5083           # Check whether --enable-arcstream or --disable-arcstream was given.
5084 if test "${enable_arcstream+set}" = set; then
5085   enableval="$enable_arcstream"
5086
5087                           if test "$enableval" = yes; then
5088                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
5089                           else
5090                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
5091                           fi
5092
5093 else
5094
5095                           LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
5096                           if test "x$LINE" != x ; then
5097                             eval "DEFAULT_$LINE"
5098                           else
5099                             no_cache=1
5100                           fi
5101
5102                           ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
5103
5104 fi;
5105
5106           eval "$ac_cv_use_arcstream"
5107           if test "$no_cache" != 1; then
5108             echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5109           fi
5110
5111           if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
5112             echo "$as_me:$LINENO: result: yes" >&5
5113 echo "${ECHO_T}yes" >&6
5114           else
5115             echo "$as_me:$LINENO: result: no" >&5
5116 echo "${ECHO_T}no" >&6
5117           fi
5118
5119
5120           enablestring=
5121           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5122 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
5123           no_cache=0
5124           # Check whether --enable-backtrace or --disable-backtrace was given.
5125 if test "${enable_backtrace+set}" = set; then
5126   enableval="$enable_backtrace"
5127
5128                           if test "$enableval" = yes; then
5129                             ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
5130                           else
5131                             ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
5132                           fi
5133
5134 else
5135
5136                           LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
5137                           if test "x$LINE" != x ; then
5138                             eval "DEFAULT_$LINE"
5139                           else
5140                             no_cache=1
5141                           fi
5142
5143                           ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
5144
5145 fi;
5146
5147           eval "$ac_cv_use_backtrace"
5148           if test "$no_cache" != 1; then
5149             echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
5150           fi
5151
5152           if test "$wxUSE_STACKWALKER" = yes; then
5153             echo "$as_me:$LINENO: result: yes" >&5
5154 echo "${ECHO_T}yes" >&6
5155           else
5156             echo "$as_me:$LINENO: result: no" >&5
5157 echo "${ECHO_T}no" >&6
5158           fi
5159
5160
5161           enablestring=
5162           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5163 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
5164           no_cache=0
5165           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5166 if test "${enable_catch_segvs+set}" = set; then
5167   enableval="$enable_catch_segvs"
5168
5169                           if test "$enableval" = yes; then
5170                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5171                           else
5172                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5173                           fi
5174
5175 else
5176
5177                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5178                           if test "x$LINE" != x ; then
5179                             eval "DEFAULT_$LINE"
5180                           else
5181                             no_cache=1
5182                           fi
5183
5184                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
5185
5186 fi;
5187
5188           eval "$ac_cv_use_catch_segvs"
5189           if test "$no_cache" != 1; then
5190             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5191           fi
5192
5193           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
5194             echo "$as_me:$LINENO: result: yes" >&5
5195 echo "${ECHO_T}yes" >&6
5196           else
5197             echo "$as_me:$LINENO: result: no" >&5
5198 echo "${ECHO_T}no" >&6
5199           fi
5200
5201
5202           enablestring=
5203           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5204 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5205           no_cache=0
5206           # Check whether --enable-cmdline or --disable-cmdline was given.
5207 if test "${enable_cmdline+set}" = set; then
5208   enableval="$enable_cmdline"
5209
5210                           if test "$enableval" = yes; then
5211                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5212                           else
5213                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5214                           fi
5215
5216 else
5217
5218                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5219                           if test "x$LINE" != x ; then
5220                             eval "DEFAULT_$LINE"
5221                           else
5222                             no_cache=1
5223                           fi
5224
5225                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5226
5227 fi;
5228
5229           eval "$ac_cv_use_cmdline"
5230           if test "$no_cache" != 1; then
5231             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5232           fi
5233
5234           if test "$wxUSE_CMDLINE_PARSER" = yes; then
5235             echo "$as_me:$LINENO: result: yes" >&5
5236 echo "${ECHO_T}yes" >&6
5237           else
5238             echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6
5240           fi
5241
5242
5243           enablestring=
5244           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5245 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5246           no_cache=0
5247           # Check whether --enable-datetime or --disable-datetime was given.
5248 if test "${enable_datetime+set}" = set; then
5249   enableval="$enable_datetime"
5250
5251                           if test "$enableval" = yes; then
5252                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
5253                           else
5254                             ac_cv_use_datetime='wxUSE_DATETIME=no'
5255                           fi
5256
5257 else
5258
5259                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5260                           if test "x$LINE" != x ; then
5261                             eval "DEFAULT_$LINE"
5262                           else
5263                             no_cache=1
5264                           fi
5265
5266                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5267
5268 fi;
5269
5270           eval "$ac_cv_use_datetime"
5271           if test "$no_cache" != 1; then
5272             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5273           fi
5274
5275           if test "$wxUSE_DATETIME" = yes; then
5276             echo "$as_me:$LINENO: result: yes" >&5
5277 echo "${ECHO_T}yes" >&6
5278           else
5279             echo "$as_me:$LINENO: result: no" >&5
5280 echo "${ECHO_T}no" >&6
5281           fi
5282
5283
5284           enablestring=
5285           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5286 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5287           no_cache=0
5288           # Check whether --enable-debugreport or --disable-debugreport was given.
5289 if test "${enable_debugreport+set}" = set; then
5290   enableval="$enable_debugreport"
5291
5292                           if test "$enableval" = yes; then
5293                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5294                           else
5295                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5296                           fi
5297
5298 else
5299
5300                           LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5301                           if test "x$LINE" != x ; then
5302                             eval "DEFAULT_$LINE"
5303                           else
5304                             no_cache=1
5305                           fi
5306
5307                           ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5308
5309 fi;
5310
5311           eval "$ac_cv_use_debugreport"
5312           if test "$no_cache" != 1; then
5313             echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5314           fi
5315
5316           if test "$wxUSE_DEBUGREPORT" = yes; then
5317             echo "$as_me:$LINENO: result: yes" >&5
5318 echo "${ECHO_T}yes" >&6
5319           else
5320             echo "$as_me:$LINENO: result: no" >&5
5321 echo "${ECHO_T}no" >&6
5322           fi
5323
5324
5325           enablestring=
5326           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5327 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5328           no_cache=0
5329           # Check whether --enable-dialupman or --disable-dialupman was given.
5330 if test "${enable_dialupman+set}" = set; then
5331   enableval="$enable_dialupman"
5332
5333                           if test "$enableval" = yes; then
5334                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5335                           else
5336                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5337                           fi
5338
5339 else
5340
5341                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5342                           if test "x$LINE" != x ; then
5343                             eval "DEFAULT_$LINE"
5344                           else
5345                             no_cache=1
5346                           fi
5347
5348                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5349
5350 fi;
5351
5352           eval "$ac_cv_use_dialupman"
5353           if test "$no_cache" != 1; then
5354             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5355           fi
5356
5357           if test "$wxUSE_DIALUP_MANAGER" = yes; then
5358             echo "$as_me:$LINENO: result: yes" >&5
5359 echo "${ECHO_T}yes" >&6
5360           else
5361             echo "$as_me:$LINENO: result: no" >&5
5362 echo "${ECHO_T}no" >&6
5363           fi
5364
5365
5366           enablestring=
5367           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5368 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5369           no_cache=0
5370           # Check whether --enable-dynlib or --disable-dynlib was given.
5371 if test "${enable_dynlib+set}" = set; then
5372   enableval="$enable_dynlib"
5373
5374                           if test "$enableval" = yes; then
5375                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5376                           else
5377                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5378                           fi
5379
5380 else
5381
5382                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5383                           if test "x$LINE" != x ; then
5384                             eval "DEFAULT_$LINE"
5385                           else
5386                             no_cache=1
5387                           fi
5388
5389                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5390
5391 fi;
5392
5393           eval "$ac_cv_use_dynlib"
5394           if test "$no_cache" != 1; then
5395             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5396           fi
5397
5398           if test "$wxUSE_DYNLIB_CLASS" = yes; then
5399             echo "$as_me:$LINENO: result: yes" >&5
5400 echo "${ECHO_T}yes" >&6
5401           else
5402             echo "$as_me:$LINENO: result: no" >&5
5403 echo "${ECHO_T}no" >&6
5404           fi
5405
5406
5407           enablestring=
5408           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5409 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5410           no_cache=0
5411           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5412 if test "${enable_dynamicloader+set}" = set; then
5413   enableval="$enable_dynamicloader"
5414
5415                           if test "$enableval" = yes; then
5416                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5417                           else
5418                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5419                           fi
5420
5421 else
5422
5423                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5424                           if test "x$LINE" != x ; then
5425                             eval "DEFAULT_$LINE"
5426                           else
5427                             no_cache=1
5428                           fi
5429
5430                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5431
5432 fi;
5433
5434           eval "$ac_cv_use_dynamicloader"
5435           if test "$no_cache" != 1; then
5436             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5437           fi
5438
5439           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5440             echo "$as_me:$LINENO: result: yes" >&5
5441 echo "${ECHO_T}yes" >&6
5442           else
5443             echo "$as_me:$LINENO: result: no" >&5
5444 echo "${ECHO_T}no" >&6
5445           fi
5446
5447
5448           enablestring=
5449           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5450 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5451           no_cache=0
5452           # Check whether --enable-exceptions or --disable-exceptions was given.
5453 if test "${enable_exceptions+set}" = set; then
5454   enableval="$enable_exceptions"
5455
5456                           if test "$enableval" = yes; then
5457                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5458                           else
5459                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5460                           fi
5461
5462 else
5463
5464                           LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5465                           if test "x$LINE" != x ; then
5466                             eval "DEFAULT_$LINE"
5467                           else
5468                             no_cache=1
5469                           fi
5470
5471                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5472
5473 fi;
5474
5475           eval "$ac_cv_use_exceptions"
5476           if test "$no_cache" != 1; then
5477             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5478           fi
5479
5480           if test "$wxUSE_EXCEPTIONS" = yes; then
5481             echo "$as_me:$LINENO: result: yes" >&5
5482 echo "${ECHO_T}yes" >&6
5483           else
5484             echo "$as_me:$LINENO: result: no" >&5
5485 echo "${ECHO_T}no" >&6
5486           fi
5487
5488
5489           enablestring=
5490           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5491 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5492           no_cache=0
5493           # Check whether --enable-ffile or --disable-ffile was given.
5494 if test "${enable_ffile+set}" = set; then
5495   enableval="$enable_ffile"
5496
5497                           if test "$enableval" = yes; then
5498                             ac_cv_use_ffile='wxUSE_FFILE=yes'
5499                           else
5500                             ac_cv_use_ffile='wxUSE_FFILE=no'
5501                           fi
5502
5503 else
5504
5505                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5506                           if test "x$LINE" != x ; then
5507                             eval "DEFAULT_$LINE"
5508                           else
5509                             no_cache=1
5510                           fi
5511
5512                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5513
5514 fi;
5515
5516           eval "$ac_cv_use_ffile"
5517           if test "$no_cache" != 1; then
5518             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5519           fi
5520
5521           if test "$wxUSE_FFILE" = yes; then
5522             echo "$as_me:$LINENO: result: yes" >&5
5523 echo "${ECHO_T}yes" >&6
5524           else
5525             echo "$as_me:$LINENO: result: no" >&5
5526 echo "${ECHO_T}no" >&6
5527           fi
5528
5529
5530           enablestring=
5531           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5532 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5533           no_cache=0
5534           # Check whether --enable-file or --disable-file was given.
5535 if test "${enable_file+set}" = set; then
5536   enableval="$enable_file"
5537
5538                           if test "$enableval" = yes; then
5539                             ac_cv_use_file='wxUSE_FILE=yes'
5540                           else
5541                             ac_cv_use_file='wxUSE_FILE=no'
5542                           fi
5543
5544 else
5545
5546                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5547                           if test "x$LINE" != x ; then
5548                             eval "DEFAULT_$LINE"
5549                           else
5550                             no_cache=1
5551                           fi
5552
5553                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5554
5555 fi;
5556
5557           eval "$ac_cv_use_file"
5558           if test "$no_cache" != 1; then
5559             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5560           fi
5561
5562           if test "$wxUSE_FILE" = yes; then
5563             echo "$as_me:$LINENO: result: yes" >&5
5564 echo "${ECHO_T}yes" >&6
5565           else
5566             echo "$as_me:$LINENO: result: no" >&5
5567 echo "${ECHO_T}no" >&6
5568           fi
5569
5570
5571           enablestring=
5572           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5573 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5574           no_cache=0
5575           # Check whether --enable-filesystem or --disable-filesystem was given.
5576 if test "${enable_filesystem+set}" = set; then
5577   enableval="$enable_filesystem"
5578
5579                           if test "$enableval" = yes; then
5580                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5581                           else
5582                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5583                           fi
5584
5585 else
5586
5587                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5588                           if test "x$LINE" != x ; then
5589                             eval "DEFAULT_$LINE"
5590                           else
5591                             no_cache=1
5592                           fi
5593
5594                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5595
5596 fi;
5597
5598           eval "$ac_cv_use_filesystem"
5599           if test "$no_cache" != 1; then
5600             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5601           fi
5602
5603           if test "$wxUSE_FILESYSTEM" = yes; then
5604             echo "$as_me:$LINENO: result: yes" >&5
5605 echo "${ECHO_T}yes" >&6
5606           else
5607             echo "$as_me:$LINENO: result: no" >&5
5608 echo "${ECHO_T}no" >&6
5609           fi
5610
5611
5612           enablestring=
5613           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5614 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5615           no_cache=0
5616           # Check whether --enable-fontmap or --disable-fontmap was given.
5617 if test "${enable_fontmap+set}" = set; then
5618   enableval="$enable_fontmap"
5619
5620                           if test "$enableval" = yes; then
5621                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5622                           else
5623                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5624                           fi
5625
5626 else
5627
5628                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5629                           if test "x$LINE" != x ; then
5630                             eval "DEFAULT_$LINE"
5631                           else
5632                             no_cache=1
5633                           fi
5634
5635                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5636
5637 fi;
5638
5639           eval "$ac_cv_use_fontmap"
5640           if test "$no_cache" != 1; then
5641             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5642           fi
5643
5644           if test "$wxUSE_FONTMAP" = yes; then
5645             echo "$as_me:$LINENO: result: yes" >&5
5646 echo "${ECHO_T}yes" >&6
5647           else
5648             echo "$as_me:$LINENO: result: no" >&5
5649 echo "${ECHO_T}no" >&6
5650           fi
5651
5652
5653           enablestring=
5654           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
5655 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6
5656           no_cache=0
5657           # Check whether --enable-fs_archive or --disable-fs_archive was given.
5658 if test "${enable_fs_archive+set}" = set; then
5659   enableval="$enable_fs_archive"
5660
5661                           if test "$enableval" = yes; then
5662                             ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
5663                           else
5664                             ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
5665                           fi
5666
5667 else
5668
5669                           LINE=`grep "wxUSE_FS_ARCHIVE" ${wx_arg_cache_file}`
5670                           if test "x$LINE" != x ; then
5671                             eval "DEFAULT_$LINE"
5672                           else
5673                             no_cache=1
5674                           fi
5675
5676                           ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE='$DEFAULT_wxUSE_FS_ARCHIVE
5677
5678 fi;
5679
5680           eval "$ac_cv_use_fs_archive"
5681           if test "$no_cache" != 1; then
5682             echo $ac_cv_use_fs_archive >> ${wx_arg_cache_file}.tmp
5683           fi
5684
5685           if test "$wxUSE_FS_ARCHIVE" = yes; then
5686             echo "$as_me:$LINENO: result: yes" >&5
5687 echo "${ECHO_T}yes" >&6
5688           else
5689             echo "$as_me:$LINENO: result: no" >&5
5690 echo "${ECHO_T}no" >&6
5691           fi
5692
5693
5694           enablestring=
5695           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5696 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5697           no_cache=0
5698           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5699 if test "${enable_fs_inet+set}" = set; then
5700   enableval="$enable_fs_inet"
5701
5702                           if test "$enableval" = yes; then
5703                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5704                           else
5705                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5706                           fi
5707
5708 else
5709
5710                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5711                           if test "x$LINE" != x ; then
5712                             eval "DEFAULT_$LINE"
5713                           else
5714                             no_cache=1
5715                           fi
5716
5717                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5718
5719 fi;
5720
5721           eval "$ac_cv_use_fs_inet"
5722           if test "$no_cache" != 1; then
5723             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5724           fi
5725
5726           if test "$wxUSE_FS_INET" = yes; then
5727             echo "$as_me:$LINENO: result: yes" >&5
5728 echo "${ECHO_T}yes" >&6
5729           else
5730             echo "$as_me:$LINENO: result: no" >&5
5731 echo "${ECHO_T}no" >&6
5732           fi
5733
5734
5735           enablestring=
5736           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5737 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5738           no_cache=0
5739           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5740 if test "${enable_fs_zip+set}" = set; then
5741   enableval="$enable_fs_zip"
5742
5743                           if test "$enableval" = yes; then
5744                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5745                           else
5746                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5747                           fi
5748
5749 else
5750
5751                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5752                           if test "x$LINE" != x ; then
5753                             eval "DEFAULT_$LINE"
5754                           else
5755                             no_cache=1
5756                           fi
5757
5758                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5759
5760 fi;
5761
5762           eval "$ac_cv_use_fs_zip"
5763           if test "$no_cache" != 1; then
5764             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5765           fi
5766
5767           if test "$wxUSE_FS_ZIP" = yes; then
5768             echo "$as_me:$LINENO: result: yes" >&5
5769 echo "${ECHO_T}yes" >&6
5770           else
5771             echo "$as_me:$LINENO: result: no" >&5
5772 echo "${ECHO_T}no" >&6
5773           fi
5774
5775
5776           enablestring=
5777           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5778 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5779           no_cache=0
5780           # Check whether --enable-geometry or --disable-geometry was given.
5781 if test "${enable_geometry+set}" = set; then
5782   enableval="$enable_geometry"
5783
5784                           if test "$enableval" = yes; then
5785                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5786                           else
5787                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5788                           fi
5789
5790 else
5791
5792                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5793                           if test "x$LINE" != x ; then
5794                             eval "DEFAULT_$LINE"
5795                           else
5796                             no_cache=1
5797                           fi
5798
5799                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5800
5801 fi;
5802
5803           eval "$ac_cv_use_geometry"
5804           if test "$no_cache" != 1; then
5805             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5806           fi
5807
5808           if test "$wxUSE_GEOMETRY" = yes; then
5809             echo "$as_me:$LINENO: result: yes" >&5
5810 echo "${ECHO_T}yes" >&6
5811           else
5812             echo "$as_me:$LINENO: result: no" >&5
5813 echo "${ECHO_T}no" >&6
5814           fi
5815
5816
5817           enablestring=
5818           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5819 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5820           no_cache=0
5821           # Check whether --enable-log or --disable-log was given.
5822 if test "${enable_log+set}" = set; then
5823   enableval="$enable_log"
5824
5825                           if test "$enableval" = yes; then
5826                             ac_cv_use_log='wxUSE_LOG=yes'
5827                           else
5828                             ac_cv_use_log='wxUSE_LOG=no'
5829                           fi
5830
5831 else
5832
5833                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5834                           if test "x$LINE" != x ; then
5835                             eval "DEFAULT_$LINE"
5836                           else
5837                             no_cache=1
5838                           fi
5839
5840                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5841
5842 fi;
5843
5844           eval "$ac_cv_use_log"
5845           if test "$no_cache" != 1; then
5846             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5847           fi
5848
5849           if test "$wxUSE_LOG" = yes; then
5850             echo "$as_me:$LINENO: result: yes" >&5
5851 echo "${ECHO_T}yes" >&6
5852           else
5853             echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6
5855           fi
5856
5857
5858           enablestring=
5859           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5860 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5861           no_cache=0
5862           # Check whether --enable-longlong or --disable-longlong was given.
5863 if test "${enable_longlong+set}" = set; then
5864   enableval="$enable_longlong"
5865
5866                           if test "$enableval" = yes; then
5867                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5868                           else
5869                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
5870                           fi
5871
5872 else
5873
5874                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5875                           if test "x$LINE" != x ; then
5876                             eval "DEFAULT_$LINE"
5877                           else
5878                             no_cache=1
5879                           fi
5880
5881                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5882
5883 fi;
5884
5885           eval "$ac_cv_use_longlong"
5886           if test "$no_cache" != 1; then
5887             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5888           fi
5889
5890           if test "$wxUSE_LONGLONG" = yes; then
5891             echo "$as_me:$LINENO: result: yes" >&5
5892 echo "${ECHO_T}yes" >&6
5893           else
5894             echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6
5896           fi
5897
5898
5899           enablestring=
5900           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5901 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5902           no_cache=0
5903           # Check whether --enable-mimetype or --disable-mimetype was given.
5904 if test "${enable_mimetype+set}" = set; then
5905   enableval="$enable_mimetype"
5906
5907                           if test "$enableval" = yes; then
5908                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5909                           else
5910                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5911                           fi
5912
5913 else
5914
5915                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5916                           if test "x$LINE" != x ; then
5917                             eval "DEFAULT_$LINE"
5918                           else
5919                             no_cache=1
5920                           fi
5921
5922                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5923
5924 fi;
5925
5926           eval "$ac_cv_use_mimetype"
5927           if test "$no_cache" != 1; then
5928             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5929           fi
5930
5931           if test "$wxUSE_MIMETYPE" = yes; then
5932             echo "$as_me:$LINENO: result: yes" >&5
5933 echo "${ECHO_T}yes" >&6
5934           else
5935             echo "$as_me:$LINENO: result: no" >&5
5936 echo "${ECHO_T}no" >&6
5937           fi
5938
5939
5940           enablestring=
5941           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5942 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5943           no_cache=0
5944           # Check whether --enable-mslu or --disable-mslu was given.
5945 if test "${enable_mslu+set}" = set; then
5946   enableval="$enable_mslu"
5947
5948                           if test "$enableval" = yes; then
5949                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5950                           else
5951                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5952                           fi
5953
5954 else
5955
5956                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5957                           if test "x$LINE" != x ; then
5958                             eval "DEFAULT_$LINE"
5959                           else
5960                             no_cache=1
5961                           fi
5962
5963                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5964
5965 fi;
5966
5967           eval "$ac_cv_use_mslu"
5968           if test "$no_cache" != 1; then
5969             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5970           fi
5971
5972           if test "$wxUSE_UNICODE_MSLU" = yes; then
5973             echo "$as_me:$LINENO: result: yes" >&5
5974 echo "${ECHO_T}yes" >&6
5975           else
5976             echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6
5978           fi
5979
5980
5981           enablestring=
5982           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5983 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5984           no_cache=0
5985           # Check whether --enable-snglinst or --disable-snglinst was given.
5986 if test "${enable_snglinst+set}" = set; then
5987   enableval="$enable_snglinst"
5988
5989                           if test "$enableval" = yes; then
5990                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5991                           else
5992                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5993                           fi
5994
5995 else
5996
5997                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5998                           if test "x$LINE" != x ; then
5999                             eval "DEFAULT_$LINE"
6000                           else
6001                             no_cache=1
6002                           fi
6003
6004                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
6005
6006 fi;
6007
6008           eval "$ac_cv_use_snglinst"
6009           if test "$no_cache" != 1; then
6010             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
6011           fi
6012
6013           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
6014             echo "$as_me:$LINENO: result: yes" >&5
6015 echo "${ECHO_T}yes" >&6
6016           else
6017             echo "$as_me:$LINENO: result: no" >&5
6018 echo "${ECHO_T}no" >&6
6019           fi
6020
6021
6022           enablestring=
6023           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
6024 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
6025           no_cache=0
6026           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
6027 if test "${enable_std_iostreams+set}" = set; then
6028   enableval="$enable_std_iostreams"
6029
6030                           if test "$enableval" = yes; then
6031                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
6032                           else
6033                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
6034                           fi
6035
6036 else
6037
6038                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
6039                           if test "x$LINE" != x ; then
6040                             eval "DEFAULT_$LINE"
6041                           else
6042                             no_cache=1
6043                           fi
6044
6045                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
6046
6047 fi;
6048
6049           eval "$ac_cv_use_std_iostreams"
6050           if test "$no_cache" != 1; then
6051             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
6052           fi
6053
6054           if test "$wxUSE_STD_IOSTREAM" = yes; then
6055             echo "$as_me:$LINENO: result: yes" >&5
6056 echo "${ECHO_T}yes" >&6
6057           else
6058             echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6
6060           fi
6061
6062
6063           enablestring=
6064           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
6065 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
6066           no_cache=0
6067           # Check whether --enable-std_string or --disable-std_string was given.
6068 if test "${enable_std_string+set}" = set; then
6069   enableval="$enable_std_string"
6070
6071                           if test "$enableval" = yes; then
6072                             ac_cv_use_std_string='wxUSE_STD_STRING=yes'
6073                           else
6074                             ac_cv_use_std_string='wxUSE_STD_STRING=no'
6075                           fi
6076
6077 else
6078
6079                           LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
6080                           if test "x$LINE" != x ; then
6081                             eval "DEFAULT_$LINE"
6082                           else
6083                             no_cache=1
6084                           fi
6085
6086                           ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
6087
6088 fi;
6089
6090           eval "$ac_cv_use_std_string"
6091           if test "$no_cache" != 1; then
6092             echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
6093           fi
6094
6095           if test "$wxUSE_STD_STRING" = yes; then
6096             echo "$as_me:$LINENO: result: yes" >&5
6097 echo "${ECHO_T}yes" >&6
6098           else
6099             echo "$as_me:$LINENO: result: no" >&5
6100 echo "${ECHO_T}no" >&6
6101           fi
6102
6103
6104           enablestring=
6105           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
6106 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
6107           no_cache=0
6108           # Check whether --enable-stdpaths or --disable-stdpaths was given.
6109 if test "${enable_stdpaths+set}" = set; then
6110   enableval="$enable_stdpaths"
6111
6112                           if test "$enableval" = yes; then
6113                             ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
6114                           else
6115                             ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
6116                           fi
6117
6118 else
6119
6120                           LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
6121                           if test "x$LINE" != x ; then
6122                             eval "DEFAULT_$LINE"
6123                           else
6124                             no_cache=1
6125                           fi
6126
6127                           ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
6128
6129 fi;
6130
6131           eval "$ac_cv_use_stdpaths"
6132           if test "$no_cache" != 1; then
6133             echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
6134           fi
6135
6136           if test "$wxUSE_STDPATHS" = yes; then
6137             echo "$as_me:$LINENO: result: yes" >&5
6138 echo "${ECHO_T}yes" >&6
6139           else
6140             echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6
6142           fi
6143
6144
6145           enablestring=
6146           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6147 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6148           no_cache=0
6149           # Check whether --enable-stopwatch or --disable-stopwatch was given.
6150 if test "${enable_stopwatch+set}" = set; then
6151   enableval="$enable_stopwatch"
6152
6153                           if test "$enableval" = yes; then
6154                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6155                           else
6156                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6157                           fi
6158
6159 else
6160
6161                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6162                           if test "x$LINE" != x ; then
6163                             eval "DEFAULT_$LINE"
6164                           else
6165                             no_cache=1
6166                           fi
6167
6168                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6169
6170 fi;
6171
6172           eval "$ac_cv_use_stopwatch"
6173           if test "$no_cache" != 1; then
6174             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6175           fi
6176
6177           if test "$wxUSE_STOPWATCH" = yes; then
6178             echo "$as_me:$LINENO: result: yes" >&5
6179 echo "${ECHO_T}yes" >&6
6180           else
6181             echo "$as_me:$LINENO: result: no" >&5
6182 echo "${ECHO_T}no" >&6
6183           fi
6184
6185
6186           enablestring=
6187           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6188 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6189           no_cache=0
6190           # Check whether --enable-streams or --disable-streams was given.
6191 if test "${enable_streams+set}" = set; then
6192   enableval="$enable_streams"
6193
6194                           if test "$enableval" = yes; then
6195                             ac_cv_use_streams='wxUSE_STREAMS=yes'
6196                           else
6197                             ac_cv_use_streams='wxUSE_STREAMS=no'
6198                           fi
6199
6200 else
6201
6202                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6203                           if test "x$LINE" != x ; then
6204                             eval "DEFAULT_$LINE"
6205                           else
6206                             no_cache=1
6207                           fi
6208
6209                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6210
6211 fi;
6212
6213           eval "$ac_cv_use_streams"
6214           if test "$no_cache" != 1; then
6215             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6216           fi
6217
6218           if test "$wxUSE_STREAMS" = yes; then
6219             echo "$as_me:$LINENO: result: yes" >&5
6220 echo "${ECHO_T}yes" >&6
6221           else
6222             echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6
6224           fi
6225
6226
6227           enablestring=
6228           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6229 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6230           no_cache=0
6231           # Check whether --enable-system_options or --disable-system_options was given.
6232 if test "${enable_system_options+set}" = set; then
6233   enableval="$enable_system_options"
6234
6235                           if test "$enableval" = yes; then
6236                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6237                           else
6238                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6239                           fi
6240
6241 else
6242
6243                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6244                           if test "x$LINE" != x ; then
6245                             eval "DEFAULT_$LINE"
6246                           else
6247                             no_cache=1
6248                           fi
6249
6250                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6251
6252 fi;
6253
6254           eval "$ac_cv_use_system_options"
6255           if test "$no_cache" != 1; then
6256             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6257           fi
6258
6259           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6260             echo "$as_me:$LINENO: result: yes" >&5
6261 echo "${ECHO_T}yes" >&6
6262           else
6263             echo "$as_me:$LINENO: result: no" >&5
6264 echo "${ECHO_T}no" >&6
6265           fi
6266
6267
6268           enablestring=
6269           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
6270 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6
6271           no_cache=0
6272           # Check whether --enable-tarstream or --disable-tarstream was given.
6273 if test "${enable_tarstream+set}" = set; then
6274   enableval="$enable_tarstream"
6275
6276                           if test "$enableval" = yes; then
6277                             ac_cv_use_tarstream='wxUSE_TARSTREAM=yes'
6278                           else
6279                             ac_cv_use_tarstream='wxUSE_TARSTREAM=no'
6280                           fi
6281
6282 else
6283
6284                           LINE=`grep "wxUSE_TARSTREAM" ${wx_arg_cache_file}`
6285                           if test "x$LINE" != x ; then
6286                             eval "DEFAULT_$LINE"
6287                           else
6288                             no_cache=1
6289                           fi
6290
6291                           ac_cv_use_tarstream='wxUSE_TARSTREAM='$DEFAULT_wxUSE_TARSTREAM
6292
6293 fi;
6294
6295           eval "$ac_cv_use_tarstream"
6296           if test "$no_cache" != 1; then
6297             echo $ac_cv_use_tarstream >> ${wx_arg_cache_file}.tmp
6298           fi
6299
6300           if test "$wxUSE_TARSTREAM" = yes; then
6301             echo "$as_me:$LINENO: result: yes" >&5
6302 echo "${ECHO_T}yes" >&6
6303           else
6304             echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6
6306           fi
6307
6308
6309           enablestring=
6310           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6311 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6312           no_cache=0
6313           # Check whether --enable-textbuf or --disable-textbuf was given.
6314 if test "${enable_textbuf+set}" = set; then
6315   enableval="$enable_textbuf"
6316
6317                           if test "$enableval" = yes; then
6318                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6319                           else
6320                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6321                           fi
6322
6323 else
6324
6325                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6326                           if test "x$LINE" != x ; then
6327                             eval "DEFAULT_$LINE"
6328                           else
6329                             no_cache=1
6330                           fi
6331
6332                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6333
6334 fi;
6335
6336           eval "$ac_cv_use_textbuf"
6337           if test "$no_cache" != 1; then
6338             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6339           fi
6340
6341           if test "$wxUSE_TEXTBUFFER" = yes; then
6342             echo "$as_me:$LINENO: result: yes" >&5
6343 echo "${ECHO_T}yes" >&6
6344           else
6345             echo "$as_me:$LINENO: result: no" >&5
6346 echo "${ECHO_T}no" >&6
6347           fi
6348
6349
6350           enablestring=
6351           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6352 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6353           no_cache=0
6354           # Check whether --enable-textfile or --disable-textfile was given.
6355 if test "${enable_textfile+set}" = set; then
6356   enableval="$enable_textfile"
6357
6358                           if test "$enableval" = yes; then
6359                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6360                           else
6361                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6362                           fi
6363
6364 else
6365
6366                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6367                           if test "x$LINE" != x ; then
6368                             eval "DEFAULT_$LINE"
6369                           else
6370                             no_cache=1
6371                           fi
6372
6373                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6374
6375 fi;
6376
6377           eval "$ac_cv_use_textfile"
6378           if test "$no_cache" != 1; then
6379             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6380           fi
6381
6382           if test "$wxUSE_TEXTFILE" = yes; then
6383             echo "$as_me:$LINENO: result: yes" >&5
6384 echo "${ECHO_T}yes" >&6
6385           else
6386             echo "$as_me:$LINENO: result: no" >&5
6387 echo "${ECHO_T}no" >&6
6388           fi
6389
6390
6391           enablestring=
6392           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6393 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6394           no_cache=0
6395           # Check whether --enable-timer or --disable-timer was given.
6396 if test "${enable_timer+set}" = set; then
6397   enableval="$enable_timer"
6398
6399                           if test "$enableval" = yes; then
6400                             ac_cv_use_timer='wxUSE_TIMER=yes'
6401                           else
6402                             ac_cv_use_timer='wxUSE_TIMER=no'
6403                           fi
6404
6405 else
6406
6407                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6408                           if test "x$LINE" != x ; then
6409                             eval "DEFAULT_$LINE"
6410                           else
6411                             no_cache=1
6412                           fi
6413
6414                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6415
6416 fi;
6417
6418           eval "$ac_cv_use_timer"
6419           if test "$no_cache" != 1; then
6420             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6421           fi
6422
6423           if test "$wxUSE_TIMER" = yes; then
6424             echo "$as_me:$LINENO: result: yes" >&5
6425 echo "${ECHO_T}yes" >&6
6426           else
6427             echo "$as_me:$LINENO: result: no" >&5
6428 echo "${ECHO_T}no" >&6
6429           fi
6430
6431
6432           enablestring=
6433           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6434 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6435           no_cache=0
6436           # Check whether --enable-unicode or --disable-unicode was given.
6437 if test "${enable_unicode+set}" = set; then
6438   enableval="$enable_unicode"
6439
6440                           if test "$enableval" = yes; then
6441                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
6442                           else
6443                             ac_cv_use_unicode='wxUSE_UNICODE=no'
6444                           fi
6445
6446 else
6447
6448                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6449                           if test "x$LINE" != x ; then
6450                             eval "DEFAULT_$LINE"
6451                           else
6452                             no_cache=1
6453                           fi
6454
6455                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6456
6457 fi;
6458
6459           eval "$ac_cv_use_unicode"
6460           if test "$no_cache" != 1; then
6461             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6462           fi
6463
6464           if test "$wxUSE_UNICODE" = yes; then
6465             echo "$as_me:$LINENO: result: yes" >&5
6466 echo "${ECHO_T}yes" >&6
6467           else
6468             echo "$as_me:$LINENO: result: no" >&5
6469 echo "${ECHO_T}no" >&6
6470           fi
6471
6472
6473           enablestring=
6474           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6475 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6476           no_cache=0
6477           # Check whether --enable-sound or --disable-sound was given.
6478 if test "${enable_sound+set}" = set; then
6479   enableval="$enable_sound"
6480
6481                           if test "$enableval" = yes; then
6482                             ac_cv_use_sound='wxUSE_SOUND=yes'
6483                           else
6484                             ac_cv_use_sound='wxUSE_SOUND=no'
6485                           fi
6486
6487 else
6488
6489                           LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6490                           if test "x$LINE" != x ; then
6491                             eval "DEFAULT_$LINE"
6492                           else
6493                             no_cache=1
6494                           fi
6495
6496                           ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6497
6498 fi;
6499
6500           eval "$ac_cv_use_sound"
6501           if test "$no_cache" != 1; then
6502             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6503           fi
6504
6505           if test "$wxUSE_SOUND" = yes; then
6506             echo "$as_me:$LINENO: result: yes" >&5
6507 echo "${ECHO_T}yes" >&6
6508           else
6509             echo "$as_me:$LINENO: result: no" >&5
6510 echo "${ECHO_T}no" >&6
6511           fi
6512
6513
6514           enablestring=
6515           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6516 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6517           no_cache=0
6518           # Check whether --enable-mediactrl or --disable-mediactrl was given.
6519 if test "${enable_mediactrl+set}" = set; then
6520   enableval="$enable_mediactrl"
6521
6522                           if test "$enableval" = yes; then
6523                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6524                           else
6525                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6526                           fi
6527
6528 else
6529
6530                           LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6531                           if test "x$LINE" != x ; then
6532                             eval "DEFAULT_$LINE"
6533                           else
6534                             no_cache=1
6535                           fi
6536
6537                           ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6538
6539 fi;
6540
6541           eval "$ac_cv_use_mediactrl"
6542           if test "$no_cache" != 1; then
6543             echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6544           fi
6545
6546           if test "$wxUSE_MEDIACTRL" = yes; then
6547             echo "$as_me:$LINENO: result: yes" >&5
6548 echo "${ECHO_T}yes" >&6
6549           else
6550             echo "$as_me:$LINENO: result: no" >&5
6551 echo "${ECHO_T}no" >&6
6552           fi
6553
6554
6555           enablestring=
6556           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6557 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6558           no_cache=0
6559           # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6560 if test "${enable_gstreamer8+set}" = set; then
6561   enableval="$enable_gstreamer8"
6562
6563                           if test "$enableval" = yes; then
6564                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6565                           else
6566                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6567                           fi
6568
6569 else
6570
6571                           LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6572                           if test "x$LINE" != x ; then
6573                             eval "DEFAULT_$LINE"
6574                           else
6575                             no_cache=1
6576                           fi
6577
6578                           ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6579
6580 fi;
6581
6582           eval "$ac_cv_use_gstreamer8"
6583           if test "$no_cache" != 1; then
6584             echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6585           fi
6586
6587           if test "$wxUSE_GSTREAMER8" = yes; then
6588             echo "$as_me:$LINENO: result: yes" >&5
6589 echo "${ECHO_T}yes" >&6
6590           else
6591             echo "$as_me:$LINENO: result: no" >&5
6592 echo "${ECHO_T}no" >&6
6593           fi
6594
6595
6596           enablestring=
6597           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6598 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
6599           no_cache=0
6600           # Check whether --enable-printfposparam or --disable-printfposparam was given.
6601 if test "${enable_printfposparam+set}" = set; then
6602   enableval="$enable_printfposparam"
6603
6604                           if test "$enableval" = yes; then
6605                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
6606                           else
6607                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
6608                           fi
6609
6610 else
6611
6612                           LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
6613                           if test "x$LINE" != x ; then
6614                             eval "DEFAULT_$LINE"
6615                           else
6616                             no_cache=1
6617                           fi
6618
6619                           ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
6620
6621 fi;
6622
6623           eval "$ac_cv_use_printfposparam"
6624           if test "$no_cache" != 1; then
6625             echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
6626           fi
6627
6628           if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
6629             echo "$as_me:$LINENO: result: yes" >&5
6630 echo "${ECHO_T}yes" >&6
6631           else
6632             echo "$as_me:$LINENO: result: no" >&5
6633 echo "${ECHO_T}no" >&6
6634           fi
6635
6636
6637           enablestring=
6638           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6639 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6640           no_cache=0
6641           # Check whether --enable-zipstream or --disable-zipstream was given.
6642 if test "${enable_zipstream+set}" = set; then
6643   enableval="$enable_zipstream"
6644
6645                           if test "$enableval" = yes; then
6646                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6647                           else
6648                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6649                           fi
6650
6651 else
6652
6653                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6654                           if test "x$LINE" != x ; then
6655                             eval "DEFAULT_$LINE"
6656                           else
6657                             no_cache=1
6658                           fi
6659
6660                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6661
6662 fi;
6663
6664           eval "$ac_cv_use_zipstream"
6665           if test "$no_cache" != 1; then
6666             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6667           fi
6668
6669           if test "$wxUSE_ZIPSTREAM" = yes; then
6670             echo "$as_me:$LINENO: result: yes" >&5
6671 echo "${ECHO_T}yes" >&6
6672           else
6673             echo "$as_me:$LINENO: result: no" >&5
6674 echo "${ECHO_T}no" >&6
6675           fi
6676
6677
6678
6679           enablestring=
6680           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6681 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6682           no_cache=0
6683           # Check whether --enable-url or --disable-url was given.
6684 if test "${enable_url+set}" = set; then
6685   enableval="$enable_url"
6686
6687                           if test "$enableval" = yes; then
6688                             ac_cv_use_url='wxUSE_URL=yes'
6689                           else
6690                             ac_cv_use_url='wxUSE_URL=no'
6691                           fi
6692
6693 else
6694
6695                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6696                           if test "x$LINE" != x ; then
6697                             eval "DEFAULT_$LINE"
6698                           else
6699                             no_cache=1
6700                           fi
6701
6702                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6703
6704 fi;
6705
6706           eval "$ac_cv_use_url"
6707           if test "$no_cache" != 1; then
6708             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6709           fi
6710
6711           if test "$wxUSE_URL" = yes; then
6712             echo "$as_me:$LINENO: result: yes" >&5
6713 echo "${ECHO_T}yes" >&6
6714           else
6715             echo "$as_me:$LINENO: result: no" >&5
6716 echo "${ECHO_T}no" >&6
6717           fi
6718
6719
6720           enablestring=
6721           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
6722 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
6723           no_cache=0
6724           # Check whether --enable-variant or --disable-variant was given.
6725 if test "${enable_variant+set}" = set; then
6726   enableval="$enable_variant"
6727
6728                           if test "$enableval" = yes; then
6729                             ac_cv_use_variant='wxUSE_VARIANT=yes'
6730                           else
6731                             ac_cv_use_variant='wxUSE_VARIANT=no'
6732                           fi
6733
6734 else
6735
6736                           LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
6737                           if test "x$LINE" != x ; then
6738                             eval "DEFAULT_$LINE"
6739                           else
6740                             no_cache=1
6741                           fi
6742
6743                           ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
6744
6745 fi;
6746
6747           eval "$ac_cv_use_variant"
6748           if test "$no_cache" != 1; then
6749             echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
6750           fi
6751
6752           if test "$wxUSE_VARIANT" = yes; then
6753             echo "$as_me:$LINENO: result: yes" >&5
6754 echo "${ECHO_T}yes" >&6
6755           else
6756             echo "$as_me:$LINENO: result: no" >&5
6757 echo "${ECHO_T}no" >&6
6758           fi
6759
6760
6761           enablestring=
6762           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6763 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6764           no_cache=0
6765           # Check whether --enable-protocol or --disable-protocol was given.
6766 if test "${enable_protocol+set}" = set; then
6767   enableval="$enable_protocol"
6768
6769                           if test "$enableval" = yes; then
6770                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6771                           else
6772                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6773                           fi
6774
6775 else
6776
6777                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6778                           if test "x$LINE" != x ; then
6779                             eval "DEFAULT_$LINE"
6780                           else
6781                             no_cache=1
6782                           fi
6783
6784                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6785
6786 fi;
6787
6788           eval "$ac_cv_use_protocol"
6789           if test "$no_cache" != 1; then
6790             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6791           fi
6792
6793           if test "$wxUSE_PROTOCOL" = yes; then
6794             echo "$as_me:$LINENO: result: yes" >&5
6795 echo "${ECHO_T}yes" >&6
6796           else
6797             echo "$as_me:$LINENO: result: no" >&5
6798 echo "${ECHO_T}no" >&6
6799           fi
6800
6801
6802           enablestring=
6803           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6804 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6805           no_cache=0
6806           # Check whether --enable-protocol_http or --disable-protocol_http was given.
6807 if test "${enable_protocol_http+set}" = set; then
6808   enableval="$enable_protocol_http"
6809
6810                           if test "$enableval" = yes; then
6811                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6812                           else
6813                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6814                           fi
6815
6816 else
6817
6818                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6819                           if test "x$LINE" != x ; then
6820                             eval "DEFAULT_$LINE"
6821                           else
6822                             no_cache=1
6823                           fi
6824
6825                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6826
6827 fi;
6828
6829           eval "$ac_cv_use_protocol_http"
6830           if test "$no_cache" != 1; then
6831             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6832           fi
6833
6834           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6835             echo "$as_me:$LINENO: result: yes" >&5
6836 echo "${ECHO_T}yes" >&6
6837           else
6838             echo "$as_me:$LINENO: result: no" >&5
6839 echo "${ECHO_T}no" >&6
6840           fi
6841
6842
6843           enablestring=
6844           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6845 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6846           no_cache=0
6847           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6848 if test "${enable_protocol_ftp+set}" = set; then
6849   enableval="$enable_protocol_ftp"
6850
6851                           if test "$enableval" = yes; then
6852                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6853                           else
6854                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6855                           fi
6856
6857 else
6858
6859                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6860                           if test "x$LINE" != x ; then
6861                             eval "DEFAULT_$LINE"
6862                           else
6863                             no_cache=1
6864                           fi
6865
6866                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6867
6868 fi;
6869
6870           eval "$ac_cv_use_protocol_ftp"
6871           if test "$no_cache" != 1; then
6872             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6873           fi
6874
6875           if test "$wxUSE_PROTOCOL_FTP" = yes; then
6876             echo "$as_me:$LINENO: result: yes" >&5
6877 echo "${ECHO_T}yes" >&6
6878           else
6879             echo "$as_me:$LINENO: result: no" >&5
6880 echo "${ECHO_T}no" >&6
6881           fi
6882
6883
6884           enablestring=
6885           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6886 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6887           no_cache=0
6888           # Check whether --enable-protocol_file or --disable-protocol_file was given.
6889 if test "${enable_protocol_file+set}" = set; then
6890   enableval="$enable_protocol_file"
6891
6892                           if test "$enableval" = yes; then
6893                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6894                           else
6895                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6896                           fi
6897
6898 else
6899
6900                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6901                           if test "x$LINE" != x ; then
6902                             eval "DEFAULT_$LINE"
6903                           else
6904                             no_cache=1
6905                           fi
6906
6907                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6908
6909 fi;
6910
6911           eval "$ac_cv_use_protocol_file"
6912           if test "$no_cache" != 1; then
6913             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6914           fi
6915
6916           if test "$wxUSE_PROTOCOL_FILE" = yes; then
6917             echo "$as_me:$LINENO: result: yes" >&5
6918 echo "${ECHO_T}yes" >&6
6919           else
6920             echo "$as_me:$LINENO: result: no" >&5
6921 echo "${ECHO_T}no" >&6
6922           fi
6923
6924
6925
6926
6927
6928           enablestring=
6929           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6930 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6931           no_cache=0
6932           # Check whether --enable-threads or --disable-threads was given.
6933 if test "${enable_threads+set}" = set; then
6934   enableval="$enable_threads"
6935
6936                           if test "$enableval" = yes; then
6937                             ac_cv_use_threads='wxUSE_THREADS=yes'
6938                           else
6939                             ac_cv_use_threads='wxUSE_THREADS=no'
6940                           fi
6941
6942 else
6943
6944                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6945                           if test "x$LINE" != x ; then
6946                             eval "DEFAULT_$LINE"
6947                           else
6948                             no_cache=1
6949                           fi
6950
6951                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6952
6953 fi;
6954
6955           eval "$ac_cv_use_threads"
6956           if test "$no_cache" != 1; then
6957             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6958           fi
6959
6960           if test "$wxUSE_THREADS" = yes; then
6961             echo "$as_me:$LINENO: result: yes" >&5
6962 echo "${ECHO_T}yes" >&6
6963           else
6964             echo "$as_me:$LINENO: result: no" >&5
6965 echo "${ECHO_T}no" >&6
6966           fi
6967
6968
6969 if test "$wxUSE_GUI" = "yes"; then
6970
6971
6972
6973           enablestring=
6974           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6975 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6976           no_cache=0
6977           # Check whether --enable-docview or --disable-docview was given.
6978 if test "${enable_docview+set}" = set; then
6979   enableval="$enable_docview"
6980
6981                           if test "$enableval" = yes; then
6982                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6983                           else
6984                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6985                           fi
6986
6987 else
6988
6989                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6990                           if test "x$LINE" != x ; then
6991                             eval "DEFAULT_$LINE"
6992                           else
6993                             no_cache=1
6994                           fi
6995
6996                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6997
6998 fi;
6999
7000           eval "$ac_cv_use_docview"
7001           if test "$no_cache" != 1; then
7002             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
7003           fi
7004
7005           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
7006             echo "$as_me:$LINENO: result: yes" >&5
7007 echo "${ECHO_T}yes" >&6
7008           else
7009             echo "$as_me:$LINENO: result: no" >&5
7010 echo "${ECHO_T}no" >&6
7011           fi
7012
7013
7014           enablestring=
7015           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
7016 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
7017           no_cache=0
7018           # Check whether --enable-help or --disable-help was given.
7019 if test "${enable_help+set}" = set; then
7020   enableval="$enable_help"
7021
7022                           if test "$enableval" = yes; then
7023                             ac_cv_use_help='wxUSE_HELP=yes'
7024                           else
7025                             ac_cv_use_help='wxUSE_HELP=no'
7026                           fi
7027
7028 else
7029
7030                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
7031                           if test "x$LINE" != x ; then
7032                             eval "DEFAULT_$LINE"
7033                           else
7034                             no_cache=1
7035                           fi
7036
7037                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
7038
7039 fi;
7040
7041           eval "$ac_cv_use_help"
7042           if test "$no_cache" != 1; then
7043             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
7044           fi
7045
7046           if test "$wxUSE_HELP" = yes; then
7047             echo "$as_me:$LINENO: result: yes" >&5
7048 echo "${ECHO_T}yes" >&6
7049           else
7050             echo "$as_me:$LINENO: result: no" >&5
7051 echo "${ECHO_T}no" >&6
7052           fi
7053
7054
7055           enablestring=
7056           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
7057 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
7058           no_cache=0
7059           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
7060 if test "${enable_mshtmlhelp+set}" = set; then
7061   enableval="$enable_mshtmlhelp"
7062
7063                           if test "$enableval" = yes; then
7064                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
7065                           else
7066                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
7067                           fi
7068
7069 else
7070
7071                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
7072                           if test "x$LINE" != x ; then
7073                             eval "DEFAULT_$LINE"
7074                           else
7075                             no_cache=1
7076                           fi
7077
7078                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
7079
7080 fi;
7081
7082           eval "$ac_cv_use_mshtmlhelp"
7083           if test "$no_cache" != 1; then
7084             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
7085           fi
7086
7087           if test "$wxUSE_MS_HTML_HELP" = yes; then
7088             echo "$as_me:$LINENO: result: yes" >&5
7089 echo "${ECHO_T}yes" >&6
7090           else
7091             echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6
7093           fi
7094
7095
7096           enablestring=
7097           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7098 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7099           no_cache=0
7100           # Check whether --enable-html or --disable-html was given.
7101 if test "${enable_html+set}" = set; then
7102   enableval="$enable_html"
7103
7104                           if test "$enableval" = yes; then
7105                             ac_cv_use_html='wxUSE_HTML=yes'
7106                           else
7107                             ac_cv_use_html='wxUSE_HTML=no'
7108                           fi
7109
7110 else
7111
7112                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
7113                           if test "x$LINE" != x ; then
7114                             eval "DEFAULT_$LINE"
7115                           else
7116                             no_cache=1
7117                           fi
7118
7119                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
7120
7121 fi;
7122
7123           eval "$ac_cv_use_html"
7124           if test "$no_cache" != 1; then
7125             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7126           fi
7127
7128           if test "$wxUSE_HTML" = yes; then
7129             echo "$as_me:$LINENO: result: yes" >&5
7130 echo "${ECHO_T}yes" >&6
7131           else
7132             echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6
7134           fi
7135
7136
7137           enablestring=
7138           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
7139 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
7140           no_cache=0
7141           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
7142 if test "${enable_htmlhelp+set}" = set; then
7143   enableval="$enable_htmlhelp"
7144
7145                           if test "$enableval" = yes; then
7146                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
7147                           else
7148                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
7149                           fi
7150
7151 else
7152
7153                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
7154                           if test "x$LINE" != x ; then
7155                             eval "DEFAULT_$LINE"
7156                           else
7157                             no_cache=1
7158                           fi
7159
7160                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
7161
7162 fi;
7163
7164           eval "$ac_cv_use_htmlhelp"
7165           if test "$no_cache" != 1; then
7166             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7167           fi
7168
7169           if test "$wxUSE_WXHTML_HELP" = yes; then
7170             echo "$as_me:$LINENO: result: yes" >&5
7171 echo "${ECHO_T}yes" >&6
7172           else
7173             echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6
7175           fi
7176
7177
7178           enablestring=
7179           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7180 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
7181           no_cache=0
7182           # Check whether --enable-xrc or --disable-xrc was given.
7183 if test "${enable_xrc+set}" = set; then
7184   enableval="$enable_xrc"
7185
7186                           if test "$enableval" = yes; then
7187                             ac_cv_use_xrc='wxUSE_XRC=yes'
7188                           else
7189                             ac_cv_use_xrc='wxUSE_XRC=no'
7190                           fi
7191
7192 else
7193
7194                           LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7195                           if test "x$LINE" != x ; then
7196                             eval "DEFAULT_$LINE"
7197                           else
7198                             no_cache=1
7199                           fi
7200
7201                           ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7202
7203 fi;
7204
7205           eval "$ac_cv_use_xrc"
7206           if test "$no_cache" != 1; then
7207             echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7208           fi
7209
7210           if test "$wxUSE_XRC" = yes; then
7211             echo "$as_me:$LINENO: result: yes" >&5
7212 echo "${ECHO_T}yes" >&6
7213           else
7214             echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6
7216           fi
7217
7218
7219           enablestring=
7220           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7221 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7222           no_cache=0
7223           # Check whether --enable-aui or --disable-aui was given.
7224 if test "${enable_aui+set}" = set; then
7225   enableval="$enable_aui"
7226
7227                           if test "$enableval" = yes; then
7228                             ac_cv_use_aui='wxUSE_AUI=yes'
7229                           else
7230                             ac_cv_use_aui='wxUSE_AUI=no'
7231                           fi
7232
7233 else
7234
7235                           LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7236                           if test "x$LINE" != x ; then
7237                             eval "DEFAULT_$LINE"
7238                           else
7239                             no_cache=1
7240                           fi
7241
7242                           ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7243
7244 fi;
7245
7246           eval "$ac_cv_use_aui"
7247           if test "$no_cache" != 1; then
7248             echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7249           fi
7250
7251           if test "$wxUSE_AUI" = yes; then
7252             echo "$as_me:$LINENO: result: yes" >&5
7253 echo "${ECHO_T}yes" >&6
7254           else
7255             echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6
7257           fi
7258
7259
7260           enablestring=
7261           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7262 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7263           no_cache=0
7264           # Check whether --enable-constraints or --disable-constraints was given.
7265 if test "${enable_constraints+set}" = set; then
7266   enableval="$enable_constraints"
7267
7268                           if test "$enableval" = yes; then
7269                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7270                           else
7271                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7272                           fi
7273
7274 else
7275
7276                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7277                           if test "x$LINE" != x ; then
7278                             eval "DEFAULT_$LINE"
7279                           else
7280                             no_cache=1
7281                           fi
7282
7283                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7284
7285 fi;
7286
7287           eval "$ac_cv_use_constraints"
7288           if test "$no_cache" != 1; then
7289             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7290           fi
7291
7292           if test "$wxUSE_CONSTRAINTS" = yes; then
7293             echo "$as_me:$LINENO: result: yes" >&5
7294 echo "${ECHO_T}yes" >&6
7295           else
7296             echo "$as_me:$LINENO: result: no" >&5
7297 echo "${ECHO_T}no" >&6
7298           fi
7299
7300
7301           enablestring=
7302           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7303 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7304           no_cache=0
7305           # Check whether --enable-printarch or --disable-printarch was given.
7306 if test "${enable_printarch+set}" = set; then
7307   enableval="$enable_printarch"
7308
7309                           if test "$enableval" = yes; then
7310                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7311                           else
7312                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7313                           fi
7314
7315 else
7316
7317                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7318                           if test "x$LINE" != x ; then
7319                             eval "DEFAULT_$LINE"
7320                           else
7321                             no_cache=1
7322                           fi
7323
7324                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7325
7326 fi;
7327
7328           eval "$ac_cv_use_printarch"
7329           if test "$no_cache" != 1; then
7330             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7331           fi
7332
7333           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7334             echo "$as_me:$LINENO: result: yes" >&5
7335 echo "${ECHO_T}yes" >&6
7336           else
7337             echo "$as_me:$LINENO: result: no" >&5
7338 echo "${ECHO_T}no" >&6
7339           fi
7340
7341
7342           enablestring=
7343           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7344 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7345           no_cache=0
7346           # Check whether --enable-mdi or --disable-mdi was given.
7347 if test "${enable_mdi+set}" = set; then
7348   enableval="$enable_mdi"
7349
7350                           if test "$enableval" = yes; then
7351                             ac_cv_use_mdi='wxUSE_MDI=yes'
7352                           else
7353                             ac_cv_use_mdi='wxUSE_MDI=no'
7354                           fi
7355
7356 else
7357
7358                           LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
7359                           if test "x$LINE" != x ; then
7360                             eval "DEFAULT_$LINE"
7361                           else
7362                             no_cache=1
7363                           fi
7364
7365                           ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
7366
7367 fi;
7368
7369           eval "$ac_cv_use_mdi"
7370           if test "$no_cache" != 1; then
7371             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7372           fi
7373
7374           if test "$wxUSE_MDI" = yes; then
7375             echo "$as_me:$LINENO: result: yes" >&5
7376 echo "${ECHO_T}yes" >&6
7377           else
7378             echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6
7380           fi
7381
7382
7383           enablestring=
7384           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7385 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7386           no_cache=0
7387           # Check whether --enable-mdidoc or --disable-mdidoc was given.
7388 if test "${enable_mdidoc+set}" = set; then
7389   enableval="$enable_mdidoc"
7390
7391                           if test "$enableval" = yes; then
7392                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7393                           else
7394                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7395                           fi
7396
7397 else
7398
7399                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7400                           if test "x$LINE" != x ; then
7401                             eval "DEFAULT_$LINE"
7402                           else
7403                             no_cache=1
7404                           fi
7405
7406                           ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7407
7408 fi;
7409
7410           eval "$ac_cv_use_mdidoc"
7411           if test "$no_cache" != 1; then
7412             echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7413           fi
7414
7415           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7416             echo "$as_me:$LINENO: result: yes" >&5
7417 echo "${ECHO_T}yes" >&6
7418           else
7419             echo "$as_me:$LINENO: result: no" >&5
7420 echo "${ECHO_T}no" >&6
7421           fi
7422
7423
7424           enablestring=
7425           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7426 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7427           no_cache=0
7428           # Check whether --enable-loggui or --disable-loggui was given.
7429 if test "${enable_loggui+set}" = set; then
7430   enableval="$enable_loggui"
7431
7432                           if test "$enableval" = yes; then
7433                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7434                           else
7435                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
7436                           fi
7437
7438 else
7439
7440                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7441                           if test "x$LINE" != x ; then
7442                             eval "DEFAULT_$LINE"
7443                           else
7444                             no_cache=1
7445                           fi
7446
7447                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7448
7449 fi;
7450
7451           eval "$ac_cv_use_loggui"
7452           if test "$no_cache" != 1; then
7453             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7454           fi
7455
7456           if test "$wxUSE_LOGGUI" = yes; then
7457             echo "$as_me:$LINENO: result: yes" >&5
7458 echo "${ECHO_T}yes" >&6
7459           else
7460             echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6
7462           fi
7463
7464
7465           enablestring=
7466           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7467 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7468           no_cache=0
7469           # Check whether --enable-logwin or --disable-logwin was given.
7470 if test "${enable_logwin+set}" = set; then
7471   enableval="$enable_logwin"
7472
7473                           if test "$enableval" = yes; then
7474                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7475                           else
7476                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7477                           fi
7478
7479 else
7480
7481                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7482                           if test "x$LINE" != x ; then
7483                             eval "DEFAULT_$LINE"
7484                           else
7485                             no_cache=1
7486                           fi
7487
7488                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7489
7490 fi;
7491
7492           eval "$ac_cv_use_logwin"
7493           if test "$no_cache" != 1; then
7494             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7495           fi
7496
7497           if test "$wxUSE_LOGWINDOW" = yes; then
7498             echo "$as_me:$LINENO: result: yes" >&5
7499 echo "${ECHO_T}yes" >&6
7500           else
7501             echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6
7503           fi
7504
7505
7506           enablestring=
7507           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7508 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7509           no_cache=0
7510           # Check whether --enable-logdialog or --disable-logdialog was given.
7511 if test "${enable_logdialog+set}" = set; then
7512   enableval="$enable_logdialog"
7513
7514                           if test "$enableval" = yes; then
7515                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7516                           else
7517                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7518                           fi
7519
7520 else
7521
7522                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7523                           if test "x$LINE" != x ; then
7524                             eval "DEFAULT_$LINE"
7525                           else
7526                             no_cache=1
7527                           fi
7528
7529                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7530
7531 fi;
7532
7533           eval "$ac_cv_use_logdialog"
7534           if test "$no_cache" != 1; then
7535             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7536           fi
7537
7538           if test "$wxUSE_LOGDIALOG" = yes; then
7539             echo "$as_me:$LINENO: result: yes" >&5
7540 echo "${ECHO_T}yes" >&6
7541           else
7542             echo "$as_me:$LINENO: result: no" >&5
7543 echo "${ECHO_T}no" >&6
7544           fi
7545
7546
7547           enablestring=
7548           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7549 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7550           no_cache=0
7551           # Check whether --enable-webkit or --disable-webkit was given.
7552 if test "${enable_webkit+set}" = set; then
7553   enableval="$enable_webkit"
7554
7555                           if test "$enableval" = yes; then
7556                             ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7557                           else
7558                             ac_cv_use_webkit='wxUSE_WEBKIT=no'
7559                           fi
7560
7561 else
7562
7563                           LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7564                           if test "x$LINE" != x ; then
7565                             eval "DEFAULT_$LINE"
7566                           else
7567                             no_cache=1
7568                           fi
7569
7570                           ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7571
7572 fi;
7573
7574           eval "$ac_cv_use_webkit"
7575           if test "$no_cache" != 1; then
7576             echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7577           fi
7578
7579           if test "$wxUSE_WEBKIT" = yes; then
7580             echo "$as_me:$LINENO: result: yes" >&5
7581 echo "${ECHO_T}yes" >&6
7582           else
7583             echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6
7585           fi
7586
7587
7588           enablestring=
7589           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
7590 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6
7591           no_cache=0
7592           # Check whether --enable-richtext or --disable-richtext was given.
7593 if test "${enable_richtext+set}" = set; then
7594   enableval="$enable_richtext"
7595
7596                           if test "$enableval" = yes; then
7597                             ac_cv_use_richtext='wxUSE_RICHTEXT=yes'
7598                           else
7599                             ac_cv_use_richtext='wxUSE_RICHTEXT=no'
7600                           fi
7601
7602 else
7603
7604                           LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7605                           if test "x$LINE" != x ; then
7606                             eval "DEFAULT_$LINE"
7607                           else
7608                             no_cache=1
7609                           fi
7610
7611                           ac_cv_use_richtext='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7612
7613 fi;
7614
7615           eval "$ac_cv_use_richtext"
7616           if test "$no_cache" != 1; then
7617             echo $ac_cv_use_richtext >> ${wx_arg_cache_file}.tmp
7618           fi
7619
7620           if test "$wxUSE_RICHTEXT" = yes; then
7621             echo "$as_me:$LINENO: result: yes" >&5
7622 echo "${ECHO_T}yes" >&6
7623           else
7624             echo "$as_me:$LINENO: result: no" >&5
7625 echo "${ECHO_T}no" >&6
7626           fi
7627
7628
7629           enablestring=
7630           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
7631 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6
7632           no_cache=0
7633           # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given.
7634 if test "${enable_graphics_ctx+set}" = set; then
7635   enableval="$enable_graphics_ctx"
7636
7637                           if test "$enableval" = yes; then
7638                             ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
7639                           else
7640                             ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
7641                           fi
7642
7643 else
7644
7645                           LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}`
7646                           if test "x$LINE" != x ; then
7647                             eval "DEFAULT_$LINE"
7648                           else
7649                             no_cache=1
7650                           fi
7651
7652                           ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
7653
7654 fi;
7655
7656           eval "$ac_cv_use_graphics_ctx"
7657           if test "$no_cache" != 1; then
7658             echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
7659           fi
7660
7661           if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
7662             echo "$as_me:$LINENO: result: yes" >&5
7663 echo "${ECHO_T}yes" >&6
7664           else
7665             echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6
7667           fi
7668
7669
7670
7671           enablestring=
7672           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7673 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7674           no_cache=0
7675           # Check whether --enable-postscript or --disable-postscript was given.
7676 if test "${enable_postscript+set}" = set; then
7677   enableval="$enable_postscript"
7678
7679                           if test "$enableval" = yes; then
7680                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7681                           else
7682                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7683                           fi
7684
7685 else
7686
7687                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7688                           if test "x$LINE" != x ; then
7689                             eval "DEFAULT_$LINE"
7690                           else
7691                             no_cache=1
7692                           fi
7693
7694                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7695
7696 fi;
7697
7698           eval "$ac_cv_use_postscript"
7699           if test "$no_cache" != 1; then
7700             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7701           fi
7702
7703           if test "$wxUSE_POSTSCRIPT" = yes; then
7704             echo "$as_me:$LINENO: result: yes" >&5
7705 echo "${ECHO_T}yes" >&6
7706           else
7707             echo "$as_me:$LINENO: result: no" >&5
7708 echo "${ECHO_T}no" >&6
7709           fi
7710
7711
7712
7713
7714
7715           enablestring=
7716           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7717 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7718           no_cache=0
7719           # Check whether --enable-prologio or --disable-prologio was given.
7720 if test "${enable_prologio+set}" = set; then
7721   enableval="$enable_prologio"
7722
7723                           if test "$enableval" = yes; then
7724                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7725                           else
7726                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7727                           fi
7728
7729 else
7730
7731                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7732                           if test "x$LINE" != x ; then
7733                             eval "DEFAULT_$LINE"
7734                           else
7735                             no_cache=1
7736                           fi
7737
7738                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7739
7740 fi;
7741
7742           eval "$ac_cv_use_prologio"
7743           if test "$no_cache" != 1; then
7744             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7745           fi
7746
7747           if test "$wxUSE_PROLOGIO" = yes; then
7748             echo "$as_me:$LINENO: result: yes" >&5
7749 echo "${ECHO_T}yes" >&6
7750           else
7751             echo "$as_me:$LINENO: result: no" >&5
7752 echo "${ECHO_T}no" >&6
7753           fi
7754
7755
7756           enablestring=
7757           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7758 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7759           no_cache=0
7760           # Check whether --enable-resources or --disable-resources was given.
7761 if test "${enable_resources+set}" = set; then
7762   enableval="$enable_resources"
7763
7764                           if test "$enableval" = yes; then
7765                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
7766                           else
7767                             ac_cv_use_resources='wxUSE_RESOURCES=no'
7768                           fi
7769
7770 else
7771
7772                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7773                           if test "x$LINE" != x ; then
7774                             eval "DEFAULT_$LINE"
7775                           else
7776                             no_cache=1
7777                           fi
7778
7779                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7780
7781 fi;
7782
7783           eval "$ac_cv_use_resources"
7784           if test "$no_cache" != 1; then
7785             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7786           fi
7787
7788           if test "$wxUSE_RESOURCES" = yes; then
7789             echo "$as_me:$LINENO: result: yes" >&5
7790 echo "${ECHO_T}yes" >&6
7791           else
7792             echo "$as_me:$LINENO: result: no" >&5
7793 echo "${ECHO_T}no" >&6
7794           fi
7795
7796
7797
7798
7799           enablestring=
7800           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7801 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7802           no_cache=0
7803           # Check whether --enable-clipboard or --disable-clipboard was given.
7804 if test "${enable_clipboard+set}" = set; then
7805   enableval="$enable_clipboard"
7806
7807                           if test "$enableval" = yes; then
7808                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7809                           else
7810                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7811                           fi
7812
7813 else
7814
7815                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7816                           if test "x$LINE" != x ; then
7817                             eval "DEFAULT_$LINE"
7818                           else
7819                             no_cache=1
7820                           fi
7821
7822                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7823
7824 fi;
7825
7826           eval "$ac_cv_use_clipboard"
7827           if test "$no_cache" != 1; then
7828             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7829           fi
7830
7831           if test "$wxUSE_CLIPBOARD" = yes; then
7832             echo "$as_me:$LINENO: result: yes" >&5
7833 echo "${ECHO_T}yes" >&6
7834           else
7835             echo "$as_me:$LINENO: result: no" >&5
7836 echo "${ECHO_T}no" >&6
7837           fi
7838
7839
7840           enablestring=
7841           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7842 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7843           no_cache=0
7844           # Check whether --enable-dnd or --disable-dnd was given.
7845 if test "${enable_dnd+set}" = set; then
7846   enableval="$enable_dnd"
7847
7848                           if test "$enableval" = yes; then
7849                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7850                           else
7851                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7852                           fi
7853
7854 else
7855
7856                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7857                           if test "x$LINE" != x ; then
7858                             eval "DEFAULT_$LINE"
7859                           else
7860                             no_cache=1
7861                           fi
7862
7863                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7864
7865 fi;
7866
7867           eval "$ac_cv_use_dnd"
7868           if test "$no_cache" != 1; then
7869             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7870           fi
7871
7872           if test "$wxUSE_DRAG_AND_DROP" = yes; then
7873             echo "$as_me:$LINENO: result: yes" >&5
7874 echo "${ECHO_T}yes" >&6
7875           else
7876             echo "$as_me:$LINENO: result: no" >&5
7877 echo "${ECHO_T}no" >&6
7878           fi
7879
7880
7881           enablestring=
7882           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7883 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7884           no_cache=0
7885           # Check whether --enable-metafile or --disable-metafile was given.
7886 if test "${enable_metafile+set}" = set; then
7887   enableval="$enable_metafile"
7888
7889                           if test "$enableval" = yes; then
7890                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
7891                           else
7892                             ac_cv_use_metafile='wxUSE_METAFILE=no'
7893                           fi
7894
7895 else
7896
7897                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7898                           if test "x$LINE" != x ; then
7899                             eval "DEFAULT_$LINE"
7900                           else
7901                             no_cache=1
7902                           fi
7903
7904                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7905
7906 fi;
7907
7908           eval "$ac_cv_use_metafile"
7909           if test "$no_cache" != 1; then
7910             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7911           fi
7912
7913           if test "$wxUSE_METAFILE" = yes; then
7914             echo "$as_me:$LINENO: result: yes" >&5
7915 echo "${ECHO_T}yes" >&6
7916           else
7917             echo "$as_me:$LINENO: result: no" >&5
7918 echo "${ECHO_T}no" >&6
7919           fi
7920
7921
7922
7923
7924
7925           enablestring=
7926           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7927 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7928           no_cache=0
7929           # Check whether --enable-controls or --disable-controls was given.
7930 if test "${enable_controls+set}" = set; then
7931   enableval="$enable_controls"
7932
7933                           if test "$enableval" = yes; then
7934                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
7935                           else
7936                             ac_cv_use_controls='wxUSE_CONTROLS=no'
7937                           fi
7938
7939 else
7940
7941                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7942                           if test "x$LINE" != x ; then
7943                             eval "DEFAULT_$LINE"
7944                           else
7945                             no_cache=1
7946                           fi
7947
7948                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7949
7950 fi;
7951
7952           eval "$ac_cv_use_controls"
7953           if test "$no_cache" != 1; then
7954             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7955           fi
7956
7957           if test "$wxUSE_CONTROLS" = yes; then
7958             echo "$as_me:$LINENO: result: yes" >&5
7959 echo "${ECHO_T}yes" >&6
7960           else
7961             echo "$as_me:$LINENO: result: no" >&5
7962 echo "${ECHO_T}no" >&6
7963           fi
7964
7965
7966 if test "$wxUSE_CONTROLS" = "yes"; then
7967   DEFAULT_wxUSE_ACCEL=yes
7968   DEFAULT_wxUSE_ANIMATIONCTRL=yes
7969   DEFAULT_wxUSE_BMPBUTTON=yes
7970   DEFAULT_wxUSE_BUTTON=yes
7971   DEFAULT_wxUSE_CALCTRL=yes
7972   DEFAULT_wxUSE_CARET=yes
7973   DEFAULT_wxUSE_COMBOBOX=yes
7974   DEFAULT_wxUSE_CHECKBOX=yes
7975   DEFAULT_wxUSE_CHECKLISTBOX=yes
7976   DEFAULT_wxUSE_CHOICE=yes
7977   DEFAULT_wxUSE_CHOICEBOOK=yes
7978   DEFAULT_wxUSE_COLLPANE=yes
7979   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7980   DEFAULT_wxUSE_COMBOBOX=yes
7981   DEFAULT_wxUSE_DATEPICKCTRL=yes
7982   DEFAULT_wxUSE_DISPLAY=yes
7983   DEFAULT_wxUSE_DETECT_SM=yes
7984   DEFAULT_wxUSE_DIRPICKERCTRL=yes
7985   DEFAULT_wxUSE_FILEPICKERCTRL=yes
7986   DEFAULT_wxUSE_FONTPICKERCTRL=yes
7987   DEFAULT_wxUSE_GAUGE=yes
7988   DEFAULT_wxUSE_GRID=yes
7989   DEFAULT_wxUSE_HYPERLINKCTRL=yes
7990   DEFAULT_wxUSE_DATAVIEWCTRL=no
7991   DEFAULT_wxUSE_IMAGLIST=yes
7992   DEFAULT_wxUSE_LISTBOOK=yes
7993   DEFAULT_wxUSE_LISTBOX=yes
7994   DEFAULT_wxUSE_LISTCTRL=yes
7995   DEFAULT_wxUSE_NOTEBOOK=yes
7996   DEFAULT_wxUSE_RADIOBOX=yes
7997   DEFAULT_wxUSE_RADIOBTN=yes
7998   DEFAULT_wxUSE_SASH=yes
7999   DEFAULT_wxUSE_SCROLLBAR=yes
8000   DEFAULT_wxUSE_SLIDER=yes
8001   DEFAULT_wxUSE_SPINBTN=yes
8002   DEFAULT_wxUSE_SPINCTRL=yes
8003   DEFAULT_wxUSE_SPLITTER=yes
8004   DEFAULT_wxUSE_STATBMP=yes
8005   DEFAULT_wxUSE_STATBOX=yes
8006   DEFAULT_wxUSE_STATLINE=yes
8007   DEFAULT_wxUSE_STATUSBAR=yes
8008   DEFAULT_wxUSE_TAB_DIALOG=yes
8009   DEFAULT_wxUSE_TOGGLEBTN=yes
8010   DEFAULT_wxUSE_TOOLBAR=yes
8011   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
8012   DEFAULT_wxUSE_TOOLTIPS=yes
8013   DEFAULT_wxUSE_TREEBOOK=yes
8014   DEFAULT_wxUSE_TOOLBOOK=yes
8015   DEFAULT_wxUSE_TREECTRL=yes
8016   DEFAULT_wxUSE_POPUPWIN=yes
8017   DEFAULT_wxUSE_TIPWINDOW=yes
8018 elif test "$wxUSE_CONTROLS" = "no"; then
8019   DEFAULT_wxUSE_ACCEL=no
8020   DEFAULT_wxUSE_ANIMATIONCTRL=no
8021   DEFAULT_wxUSE_BMPBUTTON=no
8022   DEFAULT_wxUSE_BUTTON=no
8023   DEFAULT_wxUSE_CALCTRL=no
8024   DEFAULT_wxUSE_CARET=no
8025   DEFAULT_wxUSE_COLLPANE=no
8026   DEFAULT_wxUSE_COMBOBOX=no
8027   DEFAULT_wxUSE_CHECKBOX=no
8028   DEFAULT_wxUSE_CHECKLISTBOX=no
8029   DEFAULT_wxUSE_CHOICE=no
8030   DEFAULT_wxUSE_CHOICEBOOK=no
8031   DEFAULT_wxUSE_COLOURPICKERCTRL=no
8032   DEFAULT_wxUSE_COMBOBOX=no
8033   DEFAULT_wxUSE_DATEPICKCTRL=no
8034   DEFAULT_wxUSE_DISPLAY=no
8035   DEFAULT_wxUSE_DETECT_SM=no
8036   DEFAULT_wxUSE_DIRPICKERCTRL=no
8037   DEFAULT_wxUSE_FILEPICKERCTRL=no
8038   DEFAULT_wxUSE_FONTPICKERCTRL=no
8039   DEFAULT_wxUSE_GAUGE=no
8040   DEFAULT_wxUSE_GRID=no
8041   DEFAULT_wxUSE_HYPERLINKCTRL=no
8042   DEFAULT_wxUSE_DATAVIEWCTRL=no
8043   DEFAULT_wxUSE_IMAGLIST=no
8044   DEFAULT_wxUSE_LISTBOOK=no
8045   DEFAULT_wxUSE_LISTBOX=no
8046   DEFAULT_wxUSE_LISTCTRL=no
8047   DEFAULT_wxUSE_NOTEBOOK=no
8048   DEFAULT_wxUSE_RADIOBOX=no
8049   DEFAULT_wxUSE_RADIOBTN=no
8050   DEFAULT_wxUSE_SASH=no
8051   DEFAULT_wxUSE_SCROLLBAR=no
8052   DEFAULT_wxUSE_SLIDER=no
8053   DEFAULT_wxUSE_SPINBTN=no
8054   DEFAULT_wxUSE_SPINCTRL=no
8055   DEFAULT_wxUSE_SPLITTER=no
8056   DEFAULT_wxUSE_STATBMP=no
8057   DEFAULT_wxUSE_STATBOX=no
8058   DEFAULT_wxUSE_STATLINE=no
8059   DEFAULT_wxUSE_STATUSBAR=no
8060   DEFAULT_wxUSE_TAB_DIALOG=no
8061   DEFAULT_wxUSE_TOGGLEBTN=no
8062   DEFAULT_wxUSE_TOOLBAR=no
8063   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
8064   DEFAULT_wxUSE_TOOLTIPS=no
8065   DEFAULT_wxUSE_TREEBOOK=no
8066   DEFAULT_wxUSE_TOOLBOOK=no
8067   DEFAULT_wxUSE_TREECTRL=no
8068   DEFAULT_wxUSE_POPUPWIN=no
8069   DEFAULT_wxUSE_TIPWINDOW=no
8070 fi
8071
8072
8073           enablestring=
8074           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
8075 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
8076           no_cache=0
8077           # Check whether --enable-accel or --disable-accel was given.
8078 if test "${enable_accel+set}" = set; then
8079   enableval="$enable_accel"
8080
8081                           if test "$enableval" = yes; then
8082                             ac_cv_use_accel='wxUSE_ACCEL=yes'
8083                           else
8084                             ac_cv_use_accel='wxUSE_ACCEL=no'
8085                           fi
8086
8087 else
8088
8089                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
8090                           if test "x$LINE" != x ; then
8091                             eval "DEFAULT_$LINE"
8092                           else
8093                             no_cache=1
8094                           fi
8095
8096                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
8097
8098 fi;
8099
8100           eval "$ac_cv_use_accel"
8101           if test "$no_cache" != 1; then
8102             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
8103           fi
8104
8105           if test "$wxUSE_ACCEL" = yes; then
8106             echo "$as_me:$LINENO: result: yes" >&5
8107 echo "${ECHO_T}yes" >&6
8108           else
8109             echo "$as_me:$LINENO: result: no" >&5
8110 echo "${ECHO_T}no" >&6
8111           fi
8112
8113
8114           enablestring=
8115           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
8116 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6
8117           no_cache=0
8118           # Check whether --enable-animatectrl or --disable-animatectrl was given.
8119 if test "${enable_animatectrl+set}" = set; then
8120   enableval="$enable_animatectrl"
8121
8122                           if test "$enableval" = yes; then
8123                             ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
8124                           else
8125                             ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
8126                           fi
8127
8128 else
8129
8130                           LINE=`grep "wxUSE_ANIMATIONCTRL" ${wx_arg_cache_file}`
8131                           if test "x$LINE" != x ; then
8132                             eval "DEFAULT_$LINE"
8133                           else
8134                             no_cache=1
8135                           fi
8136
8137                           ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL
8138
8139 fi;
8140
8141           eval "$ac_cv_use_animatectrl"
8142           if test "$no_cache" != 1; then
8143             echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
8144           fi
8145
8146           if test "$wxUSE_ANIMATIONCTRL" = yes; then
8147             echo "$as_me:$LINENO: result: yes" >&5
8148 echo "${ECHO_T}yes" >&6
8149           else
8150             echo "$as_me:$LINENO: result: no" >&5
8151 echo "${ECHO_T}no" >&6
8152           fi
8153
8154
8155           enablestring=
8156           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
8157 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
8158           no_cache=0
8159           # Check whether --enable-button or --disable-button was given.
8160 if test "${enable_button+set}" = set; then
8161   enableval="$enable_button"
8162
8163                           if test "$enableval" = yes; then
8164                             ac_cv_use_button='wxUSE_BUTTON=yes'
8165                           else
8166                             ac_cv_use_button='wxUSE_BUTTON=no'
8167                           fi
8168
8169 else
8170
8171                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
8172                           if test "x$LINE" != x ; then
8173                             eval "DEFAULT_$LINE"
8174                           else
8175                             no_cache=1
8176                           fi
8177
8178                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
8179
8180 fi;
8181
8182           eval "$ac_cv_use_button"
8183           if test "$no_cache" != 1; then
8184             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
8185           fi
8186
8187           if test "$wxUSE_BUTTON" = yes; then
8188             echo "$as_me:$LINENO: result: yes" >&5
8189 echo "${ECHO_T}yes" >&6
8190           else
8191             echo "$as_me:$LINENO: result: no" >&5
8192 echo "${ECHO_T}no" >&6
8193           fi
8194
8195
8196           enablestring=
8197           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
8198 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
8199           no_cache=0
8200           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
8201 if test "${enable_bmpbutton+set}" = set; then
8202   enableval="$enable_bmpbutton"
8203
8204                           if test "$enableval" = yes; then
8205                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
8206                           else
8207                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
8208                           fi
8209
8210 else
8211
8212                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
8213                           if test "x$LINE" != x ; then
8214                             eval "DEFAULT_$LINE"
8215                           else
8216                             no_cache=1
8217                           fi
8218
8219                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
8220
8221 fi;
8222
8223           eval "$ac_cv_use_bmpbutton"
8224           if test "$no_cache" != 1; then
8225             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
8226           fi
8227
8228           if test "$wxUSE_BMPBUTTON" = yes; then
8229             echo "$as_me:$LINENO: result: yes" >&5
8230 echo "${ECHO_T}yes" >&6
8231           else
8232             echo "$as_me:$LINENO: result: no" >&5
8233 echo "${ECHO_T}no" >&6
8234           fi
8235
8236
8237           enablestring=
8238           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
8239 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
8240           no_cache=0
8241           # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
8242 if test "${enable_bmpcombobox+set}" = set; then
8243   enableval="$enable_bmpcombobox"
8244
8245                           if test "$enableval" = yes; then
8246                             ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
8247                           else
8248                             ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
8249                           fi
8250
8251 else
8252
8253                           LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8254                           if test "x$LINE" != x ; then
8255                             eval "DEFAULT_$LINE"
8256                           else
8257                             no_cache=1
8258                           fi
8259
8260                           ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8261
8262 fi;
8263
8264           eval "$ac_cv_use_bmpcombobox"
8265           if test "$no_cache" != 1; then
8266             echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8267           fi
8268
8269           if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
8270             echo "$as_me:$LINENO: result: yes" >&5
8271 echo "${ECHO_T}yes" >&6
8272           else
8273             echo "$as_me:$LINENO: result: no" >&5
8274 echo "${ECHO_T}no" >&6
8275           fi
8276
8277
8278           enablestring=
8279           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8280 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
8281           no_cache=0
8282           # Check whether --enable-calendar or --disable-calendar was given.
8283 if test "${enable_calendar+set}" = set; then
8284   enableval="$enable_calendar"
8285
8286                           if test "$enableval" = yes; then
8287                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
8288                           else
8289                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
8290                           fi
8291
8292 else
8293
8294                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8295                           if test "x$LINE" != x ; then
8296                             eval "DEFAULT_$LINE"
8297                           else
8298                             no_cache=1
8299                           fi
8300
8301                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8302
8303 fi;
8304
8305           eval "$ac_cv_use_calendar"
8306           if test "$no_cache" != 1; then
8307             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
8308           fi
8309
8310           if test "$wxUSE_CALCTRL" = yes; then
8311             echo "$as_me:$LINENO: result: yes" >&5
8312 echo "${ECHO_T}yes" >&6
8313           else
8314             echo "$as_me:$LINENO: result: no" >&5
8315 echo "${ECHO_T}no" >&6
8316           fi
8317
8318
8319           enablestring=
8320           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
8321 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
8322           no_cache=0
8323           # Check whether --enable-caret or --disable-caret was given.
8324 if test "${enable_caret+set}" = set; then
8325   enableval="$enable_caret"
8326
8327                           if test "$enableval" = yes; then
8328                             ac_cv_use_caret='wxUSE_CARET=yes'
8329                           else
8330                             ac_cv_use_caret='wxUSE_CARET=no'
8331                           fi
8332
8333 else
8334
8335                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
8336                           if test "x$LINE" != x ; then
8337                             eval "DEFAULT_$LINE"
8338                           else
8339                             no_cache=1
8340                           fi
8341
8342                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
8343
8344 fi;
8345
8346           eval "$ac_cv_use_caret"
8347           if test "$no_cache" != 1; then
8348             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8349           fi
8350
8351           if test "$wxUSE_CARET" = yes; then
8352             echo "$as_me:$LINENO: result: yes" >&5
8353 echo "${ECHO_T}yes" >&6
8354           else
8355             echo "$as_me:$LINENO: result: no" >&5
8356 echo "${ECHO_T}no" >&6
8357           fi
8358
8359
8360           enablestring=
8361           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8362 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8363           no_cache=0
8364           # Check whether --enable-checkbox or --disable-checkbox was given.
8365 if test "${enable_checkbox+set}" = set; then
8366   enableval="$enable_checkbox"
8367
8368                           if test "$enableval" = yes; then
8369                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8370                           else
8371                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8372                           fi
8373
8374 else
8375
8376                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8377                           if test "x$LINE" != x ; then
8378                             eval "DEFAULT_$LINE"
8379                           else
8380                             no_cache=1
8381                           fi
8382
8383                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8384
8385 fi;
8386
8387           eval "$ac_cv_use_checkbox"
8388           if test "$no_cache" != 1; then
8389             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8390           fi
8391
8392           if test "$wxUSE_CHECKBOX" = yes; then
8393             echo "$as_me:$LINENO: result: yes" >&5
8394 echo "${ECHO_T}yes" >&6
8395           else
8396             echo "$as_me:$LINENO: result: no" >&5
8397 echo "${ECHO_T}no" >&6
8398           fi
8399
8400
8401           enablestring=
8402           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8403 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8404           no_cache=0
8405           # Check whether --enable-checklst or --disable-checklst was given.
8406 if test "${enable_checklst+set}" = set; then
8407   enableval="$enable_checklst"
8408
8409                           if test "$enableval" = yes; then
8410                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8411                           else
8412                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
8413                           fi
8414
8415 else
8416
8417                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8418                           if test "x$LINE" != x ; then
8419                             eval "DEFAULT_$LINE"
8420                           else
8421                             no_cache=1
8422                           fi
8423
8424                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8425
8426 fi;
8427
8428           eval "$ac_cv_use_checklst"
8429           if test "$no_cache" != 1; then
8430             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8431           fi
8432
8433           if test "$wxUSE_CHECKLST" = yes; then
8434             echo "$as_me:$LINENO: result: yes" >&5
8435 echo "${ECHO_T}yes" >&6
8436           else
8437             echo "$as_me:$LINENO: result: no" >&5
8438 echo "${ECHO_T}no" >&6
8439           fi
8440
8441
8442           enablestring=
8443           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8444 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8445           no_cache=0
8446           # Check whether --enable-choice or --disable-choice was given.
8447 if test "${enable_choice+set}" = set; then
8448   enableval="$enable_choice"
8449
8450                           if test "$enableval" = yes; then
8451                             ac_cv_use_choice='wxUSE_CHOICE=yes'
8452                           else
8453                             ac_cv_use_choice='wxUSE_CHOICE=no'
8454                           fi
8455
8456 else
8457
8458                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8459                           if test "x$LINE" != x ; then
8460                             eval "DEFAULT_$LINE"
8461                           else
8462                             no_cache=1
8463                           fi
8464
8465                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8466
8467 fi;
8468
8469           eval "$ac_cv_use_choice"
8470           if test "$no_cache" != 1; then
8471             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8472           fi
8473
8474           if test "$wxUSE_CHOICE" = yes; then
8475             echo "$as_me:$LINENO: result: yes" >&5
8476 echo "${ECHO_T}yes" >&6
8477           else
8478             echo "$as_me:$LINENO: result: no" >&5
8479 echo "${ECHO_T}no" >&6
8480           fi
8481
8482
8483           enablestring=
8484           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8485 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8486           no_cache=0
8487           # Check whether --enable-choicebook or --disable-choicebook was given.
8488 if test "${enable_choicebook+set}" = set; then
8489   enableval="$enable_choicebook"
8490
8491                           if test "$enableval" = yes; then
8492                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8493                           else
8494                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8495                           fi
8496
8497 else
8498
8499                           LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8500                           if test "x$LINE" != x ; then
8501                             eval "DEFAULT_$LINE"
8502                           else
8503                             no_cache=1
8504                           fi
8505
8506                           ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8507
8508 fi;
8509
8510           eval "$ac_cv_use_choicebook"
8511           if test "$no_cache" != 1; then
8512             echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8513           fi
8514
8515           if test "$wxUSE_CHOICEBOOK" = yes; then
8516             echo "$as_me:$LINENO: result: yes" >&5
8517 echo "${ECHO_T}yes" >&6
8518           else
8519             echo "$as_me:$LINENO: result: no" >&5
8520 echo "${ECHO_T}no" >&6
8521           fi
8522
8523
8524           enablestring=
8525           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
8526 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6
8527           no_cache=0
8528           # Check whether --enable-collpane or --disable-collpane was given.
8529 if test "${enable_collpane+set}" = set; then
8530   enableval="$enable_collpane"
8531
8532                           if test "$enableval" = yes; then
8533                             ac_cv_use_collpane='wxUSE_COLLPANE=yes'
8534                           else
8535                             ac_cv_use_collpane='wxUSE_COLLPANE=no'
8536                           fi
8537
8538 else
8539
8540                           LINE=`grep "wxUSE_COLLPANE" ${wx_arg_cache_file}`
8541                           if test "x$LINE" != x ; then
8542                             eval "DEFAULT_$LINE"
8543                           else
8544                             no_cache=1
8545                           fi
8546
8547                           ac_cv_use_collpane='wxUSE_COLLPANE='$DEFAULT_wxUSE_COLLPANE
8548
8549 fi;
8550
8551           eval "$ac_cv_use_collpane"
8552           if test "$no_cache" != 1; then
8553             echo $ac_cv_use_collpane >> ${wx_arg_cache_file}.tmp
8554           fi
8555
8556           if test "$wxUSE_COLLPANE" = yes; then
8557             echo "$as_me:$LINENO: result: yes" >&5
8558 echo "${ECHO_T}yes" >&6
8559           else
8560             echo "$as_me:$LINENO: result: no" >&5
8561 echo "${ECHO_T}no" >&6
8562           fi
8563
8564
8565           enablestring=
8566           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8567 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8568           no_cache=0
8569           # Check whether --enable-colourpicker or --disable-colourpicker was given.
8570 if test "${enable_colourpicker+set}" = set; then
8571   enableval="$enable_colourpicker"
8572
8573                           if test "$enableval" = yes; then
8574                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8575                           else
8576                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8577                           fi
8578
8579 else
8580
8581                           LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8582                           if test "x$LINE" != x ; then
8583                             eval "DEFAULT_$LINE"
8584                           else
8585                             no_cache=1
8586                           fi
8587
8588                           ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8589
8590 fi;
8591
8592           eval "$ac_cv_use_colourpicker"
8593           if test "$no_cache" != 1; then
8594             echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8595           fi
8596
8597           if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8598             echo "$as_me:$LINENO: result: yes" >&5
8599 echo "${ECHO_T}yes" >&6
8600           else
8601             echo "$as_me:$LINENO: result: no" >&5
8602 echo "${ECHO_T}no" >&6
8603           fi
8604
8605
8606           enablestring=
8607           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8608 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8609           no_cache=0
8610           # Check whether --enable-combobox or --disable-combobox was given.
8611 if test "${enable_combobox+set}" = set; then
8612   enableval="$enable_combobox"
8613
8614                           if test "$enableval" = yes; then
8615                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8616                           else
8617                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8618                           fi
8619
8620 else
8621
8622                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8623                           if test "x$LINE" != x ; then
8624                             eval "DEFAULT_$LINE"
8625                           else
8626                             no_cache=1
8627                           fi
8628
8629                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8630
8631 fi;
8632
8633           eval "$ac_cv_use_combobox"
8634           if test "$no_cache" != 1; then
8635             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8636           fi
8637
8638           if test "$wxUSE_COMBOBOX" = yes; then
8639             echo "$as_me:$LINENO: result: yes" >&5
8640 echo "${ECHO_T}yes" >&6
8641           else
8642             echo "$as_me:$LINENO: result: no" >&5
8643 echo "${ECHO_T}no" >&6
8644           fi
8645
8646
8647           enablestring=
8648           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8649 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
8650           no_cache=0
8651           # Check whether --enable-comboctrl or --disable-comboctrl was given.
8652 if test "${enable_comboctrl+set}" = set; then
8653   enableval="$enable_comboctrl"
8654
8655                           if test "$enableval" = yes; then
8656                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
8657                           else
8658                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
8659                           fi
8660
8661 else
8662
8663                           LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
8664                           if test "x$LINE" != x ; then
8665                             eval "DEFAULT_$LINE"
8666                           else
8667                             no_cache=1
8668                           fi
8669
8670                           ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
8671
8672 fi;
8673
8674           eval "$ac_cv_use_comboctrl"
8675           if test "$no_cache" != 1; then
8676             echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
8677           fi
8678
8679           if test "$wxUSE_COMBOCTRL" = yes; then
8680             echo "$as_me:$LINENO: result: yes" >&5
8681 echo "${ECHO_T}yes" >&6
8682           else
8683             echo "$as_me:$LINENO: result: no" >&5
8684 echo "${ECHO_T}no" >&6
8685           fi
8686
8687
8688           enablestring=
8689           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8690 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8691           no_cache=0
8692           # Check whether --enable-datepick or --disable-datepick was given.
8693 if test "${enable_datepick+set}" = set; then
8694   enableval="$enable_datepick"
8695
8696                           if test "$enableval" = yes; then
8697                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8698                           else
8699                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8700                           fi
8701
8702 else
8703
8704                           LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8705                           if test "x$LINE" != x ; then
8706                             eval "DEFAULT_$LINE"
8707                           else
8708                             no_cache=1
8709                           fi
8710
8711                           ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8712
8713 fi;
8714
8715           eval "$ac_cv_use_datepick"
8716           if test "$no_cache" != 1; then
8717             echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8718           fi
8719
8720           if test "$wxUSE_DATEPICKCTRL" = yes; then
8721             echo "$as_me:$LINENO: result: yes" >&5
8722 echo "${ECHO_T}yes" >&6
8723           else
8724             echo "$as_me:$LINENO: result: no" >&5
8725 echo "${ECHO_T}no" >&6
8726           fi
8727
8728
8729           enablestring=
8730           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8731 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8732           no_cache=0
8733           # Check whether --enable-dirpicker or --disable-dirpicker was given.
8734 if test "${enable_dirpicker+set}" = set; then
8735   enableval="$enable_dirpicker"
8736
8737                           if test "$enableval" = yes; then
8738                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8739                           else
8740                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8741                           fi
8742
8743 else
8744
8745                           LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8746                           if test "x$LINE" != x ; then
8747                             eval "DEFAULT_$LINE"
8748                           else
8749                             no_cache=1
8750                           fi
8751
8752                           ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8753
8754 fi;
8755
8756           eval "$ac_cv_use_dirpicker"
8757           if test "$no_cache" != 1; then
8758             echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8759           fi
8760
8761           if test "$wxUSE_DIRPICKERCTRL" = yes; then
8762             echo "$as_me:$LINENO: result: yes" >&5
8763 echo "${ECHO_T}yes" >&6
8764           else
8765             echo "$as_me:$LINENO: result: no" >&5
8766 echo "${ECHO_T}no" >&6
8767           fi
8768
8769
8770           enablestring=
8771           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8772 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8773           no_cache=0
8774           # Check whether --enable-display or --disable-display was given.
8775 if test "${enable_display+set}" = set; then
8776   enableval="$enable_display"
8777
8778                           if test "$enableval" = yes; then
8779                             ac_cv_use_display='wxUSE_DISPLAY=yes'
8780                           else
8781                             ac_cv_use_display='wxUSE_DISPLAY=no'
8782                           fi
8783
8784 else
8785
8786                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8787                           if test "x$LINE" != x ; then
8788                             eval "DEFAULT_$LINE"
8789                           else
8790                             no_cache=1
8791                           fi
8792
8793                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8794
8795 fi;
8796
8797           eval "$ac_cv_use_display"
8798           if test "$no_cache" != 1; then
8799             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8800           fi
8801
8802           if test "$wxUSE_DISPLAY" = yes; then
8803             echo "$as_me:$LINENO: result: yes" >&5
8804 echo "${ECHO_T}yes" >&6
8805           else
8806             echo "$as_me:$LINENO: result: no" >&5
8807 echo "${ECHO_T}no" >&6
8808           fi
8809
8810
8811           enablestring=
8812           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
8813 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6
8814           no_cache=0
8815           # Check whether --enable-detect_sm or --disable-detect_sm was given.
8816 if test "${enable_detect_sm+set}" = set; then
8817   enableval="$enable_detect_sm"
8818
8819                           if test "$enableval" = yes; then
8820                             ac_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
8821                           else
8822                             ac_cv_use_detect_sm='wxUSE_DETECT_SM=no'
8823                           fi
8824
8825 else
8826
8827                           LINE=`grep "wxUSE_DETECT_SM" ${wx_arg_cache_file}`
8828                           if test "x$LINE" != x ; then
8829                             eval "DEFAULT_$LINE"
8830                           else
8831                             no_cache=1
8832                           fi
8833
8834                           ac_cv_use_detect_sm='wxUSE_DETECT_SM='$DEFAULT_wxUSE_DETECT_SM
8835
8836 fi;
8837
8838           eval "$ac_cv_use_detect_sm"
8839           if test "$no_cache" != 1; then
8840             echo $ac_cv_use_detect_sm >> ${wx_arg_cache_file}.tmp
8841           fi
8842
8843           if test "$wxUSE_DETECT_SM" = yes; then
8844             echo "$as_me:$LINENO: result: yes" >&5
8845 echo "${ECHO_T}yes" >&6
8846           else
8847             echo "$as_me:$LINENO: result: no" >&5
8848 echo "${ECHO_T}no" >&6
8849           fi
8850
8851
8852           enablestring=
8853           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8854 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8855           no_cache=0
8856           # Check whether --enable-filepicker or --disable-filepicker was given.
8857 if test "${enable_filepicker+set}" = set; then
8858   enableval="$enable_filepicker"
8859
8860                           if test "$enableval" = yes; then
8861                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8862                           else
8863                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8864                           fi
8865
8866 else
8867
8868                           LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8869                           if test "x$LINE" != x ; then
8870                             eval "DEFAULT_$LINE"
8871                           else
8872                             no_cache=1
8873                           fi
8874
8875                           ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8876
8877 fi;
8878
8879           eval "$ac_cv_use_filepicker"
8880           if test "$no_cache" != 1; then
8881             echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8882           fi
8883
8884           if test "$wxUSE_FILEPICKERCTRL" = yes; then
8885             echo "$as_me:$LINENO: result: yes" >&5
8886 echo "${ECHO_T}yes" >&6
8887           else
8888             echo "$as_me:$LINENO: result: no" >&5
8889 echo "${ECHO_T}no" >&6
8890           fi
8891
8892
8893           enablestring=
8894           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8895 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8896           no_cache=0
8897           # Check whether --enable-fontpicker or --disable-fontpicker was given.
8898 if test "${enable_fontpicker+set}" = set; then
8899   enableval="$enable_fontpicker"
8900
8901                           if test "$enableval" = yes; then
8902                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8903                           else
8904                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8905                           fi
8906
8907 else
8908
8909                           LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8910                           if test "x$LINE" != x ; then
8911                             eval "DEFAULT_$LINE"
8912                           else
8913                             no_cache=1
8914                           fi
8915
8916                           ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8917
8918 fi;
8919
8920           eval "$ac_cv_use_fontpicker"
8921           if test "$no_cache" != 1; then
8922             echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8923           fi
8924
8925           if test "$wxUSE_FONTPICKERCTRL" = yes; then
8926             echo "$as_me:$LINENO: result: yes" >&5
8927 echo "${ECHO_T}yes" >&6
8928           else
8929             echo "$as_me:$LINENO: result: no" >&5
8930 echo "${ECHO_T}no" >&6
8931           fi
8932
8933
8934           enablestring=
8935           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8936 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8937           no_cache=0
8938           # Check whether --enable-gauge or --disable-gauge was given.
8939 if test "${enable_gauge+set}" = set; then
8940   enableval="$enable_gauge"
8941
8942                           if test "$enableval" = yes; then
8943                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
8944                           else
8945                             ac_cv_use_gauge='wxUSE_GAUGE=no'
8946                           fi
8947
8948 else
8949
8950                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8951                           if test "x$LINE" != x ; then
8952                             eval "DEFAULT_$LINE"
8953                           else
8954                             no_cache=1
8955                           fi
8956
8957                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8958
8959 fi;
8960
8961           eval "$ac_cv_use_gauge"
8962           if test "$no_cache" != 1; then
8963             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8964           fi
8965
8966           if test "$wxUSE_GAUGE" = yes; then
8967             echo "$as_me:$LINENO: result: yes" >&5
8968 echo "${ECHO_T}yes" >&6
8969           else
8970             echo "$as_me:$LINENO: result: no" >&5
8971 echo "${ECHO_T}no" >&6
8972           fi
8973
8974
8975           enablestring=
8976           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8977 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8978           no_cache=0
8979           # Check whether --enable-grid or --disable-grid was given.
8980 if test "${enable_grid+set}" = set; then
8981   enableval="$enable_grid"
8982
8983                           if test "$enableval" = yes; then
8984                             ac_cv_use_grid='wxUSE_GRID=yes'
8985                           else
8986                             ac_cv_use_grid='wxUSE_GRID=no'
8987                           fi
8988
8989 else
8990
8991                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8992                           if test "x$LINE" != x ; then
8993                             eval "DEFAULT_$LINE"
8994                           else
8995                             no_cache=1
8996                           fi
8997
8998                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8999
9000 fi;
9001
9002           eval "$ac_cv_use_grid"
9003           if test "$no_cache" != 1; then
9004             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
9005           fi
9006
9007           if test "$wxUSE_GRID" = yes; then
9008             echo "$as_me:$LINENO: result: yes" >&5
9009 echo "${ECHO_T}yes" >&6
9010           else
9011             echo "$as_me:$LINENO: result: no" >&5
9012 echo "${ECHO_T}no" >&6
9013           fi
9014
9015
9016           enablestring=
9017           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
9018 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
9019           no_cache=0
9020           # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
9021 if test "${enable_dataviewctrl+set}" = set; then
9022   enableval="$enable_dataviewctrl"
9023
9024                           if test "$enableval" = yes; then
9025                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
9026                           else
9027                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
9028                           fi
9029
9030 else
9031
9032                           LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
9033                           if test "x$LINE" != x ; then
9034                             eval "DEFAULT_$LINE"
9035                           else
9036                             no_cache=1
9037                           fi
9038
9039                           ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
9040
9041 fi;
9042
9043           eval "$ac_cv_use_dataviewctrl"
9044           if test "$no_cache" != 1; then
9045             echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
9046           fi
9047
9048           if test "$wxUSE_DATAVIEWCTRL" = yes; then
9049             echo "$as_me:$LINENO: result: yes" >&5
9050 echo "${ECHO_T}yes" >&6
9051           else
9052             echo "$as_me:$LINENO: result: no" >&5
9053 echo "${ECHO_T}no" >&6
9054           fi
9055
9056
9057           enablestring=
9058           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
9059 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
9060           no_cache=0
9061           # Check whether --enable-hyperlink or --disable-hyperlink was given.
9062 if test "${enable_hyperlink+set}" = set; then
9063   enableval="$enable_hyperlink"
9064
9065                           if test "$enableval" = yes; then
9066                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
9067                           else
9068                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
9069                           fi
9070
9071 else
9072
9073                           LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
9074                           if test "x$LINE" != x ; then
9075                             eval "DEFAULT_$LINE"
9076                           else
9077                             no_cache=1
9078                           fi
9079
9080                           ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
9081
9082 fi;
9083
9084           eval "$ac_cv_use_hyperlink"
9085           if test "$no_cache" != 1; then
9086             echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
9087           fi
9088
9089           if test "$wxUSE_HYPERLINKCTRL" = yes; then
9090             echo "$as_me:$LINENO: result: yes" >&5
9091 echo "${ECHO_T}yes" >&6
9092           else
9093             echo "$as_me:$LINENO: result: no" >&5
9094 echo "${ECHO_T}no" >&6
9095           fi
9096
9097
9098           enablestring=
9099           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
9100 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
9101           no_cache=0
9102           # Check whether --enable-imaglist or --disable-imaglist was given.
9103 if test "${enable_imaglist+set}" = set; then
9104   enableval="$enable_imaglist"
9105
9106                           if test "$enableval" = yes; then
9107                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
9108                           else
9109                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
9110                           fi
9111
9112 else
9113
9114                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
9115                           if test "x$LINE" != x ; then
9116                             eval "DEFAULT_$LINE"
9117                           else
9118                             no_cache=1
9119                           fi
9120
9121                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
9122
9123 fi;
9124
9125           eval "$ac_cv_use_imaglist"
9126           if test "$no_cache" != 1; then
9127             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
9128           fi
9129
9130           if test "$wxUSE_IMAGLIST" = yes; then
9131             echo "$as_me:$LINENO: result: yes" >&5
9132 echo "${ECHO_T}yes" >&6
9133           else
9134             echo "$as_me:$LINENO: result: no" >&5
9135 echo "${ECHO_T}no" >&6
9136           fi
9137
9138
9139           enablestring=
9140           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
9141 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
9142           no_cache=0
9143           # Check whether --enable-listbook or --disable-listbook was given.
9144 if test "${enable_listbook+set}" = set; then
9145   enableval="$enable_listbook"
9146
9147                           if test "$enableval" = yes; then
9148                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
9149                           else
9150                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
9151                           fi
9152
9153 else
9154
9155                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
9156                           if test "x$LINE" != x ; then
9157                             eval "DEFAULT_$LINE"
9158                           else
9159                             no_cache=1
9160                           fi
9161
9162                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
9163
9164 fi;
9165
9166           eval "$ac_cv_use_listbook"
9167           if test "$no_cache" != 1; then
9168             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
9169           fi
9170
9171           if test "$wxUSE_LISTBOOK" = yes; then
9172             echo "$as_me:$LINENO: result: yes" >&5
9173 echo "${ECHO_T}yes" >&6
9174           else
9175             echo "$as_me:$LINENO: result: no" >&5
9176 echo "${ECHO_T}no" >&6
9177           fi
9178
9179
9180           enablestring=
9181           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
9182 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
9183           no_cache=0
9184           # Check whether --enable-listbox or --disable-listbox was given.
9185 if test "${enable_listbox+set}" = set; then
9186   enableval="$enable_listbox"
9187
9188                           if test "$enableval" = yes; then
9189                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
9190                           else
9191                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
9192                           fi
9193
9194 else
9195
9196                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
9197                           if test "x$LINE" != x ; then
9198                             eval "DEFAULT_$LINE"
9199                           else
9200                             no_cache=1
9201                           fi
9202
9203                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
9204
9205 fi;
9206
9207           eval "$ac_cv_use_listbox"
9208           if test "$no_cache" != 1; then
9209             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
9210           fi
9211
9212           if test "$wxUSE_LISTBOX" = yes; then
9213             echo "$as_me:$LINENO: result: yes" >&5
9214 echo "${ECHO_T}yes" >&6
9215           else
9216             echo "$as_me:$LINENO: result: no" >&5
9217 echo "${ECHO_T}no" >&6
9218           fi
9219
9220
9221           enablestring=
9222           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
9223 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
9224           no_cache=0
9225           # Check whether --enable-listctrl or --disable-listctrl was given.
9226 if test "${enable_listctrl+set}" = set; then
9227   enableval="$enable_listctrl"
9228
9229                           if test "$enableval" = yes; then
9230                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
9231                           else
9232                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
9233                           fi
9234
9235 else
9236
9237                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
9238                           if test "x$LINE" != x ; then
9239                             eval "DEFAULT_$LINE"
9240                           else
9241                             no_cache=1
9242                           fi
9243
9244                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
9245
9246 fi;
9247
9248           eval "$ac_cv_use_listctrl"
9249           if test "$no_cache" != 1; then
9250             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
9251           fi
9252
9253           if test "$wxUSE_LISTCTRL" = yes; then
9254             echo "$as_me:$LINENO: result: yes" >&5
9255 echo "${ECHO_T}yes" >&6
9256           else
9257             echo "$as_me:$LINENO: result: no" >&5
9258 echo "${ECHO_T}no" >&6
9259           fi
9260
9261
9262           enablestring=
9263           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
9264 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
9265           no_cache=0
9266           # Check whether --enable-notebook or --disable-notebook was given.
9267 if test "${enable_notebook+set}" = set; then
9268   enableval="$enable_notebook"
9269
9270                           if test "$enableval" = yes; then
9271                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
9272                           else
9273                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
9274                           fi
9275
9276 else
9277
9278                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
9279                           if test "x$LINE" != x ; then
9280                             eval "DEFAULT_$LINE"
9281                           else
9282                             no_cache=1
9283                           fi
9284
9285                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
9286
9287 fi;
9288
9289           eval "$ac_cv_use_notebook"
9290           if test "$no_cache" != 1; then
9291             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
9292           fi
9293
9294           if test "$wxUSE_NOTEBOOK" = yes; then
9295             echo "$as_me:$LINENO: result: yes" >&5
9296 echo "${ECHO_T}yes" >&6
9297           else
9298             echo "$as_me:$LINENO: result: no" >&5
9299 echo "${ECHO_T}no" >&6
9300           fi
9301
9302
9303           enablestring=
9304           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
9305 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
9306           no_cache=0
9307           # Check whether --enable-odcombobox or --disable-odcombobox was given.
9308 if test "${enable_odcombobox+set}" = set; then
9309   enableval="$enable_odcombobox"
9310
9311                           if test "$enableval" = yes; then
9312                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
9313                           else
9314                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
9315                           fi
9316
9317 else
9318
9319                           LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
9320                           if test "x$LINE" != x ; then
9321                             eval "DEFAULT_$LINE"
9322                           else
9323                             no_cache=1
9324                           fi
9325
9326                           ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
9327
9328 fi;
9329
9330           eval "$ac_cv_use_odcombobox"
9331           if test "$no_cache" != 1; then
9332             echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
9333           fi
9334
9335           if test "$wxUSE_ODCOMBOBOX" = yes; then
9336             echo "$as_me:$LINENO: result: yes" >&5
9337 echo "${ECHO_T}yes" >&6
9338           else
9339             echo "$as_me:$LINENO: result: no" >&5
9340 echo "${ECHO_T}no" >&6
9341           fi
9342
9343
9344           enablestring=
9345           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
9346 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
9347           no_cache=0
9348           # Check whether --enable-radiobox or --disable-radiobox was given.
9349 if test "${enable_radiobox+set}" = set; then
9350   enableval="$enable_radiobox"
9351
9352                           if test "$enableval" = yes; then
9353                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
9354                           else
9355                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
9356                           fi
9357
9358 else
9359
9360                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
9361                           if test "x$LINE" != x ; then
9362                             eval "DEFAULT_$LINE"
9363                           else
9364                             no_cache=1
9365                           fi
9366
9367                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
9368
9369 fi;
9370
9371           eval "$ac_cv_use_radiobox"
9372           if test "$no_cache" != 1; then
9373             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
9374           fi
9375
9376           if test "$wxUSE_RADIOBOX" = yes; then
9377             echo "$as_me:$LINENO: result: yes" >&5
9378 echo "${ECHO_T}yes" >&6
9379           else
9380             echo "$as_me:$LINENO: result: no" >&5
9381 echo "${ECHO_T}no" >&6
9382           fi
9383
9384
9385           enablestring=
9386           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
9387 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
9388           no_cache=0
9389           # Check whether --enable-radiobtn or --disable-radiobtn was given.
9390 if test "${enable_radiobtn+set}" = set; then
9391   enableval="$enable_radiobtn"
9392
9393                           if test "$enableval" = yes; then
9394                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
9395                           else
9396                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
9397                           fi
9398
9399 else
9400
9401                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
9402                           if test "x$LINE" != x ; then
9403                             eval "DEFAULT_$LINE"
9404                           else
9405                             no_cache=1
9406                           fi
9407
9408                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
9409
9410 fi;
9411
9412           eval "$ac_cv_use_radiobtn"
9413           if test "$no_cache" != 1; then
9414             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
9415           fi
9416
9417           if test "$wxUSE_RADIOBTN" = yes; then
9418             echo "$as_me:$LINENO: result: yes" >&5
9419 echo "${ECHO_T}yes" >&6
9420           else
9421             echo "$as_me:$LINENO: result: no" >&5
9422 echo "${ECHO_T}no" >&6
9423           fi
9424
9425
9426           enablestring=
9427           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
9428 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
9429           no_cache=0
9430           # Check whether --enable-sash or --disable-sash was given.
9431 if test "${enable_sash+set}" = set; then
9432   enableval="$enable_sash"
9433
9434                           if test "$enableval" = yes; then
9435                             ac_cv_use_sash='wxUSE_SASH=yes'
9436                           else
9437                             ac_cv_use_sash='wxUSE_SASH=no'
9438                           fi
9439
9440 else
9441
9442                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9443                           if test "x$LINE" != x ; then
9444                             eval "DEFAULT_$LINE"
9445                           else
9446                             no_cache=1
9447                           fi
9448
9449                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9450
9451 fi;
9452
9453           eval "$ac_cv_use_sash"
9454           if test "$no_cache" != 1; then
9455             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9456           fi
9457
9458           if test "$wxUSE_SASH" = yes; then
9459             echo "$as_me:$LINENO: result: yes" >&5
9460 echo "${ECHO_T}yes" >&6
9461           else
9462             echo "$as_me:$LINENO: result: no" >&5
9463 echo "${ECHO_T}no" >&6
9464           fi
9465
9466
9467           enablestring=
9468           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9469 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9470           no_cache=0
9471           # Check whether --enable-scrollbar or --disable-scrollbar was given.
9472 if test "${enable_scrollbar+set}" = set; then
9473   enableval="$enable_scrollbar"
9474
9475                           if test "$enableval" = yes; then
9476                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9477                           else
9478                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9479                           fi
9480
9481 else
9482
9483                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9484                           if test "x$LINE" != x ; then
9485                             eval "DEFAULT_$LINE"
9486                           else
9487                             no_cache=1
9488                           fi
9489
9490                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9491
9492 fi;
9493
9494           eval "$ac_cv_use_scrollbar"
9495           if test "$no_cache" != 1; then
9496             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9497           fi
9498
9499           if test "$wxUSE_SCROLLBAR" = yes; then
9500             echo "$as_me:$LINENO: result: yes" >&5
9501 echo "${ECHO_T}yes" >&6
9502           else
9503             echo "$as_me:$LINENO: result: no" >&5
9504 echo "${ECHO_T}no" >&6
9505           fi
9506
9507
9508           enablestring=
9509           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9510 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9511           no_cache=0
9512           # Check whether --enable-slider or --disable-slider was given.
9513 if test "${enable_slider+set}" = set; then
9514   enableval="$enable_slider"
9515
9516                           if test "$enableval" = yes; then
9517                             ac_cv_use_slider='wxUSE_SLIDER=yes'
9518                           else
9519                             ac_cv_use_slider='wxUSE_SLIDER=no'
9520                           fi
9521
9522 else
9523
9524                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9525                           if test "x$LINE" != x ; then
9526                             eval "DEFAULT_$LINE"
9527                           else
9528                             no_cache=1
9529                           fi
9530
9531                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9532
9533 fi;
9534
9535           eval "$ac_cv_use_slider"
9536           if test "$no_cache" != 1; then
9537             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9538           fi
9539
9540           if test "$wxUSE_SLIDER" = yes; then
9541             echo "$as_me:$LINENO: result: yes" >&5
9542 echo "${ECHO_T}yes" >&6
9543           else
9544             echo "$as_me:$LINENO: result: no" >&5
9545 echo "${ECHO_T}no" >&6
9546           fi
9547
9548
9549           enablestring=
9550           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9551 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9552           no_cache=0
9553           # Check whether --enable-spinbtn or --disable-spinbtn was given.
9554 if test "${enable_spinbtn+set}" = set; then
9555   enableval="$enable_spinbtn"
9556
9557                           if test "$enableval" = yes; then
9558                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9559                           else
9560                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9561                           fi
9562
9563 else
9564
9565                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9566                           if test "x$LINE" != x ; then
9567                             eval "DEFAULT_$LINE"
9568                           else
9569                             no_cache=1
9570                           fi
9571
9572                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9573
9574 fi;
9575
9576           eval "$ac_cv_use_spinbtn"
9577           if test "$no_cache" != 1; then
9578             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9579           fi
9580
9581           if test "$wxUSE_SPINBTN" = yes; then
9582             echo "$as_me:$LINENO: result: yes" >&5
9583 echo "${ECHO_T}yes" >&6
9584           else
9585             echo "$as_me:$LINENO: result: no" >&5
9586 echo "${ECHO_T}no" >&6
9587           fi
9588
9589
9590           enablestring=
9591           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9592 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9593           no_cache=0
9594           # Check whether --enable-spinctrl or --disable-spinctrl was given.
9595 if test "${enable_spinctrl+set}" = set; then
9596   enableval="$enable_spinctrl"
9597
9598                           if test "$enableval" = yes; then
9599                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9600                           else
9601                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9602                           fi
9603
9604 else
9605
9606                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9607                           if test "x$LINE" != x ; then
9608                             eval "DEFAULT_$LINE"
9609                           else
9610                             no_cache=1
9611                           fi
9612
9613                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9614
9615 fi;
9616
9617           eval "$ac_cv_use_spinctrl"
9618           if test "$no_cache" != 1; then
9619             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9620           fi
9621
9622           if test "$wxUSE_SPINCTRL" = yes; then
9623             echo "$as_me:$LINENO: result: yes" >&5
9624 echo "${ECHO_T}yes" >&6
9625           else
9626             echo "$as_me:$LINENO: result: no" >&5
9627 echo "${ECHO_T}no" >&6
9628           fi
9629
9630
9631           enablestring=
9632           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9633 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9634           no_cache=0
9635           # Check whether --enable-splitter or --disable-splitter was given.
9636 if test "${enable_splitter+set}" = set; then
9637   enableval="$enable_splitter"
9638
9639                           if test "$enableval" = yes; then
9640                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9641                           else
9642                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
9643                           fi
9644
9645 else
9646
9647                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9648                           if test "x$LINE" != x ; then
9649                             eval "DEFAULT_$LINE"
9650                           else
9651                             no_cache=1
9652                           fi
9653
9654                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9655
9656 fi;
9657
9658           eval "$ac_cv_use_splitter"
9659           if test "$no_cache" != 1; then
9660             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9661           fi
9662
9663           if test "$wxUSE_SPLITTER" = yes; then
9664             echo "$as_me:$LINENO: result: yes" >&5
9665 echo "${ECHO_T}yes" >&6
9666           else
9667             echo "$as_me:$LINENO: result: no" >&5
9668 echo "${ECHO_T}no" >&6
9669           fi
9670
9671
9672           enablestring=
9673           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9674 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9675           no_cache=0
9676           # Check whether --enable-statbmp or --disable-statbmp was given.
9677 if test "${enable_statbmp+set}" = set; then
9678   enableval="$enable_statbmp"
9679
9680                           if test "$enableval" = yes; then
9681                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9682                           else
9683                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
9684                           fi
9685
9686 else
9687
9688                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9689                           if test "x$LINE" != x ; then
9690                             eval "DEFAULT_$LINE"
9691                           else
9692                             no_cache=1
9693                           fi
9694
9695                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9696
9697 fi;
9698
9699           eval "$ac_cv_use_statbmp"
9700           if test "$no_cache" != 1; then
9701             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9702           fi
9703
9704           if test "$wxUSE_STATBMP" = yes; then
9705             echo "$as_me:$LINENO: result: yes" >&5
9706 echo "${ECHO_T}yes" >&6
9707           else
9708             echo "$as_me:$LINENO: result: no" >&5
9709 echo "${ECHO_T}no" >&6
9710           fi
9711
9712
9713           enablestring=
9714           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9715 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9716           no_cache=0
9717           # Check whether --enable-statbox or --disable-statbox was given.
9718 if test "${enable_statbox+set}" = set; then
9719   enableval="$enable_statbox"
9720
9721                           if test "$enableval" = yes; then
9722                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
9723                           else
9724                             ac_cv_use_statbox='wxUSE_STATBOX=no'
9725                           fi
9726
9727 else
9728
9729                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9730                           if test "x$LINE" != x ; then
9731                             eval "DEFAULT_$LINE"
9732                           else
9733                             no_cache=1
9734                           fi
9735
9736                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9737
9738 fi;
9739
9740           eval "$ac_cv_use_statbox"
9741           if test "$no_cache" != 1; then
9742             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9743           fi
9744
9745           if test "$wxUSE_STATBOX" = yes; then
9746             echo "$as_me:$LINENO: result: yes" >&5
9747 echo "${ECHO_T}yes" >&6
9748           else
9749             echo "$as_me:$LINENO: result: no" >&5
9750 echo "${ECHO_T}no" >&6
9751           fi
9752
9753
9754           enablestring=
9755           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9756 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9757           no_cache=0
9758           # Check whether --enable-statline or --disable-statline was given.
9759 if test "${enable_statline+set}" = set; then
9760   enableval="$enable_statline"
9761
9762                           if test "$enableval" = yes; then
9763                             ac_cv_use_statline='wxUSE_STATLINE=yes'
9764                           else
9765                             ac_cv_use_statline='wxUSE_STATLINE=no'
9766                           fi
9767
9768 else
9769
9770                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9771                           if test "x$LINE" != x ; then
9772                             eval "DEFAULT_$LINE"
9773                           else
9774                             no_cache=1
9775                           fi
9776
9777                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9778
9779 fi;
9780
9781           eval "$ac_cv_use_statline"
9782           if test "$no_cache" != 1; then
9783             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9784           fi
9785
9786           if test "$wxUSE_STATLINE" = yes; then
9787             echo "$as_me:$LINENO: result: yes" >&5
9788 echo "${ECHO_T}yes" >&6
9789           else
9790             echo "$as_me:$LINENO: result: no" >&5
9791 echo "${ECHO_T}no" >&6
9792           fi
9793
9794
9795           enablestring=
9796           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9797 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9798           no_cache=0
9799           # Check whether --enable-stattext or --disable-stattext was given.
9800 if test "${enable_stattext+set}" = set; then
9801   enableval="$enable_stattext"
9802
9803                           if test "$enableval" = yes; then
9804                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9805                           else
9806                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
9807                           fi
9808
9809 else
9810
9811                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9812                           if test "x$LINE" != x ; then
9813                             eval "DEFAULT_$LINE"
9814                           else
9815                             no_cache=1
9816                           fi
9817
9818                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9819
9820 fi;
9821
9822           eval "$ac_cv_use_stattext"
9823           if test "$no_cache" != 1; then
9824             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9825           fi
9826
9827           if test "$wxUSE_STATTEXT" = yes; then
9828             echo "$as_me:$LINENO: result: yes" >&5
9829 echo "${ECHO_T}yes" >&6
9830           else
9831             echo "$as_me:$LINENO: result: no" >&5
9832 echo "${ECHO_T}no" >&6
9833           fi
9834
9835
9836           enablestring=
9837           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9838 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9839           no_cache=0
9840           # Check whether --enable-statusbar or --disable-statusbar was given.
9841 if test "${enable_statusbar+set}" = set; then
9842   enableval="$enable_statusbar"
9843
9844                           if test "$enableval" = yes; then
9845                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9846                           else
9847                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9848                           fi
9849
9850 else
9851
9852                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9853                           if test "x$LINE" != x ; then
9854                             eval "DEFAULT_$LINE"
9855                           else
9856                             no_cache=1
9857                           fi
9858
9859                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9860
9861 fi;
9862
9863           eval "$ac_cv_use_statusbar"
9864           if test "$no_cache" != 1; then
9865             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9866           fi
9867
9868           if test "$wxUSE_STATUSBAR" = yes; then
9869             echo "$as_me:$LINENO: result: yes" >&5
9870 echo "${ECHO_T}yes" >&6
9871           else
9872             echo "$as_me:$LINENO: result: no" >&5
9873 echo "${ECHO_T}no" >&6
9874           fi
9875
9876
9877           enablestring=
9878           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9879 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9880           no_cache=0
9881           # Check whether --enable-tabdialog or --disable-tabdialog was given.
9882 if test "${enable_tabdialog+set}" = set; then
9883   enableval="$enable_tabdialog"
9884
9885                           if test "$enableval" = yes; then
9886                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
9887                           else
9888                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
9889                           fi
9890
9891 else
9892
9893                           LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
9894                           if test "x$LINE" != x ; then
9895                             eval "DEFAULT_$LINE"
9896                           else
9897                             no_cache=1
9898                           fi
9899
9900                           ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
9901
9902 fi;
9903
9904           eval "$ac_cv_use_tabdialog"
9905           if test "$no_cache" != 1; then
9906             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9907           fi
9908
9909           if test "$wxUSE_TAB_DIALOG" = yes; then
9910             echo "$as_me:$LINENO: result: yes" >&5
9911 echo "${ECHO_T}yes" >&6
9912           else
9913             echo "$as_me:$LINENO: result: no" >&5
9914 echo "${ECHO_T}no" >&6
9915           fi
9916
9917
9918           enablestring=
9919           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9920 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9921           no_cache=0
9922           # Check whether --enable-textctrl or --disable-textctrl was given.
9923 if test "${enable_textctrl+set}" = set; then
9924   enableval="$enable_textctrl"
9925
9926                           if test "$enableval" = yes; then
9927                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9928                           else
9929                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9930                           fi
9931
9932 else
9933
9934                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9935                           if test "x$LINE" != x ; then
9936                             eval "DEFAULT_$LINE"
9937                           else
9938                             no_cache=1
9939                           fi
9940
9941                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9942
9943 fi;
9944
9945           eval "$ac_cv_use_textctrl"
9946           if test "$no_cache" != 1; then
9947             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9948           fi
9949
9950           if test "$wxUSE_TEXTCTRL" = yes; then
9951             echo "$as_me:$LINENO: result: yes" >&5
9952 echo "${ECHO_T}yes" >&6
9953           else
9954             echo "$as_me:$LINENO: result: no" >&5
9955 echo "${ECHO_T}no" >&6
9956           fi
9957
9958
9959           enablestring=
9960           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9961 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9962           no_cache=0
9963           # Check whether --enable-togglebtn or --disable-togglebtn was given.
9964 if test "${enable_togglebtn+set}" = set; then
9965   enableval="$enable_togglebtn"
9966
9967                           if test "$enableval" = yes; then
9968                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9969                           else
9970                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9971                           fi
9972
9973 else
9974
9975                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9976                           if test "x$LINE" != x ; then
9977                             eval "DEFAULT_$LINE"
9978                           else
9979                             no_cache=1
9980                           fi
9981
9982                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9983
9984 fi;
9985
9986           eval "$ac_cv_use_togglebtn"
9987           if test "$no_cache" != 1; then
9988             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9989           fi
9990
9991           if test "$wxUSE_TOGGLEBTN" = yes; then
9992             echo "$as_me:$LINENO: result: yes" >&5
9993 echo "${ECHO_T}yes" >&6
9994           else
9995             echo "$as_me:$LINENO: result: no" >&5
9996 echo "${ECHO_T}no" >&6
9997           fi
9998
9999
10000           enablestring=
10001           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
10002 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10003           no_cache=0
10004           # Check whether --enable-toolbar or --disable-toolbar was given.
10005 if test "${enable_toolbar+set}" = set; then
10006   enableval="$enable_toolbar"
10007
10008                           if test "$enableval" = yes; then
10009                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
10010                           else
10011                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
10012                           fi
10013
10014 else
10015
10016                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
10017                           if test "x$LINE" != x ; then
10018                             eval "DEFAULT_$LINE"
10019                           else
10020                             no_cache=1
10021                           fi
10022
10023                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10024
10025 fi;
10026
10027           eval "$ac_cv_use_toolbar"
10028           if test "$no_cache" != 1; then
10029             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
10030           fi
10031
10032           if test "$wxUSE_TOOLBAR" = yes; then
10033             echo "$as_me:$LINENO: result: yes" >&5
10034 echo "${ECHO_T}yes" >&6
10035           else
10036             echo "$as_me:$LINENO: result: no" >&5
10037 echo "${ECHO_T}no" >&6
10038           fi
10039
10040
10041           enablestring=
10042           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
10043 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
10044           no_cache=0
10045           # Check whether --enable-tbarnative or --disable-tbarnative was given.
10046 if test "${enable_tbarnative+set}" = set; then
10047   enableval="$enable_tbarnative"
10048
10049                           if test "$enableval" = yes; then
10050                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
10051                           else
10052                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
10053                           fi
10054
10055 else
10056
10057                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
10058                           if test "x$LINE" != x ; then
10059                             eval "DEFAULT_$LINE"
10060                           else
10061                             no_cache=1
10062                           fi
10063
10064                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
10065
10066 fi;
10067
10068           eval "$ac_cv_use_tbarnative"
10069           if test "$no_cache" != 1; then
10070             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
10071           fi
10072
10073           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
10074             echo "$as_me:$LINENO: result: yes" >&5
10075 echo "${ECHO_T}yes" >&6
10076           else
10077             echo "$as_me:$LINENO: result: no" >&5
10078 echo "${ECHO_T}no" >&6
10079           fi
10080
10081
10082           enablestring=
10083           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
10084 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
10085           no_cache=0
10086           # Check whether --enable-treebook or --disable-treebook was given.
10087 if test "${enable_treebook+set}" = set; then
10088   enableval="$enable_treebook"
10089
10090                           if test "$enableval" = yes; then
10091                             ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
10092                           else
10093                             ac_cv_use_treebook='wxUSE_TREEBOOK=no'
10094                           fi
10095
10096 else
10097
10098                           LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
10099                           if test "x$LINE" != x ; then
10100                             eval "DEFAULT_$LINE"
10101                           else
10102                             no_cache=1
10103                           fi
10104
10105                           ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
10106
10107 fi;
10108
10109           eval "$ac_cv_use_treebook"
10110           if test "$no_cache" != 1; then
10111             echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
10112           fi
10113
10114           if test "$wxUSE_TREEBOOK" = yes; then
10115             echo "$as_me:$LINENO: result: yes" >&5
10116 echo "${ECHO_T}yes" >&6
10117           else
10118             echo "$as_me:$LINENO: result: no" >&5
10119 echo "${ECHO_T}no" >&6
10120           fi
10121
10122
10123           enablestring=
10124           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
10125 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
10126           no_cache=0
10127           # Check whether --enable-toolbook or --disable-toolbook was given.
10128 if test "${enable_toolbook+set}" = set; then
10129   enableval="$enable_toolbook"
10130
10131                           if test "$enableval" = yes; then
10132                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
10133                           else
10134                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
10135                           fi
10136
10137 else
10138
10139                           LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
10140                           if test "x$LINE" != x ; then
10141                             eval "DEFAULT_$LINE"
10142                           else
10143                             no_cache=1
10144                           fi
10145
10146                           ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
10147
10148 fi;
10149
10150           eval "$ac_cv_use_toolbook"
10151           if test "$no_cache" != 1; then
10152             echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
10153           fi
10154
10155           if test "$wxUSE_TOOLBOOK" = yes; then
10156             echo "$as_me:$LINENO: result: yes" >&5
10157 echo "${ECHO_T}yes" >&6
10158           else
10159             echo "$as_me:$LINENO: result: no" >&5
10160 echo "${ECHO_T}no" >&6
10161           fi
10162
10163
10164           enablestring=
10165           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
10166 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10167           no_cache=0
10168           # Check whether --enable-treectrl or --disable-treectrl was given.
10169 if test "${enable_treectrl+set}" = set; then
10170   enableval="$enable_treectrl"
10171
10172                           if test "$enableval" = yes; then
10173                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
10174                           else
10175                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
10176                           fi
10177
10178 else
10179
10180                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
10181                           if test "x$LINE" != x ; then
10182                             eval "DEFAULT_$LINE"
10183                           else
10184                             no_cache=1
10185                           fi
10186
10187                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10188
10189 fi;
10190
10191           eval "$ac_cv_use_treectrl"
10192           if test "$no_cache" != 1; then
10193             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
10194           fi
10195
10196           if test "$wxUSE_TREECTRL" = yes; then
10197             echo "$as_me:$LINENO: result: yes" >&5
10198 echo "${ECHO_T}yes" >&6
10199           else
10200             echo "$as_me:$LINENO: result: no" >&5
10201 echo "${ECHO_T}no" >&6
10202           fi
10203
10204
10205           enablestring=
10206           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
10207 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
10208           no_cache=0
10209           # Check whether --enable-tipwindow or --disable-tipwindow was given.
10210 if test "${enable_tipwindow+set}" = set; then
10211   enableval="$enable_tipwindow"
10212
10213                           if test "$enableval" = yes; then
10214                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
10215                           else
10216                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
10217                           fi
10218
10219 else
10220
10221                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
10222                           if test "x$LINE" != x ; then
10223                             eval "DEFAULT_$LINE"
10224                           else
10225                             no_cache=1
10226                           fi
10227
10228                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
10229
10230 fi;
10231
10232           eval "$ac_cv_use_tipwindow"
10233           if test "$no_cache" != 1; then
10234             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
10235           fi
10236
10237           if test "$wxUSE_TIPWINDOW" = yes; then
10238             echo "$as_me:$LINENO: result: yes" >&5
10239 echo "${ECHO_T}yes" >&6
10240           else
10241             echo "$as_me:$LINENO: result: no" >&5
10242 echo "${ECHO_T}no" >&6
10243           fi
10244
10245
10246           enablestring=
10247           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
10248 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
10249           no_cache=0
10250           # Check whether --enable-popupwin or --disable-popupwin was given.
10251 if test "${enable_popupwin+set}" = set; then
10252   enableval="$enable_popupwin"
10253
10254                           if test "$enableval" = yes; then
10255                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
10256                           else
10257                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
10258                           fi
10259
10260 else
10261
10262                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
10263                           if test "x$LINE" != x ; then
10264                             eval "DEFAULT_$LINE"
10265                           else
10266                             no_cache=1
10267                           fi
10268
10269                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
10270
10271 fi;
10272
10273           eval "$ac_cv_use_popupwin"
10274           if test "$no_cache" != 1; then
10275             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
10276           fi
10277
10278           if test "$wxUSE_POPUPWIN" = yes; then
10279             echo "$as_me:$LINENO: result: yes" >&5
10280 echo "${ECHO_T}yes" >&6
10281           else
10282             echo "$as_me:$LINENO: result: no" >&5
10283 echo "${ECHO_T}no" >&6
10284           fi
10285
10286
10287
10288
10289           enablestring=
10290           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
10291 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
10292           no_cache=0
10293           # Check whether --enable-commondlg or --disable-commondlg was given.
10294 if test "${enable_commondlg+set}" = set; then
10295   enableval="$enable_commondlg"
10296
10297                           if test "$enableval" = yes; then
10298                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
10299                           else
10300                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
10301                           fi
10302
10303 else
10304
10305                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
10306                           if test "x$LINE" != x ; then
10307                             eval "DEFAULT_$LINE"
10308                           else
10309                             no_cache=1
10310                           fi
10311
10312                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
10313
10314 fi;
10315
10316           eval "$ac_cv_use_commondlg"
10317           if test "$no_cache" != 1; then
10318             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
10319           fi
10320
10321           if test "$wxUSE_COMMONDLGS" = yes; then
10322             echo "$as_me:$LINENO: result: yes" >&5
10323 echo "${ECHO_T}yes" >&6
10324           else
10325             echo "$as_me:$LINENO: result: no" >&5
10326 echo "${ECHO_T}no" >&6
10327           fi
10328
10329
10330           enablestring=
10331           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
10332 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6
10333           no_cache=0
10334           # Check whether --enable-aboutdlg or --disable-aboutdlg was given.
10335 if test "${enable_aboutdlg+set}" = set; then
10336   enableval="$enable_aboutdlg"
10337
10338                           if test "$enableval" = yes; then
10339                             ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
10340                           else
10341                             ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
10342                           fi
10343
10344 else
10345
10346                           LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}`
10347                           if test "x$LINE" != x ; then
10348                             eval "DEFAULT_$LINE"
10349                           else
10350                             no_cache=1
10351                           fi
10352
10353                           ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
10354
10355 fi;
10356
10357           eval "$ac_cv_use_aboutdlg"
10358           if test "$no_cache" != 1; then
10359             echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
10360           fi
10361
10362           if test "$wxUSE_ABOUTDLG" = yes; then
10363             echo "$as_me:$LINENO: result: yes" >&5
10364 echo "${ECHO_T}yes" >&6
10365           else
10366             echo "$as_me:$LINENO: result: no" >&5
10367 echo "${ECHO_T}no" >&6
10368           fi
10369
10370
10371           enablestring=
10372           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
10373 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
10374           no_cache=0
10375           # Check whether --enable-choicedlg or --disable-choicedlg was given.
10376 if test "${enable_choicedlg+set}" = set; then
10377   enableval="$enable_choicedlg"
10378
10379                           if test "$enableval" = yes; then
10380                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
10381                           else
10382                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
10383                           fi
10384
10385 else
10386
10387                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
10388                           if test "x$LINE" != x ; then
10389                             eval "DEFAULT_$LINE"
10390                           else
10391                             no_cache=1
10392                           fi
10393
10394                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
10395
10396 fi;
10397
10398           eval "$ac_cv_use_choicedlg"
10399           if test "$no_cache" != 1; then
10400             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
10401           fi
10402
10403           if test "$wxUSE_CHOICEDLG" = yes; then
10404             echo "$as_me:$LINENO: result: yes" >&5
10405 echo "${ECHO_T}yes" >&6
10406           else
10407             echo "$as_me:$LINENO: result: no" >&5
10408 echo "${ECHO_T}no" >&6
10409           fi
10410
10411
10412           enablestring=
10413           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
10414 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
10415           no_cache=0
10416           # Check whether --enable-coldlg or --disable-coldlg was given.
10417 if test "${enable_coldlg+set}" = set; then
10418   enableval="$enable_coldlg"
10419
10420                           if test "$enableval" = yes; then
10421                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
10422                           else
10423                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
10424                           fi
10425
10426 else
10427
10428                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
10429                           if test "x$LINE" != x ; then
10430                             eval "DEFAULT_$LINE"
10431                           else
10432                             no_cache=1
10433                           fi
10434
10435                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
10436
10437 fi;
10438
10439           eval "$ac_cv_use_coldlg"
10440           if test "$no_cache" != 1; then
10441             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
10442           fi
10443
10444           if test "$wxUSE_COLOURDLG" = yes; then
10445             echo "$as_me:$LINENO: result: yes" >&5
10446 echo "${ECHO_T}yes" >&6
10447           else
10448             echo "$as_me:$LINENO: result: no" >&5
10449 echo "${ECHO_T}no" >&6
10450           fi
10451
10452
10453           enablestring=
10454           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10455 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10456           no_cache=0
10457           # Check whether --enable-filedlg or --disable-filedlg was given.
10458 if test "${enable_filedlg+set}" = set; then
10459   enableval="$enable_filedlg"
10460
10461                           if test "$enableval" = yes; then
10462                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10463                           else
10464                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10465                           fi
10466
10467 else
10468
10469                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10470                           if test "x$LINE" != x ; then
10471                             eval "DEFAULT_$LINE"
10472                           else
10473                             no_cache=1
10474                           fi
10475
10476                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10477
10478 fi;
10479
10480           eval "$ac_cv_use_filedlg"
10481           if test "$no_cache" != 1; then
10482             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10483           fi
10484
10485           if test "$wxUSE_FILEDLG" = yes; then
10486             echo "$as_me:$LINENO: result: yes" >&5
10487 echo "${ECHO_T}yes" >&6
10488           else
10489             echo "$as_me:$LINENO: result: no" >&5
10490 echo "${ECHO_T}no" >&6
10491           fi
10492
10493
10494           enablestring=
10495           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10496 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10497           no_cache=0
10498           # Check whether --enable-finddlg or --disable-finddlg was given.
10499 if test "${enable_finddlg+set}" = set; then
10500   enableval="$enable_finddlg"
10501
10502                           if test "$enableval" = yes; then
10503                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10504                           else
10505                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10506                           fi
10507
10508 else
10509
10510                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10511                           if test "x$LINE" != x ; then
10512                             eval "DEFAULT_$LINE"
10513                           else
10514                             no_cache=1
10515                           fi
10516
10517                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10518
10519 fi;
10520
10521           eval "$ac_cv_use_finddlg"
10522           if test "$no_cache" != 1; then
10523             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10524           fi
10525
10526           if test "$wxUSE_FINDREPLDLG" = yes; then
10527             echo "$as_me:$LINENO: result: yes" >&5
10528 echo "${ECHO_T}yes" >&6
10529           else
10530             echo "$as_me:$LINENO: result: no" >&5
10531 echo "${ECHO_T}no" >&6
10532           fi
10533
10534
10535           enablestring=
10536           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10537 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10538           no_cache=0
10539           # Check whether --enable-fontdlg or --disable-fontdlg was given.
10540 if test "${enable_fontdlg+set}" = set; then
10541   enableval="$enable_fontdlg"
10542
10543                           if test "$enableval" = yes; then
10544                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10545                           else
10546                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10547                           fi
10548
10549 else
10550
10551                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10552                           if test "x$LINE" != x ; then
10553                             eval "DEFAULT_$LINE"
10554                           else
10555                             no_cache=1
10556                           fi
10557
10558                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10559
10560 fi;
10561
10562           eval "$ac_cv_use_fontdlg"
10563           if test "$no_cache" != 1; then
10564             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10565           fi
10566
10567           if test "$wxUSE_FONTDLG" = yes; then
10568             echo "$as_me:$LINENO: result: yes" >&5
10569 echo "${ECHO_T}yes" >&6
10570           else
10571             echo "$as_me:$LINENO: result: no" >&5
10572 echo "${ECHO_T}no" >&6
10573           fi
10574
10575
10576           enablestring=
10577           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10578 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10579           no_cache=0
10580           # Check whether --enable-dirdlg or --disable-dirdlg was given.
10581 if test "${enable_dirdlg+set}" = set; then
10582   enableval="$enable_dirdlg"
10583
10584                           if test "$enableval" = yes; then
10585                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10586                           else
10587                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10588                           fi
10589
10590 else
10591
10592                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10593                           if test "x$LINE" != x ; then
10594                             eval "DEFAULT_$LINE"
10595                           else
10596                             no_cache=1
10597                           fi
10598
10599                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10600
10601 fi;
10602
10603           eval "$ac_cv_use_dirdlg"
10604           if test "$no_cache" != 1; then
10605             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10606           fi
10607
10608           if test "$wxUSE_DIRDLG" = yes; then
10609             echo "$as_me:$LINENO: result: yes" >&5
10610 echo "${ECHO_T}yes" >&6
10611           else
10612             echo "$as_me:$LINENO: result: no" >&5
10613 echo "${ECHO_T}no" >&6
10614           fi
10615
10616
10617           enablestring=
10618           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10619 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10620           no_cache=0
10621           # Check whether --enable-msgdlg or --disable-msgdlg was given.
10622 if test "${enable_msgdlg+set}" = set; then
10623   enableval="$enable_msgdlg"
10624
10625                           if test "$enableval" = yes; then
10626                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10627                           else
10628                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10629                           fi
10630
10631 else
10632
10633                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10634                           if test "x$LINE" != x ; then
10635                             eval "DEFAULT_$LINE"
10636                           else
10637                             no_cache=1
10638                           fi
10639
10640                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10641
10642 fi;
10643
10644           eval "$ac_cv_use_msgdlg"
10645           if test "$no_cache" != 1; then
10646             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10647           fi
10648
10649           if test "$wxUSE_MSGDLG" = yes; then
10650             echo "$as_me:$LINENO: result: yes" >&5
10651 echo "${ECHO_T}yes" >&6
10652           else
10653             echo "$as_me:$LINENO: result: no" >&5
10654 echo "${ECHO_T}no" >&6
10655           fi
10656
10657
10658           enablestring=
10659           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10660 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10661           no_cache=0
10662           # Check whether --enable-numberdlg or --disable-numberdlg was given.
10663 if test "${enable_numberdlg+set}" = set; then
10664   enableval="$enable_numberdlg"
10665
10666                           if test "$enableval" = yes; then
10667                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10668                           else
10669                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10670                           fi
10671
10672 else
10673
10674                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10675                           if test "x$LINE" != x ; then
10676                             eval "DEFAULT_$LINE"
10677                           else
10678                             no_cache=1
10679                           fi
10680
10681                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10682
10683 fi;
10684
10685           eval "$ac_cv_use_numberdlg"
10686           if test "$no_cache" != 1; then
10687             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10688           fi
10689
10690           if test "$wxUSE_NUMBERDLG" = yes; then
10691             echo "$as_me:$LINENO: result: yes" >&5
10692 echo "${ECHO_T}yes" >&6
10693           else
10694             echo "$as_me:$LINENO: result: no" >&5
10695 echo "${ECHO_T}no" >&6
10696           fi
10697
10698
10699           enablestring=
10700           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10701 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10702           no_cache=0
10703           # Check whether --enable-splash or --disable-splash was given.
10704 if test "${enable_splash+set}" = set; then
10705   enableval="$enable_splash"
10706
10707                           if test "$enableval" = yes; then
10708                             ac_cv_use_splash='wxUSE_SPLASH=yes'
10709                           else
10710                             ac_cv_use_splash='wxUSE_SPLASH=no'
10711                           fi
10712
10713 else
10714
10715                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10716                           if test "x$LINE" != x ; then
10717                             eval "DEFAULT_$LINE"
10718                           else
10719                             no_cache=1
10720                           fi
10721
10722                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10723
10724 fi;
10725
10726           eval "$ac_cv_use_splash"
10727           if test "$no_cache" != 1; then
10728             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10729           fi
10730
10731           if test "$wxUSE_SPLASH" = yes; then
10732             echo "$as_me:$LINENO: result: yes" >&5
10733 echo "${ECHO_T}yes" >&6
10734           else
10735             echo "$as_me:$LINENO: result: no" >&5
10736 echo "${ECHO_T}no" >&6
10737           fi
10738
10739
10740           enablestring=
10741           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10742 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10743           no_cache=0
10744           # Check whether --enable-textdlg or --disable-textdlg was given.
10745 if test "${enable_textdlg+set}" = set; then
10746   enableval="$enable_textdlg"
10747
10748                           if test "$enableval" = yes; then
10749                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10750                           else
10751                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10752                           fi
10753
10754 else
10755
10756                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10757                           if test "x$LINE" != x ; then
10758                             eval "DEFAULT_$LINE"
10759                           else
10760                             no_cache=1
10761                           fi
10762
10763                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10764
10765 fi;
10766
10767           eval "$ac_cv_use_textdlg"
10768           if test "$no_cache" != 1; then
10769             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10770           fi
10771
10772           if test "$wxUSE_TEXTDLG" = yes; then
10773             echo "$as_me:$LINENO: result: yes" >&5
10774 echo "${ECHO_T}yes" >&6
10775           else
10776             echo "$as_me:$LINENO: result: no" >&5
10777 echo "${ECHO_T}no" >&6
10778           fi
10779
10780
10781           enablestring=
10782           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10783 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10784           no_cache=0
10785           # Check whether --enable-tipdlg or --disable-tipdlg was given.
10786 if test "${enable_tipdlg+set}" = set; then
10787   enableval="$enable_tipdlg"
10788
10789                           if test "$enableval" = yes; then
10790                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10791                           else
10792                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10793                           fi
10794
10795 else
10796
10797                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10798                           if test "x$LINE" != x ; then
10799                             eval "DEFAULT_$LINE"
10800                           else
10801                             no_cache=1
10802                           fi
10803
10804                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10805
10806 fi;
10807
10808           eval "$ac_cv_use_tipdlg"
10809           if test "$no_cache" != 1; then
10810             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10811           fi
10812
10813           if test "$wxUSE_STARTUP_TIPS" = yes; then
10814             echo "$as_me:$LINENO: result: yes" >&5
10815 echo "${ECHO_T}yes" >&6
10816           else
10817             echo "$as_me:$LINENO: result: no" >&5
10818 echo "${ECHO_T}no" >&6
10819           fi
10820
10821
10822           enablestring=
10823           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10824 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10825           no_cache=0
10826           # Check whether --enable-progressdlg or --disable-progressdlg was given.
10827 if test "${enable_progressdlg+set}" = set; then
10828   enableval="$enable_progressdlg"
10829
10830                           if test "$enableval" = yes; then
10831                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10832                           else
10833                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10834                           fi
10835
10836 else
10837
10838                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10839                           if test "x$LINE" != x ; then
10840                             eval "DEFAULT_$LINE"
10841                           else
10842                             no_cache=1
10843                           fi
10844
10845                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10846
10847 fi;
10848
10849           eval "$ac_cv_use_progressdlg"
10850           if test "$no_cache" != 1; then
10851             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10852           fi
10853
10854           if test "$wxUSE_PROGRESSDLG" = yes; then
10855             echo "$as_me:$LINENO: result: yes" >&5
10856 echo "${ECHO_T}yes" >&6
10857           else
10858             echo "$as_me:$LINENO: result: no" >&5
10859 echo "${ECHO_T}no" >&6
10860           fi
10861
10862
10863           enablestring=
10864           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10865 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10866           no_cache=0
10867           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10868 if test "${enable_wizarddlg+set}" = set; then
10869   enableval="$enable_wizarddlg"
10870
10871                           if test "$enableval" = yes; then
10872                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10873                           else
10874                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10875                           fi
10876
10877 else
10878
10879                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10880                           if test "x$LINE" != x ; then
10881                             eval "DEFAULT_$LINE"
10882                           else
10883                             no_cache=1
10884                           fi
10885
10886                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10887
10888 fi;
10889
10890           eval "$ac_cv_use_wizarddlg"
10891           if test "$no_cache" != 1; then
10892             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10893           fi
10894
10895           if test "$wxUSE_WIZARDDLG" = yes; then
10896             echo "$as_me:$LINENO: result: yes" >&5
10897 echo "${ECHO_T}yes" >&6
10898           else
10899             echo "$as_me:$LINENO: result: no" >&5
10900 echo "${ECHO_T}no" >&6
10901           fi
10902
10903
10904
10905
10906           enablestring=
10907           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10908 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10909           no_cache=0
10910           # Check whether --enable-menus or --disable-menus was given.
10911 if test "${enable_menus+set}" = set; then
10912   enableval="$enable_menus"
10913
10914                           if test "$enableval" = yes; then
10915                             ac_cv_use_menus='wxUSE_MENUS=yes'
10916                           else
10917                             ac_cv_use_menus='wxUSE_MENUS=no'
10918                           fi
10919
10920 else
10921
10922                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10923                           if test "x$LINE" != x ; then
10924                             eval "DEFAULT_$LINE"
10925                           else
10926                             no_cache=1
10927                           fi
10928
10929                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10930
10931 fi;
10932
10933           eval "$ac_cv_use_menus"
10934           if test "$no_cache" != 1; then
10935             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10936           fi
10937
10938           if test "$wxUSE_MENUS" = yes; then
10939             echo "$as_me:$LINENO: result: yes" >&5
10940 echo "${ECHO_T}yes" >&6
10941           else
10942             echo "$as_me:$LINENO: result: no" >&5
10943 echo "${ECHO_T}no" >&6
10944           fi
10945
10946
10947           enablestring=
10948           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10949 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10950           no_cache=0
10951           # Check whether --enable-miniframe or --disable-miniframe was given.
10952 if test "${enable_miniframe+set}" = set; then
10953   enableval="$enable_miniframe"
10954
10955                           if test "$enableval" = yes; then
10956                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10957                           else
10958                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10959                           fi
10960
10961 else
10962
10963                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10964                           if test "x$LINE" != x ; then
10965                             eval "DEFAULT_$LINE"
10966                           else
10967                             no_cache=1
10968                           fi
10969
10970                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10971
10972 fi;
10973
10974           eval "$ac_cv_use_miniframe"
10975           if test "$no_cache" != 1; then
10976             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10977           fi
10978
10979           if test "$wxUSE_MINIFRAME" = yes; then
10980             echo "$as_me:$LINENO: result: yes" >&5
10981 echo "${ECHO_T}yes" >&6
10982           else
10983             echo "$as_me:$LINENO: result: no" >&5
10984 echo "${ECHO_T}no" >&6
10985           fi
10986
10987
10988           enablestring=
10989           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10990 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10991           no_cache=0
10992           # Check whether --enable-tooltips or --disable-tooltips was given.
10993 if test "${enable_tooltips+set}" = set; then
10994   enableval="$enable_tooltips"
10995
10996                           if test "$enableval" = yes; then
10997                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10998                           else
10999                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
11000                           fi
11001
11002 else
11003
11004                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
11005                           if test "x$LINE" != x ; then
11006                             eval "DEFAULT_$LINE"
11007                           else
11008                             no_cache=1
11009                           fi
11010
11011                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
11012
11013 fi;
11014
11015           eval "$ac_cv_use_tooltips"
11016           if test "$no_cache" != 1; then
11017             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
11018           fi
11019
11020           if test "$wxUSE_TOOLTIPS" = yes; then
11021             echo "$as_me:$LINENO: result: yes" >&5
11022 echo "${ECHO_T}yes" >&6
11023           else
11024             echo "$as_me:$LINENO: result: no" >&5
11025 echo "${ECHO_T}no" >&6
11026           fi
11027
11028
11029           enablestring=
11030           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
11031 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
11032           no_cache=0
11033           # Check whether --enable-splines or --disable-splines was given.
11034 if test "${enable_splines+set}" = set; then
11035   enableval="$enable_splines"
11036
11037                           if test "$enableval" = yes; then
11038                             ac_cv_use_splines='wxUSE_SPLINES=yes'
11039                           else
11040                             ac_cv_use_splines='wxUSE_SPLINES=no'
11041                           fi
11042
11043 else
11044
11045                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
11046                           if test "x$LINE" != x ; then
11047                             eval "DEFAULT_$LINE"
11048                           else
11049                             no_cache=1
11050                           fi
11051
11052                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
11053
11054 fi;
11055
11056           eval "$ac_cv_use_splines"
11057           if test "$no_cache" != 1; then
11058             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
11059           fi
11060
11061           if test "$wxUSE_SPLINES" = yes; then
11062             echo "$as_me:$LINENO: result: yes" >&5
11063 echo "${ECHO_T}yes" >&6
11064           else
11065             echo "$as_me:$LINENO: result: no" >&5
11066 echo "${ECHO_T}no" >&6
11067           fi
11068
11069
11070           enablestring=
11071           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
11072 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
11073           no_cache=0
11074           # Check whether --enable-mousewheel or --disable-mousewheel was given.
11075 if test "${enable_mousewheel+set}" = set; then
11076   enableval="$enable_mousewheel"
11077
11078                           if test "$enableval" = yes; then
11079                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
11080                           else
11081                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
11082                           fi
11083
11084 else
11085
11086                           LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
11087                           if test "x$LINE" != x ; then
11088                             eval "DEFAULT_$LINE"
11089                           else
11090                             no_cache=1
11091                           fi
11092
11093                           ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
11094
11095 fi;
11096
11097           eval "$ac_cv_use_mousewheel"
11098           if test "$no_cache" != 1; then
11099             echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
11100           fi
11101
11102           if test "$wxUSE_MOUSEWHEEL" = yes; then
11103             echo "$as_me:$LINENO: result: yes" >&5
11104 echo "${ECHO_T}yes" >&6
11105           else
11106             echo "$as_me:$LINENO: result: no" >&5
11107 echo "${ECHO_T}no" >&6
11108           fi
11109
11110
11111           enablestring=
11112           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
11113 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
11114           no_cache=0
11115           # Check whether --enable-validators or --disable-validators was given.
11116 if test "${enable_validators+set}" = set; then
11117   enableval="$enable_validators"
11118
11119                           if test "$enableval" = yes; then
11120                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
11121                           else
11122                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
11123                           fi
11124
11125 else
11126
11127                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
11128                           if test "x$LINE" != x ; then
11129                             eval "DEFAULT_$LINE"
11130                           else
11131                             no_cache=1
11132                           fi
11133
11134                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
11135
11136 fi;
11137
11138           eval "$ac_cv_use_validators"
11139           if test "$no_cache" != 1; then
11140             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
11141           fi
11142
11143           if test "$wxUSE_VALIDATORS" = yes; then
11144             echo "$as_me:$LINENO: result: yes" >&5
11145 echo "${ECHO_T}yes" >&6
11146           else
11147             echo "$as_me:$LINENO: result: no" >&5
11148 echo "${ECHO_T}no" >&6
11149           fi
11150
11151
11152           enablestring=
11153           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
11154 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
11155           no_cache=0
11156           # Check whether --enable-busyinfo or --disable-busyinfo was given.
11157 if test "${enable_busyinfo+set}" = set; then
11158   enableval="$enable_busyinfo"
11159
11160                           if test "$enableval" = yes; then
11161                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
11162                           else
11163                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
11164                           fi
11165
11166 else
11167
11168                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
11169                           if test "x$LINE" != x ; then
11170                             eval "DEFAULT_$LINE"
11171                           else
11172                             no_cache=1
11173                           fi
11174
11175                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
11176
11177 fi;
11178
11179           eval "$ac_cv_use_busyinfo"
11180           if test "$no_cache" != 1; then
11181             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
11182           fi
11183
11184           if test "$wxUSE_BUSYINFO" = yes; then
11185             echo "$as_me:$LINENO: result: yes" >&5
11186 echo "${ECHO_T}yes" >&6
11187           else
11188             echo "$as_me:$LINENO: result: no" >&5
11189 echo "${ECHO_T}no" >&6
11190           fi
11191
11192
11193           enablestring=
11194           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
11195 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
11196           no_cache=0
11197           # Check whether --enable-joystick or --disable-joystick was given.
11198 if test "${enable_joystick+set}" = set; then
11199   enableval="$enable_joystick"
11200
11201                           if test "$enableval" = yes; then
11202                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
11203                           else
11204                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
11205                           fi
11206
11207 else
11208
11209                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
11210                           if test "x$LINE" != x ; then
11211                             eval "DEFAULT_$LINE"
11212                           else
11213                             no_cache=1
11214                           fi
11215
11216                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
11217
11218 fi;
11219
11220           eval "$ac_cv_use_joystick"
11221           if test "$no_cache" != 1; then
11222             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
11223           fi
11224
11225           if test "$wxUSE_JOYSTICK" = yes; then
11226             echo "$as_me:$LINENO: result: yes" >&5
11227 echo "${ECHO_T}yes" >&6
11228           else
11229             echo "$as_me:$LINENO: result: no" >&5
11230 echo "${ECHO_T}no" >&6
11231           fi
11232
11233
11234           enablestring=
11235           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
11236 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
11237           no_cache=0
11238           # Check whether --enable-metafile or --disable-metafile was given.
11239 if test "${enable_metafile+set}" = set; then
11240   enableval="$enable_metafile"
11241
11242                           if test "$enableval" = yes; then
11243                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
11244                           else
11245                             ac_cv_use_metafile='wxUSE_METAFILE=no'
11246                           fi
11247
11248 else
11249
11250                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
11251                           if test "x$LINE" != x ; then
11252                             eval "DEFAULT_$LINE"
11253                           else
11254                             no_cache=1
11255                           fi
11256
11257                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
11258
11259 fi;
11260
11261           eval "$ac_cv_use_metafile"
11262           if test "$no_cache" != 1; then
11263             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
11264           fi
11265
11266           if test "$wxUSE_METAFILE" = yes; then
11267             echo "$as_me:$LINENO: result: yes" >&5
11268 echo "${ECHO_T}yes" >&6
11269           else
11270             echo "$as_me:$LINENO: result: no" >&5
11271 echo "${ECHO_T}no" >&6
11272           fi
11273
11274
11275           enablestring=
11276           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
11277 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
11278           no_cache=0
11279           # Check whether --enable-dragimage or --disable-dragimage was given.
11280 if test "${enable_dragimage+set}" = set; then
11281   enableval="$enable_dragimage"
11282
11283                           if test "$enableval" = yes; then
11284                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
11285                           else
11286                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
11287                           fi
11288
11289 else
11290
11291                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
11292                           if test "x$LINE" != x ; then
11293                             eval "DEFAULT_$LINE"
11294                           else
11295                             no_cache=1
11296                           fi
11297
11298                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
11299
11300 fi;
11301
11302           eval "$ac_cv_use_dragimage"
11303           if test "$no_cache" != 1; then
11304             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
11305           fi
11306
11307           if test "$wxUSE_DRAGIMAGE" = yes; then
11308             echo "$as_me:$LINENO: result: yes" >&5
11309 echo "${ECHO_T}yes" >&6
11310           else
11311             echo "$as_me:$LINENO: result: no" >&5
11312 echo "${ECHO_T}no" >&6
11313           fi
11314
11315
11316           enablestring=
11317           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
11318 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
11319           no_cache=0
11320           # Check whether --enable-accessibility or --disable-accessibility was given.
11321 if test "${enable_accessibility+set}" = set; then
11322   enableval="$enable_accessibility"
11323
11324                           if test "$enableval" = yes; then
11325                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
11326                           else
11327                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
11328                           fi
11329
11330 else
11331
11332                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
11333                           if test "x$LINE" != x ; then
11334                             eval "DEFAULT_$LINE"
11335                           else
11336                             no_cache=1
11337                           fi
11338
11339                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
11340
11341 fi;
11342
11343           eval "$ac_cv_use_accessibility"
11344           if test "$no_cache" != 1; then
11345             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
11346           fi
11347
11348           if test "$wxUSE_ACCESSIBILITY" = yes; then
11349             echo "$as_me:$LINENO: result: yes" >&5
11350 echo "${ECHO_T}yes" >&6
11351           else
11352             echo "$as_me:$LINENO: result: no" >&5
11353 echo "${ECHO_T}no" >&6
11354           fi
11355
11356
11357 if test "$wxUSE_MSW" = "1"; then
11358
11359           enablestring=
11360           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
11361 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
11362           no_cache=0
11363           # Check whether --enable-dccache or --disable-dccache was given.
11364 if test "${enable_dccache+set}" = set; then
11365   enableval="$enable_dccache"
11366
11367                           if test "$enableval" = yes; then
11368                             ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
11369                           else
11370                             ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
11371                           fi
11372
11373 else
11374
11375                           LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
11376                           if test "x$LINE" != x ; then
11377                             eval "DEFAULT_$LINE"
11378                           else
11379                             no_cache=1
11380                           fi
11381
11382                           ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
11383
11384 fi;
11385
11386           eval "$ac_cv_use_dccache"
11387           if test "$no_cache" != 1; then
11388             echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
11389           fi
11390
11391           if test "$wxUSE_DC_CACHEING" = yes; then
11392             echo "$as_me:$LINENO: result: yes" >&5
11393 echo "${ECHO_T}yes" >&6
11394           else
11395             echo "$as_me:$LINENO: result: no" >&5
11396 echo "${ECHO_T}no" >&6
11397           fi
11398
11399 fi
11400
11401
11402
11403           enablestring=
11404           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
11405 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
11406           no_cache=0
11407           # Check whether --enable-palette or --disable-palette was given.
11408 if test "${enable_palette+set}" = set; then
11409   enableval="$enable_palette"
11410
11411                           if test "$enableval" = yes; then
11412                             ac_cv_use_palette='wxUSE_PALETTE=yes'
11413                           else
11414                             ac_cv_use_palette='wxUSE_PALETTE=no'
11415                           fi
11416
11417 else
11418
11419                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
11420                           if test "x$LINE" != x ; then
11421                             eval "DEFAULT_$LINE"
11422                           else
11423                             no_cache=1
11424                           fi
11425
11426                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
11427
11428 fi;
11429
11430           eval "$ac_cv_use_palette"
11431           if test "$no_cache" != 1; then
11432             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
11433           fi
11434
11435           if test "$wxUSE_PALETTE" = yes; then
11436             echo "$as_me:$LINENO: result: yes" >&5
11437 echo "${ECHO_T}yes" >&6
11438           else
11439             echo "$as_me:$LINENO: result: no" >&5
11440 echo "${ECHO_T}no" >&6
11441           fi
11442
11443
11444           enablestring=
11445           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11446 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
11447           no_cache=0
11448           # Check whether --enable-image or --disable-image was given.
11449 if test "${enable_image+set}" = set; then
11450   enableval="$enable_image"
11451
11452                           if test "$enableval" = yes; then
11453                             ac_cv_use_image='wxUSE_IMAGE=yes'
11454                           else
11455                             ac_cv_use_image='wxUSE_IMAGE=no'
11456                           fi
11457
11458 else
11459
11460                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11461                           if test "x$LINE" != x ; then
11462                             eval "DEFAULT_$LINE"
11463                           else
11464                             no_cache=1
11465                           fi
11466
11467                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11468
11469 fi;
11470
11471           eval "$ac_cv_use_image"
11472           if test "$no_cache" != 1; then
11473             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11474           fi
11475
11476           if test "$wxUSE_IMAGE" = yes; then
11477             echo "$as_me:$LINENO: result: yes" >&5
11478 echo "${ECHO_T}yes" >&6
11479           else
11480             echo "$as_me:$LINENO: result: no" >&5
11481 echo "${ECHO_T}no" >&6
11482           fi
11483
11484
11485           enablestring=
11486           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11487 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11488           no_cache=0
11489           # Check whether --enable-gif or --disable-gif was given.
11490 if test "${enable_gif+set}" = set; then
11491   enableval="$enable_gif"
11492
11493                           if test "$enableval" = yes; then
11494                             ac_cv_use_gif='wxUSE_GIF=yes'
11495                           else
11496                             ac_cv_use_gif='wxUSE_GIF=no'
11497                           fi
11498
11499 else
11500
11501                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11502                           if test "x$LINE" != x ; then
11503                             eval "DEFAULT_$LINE"
11504                           else
11505                             no_cache=1
11506                           fi
11507
11508                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11509
11510 fi;
11511
11512           eval "$ac_cv_use_gif"
11513           if test "$no_cache" != 1; then
11514             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11515           fi
11516
11517           if test "$wxUSE_GIF" = yes; then
11518             echo "$as_me:$LINENO: result: yes" >&5
11519 echo "${ECHO_T}yes" >&6
11520           else
11521             echo "$as_me:$LINENO: result: no" >&5
11522 echo "${ECHO_T}no" >&6
11523           fi
11524
11525
11526           enablestring=
11527           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11528 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11529           no_cache=0
11530           # Check whether --enable-pcx or --disable-pcx was given.
11531 if test "${enable_pcx+set}" = set; then
11532   enableval="$enable_pcx"
11533
11534                           if test "$enableval" = yes; then
11535                             ac_cv_use_pcx='wxUSE_PCX=yes'
11536                           else
11537                             ac_cv_use_pcx='wxUSE_PCX=no'
11538                           fi
11539
11540 else
11541
11542                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11543                           if test "x$LINE" != x ; then
11544                             eval "DEFAULT_$LINE"
11545                           else
11546                             no_cache=1
11547                           fi
11548
11549                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11550
11551 fi;
11552
11553           eval "$ac_cv_use_pcx"
11554           if test "$no_cache" != 1; then
11555             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11556           fi
11557
11558           if test "$wxUSE_PCX" = yes; then
11559             echo "$as_me:$LINENO: result: yes" >&5
11560 echo "${ECHO_T}yes" >&6
11561           else
11562             echo "$as_me:$LINENO: result: no" >&5
11563 echo "${ECHO_T}no" >&6
11564           fi
11565
11566
11567           enablestring=
11568           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
11569 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6
11570           no_cache=0
11571           # Check whether --enable-tga or --disable-tga was given.
11572 if test "${enable_tga+set}" = set; then
11573   enableval="$enable_tga"
11574
11575                           if test "$enableval" = yes; then
11576                             ac_cv_use_tga='wxUSE_TGA=yes'
11577                           else
11578                             ac_cv_use_tga='wxUSE_TGA=no'
11579                           fi
11580
11581 else
11582
11583                           LINE=`grep "wxUSE_TGA" ${wx_arg_cache_file}`
11584                           if test "x$LINE" != x ; then
11585                             eval "DEFAULT_$LINE"
11586                           else
11587                             no_cache=1
11588                           fi
11589
11590                           ac_cv_use_tga='wxUSE_TGA='$DEFAULT_wxUSE_TGA
11591
11592 fi;
11593
11594           eval "$ac_cv_use_tga"
11595           if test "$no_cache" != 1; then
11596             echo $ac_cv_use_tga >> ${wx_arg_cache_file}.tmp
11597           fi
11598
11599           if test "$wxUSE_TGA" = yes; then
11600             echo "$as_me:$LINENO: result: yes" >&5
11601 echo "${ECHO_T}yes" >&6
11602           else
11603             echo "$as_me:$LINENO: result: no" >&5
11604 echo "${ECHO_T}no" >&6
11605           fi
11606
11607
11608           enablestring=
11609           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11610 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11611           no_cache=0
11612           # Check whether --enable-iff or --disable-iff was given.
11613 if test "${enable_iff+set}" = set; then
11614   enableval="$enable_iff"
11615
11616                           if test "$enableval" = yes; then
11617                             ac_cv_use_iff='wxUSE_IFF=yes'
11618                           else
11619                             ac_cv_use_iff='wxUSE_IFF=no'
11620                           fi
11621
11622 else
11623
11624                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11625                           if test "x$LINE" != x ; then
11626                             eval "DEFAULT_$LINE"
11627                           else
11628                             no_cache=1
11629                           fi
11630
11631                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11632
11633 fi;
11634
11635           eval "$ac_cv_use_iff"
11636           if test "$no_cache" != 1; then
11637             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11638           fi
11639
11640           if test "$wxUSE_IFF" = yes; then
11641             echo "$as_me:$LINENO: result: yes" >&5
11642 echo "${ECHO_T}yes" >&6
11643           else
11644             echo "$as_me:$LINENO: result: no" >&5
11645 echo "${ECHO_T}no" >&6
11646           fi
11647
11648
11649           enablestring=
11650           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11651 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11652           no_cache=0
11653           # Check whether --enable-pnm or --disable-pnm was given.
11654 if test "${enable_pnm+set}" = set; then
11655   enableval="$enable_pnm"
11656
11657                           if test "$enableval" = yes; then
11658                             ac_cv_use_pnm='wxUSE_PNM=yes'
11659                           else
11660                             ac_cv_use_pnm='wxUSE_PNM=no'
11661                           fi
11662
11663 else
11664
11665                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11666                           if test "x$LINE" != x ; then
11667                             eval "DEFAULT_$LINE"
11668                           else
11669                             no_cache=1
11670                           fi
11671
11672                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11673
11674 fi;
11675
11676           eval "$ac_cv_use_pnm"
11677           if test "$no_cache" != 1; then
11678             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11679           fi
11680
11681           if test "$wxUSE_PNM" = yes; then
11682             echo "$as_me:$LINENO: result: yes" >&5
11683 echo "${ECHO_T}yes" >&6
11684           else
11685             echo "$as_me:$LINENO: result: no" >&5
11686 echo "${ECHO_T}no" >&6
11687           fi
11688
11689
11690           enablestring=
11691           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11692 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11693           no_cache=0
11694           # Check whether --enable-xpm or --disable-xpm was given.
11695 if test "${enable_xpm+set}" = set; then
11696   enableval="$enable_xpm"
11697
11698                           if test "$enableval" = yes; then
11699                             ac_cv_use_xpm='wxUSE_XPM=yes'
11700                           else
11701                             ac_cv_use_xpm='wxUSE_XPM=no'
11702                           fi
11703
11704 else
11705
11706                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11707                           if test "x$LINE" != x ; then
11708                             eval "DEFAULT_$LINE"
11709                           else
11710                             no_cache=1
11711                           fi
11712
11713                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11714
11715 fi;
11716
11717           eval "$ac_cv_use_xpm"
11718           if test "$no_cache" != 1; then
11719             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11720           fi
11721
11722           if test "$wxUSE_XPM" = yes; then
11723             echo "$as_me:$LINENO: result: yes" >&5
11724 echo "${ECHO_T}yes" >&6
11725           else
11726             echo "$as_me:$LINENO: result: no" >&5
11727 echo "${ECHO_T}no" >&6
11728           fi
11729
11730
11731           enablestring=
11732           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11733 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11734           no_cache=0
11735           # Check whether --enable-ico_cur or --disable-ico_cur was given.
11736 if test "${enable_ico_cur+set}" = set; then
11737   enableval="$enable_ico_cur"
11738
11739                           if test "$enableval" = yes; then
11740                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11741                           else
11742                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11743                           fi
11744
11745 else
11746
11747                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11748                           if test "x$LINE" != x ; then
11749                             eval "DEFAULT_$LINE"
11750                           else
11751                             no_cache=1
11752                           fi
11753
11754                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11755
11756 fi;
11757
11758           eval "$ac_cv_use_ico_cur"
11759           if test "$no_cache" != 1; then
11760             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11761           fi
11762
11763           if test "$wxUSE_ICO_CUR" = yes; then
11764             echo "$as_me:$LINENO: result: yes" >&5
11765 echo "${ECHO_T}yes" >&6
11766           else
11767             echo "$as_me:$LINENO: result: no" >&5
11768 echo "${ECHO_T}no" >&6
11769           fi
11770
11771
11772 fi
11773
11774
11775
11776 # Check whether --with-flavour or --without-flavour was given.
11777 if test "${with_flavour+set}" = set; then
11778   withval="$with_flavour"
11779   WX_FLAVOUR="$withval"
11780 fi;
11781
11782
11783
11784           enablestring=
11785           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11786 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11787           no_cache=0
11788           # Check whether --enable-official_build or --disable-official_build was given.
11789 if test "${enable_official_build+set}" = set; then
11790   enableval="$enable_official_build"
11791
11792                           if test "$enableval" = yes; then
11793                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11794                           else
11795                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11796                           fi
11797
11798 else
11799
11800                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11801                           if test "x$LINE" != x ; then
11802                             eval "DEFAULT_$LINE"
11803                           else
11804                             no_cache=1
11805                           fi
11806
11807                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11808
11809 fi;
11810
11811           eval "$ac_cv_use_official_build"
11812           if test "$no_cache" != 1; then
11813             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11814           fi
11815
11816           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11817             echo "$as_me:$LINENO: result: yes" >&5
11818 echo "${ECHO_T}yes" >&6
11819           else
11820             echo "$as_me:$LINENO: result: no" >&5
11821 echo "${ECHO_T}no" >&6
11822           fi
11823
11824 # Check whether --enable-vendor or --disable-vendor was given.
11825 if test "${enable_vendor+set}" = set; then
11826   enableval="$enable_vendor"
11827   VENDOR="$enableval"
11828 fi;
11829 if test "x$VENDOR" = "x"; then
11830     VENDOR="custom"
11831 fi
11832
11833
11834
11835
11836           echo "saving argument cache $wx_arg_cache_file"
11837           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11838
11839
11840
11841 echo "$as_me:$LINENO: checking for toolkit" >&5
11842 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11843
11844 # In Wine, we need to default to MSW, not GTK or MOTIF
11845 if test "$wxUSE_WINE" = "yes"; then
11846     DEFAULT_DEFAULT_wxUSE_GTK=0
11847     DEFAULT_DEFAULT_wxUSE_MOTIF=0
11848     DEFAULT_DEFAULT_wxUSE_MSW=1
11849     wxUSE_SHARED=no
11850     CC=${CC:-winegcc}
11851     CXX=${CXX:-wineg++}
11852 fi
11853
11854
11855 if test "$wxUSE_GUI" = "yes"; then
11856
11857     if test "$USE_BEOS" = 1; then
11858         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11859 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11860    { (exit 1); exit 1; }; }
11861     fi
11862
11863     if test "$TOOLKIT_GIVEN" = 1; then
11864             for toolkit in `echo $ALL_TOOLKITS`; do
11865         var=wxUSE_$toolkit
11866         eval "value=\$${var}"
11867         if test "x$value" = "xno"; then
11868           eval "$var=0"
11869         elif test "x$value" != "x"; then
11870           eval "$var=1"
11871         fi
11872
11873         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11874           eval "wx${toolkit}_VERSION=$value"
11875         fi
11876       done
11877     else
11878             for toolkit in `echo $ALL_TOOLKITS`; do
11879         if test "$has_toolkit_in_cache" != 1; then
11880           var=DEFAULT_DEFAULT_wxUSE_$toolkit
11881         else
11882           var=DEFAULT_wxUSE_$toolkit
11883
11884           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11885           if test "x$version" != "x"; then
11886             eval "wx${toolkit}_VERSION=$version"
11887           fi
11888         fi
11889         eval "wxUSE_$toolkit=\$${var}"
11890       done
11891     fi
11892
11893             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11894                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
11895                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11896
11897         case "${host}" in
11898       *-pc-os2_emx | *-pc-os2-emx )
11899         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11900     esac
11901
11902     case "$NUM_TOOLKITS" in
11903       1)
11904       ;;
11905       0)
11906         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11907 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11908    { (exit 1); exit 1; }; }
11909       ;;
11910       *)
11911         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11912 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11913    { (exit 1); exit 1; }; }
11914     esac
11915
11916     # to be removed when --disable-gtk2 isn't needed
11917     if test "x$wxUSE_GTK2" = "xyes"; then
11918         wxGTK_VERSION=2
11919     elif test "x$wxUSE_GTK2" = "xno"; then
11920         wxGTK_VERSION=1
11921     fi
11922
11923         for toolkit in `echo $ALL_TOOLKITS`; do
11924       var=wxUSE_$toolkit
11925       eval "value=\$${var}"
11926       if test "x$value" != x; then
11927         cache_var=CACHE_$toolkit
11928         eval "cache=\$${cache_var}"
11929         if test "$cache" = 1; then
11930           echo "$var=$value" >> ${wx_arg_cache_file}
11931           eval "version=\$wx${toolkit}_VERSION"
11932           if test "x$version" != "x"; then
11933             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11934           fi
11935         fi
11936         if test "$value" = 1; then
11937           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11938           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11939 echo "${ECHO_T}$toolkit_echo" >&6
11940         fi
11941       fi
11942     done
11943 else
11944     if test "x$host_alias" != "x"; then
11945         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11946 echo "${ECHO_T}base ($host_alias hosted) only" >&6
11947     else
11948         echo "$as_me:$LINENO: result: base only" >&5
11949 echo "${ECHO_T}base only" >&6
11950     fi
11951 fi
11952
11953
11954 cat >confcache <<\_ACEOF
11955 # This file is a shell script that caches the results of configure
11956 # tests run on this system so they can be shared between configure
11957 # scripts and configure runs, see configure's option --config-cache.
11958 # It is not useful on other systems.  If it contains results you don't
11959 # want to keep, you may remove or edit it.
11960 #
11961 # config.status only pays attention to the cache file if you give it
11962 # the --recheck option to rerun configure.
11963 #
11964 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11965 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11966 # following values.
11967
11968 _ACEOF
11969
11970 # The following way of writing the cache mishandles newlines in values,
11971 # but we know of no workaround that is simple, portable, and efficient.
11972 # So, don't put newlines in cache variables' values.
11973 # Ultrix sh set writes to stderr and can't be redirected directly,
11974 # and sets the high bit in the cache file unless we assign to the vars.
11975 {
11976   (set) 2>&1 |
11977     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11978     *ac_space=\ *)
11979       # `set' does not quote correctly, so add quotes (double-quote
11980       # substitution turns \\\\ into \\, and sed turns \\ into \).
11981       sed -n \
11982         "s/'/'\\\\''/g;
11983           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11984       ;;
11985     *)
11986       # `set' quotes correctly as required by POSIX, so do not add quotes.
11987       sed -n \
11988         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11989       ;;
11990     esac;
11991 } |
11992   sed '
11993      t clear
11994      : clear
11995      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11996      t end
11997      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11998      : end' >>confcache
11999 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12000   if test -w $cache_file; then
12001     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12002     cat confcache >$cache_file
12003   else
12004     echo "not updating unwritable cache $cache_file"
12005   fi
12006 fi
12007 rm -f confcache
12008
12009 CFLAGS=${CFLAGS:=}
12010
12011
12012
12013     ac_ext=c
12014 ac_cpp='$CPP $CPPFLAGS'
12015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12018 if test -n "$ac_tool_prefix"; then
12019   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12020 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12021 echo "$as_me:$LINENO: checking for $ac_word" >&5
12022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12023 if test "${ac_cv_prog_CC+set}" = set; then
12024   echo $ECHO_N "(cached) $ECHO_C" >&6
12025 else
12026   if test -n "$CC"; then
12027   ac_cv_prog_CC="$CC" # Let the user override the test.
12028 else
12029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12030 for as_dir in $PATH
12031 do
12032   IFS=$as_save_IFS
12033   test -z "$as_dir" && as_dir=.
12034   for ac_exec_ext in '' $ac_executable_extensions; do
12035   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12036     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12038     break 2
12039   fi
12040 done
12041 done
12042
12043 fi
12044 fi
12045 CC=$ac_cv_prog_CC
12046 if test -n "$CC"; then
12047   echo "$as_me:$LINENO: result: $CC" >&5
12048 echo "${ECHO_T}$CC" >&6
12049 else
12050   echo "$as_me:$LINENO: result: no" >&5
12051 echo "${ECHO_T}no" >&6
12052 fi
12053
12054 fi
12055 if test -z "$ac_cv_prog_CC"; then
12056   ac_ct_CC=$CC
12057   # Extract the first word of "gcc", so it can be a program name with args.
12058 set dummy gcc; ac_word=$2
12059 echo "$as_me:$LINENO: checking for $ac_word" >&5
12060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12061 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12062   echo $ECHO_N "(cached) $ECHO_C" >&6
12063 else
12064   if test -n "$ac_ct_CC"; then
12065   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12066 else
12067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068 for as_dir in $PATH
12069 do
12070   IFS=$as_save_IFS
12071   test -z "$as_dir" && as_dir=.
12072   for ac_exec_ext in '' $ac_executable_extensions; do
12073   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12074     ac_cv_prog_ac_ct_CC="gcc"
12075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12076     break 2
12077   fi
12078 done
12079 done
12080
12081 fi
12082 fi
12083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12084 if test -n "$ac_ct_CC"; then
12085   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12086 echo "${ECHO_T}$ac_ct_CC" >&6
12087 else
12088   echo "$as_me:$LINENO: result: no" >&5
12089 echo "${ECHO_T}no" >&6
12090 fi
12091
12092   CC=$ac_ct_CC
12093 else
12094   CC="$ac_cv_prog_CC"
12095 fi
12096
12097 if test -z "$CC"; then
12098   if test -n "$ac_tool_prefix"; then
12099   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12100 set dummy ${ac_tool_prefix}cc; ac_word=$2
12101 echo "$as_me:$LINENO: checking for $ac_word" >&5
12102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12103 if test "${ac_cv_prog_CC+set}" = set; then
12104   echo $ECHO_N "(cached) $ECHO_C" >&6
12105 else
12106   if test -n "$CC"; then
12107   ac_cv_prog_CC="$CC" # Let the user override the test.
12108 else
12109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110 for as_dir in $PATH
12111 do
12112   IFS=$as_save_IFS
12113   test -z "$as_dir" && as_dir=.
12114   for ac_exec_ext in '' $ac_executable_extensions; do
12115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12116     ac_cv_prog_CC="${ac_tool_prefix}cc"
12117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12118     break 2
12119   fi
12120 done
12121 done
12122
12123 fi
12124 fi
12125 CC=$ac_cv_prog_CC
12126 if test -n "$CC"; then
12127   echo "$as_me:$LINENO: result: $CC" >&5
12128 echo "${ECHO_T}$CC" >&6
12129 else
12130   echo "$as_me:$LINENO: result: no" >&5
12131 echo "${ECHO_T}no" >&6
12132 fi
12133
12134 fi
12135 if test -z "$ac_cv_prog_CC"; then
12136   ac_ct_CC=$CC
12137   # Extract the first word of "cc", so it can be a program name with args.
12138 set dummy cc; ac_word=$2
12139 echo "$as_me:$LINENO: checking for $ac_word" >&5
12140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12142   echo $ECHO_N "(cached) $ECHO_C" >&6
12143 else
12144   if test -n "$ac_ct_CC"; then
12145   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12146 else
12147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148 for as_dir in $PATH
12149 do
12150   IFS=$as_save_IFS
12151   test -z "$as_dir" && as_dir=.
12152   for ac_exec_ext in '' $ac_executable_extensions; do
12153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12154     ac_cv_prog_ac_ct_CC="cc"
12155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12156     break 2
12157   fi
12158 done
12159 done
12160
12161 fi
12162 fi
12163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12164 if test -n "$ac_ct_CC"; then
12165   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12166 echo "${ECHO_T}$ac_ct_CC" >&6
12167 else
12168   echo "$as_me:$LINENO: result: no" >&5
12169 echo "${ECHO_T}no" >&6
12170 fi
12171
12172   CC=$ac_ct_CC
12173 else
12174   CC="$ac_cv_prog_CC"
12175 fi
12176
12177 fi
12178 if test -z "$CC"; then
12179   # Extract the first word of "cc", so it can be a program name with args.
12180 set dummy cc; ac_word=$2
12181 echo "$as_me:$LINENO: checking for $ac_word" >&5
12182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12183 if test "${ac_cv_prog_CC+set}" = set; then
12184   echo $ECHO_N "(cached) $ECHO_C" >&6
12185 else
12186   if test -n "$CC"; then
12187   ac_cv_prog_CC="$CC" # Let the user override the test.
12188 else
12189   ac_prog_rejected=no
12190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191 for as_dir in $PATH
12192 do
12193   IFS=$as_save_IFS
12194   test -z "$as_dir" && as_dir=.
12195   for ac_exec_ext in '' $ac_executable_extensions; do
12196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12197     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12198        ac_prog_rejected=yes
12199        continue
12200      fi
12201     ac_cv_prog_CC="cc"
12202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12203     break 2
12204   fi
12205 done
12206 done
12207
12208 if test $ac_prog_rejected = yes; then
12209   # We found a bogon in the path, so make sure we never use it.
12210   set dummy $ac_cv_prog_CC
12211   shift
12212   if test $# != 0; then
12213     # We chose a different compiler from the bogus one.
12214     # However, it has the same basename, so the bogon will be chosen
12215     # first if we set CC to just the basename; use the full file name.
12216     shift
12217     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12218   fi
12219 fi
12220 fi
12221 fi
12222 CC=$ac_cv_prog_CC
12223 if test -n "$CC"; then
12224   echo "$as_me:$LINENO: result: $CC" >&5
12225 echo "${ECHO_T}$CC" >&6
12226 else
12227   echo "$as_me:$LINENO: result: no" >&5
12228 echo "${ECHO_T}no" >&6
12229 fi
12230
12231 fi
12232 if test -z "$CC"; then
12233   if test -n "$ac_tool_prefix"; then
12234   for ac_prog in cl
12235   do
12236     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12238 echo "$as_me:$LINENO: checking for $ac_word" >&5
12239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12240 if test "${ac_cv_prog_CC+set}" = set; then
12241   echo $ECHO_N "(cached) $ECHO_C" >&6
12242 else
12243   if test -n "$CC"; then
12244   ac_cv_prog_CC="$CC" # Let the user override the test.
12245 else
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12248 do
12249   IFS=$as_save_IFS
12250   test -z "$as_dir" && as_dir=.
12251   for ac_exec_ext in '' $ac_executable_extensions; do
12252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12253     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12255     break 2
12256   fi
12257 done
12258 done
12259
12260 fi
12261 fi
12262 CC=$ac_cv_prog_CC
12263 if test -n "$CC"; then
12264   echo "$as_me:$LINENO: result: $CC" >&5
12265 echo "${ECHO_T}$CC" >&6
12266 else
12267   echo "$as_me:$LINENO: result: no" >&5
12268 echo "${ECHO_T}no" >&6
12269 fi
12270
12271     test -n "$CC" && break
12272   done
12273 fi
12274 if test -z "$CC"; then
12275   ac_ct_CC=$CC
12276   for ac_prog in cl
12277 do
12278   # Extract the first word of "$ac_prog", so it can be a program name with args.
12279 set dummy $ac_prog; ac_word=$2
12280 echo "$as_me:$LINENO: checking for $ac_word" >&5
12281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12282 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12283   echo $ECHO_N "(cached) $ECHO_C" >&6
12284 else
12285   if test -n "$ac_ct_CC"; then
12286   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12287 else
12288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289 for as_dir in $PATH
12290 do
12291   IFS=$as_save_IFS
12292   test -z "$as_dir" && as_dir=.
12293   for ac_exec_ext in '' $ac_executable_extensions; do
12294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12295     ac_cv_prog_ac_ct_CC="$ac_prog"
12296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12297     break 2
12298   fi
12299 done
12300 done
12301
12302 fi
12303 fi
12304 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12305 if test -n "$ac_ct_CC"; then
12306   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12307 echo "${ECHO_T}$ac_ct_CC" >&6
12308 else
12309   echo "$as_me:$LINENO: result: no" >&5
12310 echo "${ECHO_T}no" >&6
12311 fi
12312
12313   test -n "$ac_ct_CC" && break
12314 done
12315
12316   CC=$ac_ct_CC
12317 fi
12318
12319 fi
12320
12321
12322 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12323 See \`config.log' for more details." >&5
12324 echo "$as_me: error: no acceptable C compiler found in \$PATH
12325 See \`config.log' for more details." >&2;}
12326    { (exit 1); exit 1; }; }
12327
12328 # Provide some information about the compiler.
12329 echo "$as_me:$LINENO:" \
12330      "checking for C compiler version" >&5
12331 ac_compiler=`set X $ac_compile; echo $2`
12332 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12333   (eval $ac_compiler --version </dev/null >&5) 2>&5
12334   ac_status=$?
12335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336   (exit $ac_status); }
12337 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12338   (eval $ac_compiler -v </dev/null >&5) 2>&5
12339   ac_status=$?
12340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341   (exit $ac_status); }
12342 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12343   (eval $ac_compiler -V </dev/null >&5) 2>&5
12344   ac_status=$?
12345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346   (exit $ac_status); }
12347
12348 cat >conftest.$ac_ext <<_ACEOF
12349 /* confdefs.h.  */
12350 _ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h.  */
12354
12355 int
12356 main ()
12357 {
12358
12359   ;
12360   return 0;
12361 }
12362 _ACEOF
12363 ac_clean_files_save=$ac_clean_files
12364 ac_clean_files="$ac_clean_files a.out a.exe b.out"
12365 # Try to create an executable without -o first, disregard a.out.
12366 # It will help us diagnose broken compilers, and finding out an intuition
12367 # of exeext.
12368 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12369 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
12370 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12371 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12372   (eval $ac_link_default) 2>&5
12373   ac_status=$?
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); }; then
12376   # Find the output, starting from the most likely.  This scheme is
12377 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
12378 # resort.
12379
12380 # Be careful to initialize this variable, since it used to be cached.
12381 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12382 ac_cv_exeext=
12383 # b.out is created by i960 compilers.
12384 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12385 do
12386   test -f "$ac_file" || continue
12387   case $ac_file in
12388     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
12389         ;;
12390     conftest.$ac_ext )
12391         # This is the source file.
12392         ;;
12393     [ab].out )
12394         # We found the default executable, but exeext='' is most
12395         # certainly right.
12396         break;;
12397     *.* )
12398         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12399         # FIXME: I believe we export ac_cv_exeext for Libtool,
12400         # but it would be cool to find out if it's true.  Does anybody
12401         # maintain Libtool? --akim.
12402         export ac_cv_exeext
12403         break;;
12404     * )
12405         break;;
12406   esac
12407 done
12408 else
12409   echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12411
12412 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
12413 See \`config.log' for more details." >&5
12414 echo "$as_me: error: C compiler cannot create executables
12415 See \`config.log' for more details." >&2;}
12416    { (exit 77); exit 77; }; }
12417 fi
12418
12419 ac_exeext=$ac_cv_exeext
12420 echo "$as_me:$LINENO: result: $ac_file" >&5
12421 echo "${ECHO_T}$ac_file" >&6
12422
12423 # Check the compiler produces executables we can run.  If not, either
12424 # the compiler is broken, or we cross compile.
12425 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12426 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12427 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12428 # If not cross compiling, check that we can run a simple program.
12429 if test "$cross_compiling" != yes; then
12430   if { ac_try='./$ac_file'
12431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432   (eval $ac_try) 2>&5
12433   ac_status=$?
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); }; }; then
12436     cross_compiling=no
12437   else
12438     if test "$cross_compiling" = maybe; then
12439         cross_compiling=yes
12440     else
12441         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12442 If you meant to cross compile, use \`--host'.
12443 See \`config.log' for more details." >&5
12444 echo "$as_me: error: cannot run C compiled programs.
12445 If you meant to cross compile, use \`--host'.
12446 See \`config.log' for more details." >&2;}
12447    { (exit 1); exit 1; }; }
12448     fi
12449   fi
12450 fi
12451 echo "$as_me:$LINENO: result: yes" >&5
12452 echo "${ECHO_T}yes" >&6
12453
12454 rm -f a.out a.exe conftest$ac_cv_exeext b.out
12455 ac_clean_files=$ac_clean_files_save
12456 # Check the compiler produces executables we can run.  If not, either
12457 # the compiler is broken, or we cross compile.
12458 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12459 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12460 echo "$as_me:$LINENO: result: $cross_compiling" >&5
12461 echo "${ECHO_T}$cross_compiling" >&6
12462
12463 echo "$as_me:$LINENO: checking for suffix of executables" >&5
12464 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12466   (eval $ac_link) 2>&5
12467   ac_status=$?
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); }; then
12470   # If both `conftest.exe' and `conftest' are `present' (well, observable)
12471 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
12472 # work properly (i.e., refer to `conftest.exe'), while it won't with
12473 # `rm'.
12474 for ac_file in conftest.exe conftest conftest.*; do
12475   test -f "$ac_file" || continue
12476   case $ac_file in
12477     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12478     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12479           export ac_cv_exeext
12480           break;;
12481     * ) break;;
12482   esac
12483 done
12484 else
12485   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12486 See \`config.log' for more details." >&5
12487 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12488 See \`config.log' for more details." >&2;}
12489    { (exit 1); exit 1; }; }
12490 fi
12491
12492 rm -f conftest$ac_cv_exeext
12493 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12494 echo "${ECHO_T}$ac_cv_exeext" >&6
12495
12496 rm -f conftest.$ac_ext
12497 EXEEXT=$ac_cv_exeext
12498 ac_exeext=$EXEEXT
12499 echo "$as_me:$LINENO: checking for suffix of object files" >&5
12500 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12501 if test "${ac_cv_objext+set}" = set; then
12502   echo $ECHO_N "(cached) $ECHO_C" >&6
12503 else
12504   cat >conftest.$ac_ext <<_ACEOF
12505 /* confdefs.h.  */
12506 _ACEOF
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h.  */
12510
12511 int
12512 main ()
12513 {
12514
12515   ;
12516   return 0;
12517 }
12518 _ACEOF
12519 rm -f conftest.o conftest.obj
12520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12521   (eval $ac_compile) 2>&5
12522   ac_status=$?
12523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524   (exit $ac_status); }; then
12525   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12526   case $ac_file in
12527     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12528     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12529        break;;
12530   esac
12531 done
12532 else
12533   echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12535
12536 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12537 See \`config.log' for more details." >&5
12538 echo "$as_me: error: cannot compute suffix of object files: cannot compile
12539 See \`config.log' for more details." >&2;}
12540    { (exit 1); exit 1; }; }
12541 fi
12542
12543 rm -f conftest.$ac_cv_objext conftest.$ac_ext
12544 fi
12545 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12546 echo "${ECHO_T}$ac_cv_objext" >&6
12547 OBJEXT=$ac_cv_objext
12548 ac_objext=$OBJEXT
12549 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12550 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12551 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12552   echo $ECHO_N "(cached) $ECHO_C" >&6
12553 else
12554   cat >conftest.$ac_ext <<_ACEOF
12555 /* confdefs.h.  */
12556 _ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h.  */
12560
12561 int
12562 main ()
12563 {
12564 #ifndef __GNUC__
12565        choke me
12566 #endif
12567
12568   ;
12569   return 0;
12570 }
12571 _ACEOF
12572 rm -f conftest.$ac_objext
12573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12574   (eval $ac_compile) 2>conftest.er1
12575   ac_status=$?
12576   grep -v '^ *+' conftest.er1 >conftest.err
12577   rm -f conftest.er1
12578   cat conftest.err >&5
12579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580   (exit $ac_status); } &&
12581          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583   (eval $ac_try) 2>&5
12584   ac_status=$?
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); }; } &&
12587          { ac_try='test -s conftest.$ac_objext'
12588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589   (eval $ac_try) 2>&5
12590   ac_status=$?
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); }; }; then
12593   ac_compiler_gnu=yes
12594 else
12595   echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12597
12598 ac_compiler_gnu=no
12599 fi
12600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12601 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12602
12603 fi
12604 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12605 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12606 GCC=`test $ac_compiler_gnu = yes && echo yes`
12607 ac_test_CFLAGS=${CFLAGS+set}
12608 ac_save_CFLAGS=$CFLAGS
12609 CFLAGS="-g"
12610 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12611 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12612 if test "${ac_cv_prog_cc_g+set}" = set; then
12613   echo $ECHO_N "(cached) $ECHO_C" >&6
12614 else
12615   cat >conftest.$ac_ext <<_ACEOF
12616 /* confdefs.h.  */
12617 _ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h.  */
12621
12622 int
12623 main ()
12624 {
12625
12626   ;
12627   return 0;
12628 }
12629 _ACEOF
12630 rm -f conftest.$ac_objext
12631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12632   (eval $ac_compile) 2>conftest.er1
12633   ac_status=$?
12634   grep -v '^ *+' conftest.er1 >conftest.err
12635   rm -f conftest.er1
12636   cat conftest.err >&5
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); } &&
12639          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641   (eval $ac_try) 2>&5
12642   ac_status=$?
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); }; } &&
12645          { ac_try='test -s conftest.$ac_objext'
12646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647   (eval $ac_try) 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); }; }; then
12651   ac_cv_prog_cc_g=yes
12652 else
12653   echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12655
12656 ac_cv_prog_cc_g=no
12657 fi
12658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12659 fi
12660 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12661 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12662 if test "$ac_test_CFLAGS" = set; then
12663   CFLAGS=$ac_save_CFLAGS
12664 elif test $ac_cv_prog_cc_g = yes; then
12665   if test "$GCC" = yes; then
12666     CFLAGS="-g -O2"
12667   else
12668     CFLAGS="-g"
12669   fi
12670 else
12671   if test "$GCC" = yes; then
12672     CFLAGS="-O2"
12673   else
12674     CFLAGS=
12675   fi
12676 fi
12677 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12678 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12679 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12680   echo $ECHO_N "(cached) $ECHO_C" >&6
12681 else
12682   ac_cv_prog_cc_stdc=no
12683 ac_save_CC=$CC
12684 cat >conftest.$ac_ext <<_ACEOF
12685 /* confdefs.h.  */
12686 _ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h.  */
12690 #include <stdarg.h>
12691 #include <stdio.h>
12692 #include <sys/types.h>
12693 #include <sys/stat.h>
12694 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12695 struct buf { int x; };
12696 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12697 static char *e (p, i)
12698      char **p;
12699      int i;
12700 {
12701   return p[i];
12702 }
12703 static char *f (char * (*g) (char **, int), char **p, ...)
12704 {
12705   char *s;
12706   va_list v;
12707   va_start (v,p);
12708   s = g (p, va_arg (v,int));
12709   va_end (v);
12710   return s;
12711 }
12712
12713 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12714    function prototypes and stuff, but not '\xHH' hex character constants.
12715    These don't provoke an error unfortunately, instead are silently treated
12716    as 'x'.  The following induces an error, until -std1 is added to get
12717    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12718    array size at least.  It's necessary to write '\x00'==0 to get something
12719    that's true only with -std1.  */
12720 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12721
12722 int test (int i, double x);
12723 struct s1 {int (*f) (int a);};
12724 struct s2 {int (*f) (double a);};
12725 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12726 int argc;
12727 char **argv;
12728 int
12729 main ()
12730 {
12731 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12732   ;
12733   return 0;
12734 }
12735 _ACEOF
12736 # Don't try gcc -ansi; that turns off useful extensions and
12737 # breaks some systems' header files.
12738 # AIX                   -qlanglvl=ansi
12739 # Ultrix and OSF/1      -std1
12740 # HP-UX 10.20 and later -Ae
12741 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12742 # SVR4                  -Xc -D__EXTENSIONS__
12743 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12744 do
12745   CC="$ac_save_CC $ac_arg"
12746   rm -f conftest.$ac_objext
12747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12748   (eval $ac_compile) 2>conftest.er1
12749   ac_status=$?
12750   grep -v '^ *+' conftest.er1 >conftest.err
12751   rm -f conftest.er1
12752   cat conftest.err >&5
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); } &&
12755          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757   (eval $ac_try) 2>&5
12758   ac_status=$?
12759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760   (exit $ac_status); }; } &&
12761          { ac_try='test -s conftest.$ac_objext'
12762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763   (eval $ac_try) 2>&5
12764   ac_status=$?
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); }; }; then
12767   ac_cv_prog_cc_stdc=$ac_arg
12768 break
12769 else
12770   echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12772
12773 fi
12774 rm -f conftest.err conftest.$ac_objext
12775 done
12776 rm -f conftest.$ac_ext conftest.$ac_objext
12777 CC=$ac_save_CC
12778
12779 fi
12780
12781 case "x$ac_cv_prog_cc_stdc" in
12782   x|xno)
12783     echo "$as_me:$LINENO: result: none needed" >&5
12784 echo "${ECHO_T}none needed" >&6 ;;
12785   *)
12786     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12787 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12788     CC="$CC $ac_cv_prog_cc_stdc" ;;
12789 esac
12790
12791 # Some people use a C++ compiler to compile C.  Since we use `exit',
12792 # in C++ we need to declare it.  In case someone uses the same compiler
12793 # for both compiling C and C++ we need to have the C++ compiler decide
12794 # the declaration of exit, since it's the most demanding environment.
12795 cat >conftest.$ac_ext <<_ACEOF
12796 #ifndef __cplusplus
12797   choke me
12798 #endif
12799 _ACEOF
12800 rm -f conftest.$ac_objext
12801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12802   (eval $ac_compile) 2>conftest.er1
12803   ac_status=$?
12804   grep -v '^ *+' conftest.er1 >conftest.err
12805   rm -f conftest.er1
12806   cat conftest.err >&5
12807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808   (exit $ac_status); } &&
12809          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811   (eval $ac_try) 2>&5
12812   ac_status=$?
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); }; } &&
12815          { ac_try='test -s conftest.$ac_objext'
12816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817   (eval $ac_try) 2>&5
12818   ac_status=$?
12819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820   (exit $ac_status); }; }; then
12821   for ac_declaration in \
12822    '' \
12823    'extern "C" void std::exit (int) throw (); using std::exit;' \
12824    'extern "C" void std::exit (int); using std::exit;' \
12825    'extern "C" void exit (int) throw ();' \
12826    'extern "C" void exit (int);' \
12827    'void exit (int);'
12828 do
12829   cat >conftest.$ac_ext <<_ACEOF
12830 /* confdefs.h.  */
12831 _ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h.  */
12835 $ac_declaration
12836 #include <stdlib.h>
12837 int
12838 main ()
12839 {
12840 exit (42);
12841   ;
12842   return 0;
12843 }
12844 _ACEOF
12845 rm -f conftest.$ac_objext
12846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12847   (eval $ac_compile) 2>conftest.er1
12848   ac_status=$?
12849   grep -v '^ *+' conftest.er1 >conftest.err
12850   rm -f conftest.er1
12851   cat conftest.err >&5
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); } &&
12854          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856   (eval $ac_try) 2>&5
12857   ac_status=$?
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); }; } &&
12860          { ac_try='test -s conftest.$ac_objext'
12861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862   (eval $ac_try) 2>&5
12863   ac_status=$?
12864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865   (exit $ac_status); }; }; then
12866   :
12867 else
12868   echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12870
12871 continue
12872 fi
12873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12874   cat >conftest.$ac_ext <<_ACEOF
12875 /* confdefs.h.  */
12876 _ACEOF
12877 cat confdefs.h >>conftest.$ac_ext
12878 cat >>conftest.$ac_ext <<_ACEOF
12879 /* end confdefs.h.  */
12880 $ac_declaration
12881 int
12882 main ()
12883 {
12884 exit (42);
12885   ;
12886   return 0;
12887 }
12888 _ACEOF
12889 rm -f conftest.$ac_objext
12890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12891   (eval $ac_compile) 2>conftest.er1
12892   ac_status=$?
12893   grep -v '^ *+' conftest.er1 >conftest.err
12894   rm -f conftest.er1
12895   cat conftest.err >&5
12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897   (exit $ac_status); } &&
12898          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900   (eval $ac_try) 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; } &&
12904          { ac_try='test -s conftest.$ac_objext'
12905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906   (eval $ac_try) 2>&5
12907   ac_status=$?
12908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909   (exit $ac_status); }; }; then
12910   break
12911 else
12912   echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12914
12915 fi
12916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12917 done
12918 rm -f conftest*
12919 if test -n "$ac_declaration"; then
12920   echo '#ifdef __cplusplus' >>confdefs.h
12921   echo $ac_declaration      >>confdefs.h
12922   echo '#endif'             >>confdefs.h
12923 fi
12924
12925 else
12926   echo "$as_me: failed program was:" >&5
12927 sed 's/^/| /' conftest.$ac_ext >&5
12928
12929 fi
12930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12931 ac_ext=c
12932 ac_cpp='$CPP $CPPFLAGS'
12933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12936
12937
12938
12939     ac_ext=c
12940 ac_cpp='$CPP $CPPFLAGS'
12941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12944
12945     echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12946 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12947 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12948   echo $ECHO_N "(cached) $ECHO_C" >&6
12949 else
12950   cat >conftest.$ac_ext <<_ACEOF
12951 /* confdefs.h.  */
12952 _ACEOF
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h.  */
12956
12957 int
12958 main ()
12959 {
12960
12961              #ifndef __INTEL_COMPILER
12962                 choke me
12963              #endif
12964
12965   ;
12966   return 0;
12967 }
12968 _ACEOF
12969 rm -f conftest.$ac_objext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12971   (eval $ac_compile) 2>conftest.er1
12972   ac_status=$?
12973   grep -v '^ *+' conftest.er1 >conftest.err
12974   rm -f conftest.er1
12975   cat conftest.err >&5
12976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); } &&
12978          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980   (eval $ac_try) 2>&5
12981   ac_status=$?
12982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983   (exit $ac_status); }; } &&
12984          { ac_try='test -s conftest.$ac_objext'
12985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986   (eval $ac_try) 2>&5
12987   ac_status=$?
12988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); }; }; then
12990   bakefile_cv_c_compiler___INTEL_COMPILER=yes
12991 else
12992   echo "$as_me: failed program was:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12994
12995 bakefile_cv_c_compiler___INTEL_COMPILER=no
12996
12997 fi
12998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12999
13000
13001 fi
13002 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
13003 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
13004     ac_ext=c
13005 ac_cpp='$CPP $CPPFLAGS'
13006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13009
13010     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
13011         :; INTELCC=yes
13012     else
13013         :;
13014     fi
13015
13016
13017         if test "x$GCC" != "xyes"; then
13018         if test "xCC" = "xC"; then
13019             echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
13020 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
13021 if test "${bakefile_cv_c_exto+set}" = set; then
13022   echo $ECHO_N "(cached) $ECHO_C" >&6
13023 else
13024   cat >conftest.$ac_ext <<_ACEOF
13025 /* confdefs.h.  */
13026 _ACEOF
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h.  */
13030
13031 int
13032 main ()
13033 {
13034
13035   ;
13036   return 0;
13037 }
13038 _ACEOF
13039 rm -f conftest.$ac_objext conftest.$ac_ext.o
13040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13041   (eval $ac_compile) 2>&5
13042   ac_status=$?
13043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044   (exit $ac_status); }; then
13045   for ac_file in `(ls conftest.* 2>/dev/null)`; do
13046     case $ac_file in
13047         conftest.$ac_ext.o)
13048             bakefile_cv_c_exto="-ext o"
13049             ;;
13050         *)
13051             ;;
13052     esac
13053 done
13054 else
13055   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13056 See \`config.log' for more details." >&5
13057 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13058 See \`config.log' for more details." >&2;}
13059    { (exit 1); exit 1; }; }
13060
13061 fi
13062
13063 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13064
13065 fi
13066 echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
13067 echo "${ECHO_T}$bakefile_cv_c_exto" >&6
13068 if test "x$bakefile_cv_c_exto" '!=' "x"; then
13069     if test "c" = "c"; then
13070         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
13071     fi
13072     if test "c" = "cxx"; then
13073         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
13074     fi
13075 fi
13076
13077             if test "x$bakefile_cv_c_exto" '!=' "x"; then
13078                 unset ac_cv_prog_cc_g
13079                 ac_test_CFLAGS=${CFLAGS+set}
13080 ac_save_CFLAGS=$CFLAGS
13081 CFLAGS="-g"
13082 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13083 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13084 if test "${ac_cv_prog_cc_g+set}" = set; then
13085   echo $ECHO_N "(cached) $ECHO_C" >&6
13086 else
13087   cat >conftest.$ac_ext <<_ACEOF
13088 /* confdefs.h.  */
13089 _ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h.  */
13093
13094 int
13095 main ()
13096 {
13097
13098   ;
13099   return 0;
13100 }
13101 _ACEOF
13102 rm -f conftest.$ac_objext
13103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13104   (eval $ac_compile) 2>conftest.er1
13105   ac_status=$?
13106   grep -v '^ *+' conftest.er1 >conftest.err
13107   rm -f conftest.er1
13108   cat conftest.err >&5
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); } &&
13111          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113   (eval $ac_try) 2>&5
13114   ac_status=$?
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); }; } &&
13117          { ac_try='test -s conftest.$ac_objext'
13118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119   (eval $ac_try) 2>&5
13120   ac_status=$?
13121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122   (exit $ac_status); }; }; then
13123   ac_cv_prog_cc_g=yes
13124 else
13125   echo "$as_me: failed program was:" >&5
13126 sed 's/^/| /' conftest.$ac_ext >&5
13127
13128 ac_cv_prog_cc_g=no
13129 fi
13130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13131 fi
13132 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13133 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13134 if test "$ac_test_CFLAGS" = set; then
13135   CFLAGS=$ac_save_CFLAGS
13136 elif test $ac_cv_prog_cc_g = yes; then
13137   if test "$GCC" = yes; then
13138     CFLAGS="-g -O2"
13139   else
13140     CFLAGS="-g"
13141   fi
13142 else
13143   if test "$GCC" = yes; then
13144     CFLAGS="-O2"
13145   else
13146     CFLAGS=
13147   fi
13148 fi
13149             fi
13150         fi
13151
13152                         case `uname -s` in
13153             AIX*)
13154                 ac_ext=c
13155 ac_cpp='$CPP $CPPFLAGS'
13156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13159
13160 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13161 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
13162 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
13163   echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13165   cat >conftest.$ac_ext <<_ACEOF
13166 /* confdefs.h.  */
13167 _ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h.  */
13171
13172 int
13173 main ()
13174 {
13175 #ifndef __xlC__
13176        choke me
13177 #endif
13178
13179   ;
13180   return 0;
13181 }
13182 _ACEOF
13183 rm -f conftest.$ac_objext
13184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13185   (eval $ac_compile) 2>conftest.er1
13186   ac_status=$?
13187   grep -v '^ *+' conftest.er1 >conftest.err
13188   rm -f conftest.er1
13189   cat conftest.err >&5
13190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191   (exit $ac_status); } &&
13192          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194   (eval $ac_try) 2>&5
13195   ac_status=$?
13196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197   (exit $ac_status); }; } &&
13198          { ac_try='test -s conftest.$ac_objext'
13199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13200   (eval $ac_try) 2>&5
13201   ac_status=$?
13202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203   (exit $ac_status); }; }; then
13204   bakefile_compiler_xlc=yes
13205 else
13206   echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13208
13209 bakefile_compiler_xlc=no
13210 fi
13211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13212     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
13213
13214 fi
13215 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13216 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
13217
13218 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
13219 ac_ext=c
13220 ac_cpp='$CPP $CPPFLAGS'
13221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13224
13225
13226                 ;;
13227
13228             Darwin)
13229                 ac_ext=c
13230 ac_cpp='$CPP $CPPFLAGS'
13231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13234
13235 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
13236 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
13237 if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
13238   echo $ECHO_N "(cached) $ECHO_C" >&6
13239 else
13240   cat >conftest.$ac_ext <<_ACEOF
13241 /* confdefs.h.  */
13242 _ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h.  */
13246
13247 int
13248 main ()
13249 {
13250 #ifndef __MWERKS__
13251        choke me
13252 #endif
13253
13254   ;
13255   return 0;
13256 }
13257 _ACEOF
13258 rm -f conftest.$ac_objext
13259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13260   (eval $ac_compile) 2>conftest.er1
13261   ac_status=$?
13262   grep -v '^ *+' conftest.er1 >conftest.err
13263   rm -f conftest.er1
13264   cat conftest.err >&5
13265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266   (exit $ac_status); } &&
13267          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269   (eval $ac_try) 2>&5
13270   ac_status=$?
13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272   (exit $ac_status); }; } &&
13273          { ac_try='test -s conftest.$ac_objext'
13274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275   (eval $ac_try) 2>&5
13276   ac_status=$?
13277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   (exit $ac_status); }; }; then
13279   bakefile_compiler_mwerks=yes
13280 else
13281   echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13283
13284 bakefile_compiler_mwerks=no
13285 fi
13286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13287     bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
13288
13289 fi
13290 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
13291 echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
13292
13293 MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
13294 ac_ext=c
13295 ac_cpp='$CPP $CPPFLAGS'
13296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13299
13300
13301                 ac_ext=c
13302 ac_cpp='$CPP $CPPFLAGS'
13303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13306
13307 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13308 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
13309 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
13310   echo $ECHO_N "(cached) $ECHO_C" >&6
13311 else
13312   cat >conftest.$ac_ext <<_ACEOF
13313 /* confdefs.h.  */
13314 _ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h.  */
13318
13319 int
13320 main ()
13321 {
13322 #ifndef __xlC__
13323        choke me
13324 #endif
13325
13326   ;
13327   return 0;
13328 }
13329 _ACEOF
13330 rm -f conftest.$ac_objext
13331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13332   (eval $ac_compile) 2>conftest.er1
13333   ac_status=$?
13334   grep -v '^ *+' conftest.er1 >conftest.err
13335   rm -f conftest.er1
13336   cat conftest.err >&5
13337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338   (exit $ac_status); } &&
13339          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341   (eval $ac_try) 2>&5
13342   ac_status=$?
13343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344   (exit $ac_status); }; } &&
13345          { ac_try='test -s conftest.$ac_objext'
13346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347   (eval $ac_try) 2>&5
13348   ac_status=$?
13349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350   (exit $ac_status); }; }; then
13351   bakefile_compiler_xlc=yes
13352 else
13353   echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13355
13356 bakefile_compiler_xlc=no
13357 fi
13358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13359     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
13360
13361 fi
13362 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13363 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
13364
13365 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
13366 ac_ext=c
13367 ac_cpp='$CPP $CPPFLAGS'
13368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13371
13372
13373                 ;;
13374
13375             IRIX*)
13376
13377
13378     ac_ext=c
13379 ac_cpp='$CPP $CPPFLAGS'
13380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13383
13384     echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
13385 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
13386 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
13387   echo $ECHO_N "(cached) $ECHO_C" >&6
13388 else
13389   cat >conftest.$ac_ext <<_ACEOF
13390 /* confdefs.h.  */
13391 _ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h.  */
13395
13396 int
13397 main ()
13398 {
13399
13400              #ifndef _SGI_COMPILER_VERSION
13401                 choke me
13402              #endif
13403
13404   ;
13405   return 0;
13406 }
13407 _ACEOF
13408 rm -f conftest.$ac_objext
13409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13410   (eval $ac_compile) 2>conftest.er1
13411   ac_status=$?
13412   grep -v '^ *+' conftest.er1 >conftest.err
13413   rm -f conftest.er1
13414   cat conftest.err >&5
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); } &&
13417          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419   (eval $ac_try) 2>&5
13420   ac_status=$?
13421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422   (exit $ac_status); }; } &&
13423          { ac_try='test -s conftest.$ac_objext'
13424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425   (eval $ac_try) 2>&5
13426   ac_status=$?
13427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); }; }; then
13429   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13430 else
13431   echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13433
13434 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13435
13436 fi
13437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13438
13439
13440 fi
13441 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13442 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13443     ac_ext=c
13444 ac_cpp='$CPP $CPPFLAGS'
13445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13448
13449     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13450         :; SGICC=yes
13451     else
13452         :;
13453     fi
13454
13455
13456                 ;;
13457
13458             HP-UX*)
13459
13460
13461     ac_ext=c
13462 ac_cpp='$CPP $CPPFLAGS'
13463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13466
13467     echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13468 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13469 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
13470   echo $ECHO_N "(cached) $ECHO_C" >&6
13471 else
13472   cat >conftest.$ac_ext <<_ACEOF
13473 /* confdefs.h.  */
13474 _ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h.  */
13478
13479 int
13480 main ()
13481 {
13482
13483              #ifndef __HP_cc
13484                 choke me
13485              #endif
13486
13487   ;
13488   return 0;
13489 }
13490 _ACEOF
13491 rm -f conftest.$ac_objext
13492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13493   (eval $ac_compile) 2>conftest.er1
13494   ac_status=$?
13495   grep -v '^ *+' conftest.er1 >conftest.err
13496   rm -f conftest.er1
13497   cat conftest.err >&5
13498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); } &&
13500          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13502   (eval $ac_try) 2>&5
13503   ac_status=$?
13504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505   (exit $ac_status); }; } &&
13506          { ac_try='test -s conftest.$ac_objext'
13507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508   (eval $ac_try) 2>&5
13509   ac_status=$?
13510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); }; }; then
13512   bakefile_cv_c_compiler___HP_cc=yes
13513 else
13514   echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13516
13517 bakefile_cv_c_compiler___HP_cc=no
13518
13519 fi
13520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13521
13522
13523 fi
13524 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13525 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
13526     ac_ext=c
13527 ac_cpp='$CPP $CPPFLAGS'
13528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13531
13532     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13533         :; HPCC=yes
13534     else
13535         :;
13536     fi
13537
13538
13539                 ;;
13540
13541             OSF1)
13542
13543
13544     ac_ext=c
13545 ac_cpp='$CPP $CPPFLAGS'
13546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13549
13550     echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13551 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13552 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
13553   echo $ECHO_N "(cached) $ECHO_C" >&6
13554 else
13555   cat >conftest.$ac_ext <<_ACEOF
13556 /* confdefs.h.  */
13557 _ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h.  */
13561
13562 int
13563 main ()
13564 {
13565
13566              #ifndef __DECC
13567                 choke me
13568              #endif
13569
13570   ;
13571   return 0;
13572 }
13573 _ACEOF
13574 rm -f conftest.$ac_objext
13575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13576   (eval $ac_compile) 2>conftest.er1
13577   ac_status=$?
13578   grep -v '^ *+' conftest.er1 >conftest.err
13579   rm -f conftest.er1
13580   cat conftest.err >&5
13581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582   (exit $ac_status); } &&
13583          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585   (eval $ac_try) 2>&5
13586   ac_status=$?
13587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588   (exit $ac_status); }; } &&
13589          { ac_try='test -s conftest.$ac_objext'
13590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591   (eval $ac_try) 2>&5
13592   ac_status=$?
13593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594   (exit $ac_status); }; }; then
13595   bakefile_cv_c_compiler___DECC=yes
13596 else
13597   echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13599
13600 bakefile_cv_c_compiler___DECC=no
13601
13602 fi
13603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13604
13605
13606 fi
13607 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13608 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
13609     ac_ext=c
13610 ac_cpp='$CPP $CPPFLAGS'
13611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13614
13615     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13616         :; COMPAQCC=yes
13617     else
13618         :;
13619     fi
13620
13621
13622                 ;;
13623
13624             SunOS)
13625
13626
13627     ac_ext=c
13628 ac_cpp='$CPP $CPPFLAGS'
13629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13632
13633     echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13634 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13635 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13636   echo $ECHO_N "(cached) $ECHO_C" >&6
13637 else
13638   cat >conftest.$ac_ext <<_ACEOF
13639 /* confdefs.h.  */
13640 _ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h.  */
13644
13645 int
13646 main ()
13647 {
13648
13649              #ifndef __SUNPRO_C
13650                 choke me
13651              #endif
13652
13653   ;
13654   return 0;
13655 }
13656 _ACEOF
13657 rm -f conftest.$ac_objext
13658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13659   (eval $ac_compile) 2>conftest.er1
13660   ac_status=$?
13661   grep -v '^ *+' conftest.er1 >conftest.err
13662   rm -f conftest.er1
13663   cat conftest.err >&5
13664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); } &&
13666          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668   (eval $ac_try) 2>&5
13669   ac_status=$?
13670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); }; } &&
13672          { ac_try='test -s conftest.$ac_objext'
13673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674   (eval $ac_try) 2>&5
13675   ac_status=$?
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); }; }; then
13678   bakefile_cv_c_compiler___SUNPRO_C=yes
13679 else
13680   echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13682
13683 bakefile_cv_c_compiler___SUNPRO_C=no
13684
13685 fi
13686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13687
13688
13689 fi
13690 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13691 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13692     ac_ext=c
13693 ac_cpp='$CPP $CPPFLAGS'
13694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13697
13698     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13699         :; SUNCC=yes
13700     else
13701         :;
13702     fi
13703
13704
13705                 ;;
13706         esac
13707     fi
13708
13709
13710
13711 ac_ext=c
13712 ac_cpp='$CPP $CPPFLAGS'
13713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13716 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13717 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13718 # On Suns, sometimes $CPP names a directory.
13719 if test -n "$CPP" && test -d "$CPP"; then
13720   CPP=
13721 fi
13722 if test -z "$CPP"; then
13723   if test "${ac_cv_prog_CPP+set}" = set; then
13724   echo $ECHO_N "(cached) $ECHO_C" >&6
13725 else
13726       # Double quotes because CPP needs to be expanded
13727     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13728     do
13729       ac_preproc_ok=false
13730 for ac_c_preproc_warn_flag in '' yes
13731 do
13732   # Use a header file that comes with gcc, so configuring glibc
13733   # with a fresh cross-compiler works.
13734   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13735   # <limits.h> exists even on freestanding compilers.
13736   # On the NeXT, cc -E runs the code through the compiler's parser,
13737   # not just through cpp. "Syntax error" is here to catch this case.
13738   cat >conftest.$ac_ext <<_ACEOF
13739 /* confdefs.h.  */
13740 _ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h.  */
13744 #ifdef __STDC__
13745 # include <limits.h>
13746 #else
13747 # include <assert.h>
13748 #endif
13749                      Syntax error
13750 _ACEOF
13751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13752   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13753   ac_status=$?
13754   grep -v '^ *+' conftest.er1 >conftest.err
13755   rm -f conftest.er1
13756   cat conftest.err >&5
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); } >/dev/null; then
13759   if test -s conftest.err; then
13760     ac_cpp_err=$ac_c_preproc_warn_flag
13761     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13762   else
13763     ac_cpp_err=
13764   fi
13765 else
13766   ac_cpp_err=yes
13767 fi
13768 if test -z "$ac_cpp_err"; then
13769   :
13770 else
13771   echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13773
13774   # Broken: fails on valid input.
13775 continue
13776 fi
13777 rm -f conftest.err conftest.$ac_ext
13778
13779   # OK, works on sane cases.  Now check whether non-existent headers
13780   # can be detected and how.
13781   cat >conftest.$ac_ext <<_ACEOF
13782 /* confdefs.h.  */
13783 _ACEOF
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h.  */
13787 #include <ac_nonexistent.h>
13788 _ACEOF
13789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13790   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13791   ac_status=$?
13792   grep -v '^ *+' conftest.er1 >conftest.err
13793   rm -f conftest.er1
13794   cat conftest.err >&5
13795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796   (exit $ac_status); } >/dev/null; then
13797   if test -s conftest.err; then
13798     ac_cpp_err=$ac_c_preproc_warn_flag
13799     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13800   else
13801     ac_cpp_err=
13802   fi
13803 else
13804   ac_cpp_err=yes
13805 fi
13806 if test -z "$ac_cpp_err"; then
13807   # Broken: success on invalid input.
13808 continue
13809 else
13810   echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13812
13813   # Passes both tests.
13814 ac_preproc_ok=:
13815 break
13816 fi
13817 rm -f conftest.err conftest.$ac_ext
13818
13819 done
13820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13821 rm -f conftest.err conftest.$ac_ext
13822 if $ac_preproc_ok; then
13823   break
13824 fi
13825
13826     done
13827     ac_cv_prog_CPP=$CPP
13828
13829 fi
13830   CPP=$ac_cv_prog_CPP
13831 else
13832   ac_cv_prog_CPP=$CPP
13833 fi
13834 echo "$as_me:$LINENO: result: $CPP" >&5
13835 echo "${ECHO_T}$CPP" >&6
13836 ac_preproc_ok=false
13837 for ac_c_preproc_warn_flag in '' yes
13838 do
13839   # Use a header file that comes with gcc, so configuring glibc
13840   # with a fresh cross-compiler works.
13841   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13842   # <limits.h> exists even on freestanding compilers.
13843   # On the NeXT, cc -E runs the code through the compiler's parser,
13844   # not just through cpp. "Syntax error" is here to catch this case.
13845   cat >conftest.$ac_ext <<_ACEOF
13846 /* confdefs.h.  */
13847 _ACEOF
13848 cat confdefs.h >>conftest.$ac_ext
13849 cat >>conftest.$ac_ext <<_ACEOF
13850 /* end confdefs.h.  */
13851 #ifdef __STDC__
13852 # include <limits.h>
13853 #else
13854 # include <assert.h>
13855 #endif
13856                      Syntax error
13857 _ACEOF
13858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13859   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13860   ac_status=$?
13861   grep -v '^ *+' conftest.er1 >conftest.err
13862   rm -f conftest.er1
13863   cat conftest.err >&5
13864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865   (exit $ac_status); } >/dev/null; then
13866   if test -s conftest.err; then
13867     ac_cpp_err=$ac_c_preproc_warn_flag
13868     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13869   else
13870     ac_cpp_err=
13871   fi
13872 else
13873   ac_cpp_err=yes
13874 fi
13875 if test -z "$ac_cpp_err"; then
13876   :
13877 else
13878   echo "$as_me: failed program was:" >&5
13879 sed 's/^/| /' conftest.$ac_ext >&5
13880
13881   # Broken: fails on valid input.
13882 continue
13883 fi
13884 rm -f conftest.err conftest.$ac_ext
13885
13886   # OK, works on sane cases.  Now check whether non-existent headers
13887   # can be detected and how.
13888   cat >conftest.$ac_ext <<_ACEOF
13889 /* confdefs.h.  */
13890 _ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h.  */
13894 #include <ac_nonexistent.h>
13895 _ACEOF
13896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13897   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13898   ac_status=$?
13899   grep -v '^ *+' conftest.er1 >conftest.err
13900   rm -f conftest.er1
13901   cat conftest.err >&5
13902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903   (exit $ac_status); } >/dev/null; then
13904   if test -s conftest.err; then
13905     ac_cpp_err=$ac_c_preproc_warn_flag
13906     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13907   else
13908     ac_cpp_err=
13909   fi
13910 else
13911   ac_cpp_err=yes
13912 fi
13913 if test -z "$ac_cpp_err"; then
13914   # Broken: success on invalid input.
13915 continue
13916 else
13917   echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13919
13920   # Passes both tests.
13921 ac_preproc_ok=:
13922 break
13923 fi
13924 rm -f conftest.err conftest.$ac_ext
13925
13926 done
13927 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13928 rm -f conftest.err conftest.$ac_ext
13929 if $ac_preproc_ok; then
13930   :
13931 else
13932   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13933 See \`config.log' for more details." >&5
13934 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13935 See \`config.log' for more details." >&2;}
13936    { (exit 1); exit 1; }; }
13937 fi
13938
13939 ac_ext=c
13940 ac_cpp='$CPP $CPPFLAGS'
13941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13944
13945
13946 echo "$as_me:$LINENO: checking for egrep" >&5
13947 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13948 if test "${ac_cv_prog_egrep+set}" = set; then
13949   echo $ECHO_N "(cached) $ECHO_C" >&6
13950 else
13951   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13952     then ac_cv_prog_egrep='grep -E'
13953     else ac_cv_prog_egrep='egrep'
13954     fi
13955 fi
13956 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13957 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13958  EGREP=$ac_cv_prog_egrep
13959
13960
13961 if test $ac_cv_c_compiler_gnu = yes; then
13962     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13963 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13964 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13965   echo $ECHO_N "(cached) $ECHO_C" >&6
13966 else
13967     ac_pattern="Autoconf.*'x'"
13968   cat >conftest.$ac_ext <<_ACEOF
13969 /* confdefs.h.  */
13970 _ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h.  */
13974 #include <sgtty.h>
13975 Autoconf TIOCGETP
13976 _ACEOF
13977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13978   $EGREP "$ac_pattern" >/dev/null 2>&1; then
13979   ac_cv_prog_gcc_traditional=yes
13980 else
13981   ac_cv_prog_gcc_traditional=no
13982 fi
13983 rm -f conftest*
13984
13985
13986   if test $ac_cv_prog_gcc_traditional = no; then
13987     cat >conftest.$ac_ext <<_ACEOF
13988 /* confdefs.h.  */
13989 _ACEOF
13990 cat confdefs.h >>conftest.$ac_ext
13991 cat >>conftest.$ac_ext <<_ACEOF
13992 /* end confdefs.h.  */
13993 #include <termio.h>
13994 Autoconf TCGETA
13995 _ACEOF
13996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13997   $EGREP "$ac_pattern" >/dev/null 2>&1; then
13998   ac_cv_prog_gcc_traditional=yes
13999 fi
14000 rm -f conftest*
14001
14002   fi
14003 fi
14004 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
14005 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
14006   if test $ac_cv_prog_gcc_traditional = yes; then
14007     CC="$CC -traditional"
14008   fi
14009 fi
14010
14011
14012 CXXFLAGS=${CXXFLAGS:=}
14013
14014
14015
14016     ac_ext=cc
14017 ac_cpp='$CXXCPP $CPPFLAGS'
14018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14021 if test -n "$ac_tool_prefix"; then
14022   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
14023   do
14024     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14025 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14026 echo "$as_me:$LINENO: checking for $ac_word" >&5
14027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14028 if test "${ac_cv_prog_CXX+set}" = set; then
14029   echo $ECHO_N "(cached) $ECHO_C" >&6
14030 else
14031   if test -n "$CXX"; then
14032   ac_cv_prog_CXX="$CXX" # Let the user override the test.
14033 else
14034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14035 for as_dir in $PATH
14036 do
14037   IFS=$as_save_IFS
14038   test -z "$as_dir" && as_dir=.
14039   for ac_exec_ext in '' $ac_executable_extensions; do
14040   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14041     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14043     break 2
14044   fi
14045 done
14046 done
14047
14048 fi
14049 fi
14050 CXX=$ac_cv_prog_CXX
14051 if test -n "$CXX"; then
14052   echo "$as_me:$LINENO: result: $CXX" >&5
14053 echo "${ECHO_T}$CXX" >&6
14054 else
14055   echo "$as_me:$LINENO: result: no" >&5
14056 echo "${ECHO_T}no" >&6
14057 fi
14058
14059     test -n "$CXX" && break
14060   done
14061 fi
14062 if test -z "$CXX"; then
14063   ac_ct_CXX=$CXX
14064   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
14065 do
14066   # Extract the first word of "$ac_prog", so it can be a program name with args.
14067 set dummy $ac_prog; ac_word=$2
14068 echo "$as_me:$LINENO: checking for $ac_word" >&5
14069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14070 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
14071   echo $ECHO_N "(cached) $ECHO_C" >&6
14072 else
14073   if test -n "$ac_ct_CXX"; then
14074   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14075 else
14076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14077 for as_dir in $PATH
14078 do
14079   IFS=$as_save_IFS
14080   test -z "$as_dir" && as_dir=.
14081   for ac_exec_ext in '' $ac_executable_extensions; do
14082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14083     ac_cv_prog_ac_ct_CXX="$ac_prog"
14084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14085     break 2
14086   fi
14087 done
14088 done
14089
14090 fi
14091 fi
14092 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14093 if test -n "$ac_ct_CXX"; then
14094   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
14095 echo "${ECHO_T}$ac_ct_CXX" >&6
14096 else
14097   echo "$as_me:$LINENO: result: no" >&5
14098 echo "${ECHO_T}no" >&6
14099 fi
14100
14101   test -n "$ac_ct_CXX" && break
14102 done
14103 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
14104
14105   CXX=$ac_ct_CXX
14106 fi
14107
14108
14109 # Provide some information about the compiler.
14110 echo "$as_me:$LINENO:" \
14111      "checking for C++ compiler version" >&5
14112 ac_compiler=`set X $ac_compile; echo $2`
14113 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
14114   (eval $ac_compiler --version </dev/null >&5) 2>&5
14115   ac_status=$?
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   (exit $ac_status); }
14118 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
14119   (eval $ac_compiler -v </dev/null >&5) 2>&5
14120   ac_status=$?
14121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122   (exit $ac_status); }
14123 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
14124   (eval $ac_compiler -V </dev/null >&5) 2>&5
14125   ac_status=$?
14126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127   (exit $ac_status); }
14128
14129 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
14130 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
14131 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
14132   echo $ECHO_N "(cached) $ECHO_C" >&6
14133 else
14134   cat >conftest.$ac_ext <<_ACEOF
14135 /* confdefs.h.  */
14136 _ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h.  */
14140
14141 int
14142 main ()
14143 {
14144 #ifndef __GNUC__
14145        choke me
14146 #endif
14147
14148   ;
14149   return 0;
14150 }
14151 _ACEOF
14152 rm -f conftest.$ac_objext
14153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14154   (eval $ac_compile) 2>conftest.er1
14155   ac_status=$?
14156   grep -v '^ *+' conftest.er1 >conftest.err
14157   rm -f conftest.er1
14158   cat conftest.err >&5
14159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160   (exit $ac_status); } &&
14161          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163   (eval $ac_try) 2>&5
14164   ac_status=$?
14165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); }; } &&
14167          { ac_try='test -s conftest.$ac_objext'
14168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169   (eval $ac_try) 2>&5
14170   ac_status=$?
14171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172   (exit $ac_status); }; }; then
14173   ac_compiler_gnu=yes
14174 else
14175   echo "$as_me: failed program was:" >&5
14176 sed 's/^/| /' conftest.$ac_ext >&5
14177
14178 ac_compiler_gnu=no
14179 fi
14180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14181 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14182
14183 fi
14184 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
14185 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
14186 GXX=`test $ac_compiler_gnu = yes && echo yes`
14187 ac_test_CXXFLAGS=${CXXFLAGS+set}
14188 ac_save_CXXFLAGS=$CXXFLAGS
14189 CXXFLAGS="-g"
14190 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
14191 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
14192 if test "${ac_cv_prog_cxx_g+set}" = set; then
14193   echo $ECHO_N "(cached) $ECHO_C" >&6
14194 else
14195   cat >conftest.$ac_ext <<_ACEOF
14196 /* confdefs.h.  */
14197 _ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h.  */
14201
14202 int
14203 main ()
14204 {
14205
14206   ;
14207   return 0;
14208 }
14209 _ACEOF
14210 rm -f conftest.$ac_objext
14211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14212   (eval $ac_compile) 2>conftest.er1
14213   ac_status=$?
14214   grep -v '^ *+' conftest.er1 >conftest.err
14215   rm -f conftest.er1
14216   cat conftest.err >&5
14217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218   (exit $ac_status); } &&
14219          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221   (eval $ac_try) 2>&5
14222   ac_status=$?
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); }; } &&
14225          { ac_try='test -s conftest.$ac_objext'
14226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227   (eval $ac_try) 2>&5
14228   ac_status=$?
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); }; }; then
14231   ac_cv_prog_cxx_g=yes
14232 else
14233   echo "$as_me: failed program was:" >&5
14234 sed 's/^/| /' conftest.$ac_ext >&5
14235
14236 ac_cv_prog_cxx_g=no
14237 fi
14238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14239 fi
14240 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
14241 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
14242 if test "$ac_test_CXXFLAGS" = set; then
14243   CXXFLAGS=$ac_save_CXXFLAGS
14244 elif test $ac_cv_prog_cxx_g = yes; then
14245   if test "$GXX" = yes; then
14246     CXXFLAGS="-g -O2"
14247   else
14248     CXXFLAGS="-g"
14249   fi
14250 else
14251   if test "$GXX" = yes; then
14252     CXXFLAGS="-O2"
14253   else
14254     CXXFLAGS=
14255   fi
14256 fi
14257 for ac_declaration in \
14258    '' \
14259    'extern "C" void std::exit (int) throw (); using std::exit;' \
14260    'extern "C" void std::exit (int); using std::exit;' \
14261    'extern "C" void exit (int) throw ();' \
14262    'extern "C" void exit (int);' \
14263    'void exit (int);'
14264 do
14265   cat >conftest.$ac_ext <<_ACEOF
14266 /* confdefs.h.  */
14267 _ACEOF
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h.  */
14271 $ac_declaration
14272 #include <stdlib.h>
14273 int
14274 main ()
14275 {
14276 exit (42);
14277   ;
14278   return 0;
14279 }
14280 _ACEOF
14281 rm -f conftest.$ac_objext
14282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14283   (eval $ac_compile) 2>conftest.er1
14284   ac_status=$?
14285   grep -v '^ *+' conftest.er1 >conftest.err
14286   rm -f conftest.er1
14287   cat conftest.err >&5
14288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289   (exit $ac_status); } &&
14290          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14292   (eval $ac_try) 2>&5
14293   ac_status=$?
14294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295   (exit $ac_status); }; } &&
14296          { ac_try='test -s conftest.$ac_objext'
14297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298   (eval $ac_try) 2>&5
14299   ac_status=$?
14300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301   (exit $ac_status); }; }; then
14302   :
14303 else
14304   echo "$as_me: failed program was:" >&5
14305 sed 's/^/| /' conftest.$ac_ext >&5
14306
14307 continue
14308 fi
14309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14310   cat >conftest.$ac_ext <<_ACEOF
14311 /* confdefs.h.  */
14312 _ACEOF
14313 cat confdefs.h >>conftest.$ac_ext
14314 cat >>conftest.$ac_ext <<_ACEOF
14315 /* end confdefs.h.  */
14316 $ac_declaration
14317 int
14318 main ()
14319 {
14320 exit (42);
14321   ;
14322   return 0;
14323 }
14324 _ACEOF
14325 rm -f conftest.$ac_objext
14326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14327   (eval $ac_compile) 2>conftest.er1
14328   ac_status=$?
14329   grep -v '^ *+' conftest.er1 >conftest.err
14330   rm -f conftest.er1
14331   cat conftest.err >&5
14332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333   (exit $ac_status); } &&
14334          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336   (eval $ac_try) 2>&5
14337   ac_status=$?
14338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339   (exit $ac_status); }; } &&
14340          { ac_try='test -s conftest.$ac_objext'
14341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342   (eval $ac_try) 2>&5
14343   ac_status=$?
14344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345   (exit $ac_status); }; }; then
14346   break
14347 else
14348   echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14350
14351 fi
14352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14353 done
14354 rm -f conftest*
14355 if test -n "$ac_declaration"; then
14356   echo '#ifdef __cplusplus' >>confdefs.h
14357   echo $ac_declaration      >>confdefs.h
14358   echo '#endif'             >>confdefs.h
14359 fi
14360
14361 ac_ext=c
14362 ac_cpp='$CPP $CPPFLAGS'
14363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14366
14367
14368
14369     ac_ext=cc
14370 ac_cpp='$CXXCPP $CPPFLAGS'
14371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14374
14375     echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
14376 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
14377 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
14378   echo $ECHO_N "(cached) $ECHO_C" >&6
14379 else
14380   cat >conftest.$ac_ext <<_ACEOF
14381 /* confdefs.h.  */
14382 _ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h.  */
14386
14387 int
14388 main ()
14389 {
14390
14391              #ifndef __INTEL_COMPILER
14392                 choke me
14393              #endif
14394
14395   ;
14396   return 0;
14397 }
14398 _ACEOF
14399 rm -f conftest.$ac_objext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14401   (eval $ac_compile) 2>conftest.er1
14402   ac_status=$?
14403   grep -v '^ *+' conftest.er1 >conftest.err
14404   rm -f conftest.er1
14405   cat conftest.err >&5
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); } &&
14408          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410   (eval $ac_try) 2>&5
14411   ac_status=$?
14412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413   (exit $ac_status); }; } &&
14414          { ac_try='test -s conftest.$ac_objext'
14415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416   (eval $ac_try) 2>&5
14417   ac_status=$?
14418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419   (exit $ac_status); }; }; then
14420   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14421 else
14422   echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14424
14425 bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14426
14427 fi
14428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14429
14430
14431 fi
14432 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14433 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14434     ac_ext=c
14435 ac_cpp='$CPP $CPPFLAGS'
14436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14439
14440     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
14441         :; INTELCXX=yes
14442     else
14443         :;
14444     fi
14445
14446
14447         if test "x$GCXX" != "xyes"; then
14448         if test "xCXX" = "xC"; then
14449             echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
14450 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
14451 if test "${bakefile_cv_c_exto+set}" = set; then
14452   echo $ECHO_N "(cached) $ECHO_C" >&6
14453 else
14454   cat >conftest.$ac_ext <<_ACEOF
14455 /* confdefs.h.  */
14456 _ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h.  */
14460
14461 int
14462 main ()
14463 {
14464
14465   ;
14466   return 0;
14467 }
14468 _ACEOF
14469 rm -f conftest.$ac_objext conftest.$ac_ext.o
14470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14471   (eval $ac_compile) 2>&5
14472   ac_status=$?
14473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474   (exit $ac_status); }; then
14475   for ac_file in `(ls conftest.* 2>/dev/null)`; do
14476     case $ac_file in
14477         conftest.$ac_ext.o)
14478             bakefile_cv_c_exto="-ext o"
14479             ;;
14480         *)
14481             ;;
14482     esac
14483 done
14484 else
14485   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14486 See \`config.log' for more details." >&5
14487 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14488 See \`config.log' for more details." >&2;}
14489    { (exit 1); exit 1; }; }
14490
14491 fi
14492
14493 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14494
14495 fi
14496 echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
14497 echo "${ECHO_T}$bakefile_cv_c_exto" >&6
14498 if test "x$bakefile_cv_c_exto" '!=' "x"; then
14499     if test "c" = "c"; then
14500         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
14501     fi
14502     if test "c" = "cxx"; then
14503         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
14504     fi
14505 fi
14506
14507             if test "x$bakefile_cv_c_exto" '!=' "x"; then
14508                 unset ac_cv_prog_cc_g
14509                 ac_test_CFLAGS=${CFLAGS+set}
14510 ac_save_CFLAGS=$CFLAGS
14511 CFLAGS="-g"
14512 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14513 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14514 if test "${ac_cv_prog_cc_g+set}" = set; then
14515   echo $ECHO_N "(cached) $ECHO_C" >&6
14516 else
14517   cat >conftest.$ac_ext <<_ACEOF
14518 /* confdefs.h.  */
14519 _ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h.  */
14523
14524 int
14525 main ()
14526 {
14527
14528   ;
14529   return 0;
14530 }
14531 _ACEOF
14532 rm -f conftest.$ac_objext
14533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14534   (eval $ac_compile) 2>conftest.er1
14535   ac_status=$?
14536   grep -v '^ *+' conftest.er1 >conftest.err
14537   rm -f conftest.er1
14538   cat conftest.err >&5
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); } &&
14541          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543   (eval $ac_try) 2>&5
14544   ac_status=$?
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); }; } &&
14547          { ac_try='test -s conftest.$ac_objext'
14548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549   (eval $ac_try) 2>&5
14550   ac_status=$?
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); }; }; then
14553   ac_cv_prog_cc_g=yes
14554 else
14555   echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14557
14558 ac_cv_prog_cc_g=no
14559 fi
14560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14561 fi
14562 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14563 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14564 if test "$ac_test_CFLAGS" = set; then
14565   CFLAGS=$ac_save_CFLAGS
14566 elif test $ac_cv_prog_cc_g = yes; then
14567   if test "$GCC" = yes; then
14568     CFLAGS="-g -O2"
14569   else
14570     CFLAGS="-g"
14571   fi
14572 else
14573   if test "$GCC" = yes; then
14574     CFLAGS="-O2"
14575   else
14576     CFLAGS=
14577   fi
14578 fi
14579             fi
14580         fi
14581
14582                         case `uname -s` in
14583             AIX*)
14584                 ac_ext=cc
14585 ac_cpp='$CXXCPP $CPPFLAGS'
14586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14589
14590 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14591 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
14592 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
14593   echo $ECHO_N "(cached) $ECHO_C" >&6
14594 else
14595   cat >conftest.$ac_ext <<_ACEOF
14596 /* confdefs.h.  */
14597 _ACEOF
14598 cat confdefs.h >>conftest.$ac_ext
14599 cat >>conftest.$ac_ext <<_ACEOF
14600 /* end confdefs.h.  */
14601
14602 int
14603 main ()
14604 {
14605 #ifndef __xlC__
14606        choke me
14607 #endif
14608
14609   ;
14610   return 0;
14611 }
14612 _ACEOF
14613 rm -f conftest.$ac_objext
14614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14615   (eval $ac_compile) 2>conftest.er1
14616   ac_status=$?
14617   grep -v '^ *+' conftest.er1 >conftest.err
14618   rm -f conftest.er1
14619   cat conftest.err >&5
14620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621   (exit $ac_status); } &&
14622          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624   (eval $ac_try) 2>&5
14625   ac_status=$?
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); }; } &&
14628          { ac_try='test -s conftest.$ac_objext'
14629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630   (eval $ac_try) 2>&5
14631   ac_status=$?
14632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633   (exit $ac_status); }; }; then
14634   bakefile_compiler_xlc=yes
14635 else
14636   echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14638
14639 bakefile_compiler_xlc=no
14640 fi
14641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14642     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
14643
14644 fi
14645 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14646 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
14647
14648 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
14649 ac_ext=c
14650 ac_cpp='$CPP $CPPFLAGS'
14651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14654
14655
14656                 ;;
14657
14658             Darwin)
14659                 ac_ext=cc
14660 ac_cpp='$CXXCPP $CPPFLAGS'
14661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14664
14665 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14666 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14667 if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14668   echo $ECHO_N "(cached) $ECHO_C" >&6
14669 else
14670   cat >conftest.$ac_ext <<_ACEOF
14671 /* confdefs.h.  */
14672 _ACEOF
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h.  */
14676
14677 int
14678 main ()
14679 {
14680 #ifndef __MWERKS__
14681        choke me
14682 #endif
14683
14684   ;
14685   return 0;
14686 }
14687 _ACEOF
14688 rm -f conftest.$ac_objext
14689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14690   (eval $ac_compile) 2>conftest.er1
14691   ac_status=$?
14692   grep -v '^ *+' conftest.er1 >conftest.err
14693   rm -f conftest.er1
14694   cat conftest.err >&5
14695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696   (exit $ac_status); } &&
14697          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14699   (eval $ac_try) 2>&5
14700   ac_status=$?
14701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702   (exit $ac_status); }; } &&
14703          { ac_try='test -s conftest.$ac_objext'
14704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705   (eval $ac_try) 2>&5
14706   ac_status=$?
14707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708   (exit $ac_status); }; }; then
14709   bakefile_compiler_mwerks=yes
14710 else
14711   echo "$as_me: failed program was:" >&5
14712 sed 's/^/| /' conftest.$ac_ext >&5
14713
14714 bakefile_compiler_mwerks=no
14715 fi
14716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14717     bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14718
14719 fi
14720 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14721 echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14722
14723 MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
14724 ac_ext=c
14725 ac_cpp='$CPP $CPPFLAGS'
14726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14729
14730
14731                 ac_ext=cc
14732 ac_cpp='$CXXCPP $CPPFLAGS'
14733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14736
14737 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14738 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
14739 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
14740   echo $ECHO_N "(cached) $ECHO_C" >&6
14741 else
14742   cat >conftest.$ac_ext <<_ACEOF
14743 /* confdefs.h.  */
14744 _ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h.  */
14748
14749 int
14750 main ()
14751 {
14752 #ifndef __xlC__
14753        choke me
14754 #endif
14755
14756   ;
14757   return 0;
14758 }
14759 _ACEOF
14760 rm -f conftest.$ac_objext
14761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14762   (eval $ac_compile) 2>conftest.er1
14763   ac_status=$?
14764   grep -v '^ *+' conftest.er1 >conftest.err
14765   rm -f conftest.er1
14766   cat conftest.err >&5
14767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768   (exit $ac_status); } &&
14769          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771   (eval $ac_try) 2>&5
14772   ac_status=$?
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); }; } &&
14775          { ac_try='test -s conftest.$ac_objext'
14776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777   (eval $ac_try) 2>&5
14778   ac_status=$?
14779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780   (exit $ac_status); }; }; then
14781   bakefile_compiler_xlc=yes
14782 else
14783   echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14785
14786 bakefile_compiler_xlc=no
14787 fi
14788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14789     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
14790
14791 fi
14792 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14793 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
14794
14795 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
14796 ac_ext=c
14797 ac_cpp='$CPP $CPPFLAGS'
14798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14801
14802
14803                 ;;
14804
14805             IRIX*)
14806
14807
14808     ac_ext=cc
14809 ac_cpp='$CXXCPP $CPPFLAGS'
14810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14813
14814     echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14815 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14816 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14817   echo $ECHO_N "(cached) $ECHO_C" >&6
14818 else
14819   cat >conftest.$ac_ext <<_ACEOF
14820 /* confdefs.h.  */
14821 _ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h.  */
14825
14826 int
14827 main ()
14828 {
14829
14830              #ifndef _SGI_COMPILER_VERSION
14831                 choke me
14832              #endif
14833
14834   ;
14835   return 0;
14836 }
14837 _ACEOF
14838 rm -f conftest.$ac_objext
14839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14840   (eval $ac_compile) 2>conftest.er1
14841   ac_status=$?
14842   grep -v '^ *+' conftest.er1 >conftest.err
14843   rm -f conftest.er1
14844   cat conftest.err >&5
14845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846   (exit $ac_status); } &&
14847          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14849   (eval $ac_try) 2>&5
14850   ac_status=$?
14851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852   (exit $ac_status); }; } &&
14853          { ac_try='test -s conftest.$ac_objext'
14854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855   (eval $ac_try) 2>&5
14856   ac_status=$?
14857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858   (exit $ac_status); }; }; then
14859   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14860 else
14861   echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14863
14864 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14865
14866 fi
14867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14868
14869
14870 fi
14871 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14872 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14873     ac_ext=c
14874 ac_cpp='$CPP $CPPFLAGS'
14875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14878
14879     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14880         :; SGICXX=yes
14881     else
14882         :;
14883     fi
14884
14885
14886                 ;;
14887
14888             HP-UX*)
14889
14890
14891     ac_ext=cc
14892 ac_cpp='$CXXCPP $CPPFLAGS'
14893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14896
14897     echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14898 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14899 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
14900   echo $ECHO_N "(cached) $ECHO_C" >&6
14901 else
14902   cat >conftest.$ac_ext <<_ACEOF
14903 /* confdefs.h.  */
14904 _ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h.  */
14908
14909 int
14910 main ()
14911 {
14912
14913              #ifndef __HP_aCC
14914                 choke me
14915              #endif
14916
14917   ;
14918   return 0;
14919 }
14920 _ACEOF
14921 rm -f conftest.$ac_objext
14922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14923   (eval $ac_compile) 2>conftest.er1
14924   ac_status=$?
14925   grep -v '^ *+' conftest.er1 >conftest.err
14926   rm -f conftest.er1
14927   cat conftest.err >&5
14928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929   (exit $ac_status); } &&
14930          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
14931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14932   (eval $ac_try) 2>&5
14933   ac_status=$?
14934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935   (exit $ac_status); }; } &&
14936          { ac_try='test -s conftest.$ac_objext'
14937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14938   (eval $ac_try) 2>&5
14939   ac_status=$?
14940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941   (exit $ac_status); }; }; then
14942   bakefile_cv_cxx_compiler___HP_aCC=yes
14943 else
14944   echo "$as_me: failed program was:" >&5
14945 sed 's/^/| /' conftest.$ac_ext >&5
14946
14947 bakefile_cv_cxx_compiler___HP_aCC=no
14948
14949 fi
14950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14951
14952
14953 fi
14954 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14955 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
14956     ac_ext=c
14957 ac_cpp='$CPP $CPPFLAGS'
14958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14961
14962     if test "x$bakefile_cv_c_compiler___HP_aCC" = "xyes"; then
14963         :; HPCXX=yes
14964     else
14965         :;
14966     fi
14967
14968
14969                 ;;
14970
14971             OSF1)
14972
14973
14974     ac_ext=cc
14975 ac_cpp='$CXXCPP $CPPFLAGS'
14976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14979
14980     echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14981 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14982 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
14983   echo $ECHO_N "(cached) $ECHO_C" >&6
14984 else
14985   cat >conftest.$ac_ext <<_ACEOF
14986 /* confdefs.h.  */
14987 _ACEOF
14988 cat confdefs.h >>conftest.$ac_ext
14989 cat >>conftest.$ac_ext <<_ACEOF
14990 /* end confdefs.h.  */
14991
14992 int
14993 main ()
14994 {
14995
14996              #ifndef __DECCXX
14997                 choke me
14998              #endif
14999
15000   ;
15001   return 0;
15002 }
15003 _ACEOF
15004 rm -f conftest.$ac_objext
15005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15006   (eval $ac_compile) 2>conftest.er1
15007   ac_status=$?
15008   grep -v '^ *+' conftest.er1 >conftest.err
15009   rm -f conftest.er1
15010   cat conftest.err >&5
15011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012   (exit $ac_status); } &&
15013          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015   (eval $ac_try) 2>&5
15016   ac_status=$?
15017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018   (exit $ac_status); }; } &&
15019          { ac_try='test -s conftest.$ac_objext'
15020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15021   (eval $ac_try) 2>&5
15022   ac_status=$?
15023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024   (exit $ac_status); }; }; then
15025   bakefile_cv_cxx_compiler___DECCXX=yes
15026 else
15027   echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15029
15030 bakefile_cv_cxx_compiler___DECCXX=no
15031
15032 fi
15033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15034
15035
15036 fi
15037 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
15038 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
15039     ac_ext=c
15040 ac_cpp='$CPP $CPPFLAGS'
15041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15044
15045     if test "x$bakefile_cv_c_compiler___DECCXX" = "xyes"; then
15046         :; COMPAQCXX=yes
15047     else
15048         :;
15049     fi
15050
15051
15052                 ;;
15053
15054             SunOS)
15055
15056
15057     ac_ext=cc
15058 ac_cpp='$CXXCPP $CPPFLAGS'
15059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15062
15063     echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
15064 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
15065 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
15066   echo $ECHO_N "(cached) $ECHO_C" >&6
15067 else
15068   cat >conftest.$ac_ext <<_ACEOF
15069 /* confdefs.h.  */
15070 _ACEOF
15071 cat confdefs.h >>conftest.$ac_ext
15072 cat >>conftest.$ac_ext <<_ACEOF
15073 /* end confdefs.h.  */
15074
15075 int
15076 main ()
15077 {
15078
15079              #ifndef __SUNPRO_CC
15080                 choke me
15081              #endif
15082
15083   ;
15084   return 0;
15085 }
15086 _ACEOF
15087 rm -f conftest.$ac_objext
15088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15089   (eval $ac_compile) 2>conftest.er1
15090   ac_status=$?
15091   grep -v '^ *+' conftest.er1 >conftest.err
15092   rm -f conftest.er1
15093   cat conftest.err >&5
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); } &&
15096          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
15097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098   (eval $ac_try) 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); }; } &&
15102          { ac_try='test -s conftest.$ac_objext'
15103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104   (eval $ac_try) 2>&5
15105   ac_status=$?
15106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107   (exit $ac_status); }; }; then
15108   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
15109 else
15110   echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15112
15113 bakefile_cv_cxx_compiler___SUNPRO_CC=no
15114
15115 fi
15116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15117
15118
15119 fi
15120 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
15121 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
15122     ac_ext=c
15123 ac_cpp='$CPP $CPPFLAGS'
15124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15127
15128     if test "x$bakefile_cv_c_compiler___SUNPRO_CC" = "xyes"; then
15129         :; SUNCXX=yes
15130     else
15131         :;
15132     fi
15133
15134
15135                 ;;
15136         esac
15137     fi
15138
15139
15140
15141 if test -n "$ac_tool_prefix"; then
15142   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15143 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15144 echo "$as_me:$LINENO: checking for $ac_word" >&5
15145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15146 if test "${ac_cv_prog_RANLIB+set}" = set; then
15147   echo $ECHO_N "(cached) $ECHO_C" >&6
15148 else
15149   if test -n "$RANLIB"; then
15150   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15151 else
15152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15153 for as_dir in $PATH
15154 do
15155   IFS=$as_save_IFS
15156   test -z "$as_dir" && as_dir=.
15157   for ac_exec_ext in '' $ac_executable_extensions; do
15158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15159     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15161     break 2
15162   fi
15163 done
15164 done
15165
15166 fi
15167 fi
15168 RANLIB=$ac_cv_prog_RANLIB
15169 if test -n "$RANLIB"; then
15170   echo "$as_me:$LINENO: result: $RANLIB" >&5
15171 echo "${ECHO_T}$RANLIB" >&6
15172 else
15173   echo "$as_me:$LINENO: result: no" >&5
15174 echo "${ECHO_T}no" >&6
15175 fi
15176
15177 fi
15178 if test -z "$ac_cv_prog_RANLIB"; then
15179   ac_ct_RANLIB=$RANLIB
15180   # Extract the first word of "ranlib", so it can be a program name with args.
15181 set dummy ranlib; ac_word=$2
15182 echo "$as_me:$LINENO: checking for $ac_word" >&5
15183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15184 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15185   echo $ECHO_N "(cached) $ECHO_C" >&6
15186 else
15187   if test -n "$ac_ct_RANLIB"; then
15188   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15189 else
15190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15191 for as_dir in $PATH
15192 do
15193   IFS=$as_save_IFS
15194   test -z "$as_dir" && as_dir=.
15195   for ac_exec_ext in '' $ac_executable_extensions; do
15196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15197     ac_cv_prog_ac_ct_RANLIB="ranlib"
15198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15199     break 2
15200   fi
15201 done
15202 done
15203
15204   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15205 fi
15206 fi
15207 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15208 if test -n "$ac_ct_RANLIB"; then
15209   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15210 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15211 else
15212   echo "$as_me:$LINENO: result: no" >&5
15213 echo "${ECHO_T}no" >&6
15214 fi
15215
15216   RANLIB=$ac_ct_RANLIB
15217 else
15218   RANLIB="$ac_cv_prog_RANLIB"
15219 fi
15220
15221
15222 if test -n "$ac_tool_prefix"; then
15223   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15224 set dummy ${ac_tool_prefix}ar; ac_word=$2
15225 echo "$as_me:$LINENO: checking for $ac_word" >&5
15226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15227 if test "${ac_cv_prog_AR+set}" = set; then
15228   echo $ECHO_N "(cached) $ECHO_C" >&6
15229 else
15230   if test -n "$AR"; then
15231   ac_cv_prog_AR="$AR" # Let the user override the test.
15232 else
15233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15234 for as_dir in $PATH
15235 do
15236   IFS=$as_save_IFS
15237   test -z "$as_dir" && as_dir=.
15238   for ac_exec_ext in '' $ac_executable_extensions; do
15239   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15240     ac_cv_prog_AR="${ac_tool_prefix}ar"
15241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15242     break 2
15243   fi
15244 done
15245 done
15246
15247 fi
15248 fi
15249 AR=$ac_cv_prog_AR
15250 if test -n "$AR"; then
15251   echo "$as_me:$LINENO: result: $AR" >&5
15252 echo "${ECHO_T}$AR" >&6
15253 else
15254   echo "$as_me:$LINENO: result: no" >&5
15255 echo "${ECHO_T}no" >&6
15256 fi
15257
15258 fi
15259 if test -z "$ac_cv_prog_AR"; then
15260   ac_ct_AR=$AR
15261   # Extract the first word of "ar", so it can be a program name with args.
15262 set dummy ar; ac_word=$2
15263 echo "$as_me:$LINENO: checking for $ac_word" >&5
15264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15265 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15266   echo $ECHO_N "(cached) $ECHO_C" >&6
15267 else
15268   if test -n "$ac_ct_AR"; then
15269   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15270 else
15271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15272 for as_dir in $PATH
15273 do
15274   IFS=$as_save_IFS
15275   test -z "$as_dir" && as_dir=.
15276   for ac_exec_ext in '' $ac_executable_extensions; do
15277   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15278     ac_cv_prog_ac_ct_AR="ar"
15279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15280     break 2
15281   fi
15282 done
15283 done
15284
15285 fi
15286 fi
15287 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15288 if test -n "$ac_ct_AR"; then
15289   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15290 echo "${ECHO_T}$ac_ct_AR" >&6
15291 else
15292   echo "$as_me:$LINENO: result: no" >&5
15293 echo "${ECHO_T}no" >&6
15294 fi
15295
15296   AR=$ac_ct_AR
15297 else
15298   AR="$ac_cv_prog_AR"
15299 fi
15300
15301 if test "x$AR" = "x" ; then
15302     { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
15303 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
15304    { (exit 1); exit 1; }; }
15305 fi
15306
15307 # Find a good install program.  We prefer a C program (faster),
15308 # so one script is as good as another.  But avoid the broken or
15309 # incompatible versions:
15310 # SysV /etc/install, /usr/sbin/install
15311 # SunOS /usr/etc/install
15312 # IRIX /sbin/install
15313 # AIX /bin/install
15314 # AmigaOS /C/install, which installs bootblocks on floppy discs
15315 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15316 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15317 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15318 # OS/2's system install, which has a completely different semantic
15319 # ./install, which can be erroneously created by make from ./install.sh.
15320 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15321 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
15322 if test -z "$INSTALL"; then
15323 if test "${ac_cv_path_install+set}" = set; then
15324   echo $ECHO_N "(cached) $ECHO_C" >&6
15325 else
15326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15327 for as_dir in $PATH
15328 do
15329   IFS=$as_save_IFS
15330   test -z "$as_dir" && as_dir=.
15331   # Account for people who put trailing slashes in PATH elements.
15332 case $as_dir/ in
15333   ./ | .// | /cC/* | \
15334   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15335   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
15336   /usr/ucb/* ) ;;
15337   *)
15338     # OSF1 and SCO ODT 3.0 have their own names for install.
15339     # Don't use installbsd from OSF since it installs stuff as root
15340     # by default.
15341     for ac_prog in ginstall scoinst install; do
15342       for ac_exec_ext in '' $ac_executable_extensions; do
15343         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15344           if test $ac_prog = install &&
15345             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15346             # AIX install.  It has an incompatible calling convention.
15347             :
15348           elif test $ac_prog = install &&
15349             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15350             # program-specific install script used by HP pwplus--don't use.
15351             :
15352           else
15353             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15354             break 3
15355           fi
15356         fi
15357       done
15358     done
15359     ;;
15360 esac
15361 done
15362
15363
15364 fi
15365   if test "${ac_cv_path_install+set}" = set; then
15366     INSTALL=$ac_cv_path_install
15367   else
15368     # As a last resort, use the slow shell script.  We don't cache a
15369     # path for INSTALL within a source directory, because that will
15370     # break other packages using the cache if that directory is
15371     # removed, or if the path is relative.
15372     INSTALL=$ac_install_sh
15373   fi
15374 fi
15375 echo "$as_me:$LINENO: result: $INSTALL" >&5
15376 echo "${ECHO_T}$INSTALL" >&6
15377
15378 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15379 # It thinks the first close brace ends the variable substitution.
15380 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15381
15382 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15383
15384 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15385
15386
15387 case ${INSTALL} in
15388   /* ) # Absolute
15389      ;;
15390   ?:* ) # Drive letter, considered as absolute.
15391      ;;
15392   *)
15393      INSTALL=`pwd`/${INSTALL} ;;
15394 esac
15395
15396
15397 case "${host}" in
15398
15399                 *-*-darwin* )
15400         INSTALL_PROGRAM="cp -fp"
15401         INSTALL_DATA="cp -fp"
15402         ;;
15403     *)
15404         ;;
15405 esac
15406
15407 if test -n "$ac_tool_prefix"; then
15408   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15409 set dummy ${ac_tool_prefix}strip; ac_word=$2
15410 echo "$as_me:$LINENO: checking for $ac_word" >&5
15411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15412 if test "${ac_cv_prog_STRIP+set}" = set; then
15413   echo $ECHO_N "(cached) $ECHO_C" >&6
15414 else
15415   if test -n "$STRIP"; then
15416   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15417 else
15418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15419 for as_dir in $PATH
15420 do
15421   IFS=$as_save_IFS
15422   test -z "$as_dir" && as_dir=.
15423   for ac_exec_ext in '' $ac_executable_extensions; do
15424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15425     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15427     break 2
15428   fi
15429 done
15430 done
15431
15432 fi
15433 fi
15434 STRIP=$ac_cv_prog_STRIP
15435 if test -n "$STRIP"; then
15436   echo "$as_me:$LINENO: result: $STRIP" >&5
15437 echo "${ECHO_T}$STRIP" >&6
15438 else
15439   echo "$as_me:$LINENO: result: no" >&5
15440 echo "${ECHO_T}no" >&6
15441 fi
15442
15443 fi
15444 if test -z "$ac_cv_prog_STRIP"; then
15445   ac_ct_STRIP=$STRIP
15446   # Extract the first word of "strip", so it can be a program name with args.
15447 set dummy strip; ac_word=$2
15448 echo "$as_me:$LINENO: checking for $ac_word" >&5
15449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15450 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15451   echo $ECHO_N "(cached) $ECHO_C" >&6
15452 else
15453   if test -n "$ac_ct_STRIP"; then
15454   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15455 else
15456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15457 for as_dir in $PATH
15458 do
15459   IFS=$as_save_IFS
15460   test -z "$as_dir" && as_dir=.
15461   for ac_exec_ext in '' $ac_executable_extensions; do
15462   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15463     ac_cv_prog_ac_ct_STRIP="strip"
15464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15465     break 2
15466   fi
15467 done
15468 done
15469
15470   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15471 fi
15472 fi
15473 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15474 if test -n "$ac_ct_STRIP"; then
15475   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15476 echo "${ECHO_T}$ac_ct_STRIP" >&6
15477 else
15478   echo "$as_me:$LINENO: result: no" >&5
15479 echo "${ECHO_T}no" >&6
15480 fi
15481
15482   STRIP=$ac_ct_STRIP
15483 else
15484   STRIP="$ac_cv_prog_STRIP"
15485 fi
15486
15487
15488 if test "$wxUSE_WINE" = "yes"; then
15489     if test -n "$ac_tool_prefix"; then
15490   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15491 set dummy ${ac_tool_prefix}wrc; ac_word=$2
15492 echo "$as_me:$LINENO: checking for $ac_word" >&5
15493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15494 if test "${ac_cv_prog_WINDRES+set}" = set; then
15495   echo $ECHO_N "(cached) $ECHO_C" >&6
15496 else
15497   if test -n "$WINDRES"; then
15498   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15499 else
15500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15501 for as_dir in $PATH
15502 do
15503   IFS=$as_save_IFS
15504   test -z "$as_dir" && as_dir=.
15505   for ac_exec_ext in '' $ac_executable_extensions; do
15506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15507     ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
15508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15509     break 2
15510   fi
15511 done
15512 done
15513
15514 fi
15515 fi
15516 WINDRES=$ac_cv_prog_WINDRES
15517 if test -n "$WINDRES"; then
15518   echo "$as_me:$LINENO: result: $WINDRES" >&5
15519 echo "${ECHO_T}$WINDRES" >&6
15520 else
15521   echo "$as_me:$LINENO: result: no" >&5
15522 echo "${ECHO_T}no" >&6
15523 fi
15524
15525 fi
15526 if test -z "$ac_cv_prog_WINDRES"; then
15527   ac_ct_WINDRES=$WINDRES
15528   # Extract the first word of "wrc", so it can be a program name with args.
15529 set dummy wrc; ac_word=$2
15530 echo "$as_me:$LINENO: checking for $ac_word" >&5
15531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15532 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15533   echo $ECHO_N "(cached) $ECHO_C" >&6
15534 else
15535   if test -n "$ac_ct_WINDRES"; then
15536   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15537 else
15538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15539 for as_dir in $PATH
15540 do
15541   IFS=$as_save_IFS
15542   test -z "$as_dir" && as_dir=.
15543   for ac_exec_ext in '' $ac_executable_extensions; do
15544   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15545     ac_cv_prog_ac_ct_WINDRES="wrc"
15546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15547     break 2
15548   fi
15549 done
15550 done
15551
15552 fi
15553 fi
15554 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15555 if test -n "$ac_ct_WINDRES"; then
15556   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15557 echo "${ECHO_T}$ac_ct_WINDRES" >&6
15558 else
15559   echo "$as_me:$LINENO: result: no" >&5
15560 echo "${ECHO_T}no" >&6
15561 fi
15562
15563   WINDRES=$ac_ct_WINDRES
15564 else
15565   WINDRES="$ac_cv_prog_WINDRES"
15566 fi
15567
15568     RESCOMP="$WINDRES"
15569 else
15570     case "${host}" in
15571     *-*-cygwin* | *-*-mingw32* )
15572                                 if test -n "$ac_tool_prefix"; then
15573   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15574 set dummy ${ac_tool_prefix}windres; ac_word=$2
15575 echo "$as_me:$LINENO: checking for $ac_word" >&5
15576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15577 if test "${ac_cv_prog_WINDRES+set}" = set; then
15578   echo $ECHO_N "(cached) $ECHO_C" >&6
15579 else
15580   if test -n "$WINDRES"; then
15581   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15582 else
15583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15584 for as_dir in $PATH
15585 do
15586   IFS=$as_save_IFS
15587   test -z "$as_dir" && as_dir=.
15588   for ac_exec_ext in '' $ac_executable_extensions; do
15589   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15590     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15592     break 2
15593   fi
15594 done
15595 done
15596
15597 fi
15598 fi
15599 WINDRES=$ac_cv_prog_WINDRES
15600 if test -n "$WINDRES"; then
15601   echo "$as_me:$LINENO: result: $WINDRES" >&5
15602 echo "${ECHO_T}$WINDRES" >&6
15603 else
15604   echo "$as_me:$LINENO: result: no" >&5
15605 echo "${ECHO_T}no" >&6
15606 fi
15607
15608 fi
15609 if test -z "$ac_cv_prog_WINDRES"; then
15610   ac_ct_WINDRES=$WINDRES
15611   # Extract the first word of "windres", so it can be a program name with args.
15612 set dummy windres; ac_word=$2
15613 echo "$as_me:$LINENO: checking for $ac_word" >&5
15614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15615 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15616   echo $ECHO_N "(cached) $ECHO_C" >&6
15617 else
15618   if test -n "$ac_ct_WINDRES"; then
15619   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15620 else
15621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15622 for as_dir in $PATH
15623 do
15624   IFS=$as_save_IFS
15625   test -z "$as_dir" && as_dir=.
15626   for ac_exec_ext in '' $ac_executable_extensions; do
15627   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15628     ac_cv_prog_ac_ct_WINDRES="windres"
15629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15630     break 2
15631   fi
15632 done
15633 done
15634
15635 fi
15636 fi
15637 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15638 if test -n "$ac_ct_WINDRES"; then
15639   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15640 echo "${ECHO_T}$ac_ct_WINDRES" >&6
15641 else
15642   echo "$as_me:$LINENO: result: no" >&5
15643 echo "${ECHO_T}no" >&6
15644 fi
15645
15646   WINDRES=$ac_ct_WINDRES
15647 else
15648   WINDRES="$ac_cv_prog_WINDRES"
15649 fi
15650
15651         RESCOMP="$WINDRES"
15652         if test -n "$ac_tool_prefix"; then
15653   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15654 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15655 echo "$as_me:$LINENO: checking for $ac_word" >&5
15656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15657 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15658   echo $ECHO_N "(cached) $ECHO_C" >&6
15659 else
15660   if test -n "$DLLTOOL"; then
15661   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15662 else
15663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15664 for as_dir in $PATH
15665 do
15666   IFS=$as_save_IFS
15667   test -z "$as_dir" && as_dir=.
15668   for ac_exec_ext in '' $ac_executable_extensions; do
15669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15670     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15672     break 2
15673   fi
15674 done
15675 done
15676
15677 fi
15678 fi
15679 DLLTOOL=$ac_cv_prog_DLLTOOL
15680 if test -n "$DLLTOOL"; then
15681   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15682 echo "${ECHO_T}$DLLTOOL" >&6
15683 else
15684   echo "$as_me:$LINENO: result: no" >&5
15685 echo "${ECHO_T}no" >&6
15686 fi
15687
15688 fi
15689 if test -z "$ac_cv_prog_DLLTOOL"; then
15690   ac_ct_DLLTOOL=$DLLTOOL
15691   # Extract the first word of "dlltool", so it can be a program name with args.
15692 set dummy dlltool; ac_word=$2
15693 echo "$as_me:$LINENO: checking for $ac_word" >&5
15694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15695 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15696   echo $ECHO_N "(cached) $ECHO_C" >&6
15697 else
15698   if test -n "$ac_ct_DLLTOOL"; then
15699   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15700 else
15701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15702 for as_dir in $PATH
15703 do
15704   IFS=$as_save_IFS
15705   test -z "$as_dir" && as_dir=.
15706   for ac_exec_ext in '' $ac_executable_extensions; do
15707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15708     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15710     break 2
15711   fi
15712 done
15713 done
15714
15715 fi
15716 fi
15717 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15718 if test -n "$ac_ct_DLLTOOL"; then
15719   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15720 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15721 else
15722   echo "$as_me:$LINENO: result: no" >&5
15723 echo "${ECHO_T}no" >&6
15724 fi
15725
15726   DLLTOOL=$ac_ct_DLLTOOL
15727 else
15728   DLLTOOL="$ac_cv_prog_DLLTOOL"
15729 fi
15730
15731         ;;
15732     esac
15733 fi
15734
15735 echo "$as_me:$LINENO: checking if make is GNU make" >&5
15736 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15737 if test "${wx_cv_prog_makeisgnu+set}" = set; then
15738   echo $ECHO_N "(cached) $ECHO_C" >&6
15739 else
15740
15741     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15742             $EGREP -s GNU > /dev/null); then
15743         wx_cv_prog_makeisgnu="yes"
15744     else
15745         wx_cv_prog_makeisgnu="no"
15746     fi
15747
15748 fi
15749 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15750 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15751
15752 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15753     IF_GNU_MAKE=""
15754 else
15755     IF_GNU_MAKE="#"
15756 fi
15757
15758
15759
15760 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15761 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15762 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15763 if test "${wx_cv_prog_makevpath+set}" = set; then
15764   echo $ECHO_N "(cached) $ECHO_C" >&6
15765 else
15766
15767 cat - << EOF > confMake
15768 check : file
15769         cp \$? \$@
15770         cp \$? final_file
15771 EOF
15772
15773 if test ! -d sub ; then
15774   mkdir sub
15775 fi
15776 echo dummy > sub/file
15777 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15778 RESULT=$?
15779 rm -f sub/file check final_file confMake
15780 rmdir sub
15781 if test "$RESULT" = 0; then
15782   wx_cv_prog_makevpath="yes"
15783 else
15784   wx_cv_prog_makevpath="no"
15785 fi
15786
15787 fi
15788 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15789 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15790
15791 if test "x$wx_cv_prog_makevpath" != "xyes"; then
15792 { { echo "$as_me:$LINENO: error:
15793 You need a make-utility that is able to use the variable
15794 VPATH correctly.
15795 If your version of make does not support VPATH correctly,
15796 please install GNU-make (possibly as gmake), and start
15797 configure with the following command:
15798 export MAKE=gmake; ./configure  for sh-type shells
15799 setenv MAKE gmake; ./configure  for csh-type shells
15800 Also please do remember to use gmake in this case every time
15801 you are trying to compile.
15802 " >&5
15803 echo "$as_me: error:
15804 You need a make-utility that is able to use the variable
15805 VPATH correctly.
15806 If your version of make does not support VPATH correctly,
15807 please install GNU-make (possibly as gmake), and start
15808 configure with the following command:
15809 export MAKE=gmake; ./configure  for sh-type shells
15810 setenv MAKE gmake; ./configure  for csh-type shells
15811 Also please do remember to use gmake in this case every time
15812 you are trying to compile.
15813 " >&2;}
15814    { (exit 1); exit 1; }; }
15815 fi fi
15816 echo "$as_me:$LINENO: checking whether ln -s works" >&5
15817 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15818 LN_S=$as_ln_s
15819 if test "$LN_S" = "ln -s"; then
15820   echo "$as_me:$LINENO: result: yes" >&5
15821 echo "${ECHO_T}yes" >&6
15822 else
15823   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15824 echo "${ECHO_T}no, using $LN_S" >&6
15825 fi
15826
15827
15828
15829
15830 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
15831     CXXFLAGS="-qunique $CXXFLAGS"
15832 fi
15833
15834 case "${host}" in
15835   powerpc-*-darwin* )
15836     echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15837 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15838     cat >conftest.$ac_ext <<_ACEOF
15839 /* confdefs.h.  */
15840 _ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h.  */
15844
15845 int
15846 main ()
15847 {
15848 #ifndef __POWERPC__
15849         choke me for lack of PowerPC
15850 #endif
15851
15852   ;
15853   return 0;
15854 }
15855 _ACEOF
15856 rm -f conftest.$ac_objext
15857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15858   (eval $ac_compile) 2>conftest.er1
15859   ac_status=$?
15860   grep -v '^ *+' conftest.er1 >conftest.err
15861   rm -f conftest.er1
15862   cat conftest.err >&5
15863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); } &&
15865          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867   (eval $ac_try) 2>&5
15868   ac_status=$?
15869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870   (exit $ac_status); }; } &&
15871          { ac_try='test -s conftest.$ac_objext'
15872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873   (eval $ac_try) 2>&5
15874   ac_status=$?
15875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876   (exit $ac_status); }; }; then
15877   echo "$as_me:$LINENO: result: yes" >&5
15878 echo "${ECHO_T}yes" >&6
15879 else
15880   echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15882
15883 echo "$as_me:$LINENO: result: no" >&5
15884 echo "${ECHO_T}no" >&6
15885         cat >>confdefs.h <<\_ACEOF
15886 #define __POWERPC__ 1
15887 _ACEOF
15888
15889
15890 fi
15891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15892   ;;
15893 esac
15894
15895 case "${host}" in
15896   *-*-darwin* )
15897     echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15898 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
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 #include <CoreFoundation/CFBase.h>
15906
15907 int
15908 main ()
15909 {
15910
15911   ;
15912   return 0;
15913 }
15914 _ACEOF
15915 rm -f conftest.$ac_objext
15916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15917   (eval $ac_compile) 2>conftest.er1
15918   ac_status=$?
15919   grep -v '^ *+' conftest.er1 >conftest.err
15920   rm -f conftest.er1
15921   cat conftest.err >&5
15922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923   (exit $ac_status); } &&
15924          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926   (eval $ac_try) 2>&5
15927   ac_status=$?
15928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929   (exit $ac_status); }; } &&
15930          { ac_try='test -s conftest.$ac_objext'
15931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932   (eval $ac_try) 2>&5
15933   ac_status=$?
15934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935   (exit $ac_status); }; }; then
15936   echo "$as_me:$LINENO: result: yes" >&5
15937 echo "${ECHO_T}yes" >&6
15938 else
15939   echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15941
15942 echo "$as_me:$LINENO: result: no" >&5
15943 echo "${ECHO_T}no" >&6
15944         echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15945 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15946         cat >conftest.$ac_ext <<_ACEOF
15947 /* confdefs.h.  */
15948 _ACEOF
15949 cat confdefs.h >>conftest.$ac_ext
15950 cat >>conftest.$ac_ext <<_ACEOF
15951 /* end confdefs.h.  */
15952 #define __CF_USE_FRAMEWORK_INCLUDES__
15953 #include <CoreFoundation/CFBase.h>
15954
15955 int
15956 main ()
15957 {
15958
15959   ;
15960   return 0;
15961 }
15962 _ACEOF
15963 rm -f conftest.$ac_objext
15964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15965   (eval $ac_compile) 2>conftest.er1
15966   ac_status=$?
15967   grep -v '^ *+' conftest.er1 >conftest.err
15968   rm -f conftest.er1
15969   cat conftest.err >&5
15970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971   (exit $ac_status); } &&
15972          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974   (eval $ac_try) 2>&5
15975   ac_status=$?
15976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977   (exit $ac_status); }; } &&
15978          { ac_try='test -s conftest.$ac_objext'
15979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15980   (eval $ac_try) 2>&5
15981   ac_status=$?
15982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983   (exit $ac_status); }; }; then
15984   echo "$as_me:$LINENO: result: yes" >&5
15985 echo "${ECHO_T}yes" >&6
15986                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
15987 else
15988   echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15990
15991 { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
15992 See \`config.log' for more details." >&5
15993 echo "$as_me: error: no.  CoreFoundation not available.
15994 See \`config.log' for more details." >&2;}
15995    { (exit 1); exit 1; }; }
15996
15997 fi
15998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15999
16000
16001 fi
16002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16003   ;;
16004 esac
16005
16006 wants_win32=0
16007 doesnt_want_win32=0
16008 case "${host}" in
16009   *-*-cygwin*)
16010       if test "$wxUSE_MSW" = 1 ; then
16011         wants_win32=1
16012       else
16013                         echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
16014 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6
16015 if test "${wx_cv_nocygwin+set}" = set; then
16016   echo $ECHO_N "(cached) $ECHO_C" >&6
16017 else
16018
16019                 cat >conftest.$ac_ext <<_ACEOF
16020 /* confdefs.h.  */
16021 _ACEOF
16022 cat confdefs.h >>conftest.$ac_ext
16023 cat >>conftest.$ac_ext <<_ACEOF
16024 /* end confdefs.h.  */
16025
16026 int
16027 main ()
16028 {
16029
16030                         #ifdef __MINGW32__
16031                             choke me
16032                         #endif
16033
16034   ;
16035   return 0;
16036 }
16037 _ACEOF
16038 rm -f conftest.$ac_objext
16039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049   (eval $ac_try) 2>&5
16050   ac_status=$?
16051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052   (exit $ac_status); }; } &&
16053          { ac_try='test -s conftest.$ac_objext'
16054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055   (eval $ac_try) 2>&5
16056   ac_status=$?
16057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); }; }; then
16059   wx_cv_nocygwin=no
16060 else
16061   echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16063
16064 wx_cv_nocygwin=yes
16065
16066 fi
16067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16068
16069
16070 fi
16071 echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
16072 echo "${ECHO_T}$wx_cv_nocygwin" >&6
16073
16074         if test "$wx_cv_nocygwin" = "yes"; then
16075             wants_win32=1
16076         else
16077             doesnt_want_win32=1
16078         fi
16079       fi
16080       if test "$wants_win32" = 1 ; then
16081         BAKEFILE_FORCE_PLATFORM=win32
16082       fi
16083   ;;
16084   *-*-mingw*)
16085       wants_win32=1
16086   ;;
16087 esac
16088
16089 if test "$wxUSE_WINE" = "yes"; then
16090     wants_win32=1
16091     LDFLAGS_GUI="-mwindows"
16092 fi
16093
16094 if test "$wants_win32" = 1 ; then
16095     USE_UNIX=0
16096     USE_WIN32=1
16097     cat >>confdefs.h <<\_ACEOF
16098 #define __WIN32__ 1
16099 _ACEOF
16100
16101     cat >>confdefs.h <<\_ACEOF
16102 #define __WIN95__ 1
16103 _ACEOF
16104
16105     cat >>confdefs.h <<\_ACEOF
16106 #define __WINDOWS__ 1
16107 _ACEOF
16108
16109     cat >>confdefs.h <<\_ACEOF
16110 #define __GNUWIN32__ 1
16111 _ACEOF
16112
16113     cat >>confdefs.h <<\_ACEOF
16114 #define STRICT 1
16115 _ACEOF
16116
16117 fi
16118 if test "$doesnt_want_win32" = 1 ; then
16119     USE_UNIX=1
16120     USE_WIN32=0
16121 fi
16122
16123 if test "$USE_UNIX" = 1 ; then
16124     wxUSE_UNIX=yes
16125     cat >>confdefs.h <<\_ACEOF
16126 #define __UNIX__ 1
16127 _ACEOF
16128
16129 fi
16130
16131 case "${host}" in
16132   *-pc-os2_emx | *-pc-os2-emx )
16133                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
16134                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
16135 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
16136 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
16137   echo $ECHO_N "(cached) $ECHO_C" >&6
16138 else
16139   ac_check_lib_save_LIBS=$LIBS
16140 LIBS="-lcExt  $LIBS"
16141 cat >conftest.$ac_ext <<_ACEOF
16142 /* confdefs.h.  */
16143 _ACEOF
16144 cat confdefs.h >>conftest.$ac_ext
16145 cat >>conftest.$ac_ext <<_ACEOF
16146 /* end confdefs.h.  */
16147
16148 /* Override any gcc2 internal prototype to avoid an error.  */
16149 #ifdef __cplusplus
16150 extern "C"
16151 #endif
16152 /* We use char because int might match the return type of a gcc2
16153    builtin and then its argument prototype would still apply.  */
16154 char drand48 ();
16155 int
16156 main ()
16157 {
16158 drand48 ();
16159   ;
16160   return 0;
16161 }
16162 _ACEOF
16163 rm -f conftest.$ac_objext conftest$ac_exeext
16164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16165   (eval $ac_link) 2>conftest.er1
16166   ac_status=$?
16167   grep -v '^ *+' conftest.er1 >conftest.err
16168   rm -f conftest.er1
16169   cat conftest.err >&5
16170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171   (exit $ac_status); } &&
16172          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174   (eval $ac_try) 2>&5
16175   ac_status=$?
16176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177   (exit $ac_status); }; } &&
16178          { ac_try='test -s conftest$ac_exeext'
16179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180   (eval $ac_try) 2>&5
16181   ac_status=$?
16182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183   (exit $ac_status); }; }; then
16184   ac_cv_lib_cExt_drand48=yes
16185 else
16186   echo "$as_me: failed program was:" >&5
16187 sed 's/^/| /' conftest.$ac_ext >&5
16188
16189 ac_cv_lib_cExt_drand48=no
16190 fi
16191 rm -f conftest.err conftest.$ac_objext \
16192       conftest$ac_exeext conftest.$ac_ext
16193 LIBS=$ac_check_lib_save_LIBS
16194 fi
16195 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
16196 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
16197 if test $ac_cv_lib_cExt_drand48 = yes; then
16198   LIBS="$LIBS -lcExt"
16199 fi
16200
16201       else
16202                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
16203       fi
16204                                     echo "$as_me:$LINENO: checking for gcc/libc version" >&5
16205 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
16206 if test "${wx_cv_gccversion+set}" = set; then
16207   echo $ECHO_N "(cached) $ECHO_C" >&6
16208 else
16209
16210           if test "$cross_compiling" = yes; then
16211                 wx_cv_gccversion="EMX2"
16212
16213 else
16214   cat >conftest.$ac_ext <<_ACEOF
16215 /* confdefs.h.  */
16216 _ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h.  */
16220
16221                   #include <stdio.h>
16222
16223                   int main()
16224                   {
16225                       FILE *f=fopen("conftestval", "w");
16226                       if (!f) exit(1);
16227                       fprintf(f,
16228                   #if (__GNUC__ < 3)
16229                               "EMX2"
16230                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
16231                               "EMX3"
16232                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
16233                               "Innotek5"
16234                   #else
16235                               "Innotek6"
16236                   #endif
16237                       );
16238                       exit(0);
16239                   }
16240
16241 _ACEOF
16242 rm -f conftest$ac_exeext
16243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16244   (eval $ac_link) 2>&5
16245   ac_status=$?
16246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249   (eval $ac_try) 2>&5
16250   ac_status=$?
16251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252   (exit $ac_status); }; }; then
16253   wx_cv_gccversion=`cat conftestval`
16254 else
16255   echo "$as_me: program exited with status $ac_status" >&5
16256 echo "$as_me: failed program was:" >&5
16257 sed 's/^/| /' conftest.$ac_ext >&5
16258
16259 ( exit $ac_status )
16260 wx_cv_gccversion="EMX2"
16261 fi
16262 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16263 fi
16264
16265 fi
16266 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
16267 echo "${ECHO_T}$wx_cv_gccversion" >&6
16268       if test "$wx_cv_gccversion" = "EMX2"; then
16269           LIBS="$LIBS -lstdcpp"
16270           LDFLAGS="$LDFLAGS -Zsysv-signals"
16271       else
16272           if test "$wx_cv_gccversion" = "EMX3"; then
16273               LIBS="$LIBS -lstdcxx -lgcc"
16274               LDFLAGS="$LDFLAGS -Zsysv-signals"
16275           else
16276               LIBS="$LIBS -lstdc++"
16277           fi
16278       fi
16279       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
16280         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
16281 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
16282         wxUSE_OMF=yes
16283         enable_omf=yes
16284       fi
16285         ;;
16286   *)
16287
16288       echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
16289 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
16290 if test "${ac_cv_string_strcasecmp+set}" = set; then
16291   echo $ECHO_N "(cached) $ECHO_C" >&6
16292 else
16293
16294           cat >conftest.$ac_ext <<_ACEOF
16295 /* confdefs.h.  */
16296 _ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h.  */
16300
16301               #include <string.h>
16302
16303 int
16304 main ()
16305 {
16306
16307                   strcasecmp("foo", "bar");
16308
16309   ;
16310   return 0;
16311 }
16312 _ACEOF
16313 rm -f conftest.$ac_objext conftest$ac_exeext
16314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16315   (eval $ac_link) 2>conftest.er1
16316   ac_status=$?
16317   grep -v '^ *+' conftest.er1 >conftest.err
16318   rm -f conftest.er1
16319   cat conftest.err >&5
16320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321   (exit $ac_status); } &&
16322          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324   (eval $ac_try) 2>&5
16325   ac_status=$?
16326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327   (exit $ac_status); }; } &&
16328          { ac_try='test -s conftest$ac_exeext'
16329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330   (eval $ac_try) 2>&5
16331   ac_status=$?
16332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333   (exit $ac_status); }; }; then
16334   ac_cv_string_strcasecmp=yes
16335 else
16336   echo "$as_me: failed program was:" >&5
16337 sed 's/^/| /' conftest.$ac_ext >&5
16338
16339 ac_cv_string_strcasecmp=no
16340
16341 fi
16342 rm -f conftest.err conftest.$ac_objext \
16343       conftest$ac_exeext conftest.$ac_ext
16344
16345 fi
16346 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
16347 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
16348
16349       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
16350           cat >>confdefs.h <<\_ACEOF
16351 #define HAVE_STRCASECMP_IN_STRING_H 1
16352 _ACEOF
16353
16354       else
16355           echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
16356 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
16357 if test "${ac_cv_strings_strcasecmp+set}" = set; then
16358   echo $ECHO_N "(cached) $ECHO_C" >&6
16359 else
16360
16361               cat >conftest.$ac_ext <<_ACEOF
16362 /* confdefs.h.  */
16363 _ACEOF
16364 cat confdefs.h >>conftest.$ac_ext
16365 cat >>conftest.$ac_ext <<_ACEOF
16366 /* end confdefs.h.  */
16367
16368                   #include <strings.h>
16369
16370 int
16371 main ()
16372 {
16373
16374                       strcasecmp("foo", "bar");
16375
16376   ;
16377   return 0;
16378 }
16379 _ACEOF
16380 rm -f conftest.$ac_objext conftest$ac_exeext
16381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16382   (eval $ac_link) 2>conftest.er1
16383   ac_status=$?
16384   grep -v '^ *+' conftest.er1 >conftest.err
16385   rm -f conftest.er1
16386   cat conftest.err >&5
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); } &&
16389          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391   (eval $ac_try) 2>&5
16392   ac_status=$?
16393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394   (exit $ac_status); }; } &&
16395          { ac_try='test -s conftest$ac_exeext'
16396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397   (eval $ac_try) 2>&5
16398   ac_status=$?
16399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); }; }; then
16401   ac_cv_strings_strcasecmp=yes
16402 else
16403   echo "$as_me: failed program was:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16405
16406 ac_cv_strings_strcasecmp=no
16407
16408 fi
16409 rm -f conftest.err conftest.$ac_objext \
16410       conftest$ac_exeext conftest.$ac_ext
16411
16412 fi
16413 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
16414 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
16415
16416           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
16417               cat >>confdefs.h <<\_ACEOF
16418 #define HAVE_STRCASECMP_IN_STRINGS_H 1
16419 _ACEOF
16420
16421           else
16422               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
16423 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
16424    { (exit 1); exit 1; }; }
16425           fi
16426       fi
16427
16428         ;;
16429 esac
16430
16431
16432 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16433 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16434 if test "${ac_cv_header_stdc+set}" = set; then
16435   echo $ECHO_N "(cached) $ECHO_C" >&6
16436 else
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 #include <stdlib.h>
16444 #include <stdarg.h>
16445 #include <string.h>
16446 #include <float.h>
16447
16448 int
16449 main ()
16450 {
16451
16452   ;
16453   return 0;
16454 }
16455 _ACEOF
16456 rm -f conftest.$ac_objext
16457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16458   (eval $ac_compile) 2>conftest.er1
16459   ac_status=$?
16460   grep -v '^ *+' conftest.er1 >conftest.err
16461   rm -f conftest.er1
16462   cat conftest.err >&5
16463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464   (exit $ac_status); } &&
16465          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467   (eval $ac_try) 2>&5
16468   ac_status=$?
16469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470   (exit $ac_status); }; } &&
16471          { ac_try='test -s conftest.$ac_objext'
16472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16473   (eval $ac_try) 2>&5
16474   ac_status=$?
16475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476   (exit $ac_status); }; }; then
16477   ac_cv_header_stdc=yes
16478 else
16479   echo "$as_me: failed program was:" >&5
16480 sed 's/^/| /' conftest.$ac_ext >&5
16481
16482 ac_cv_header_stdc=no
16483 fi
16484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16485
16486 if test $ac_cv_header_stdc = yes; then
16487   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16488   cat >conftest.$ac_ext <<_ACEOF
16489 /* confdefs.h.  */
16490 _ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h.  */
16494 #include <string.h>
16495
16496 _ACEOF
16497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16498   $EGREP "memchr" >/dev/null 2>&1; then
16499   :
16500 else
16501   ac_cv_header_stdc=no
16502 fi
16503 rm -f conftest*
16504
16505 fi
16506
16507 if test $ac_cv_header_stdc = yes; then
16508   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16509   cat >conftest.$ac_ext <<_ACEOF
16510 /* confdefs.h.  */
16511 _ACEOF
16512 cat confdefs.h >>conftest.$ac_ext
16513 cat >>conftest.$ac_ext <<_ACEOF
16514 /* end confdefs.h.  */
16515 #include <stdlib.h>
16516
16517 _ACEOF
16518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16519   $EGREP "free" >/dev/null 2>&1; then
16520   :
16521 else
16522   ac_cv_header_stdc=no
16523 fi
16524 rm -f conftest*
16525
16526 fi
16527
16528 if test $ac_cv_header_stdc = yes; then
16529   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16530   if test "$cross_compiling" = yes; then
16531   :
16532 else
16533   cat >conftest.$ac_ext <<_ACEOF
16534 /* confdefs.h.  */
16535 _ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h.  */
16539 #include <ctype.h>
16540 #if ((' ' & 0x0FF) == 0x020)
16541 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16542 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16543 #else
16544 # define ISLOWER(c) \
16545                    (('a' <= (c) && (c) <= 'i') \
16546                      || ('j' <= (c) && (c) <= 'r') \
16547                      || ('s' <= (c) && (c) <= 'z'))
16548 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16549 #endif
16550
16551 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16552 int
16553 main ()
16554 {
16555   int i;
16556   for (i = 0; i < 256; i++)
16557     if (XOR (islower (i), ISLOWER (i))
16558         || toupper (i) != TOUPPER (i))
16559       exit(2);
16560   exit (0);
16561 }
16562 _ACEOF
16563 rm -f conftest$ac_exeext
16564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16565   (eval $ac_link) 2>&5
16566   ac_status=$?
16567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570   (eval $ac_try) 2>&5
16571   ac_status=$?
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); }; }; then
16574   :
16575 else
16576   echo "$as_me: program exited with status $ac_status" >&5
16577 echo "$as_me: failed program was:" >&5
16578 sed 's/^/| /' conftest.$ac_ext >&5
16579
16580 ( exit $ac_status )
16581 ac_cv_header_stdc=no
16582 fi
16583 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16584 fi
16585 fi
16586 fi
16587 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16588 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16589 if test $ac_cv_header_stdc = yes; then
16590
16591 cat >>confdefs.h <<\_ACEOF
16592 #define STDC_HEADERS 1
16593 _ACEOF
16594
16595 fi
16596
16597 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
16608                   inttypes.h stdint.h unistd.h
16609 do
16610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16611 echo "$as_me:$LINENO: checking for $ac_header" >&5
16612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16614   echo $ECHO_N "(cached) $ECHO_C" >&6
16615 else
16616   cat >conftest.$ac_ext <<_ACEOF
16617 /* confdefs.h.  */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h.  */
16622 $ac_includes_default
16623
16624 #include <$ac_header>
16625 _ACEOF
16626 rm -f conftest.$ac_objext
16627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628   (eval $ac_compile) 2>conftest.er1
16629   ac_status=$?
16630   grep -v '^ *+' conftest.er1 >conftest.err
16631   rm -f conftest.er1
16632   cat conftest.err >&5
16633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); } &&
16635          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16637   (eval $ac_try) 2>&5
16638   ac_status=$?
16639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640   (exit $ac_status); }; } &&
16641          { ac_try='test -s conftest.$ac_objext'
16642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16643   (eval $ac_try) 2>&5
16644   ac_status=$?
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); }; }; then
16647   eval "$as_ac_Header=yes"
16648 else
16649   echo "$as_me: failed program was:" >&5
16650 sed 's/^/| /' conftest.$ac_ext >&5
16651
16652 eval "$as_ac_Header=no"
16653 fi
16654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16655 fi
16656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16659   cat >>confdefs.h <<_ACEOF
16660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16661 _ACEOF
16662
16663 fi
16664
16665 done
16666
16667
16668
16669
16670
16671
16672
16673
16674 for ac_header in stdlib.h fnmatch.h langinfo.h malloc.h unistd.h wchar.h
16675 do
16676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16678   echo "$as_me:$LINENO: checking for $ac_header" >&5
16679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16681   echo $ECHO_N "(cached) $ECHO_C" >&6
16682 fi
16683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16685 else
16686   # Is the header compilable?
16687 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16689 cat >conftest.$ac_ext <<_ACEOF
16690 /* confdefs.h.  */
16691 _ACEOF
16692 cat confdefs.h >>conftest.$ac_ext
16693 cat >>conftest.$ac_ext <<_ACEOF
16694 /* end confdefs.h.  */
16695 $ac_includes_default
16696 #include <$ac_header>
16697 _ACEOF
16698 rm -f conftest.$ac_objext
16699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16700   (eval $ac_compile) 2>conftest.er1
16701   ac_status=$?
16702   grep -v '^ *+' conftest.er1 >conftest.err
16703   rm -f conftest.er1
16704   cat conftest.err >&5
16705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706   (exit $ac_status); } &&
16707          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16709   (eval $ac_try) 2>&5
16710   ac_status=$?
16711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712   (exit $ac_status); }; } &&
16713          { ac_try='test -s conftest.$ac_objext'
16714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715   (eval $ac_try) 2>&5
16716   ac_status=$?
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); }; }; then
16719   ac_header_compiler=yes
16720 else
16721   echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16723
16724 ac_header_compiler=no
16725 fi
16726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16727 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16728 echo "${ECHO_T}$ac_header_compiler" >&6
16729
16730 # Is the header present?
16731 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16733 cat >conftest.$ac_ext <<_ACEOF
16734 /* confdefs.h.  */
16735 _ACEOF
16736 cat confdefs.h >>conftest.$ac_ext
16737 cat >>conftest.$ac_ext <<_ACEOF
16738 /* end confdefs.h.  */
16739 #include <$ac_header>
16740 _ACEOF
16741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16742   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16743   ac_status=$?
16744   grep -v '^ *+' conftest.er1 >conftest.err
16745   rm -f conftest.er1
16746   cat conftest.err >&5
16747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748   (exit $ac_status); } >/dev/null; then
16749   if test -s conftest.err; then
16750     ac_cpp_err=$ac_c_preproc_warn_flag
16751     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16752   else
16753     ac_cpp_err=
16754   fi
16755 else
16756   ac_cpp_err=yes
16757 fi
16758 if test -z "$ac_cpp_err"; then
16759   ac_header_preproc=yes
16760 else
16761   echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16763
16764   ac_header_preproc=no
16765 fi
16766 rm -f conftest.err conftest.$ac_ext
16767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16768 echo "${ECHO_T}$ac_header_preproc" >&6
16769
16770 # So?  What about this header?
16771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16772   yes:no: )
16773     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16775     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16776 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16777     ac_header_preproc=yes
16778     ;;
16779   no:yes:* )
16780     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16782     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16783 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16784     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16785 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16786     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16787 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16790     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16791 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16792     (
16793       cat <<\_ASBOX
16794 ## ----------------------------------------- ##
16795 ## Report this to wx-dev@lists.wxwidgets.org ##
16796 ## ----------------------------------------- ##
16797 _ASBOX
16798     ) |
16799       sed "s/^/$as_me: WARNING:     /" >&2
16800     ;;
16801 esac
16802 echo "$as_me:$LINENO: checking for $ac_header" >&5
16803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16805   echo $ECHO_N "(cached) $ECHO_C" >&6
16806 else
16807   eval "$as_ac_Header=\$ac_header_preproc"
16808 fi
16809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16811
16812 fi
16813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16814   cat >>confdefs.h <<_ACEOF
16815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16816 _ACEOF
16817
16818 fi
16819
16820 done
16821
16822
16823 if test "$ac_cv_header_wchar_h" != "yes"; then
16824
16825 for ac_header in wcstr.h
16826 do
16827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16829   echo "$as_me:$LINENO: checking for $ac_header" >&5
16830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16832   echo $ECHO_N "(cached) $ECHO_C" >&6
16833 fi
16834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16836 else
16837   # Is the header compilable?
16838 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16840 cat >conftest.$ac_ext <<_ACEOF
16841 /* confdefs.h.  */
16842 _ACEOF
16843 cat confdefs.h >>conftest.$ac_ext
16844 cat >>conftest.$ac_ext <<_ACEOF
16845 /* end confdefs.h.  */
16846 $ac_includes_default
16847 #include <$ac_header>
16848 _ACEOF
16849 rm -f conftest.$ac_objext
16850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16851   (eval $ac_compile) 2>conftest.er1
16852   ac_status=$?
16853   grep -v '^ *+' conftest.er1 >conftest.err
16854   rm -f conftest.er1
16855   cat conftest.err >&5
16856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857   (exit $ac_status); } &&
16858          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860   (eval $ac_try) 2>&5
16861   ac_status=$?
16862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863   (exit $ac_status); }; } &&
16864          { ac_try='test -s conftest.$ac_objext'
16865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16866   (eval $ac_try) 2>&5
16867   ac_status=$?
16868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869   (exit $ac_status); }; }; then
16870   ac_header_compiler=yes
16871 else
16872   echo "$as_me: failed program was:" >&5
16873 sed 's/^/| /' conftest.$ac_ext >&5
16874
16875 ac_header_compiler=no
16876 fi
16877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16879 echo "${ECHO_T}$ac_header_compiler" >&6
16880
16881 # Is the header present?
16882 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16884 cat >conftest.$ac_ext <<_ACEOF
16885 /* confdefs.h.  */
16886 _ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h.  */
16890 #include <$ac_header>
16891 _ACEOF
16892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16893   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16894   ac_status=$?
16895   grep -v '^ *+' conftest.er1 >conftest.err
16896   rm -f conftest.er1
16897   cat conftest.err >&5
16898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899   (exit $ac_status); } >/dev/null; then
16900   if test -s conftest.err; then
16901     ac_cpp_err=$ac_c_preproc_warn_flag
16902     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16903   else
16904     ac_cpp_err=
16905   fi
16906 else
16907   ac_cpp_err=yes
16908 fi
16909 if test -z "$ac_cpp_err"; then
16910   ac_header_preproc=yes
16911 else
16912   echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16914
16915   ac_header_preproc=no
16916 fi
16917 rm -f conftest.err conftest.$ac_ext
16918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16919 echo "${ECHO_T}$ac_header_preproc" >&6
16920
16921 # So?  What about this header?
16922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16923   yes:no: )
16924     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16928     ac_header_preproc=yes
16929     ;;
16930   no:yes:* )
16931     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16933     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16934 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16935     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16937     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16938 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16941     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16943     (
16944       cat <<\_ASBOX
16945 ## ----------------------------------------- ##
16946 ## Report this to wx-dev@lists.wxwidgets.org ##
16947 ## ----------------------------------------- ##
16948 _ASBOX
16949     ) |
16950       sed "s/^/$as_me: WARNING:     /" >&2
16951     ;;
16952 esac
16953 echo "$as_me:$LINENO: checking for $ac_header" >&5
16954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16956   echo $ECHO_N "(cached) $ECHO_C" >&6
16957 else
16958   eval "$as_ac_Header=\$ac_header_preproc"
16959 fi
16960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16962
16963 fi
16964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16965   cat >>confdefs.h <<_ACEOF
16966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16967 _ACEOF
16968
16969 fi
16970
16971 done
16972
16973 fi
16974
16975 case "${host}" in
16976   *-pc-os2_emx | *-pc-os2-emx )
16977                   if test $ac_cv_header_langinfo_h = "yes" \
16978                 -a \(   "$wx_cv_gccversion" = "EMX2" \
16979                      -o "$wx_cv_gccversion" = "EMX3" \
16980                      -o "$wx_cv_gccversion" = "Innotek5" \); then
16981           LIBS="$LIBS -lintl"
16982       fi
16983   ;;
16984 esac
16985
16986 if test "$USE_UNIX" = 1 ; then
16987
16988 for ac_header in sys/select.h
16989 do
16990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16992   echo "$as_me:$LINENO: checking for $ac_header" >&5
16993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16995   echo $ECHO_N "(cached) $ECHO_C" >&6
16996 fi
16997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16999 else
17000   # Is the header compilable?
17001 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17003 cat >conftest.$ac_ext <<_ACEOF
17004 /* confdefs.h.  */
17005 _ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h.  */
17009 $ac_includes_default
17010 #include <$ac_header>
17011 _ACEOF
17012 rm -f conftest.$ac_objext
17013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17014   (eval $ac_compile) 2>conftest.er1
17015   ac_status=$?
17016   grep -v '^ *+' conftest.er1 >conftest.err
17017   rm -f conftest.er1
17018   cat conftest.err >&5
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); } &&
17021          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023   (eval $ac_try) 2>&5
17024   ac_status=$?
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); }; } &&
17027          { ac_try='test -s conftest.$ac_objext'
17028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029   (eval $ac_try) 2>&5
17030   ac_status=$?
17031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032   (exit $ac_status); }; }; then
17033   ac_header_compiler=yes
17034 else
17035   echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17037
17038 ac_header_compiler=no
17039 fi
17040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17042 echo "${ECHO_T}$ac_header_compiler" >&6
17043
17044 # Is the header present?
17045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17047 cat >conftest.$ac_ext <<_ACEOF
17048 /* confdefs.h.  */
17049 _ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h.  */
17053 #include <$ac_header>
17054 _ACEOF
17055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17057   ac_status=$?
17058   grep -v '^ *+' conftest.er1 >conftest.err
17059   rm -f conftest.er1
17060   cat conftest.err >&5
17061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062   (exit $ac_status); } >/dev/null; then
17063   if test -s conftest.err; then
17064     ac_cpp_err=$ac_c_preproc_warn_flag
17065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17066   else
17067     ac_cpp_err=
17068   fi
17069 else
17070   ac_cpp_err=yes
17071 fi
17072 if test -z "$ac_cpp_err"; then
17073   ac_header_preproc=yes
17074 else
17075   echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17077
17078   ac_header_preproc=no
17079 fi
17080 rm -f conftest.err conftest.$ac_ext
17081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17082 echo "${ECHO_T}$ac_header_preproc" >&6
17083
17084 # So?  What about this header?
17085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17086   yes:no: )
17087     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17091     ac_header_preproc=yes
17092     ;;
17093   no:yes:* )
17094     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17096     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17097 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17098     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17100     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17101 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17104     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17106     (
17107       cat <<\_ASBOX
17108 ## ----------------------------------------- ##
17109 ## Report this to wx-dev@lists.wxwidgets.org ##
17110 ## ----------------------------------------- ##
17111 _ASBOX
17112     ) |
17113       sed "s/^/$as_me: WARNING:     /" >&2
17114     ;;
17115 esac
17116 echo "$as_me:$LINENO: checking for $ac_header" >&5
17117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17119   echo $ECHO_N "(cached) $ECHO_C" >&6
17120 else
17121   eval "$as_ac_Header=\$ac_header_preproc"
17122 fi
17123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17125
17126 fi
17127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17128   cat >>confdefs.h <<_ACEOF
17129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17130 _ACEOF
17131
17132 fi
17133
17134 done
17135
17136 fi
17137
17138
17139 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17140 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17141 if test "${ac_cv_c_const+set}" = set; then
17142   echo $ECHO_N "(cached) $ECHO_C" >&6
17143 else
17144   cat >conftest.$ac_ext <<_ACEOF
17145 /* confdefs.h.  */
17146 _ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h.  */
17150
17151 int
17152 main ()
17153 {
17154 /* FIXME: Include the comments suggested by Paul. */
17155 #ifndef __cplusplus
17156   /* Ultrix mips cc rejects this.  */
17157   typedef int charset[2];
17158   const charset x;
17159   /* SunOS 4.1.1 cc rejects this.  */
17160   char const *const *ccp;
17161   char **p;
17162   /* NEC SVR4.0.2 mips cc rejects this.  */
17163   struct point {int x, y;};
17164   static struct point const zero = {0,0};
17165   /* AIX XL C 1.02.0.0 rejects this.
17166      It does not let you subtract one const X* pointer from another in
17167      an arm of an if-expression whose if-part is not a constant
17168      expression */
17169   const char *g = "string";
17170   ccp = &g + (g ? g-g : 0);
17171   /* HPUX 7.0 cc rejects these. */
17172   ++ccp;
17173   p = (char**) ccp;
17174   ccp = (char const *const *) p;
17175   { /* SCO 3.2v4 cc rejects this.  */
17176     char *t;
17177     char const *s = 0 ? (char *) 0 : (char const *) 0;
17178
17179     *t++ = 0;
17180   }
17181   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17182     int x[] = {25, 17};
17183     const int *foo = &x[0];
17184     ++foo;
17185   }
17186   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17187     typedef const int *iptr;
17188     iptr p = 0;
17189     ++p;
17190   }
17191   { /* AIX XL C 1.02.0.0 rejects this saying
17192        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17193     struct s { int j; const int *ap[3]; };
17194     struct s *b; b->j = 5;
17195   }
17196   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17197     const int foo = 10;
17198   }
17199 #endif
17200
17201   ;
17202   return 0;
17203 }
17204 _ACEOF
17205 rm -f conftest.$ac_objext
17206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17207   (eval $ac_compile) 2>conftest.er1
17208   ac_status=$?
17209   grep -v '^ *+' conftest.er1 >conftest.err
17210   rm -f conftest.er1
17211   cat conftest.err >&5
17212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213   (exit $ac_status); } &&
17214          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17216   (eval $ac_try) 2>&5
17217   ac_status=$?
17218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219   (exit $ac_status); }; } &&
17220          { ac_try='test -s conftest.$ac_objext'
17221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222   (eval $ac_try) 2>&5
17223   ac_status=$?
17224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225   (exit $ac_status); }; }; then
17226   ac_cv_c_const=yes
17227 else
17228   echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17230
17231 ac_cv_c_const=no
17232 fi
17233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17234 fi
17235 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17236 echo "${ECHO_T}$ac_cv_c_const" >&6
17237 if test $ac_cv_c_const = no; then
17238
17239 cat >>confdefs.h <<\_ACEOF
17240 #define const
17241 _ACEOF
17242
17243 fi
17244
17245 echo "$as_me:$LINENO: checking for inline" >&5
17246 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17247 if test "${ac_cv_c_inline+set}" = set; then
17248   echo $ECHO_N "(cached) $ECHO_C" >&6
17249 else
17250   ac_cv_c_inline=no
17251 for ac_kw in inline __inline__ __inline; do
17252   cat >conftest.$ac_ext <<_ACEOF
17253 /* confdefs.h.  */
17254 _ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h.  */
17258 #ifndef __cplusplus
17259 typedef int foo_t;
17260 static $ac_kw foo_t static_foo () {return 0; }
17261 $ac_kw foo_t foo () {return 0; }
17262 #endif
17263
17264 _ACEOF
17265 rm -f conftest.$ac_objext
17266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17267   (eval $ac_compile) 2>conftest.er1
17268   ac_status=$?
17269   grep -v '^ *+' conftest.er1 >conftest.err
17270   rm -f conftest.er1
17271   cat conftest.err >&5
17272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273   (exit $ac_status); } &&
17274          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17276   (eval $ac_try) 2>&5
17277   ac_status=$?
17278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279   (exit $ac_status); }; } &&
17280          { ac_try='test -s conftest.$ac_objext'
17281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282   (eval $ac_try) 2>&5
17283   ac_status=$?
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); }; }; then
17286   ac_cv_c_inline=$ac_kw; break
17287 else
17288   echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17290
17291 fi
17292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17293 done
17294
17295 fi
17296 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17297 echo "${ECHO_T}$ac_cv_c_inline" >&6
17298
17299
17300 case $ac_cv_c_inline in
17301   inline | yes) ;;
17302   *)
17303     case $ac_cv_c_inline in
17304       no) ac_val=;;
17305       *) ac_val=$ac_cv_c_inline;;
17306     esac
17307     cat >>confdefs.h <<_ACEOF
17308 #ifndef __cplusplus
17309 #define inline $ac_val
17310 #endif
17311 _ACEOF
17312     ;;
17313 esac
17314
17315
17316 echo "$as_me:$LINENO: checking for char" >&5
17317 echo $ECHO_N "checking for char... $ECHO_C" >&6
17318 if test "${ac_cv_type_char+set}" = set; then
17319   echo $ECHO_N "(cached) $ECHO_C" >&6
17320 else
17321   cat >conftest.$ac_ext <<_ACEOF
17322 /* confdefs.h.  */
17323 _ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h.  */
17327 $ac_includes_default
17328 int
17329 main ()
17330 {
17331 if ((char *) 0)
17332   return 0;
17333 if (sizeof (char))
17334   return 0;
17335   ;
17336   return 0;
17337 }
17338 _ACEOF
17339 rm -f conftest.$ac_objext
17340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17341   (eval $ac_compile) 2>conftest.er1
17342   ac_status=$?
17343   grep -v '^ *+' conftest.er1 >conftest.err
17344   rm -f conftest.er1
17345   cat conftest.err >&5
17346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347   (exit $ac_status); } &&
17348          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350   (eval $ac_try) 2>&5
17351   ac_status=$?
17352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353   (exit $ac_status); }; } &&
17354          { ac_try='test -s conftest.$ac_objext'
17355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356   (eval $ac_try) 2>&5
17357   ac_status=$?
17358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359   (exit $ac_status); }; }; then
17360   ac_cv_type_char=yes
17361 else
17362   echo "$as_me: failed program was:" >&5
17363 sed 's/^/| /' conftest.$ac_ext >&5
17364
17365 ac_cv_type_char=no
17366 fi
17367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17368 fi
17369 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17370 echo "${ECHO_T}$ac_cv_type_char" >&6
17371
17372 echo "$as_me:$LINENO: checking size of char" >&5
17373 echo $ECHO_N "checking size of char... $ECHO_C" >&6
17374 if test "${ac_cv_sizeof_char+set}" = set; then
17375   echo $ECHO_N "(cached) $ECHO_C" >&6
17376 else
17377   if test "$ac_cv_type_char" = yes; then
17378   # The cast to unsigned long works around a bug in the HP C Compiler
17379   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17380   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17381   # This bug is HP SR number 8606223364.
17382   if test "$cross_compiling" = yes; then
17383   # Depending upon the size, compute the lo and hi bounds.
17384 cat >conftest.$ac_ext <<_ACEOF
17385 /* confdefs.h.  */
17386 _ACEOF
17387 cat confdefs.h >>conftest.$ac_ext
17388 cat >>conftest.$ac_ext <<_ACEOF
17389 /* end confdefs.h.  */
17390 $ac_includes_default
17391 int
17392 main ()
17393 {
17394 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17395 test_array [0] = 0
17396
17397   ;
17398   return 0;
17399 }
17400 _ACEOF
17401 rm -f conftest.$ac_objext
17402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17403   (eval $ac_compile) 2>conftest.er1
17404   ac_status=$?
17405   grep -v '^ *+' conftest.er1 >conftest.err
17406   rm -f conftest.er1
17407   cat conftest.err >&5
17408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409   (exit $ac_status); } &&
17410          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412   (eval $ac_try) 2>&5
17413   ac_status=$?
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   (exit $ac_status); }; } &&
17416          { ac_try='test -s conftest.$ac_objext'
17417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418   (eval $ac_try) 2>&5
17419   ac_status=$?
17420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421   (exit $ac_status); }; }; then
17422   ac_lo=0 ac_mid=0
17423   while :; do
17424     cat >conftest.$ac_ext <<_ACEOF
17425 /* confdefs.h.  */
17426 _ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h.  */
17430 $ac_includes_default
17431 int
17432 main ()
17433 {
17434 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17435 test_array [0] = 0
17436
17437   ;
17438   return 0;
17439 }
17440 _ACEOF
17441 rm -f conftest.$ac_objext
17442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17443   (eval $ac_compile) 2>conftest.er1
17444   ac_status=$?
17445   grep -v '^ *+' conftest.er1 >conftest.err
17446   rm -f conftest.er1
17447   cat conftest.err >&5
17448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449   (exit $ac_status); } &&
17450          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452   (eval $ac_try) 2>&5
17453   ac_status=$?
17454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455   (exit $ac_status); }; } &&
17456          { ac_try='test -s conftest.$ac_objext'
17457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458   (eval $ac_try) 2>&5
17459   ac_status=$?
17460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461   (exit $ac_status); }; }; then
17462   ac_hi=$ac_mid; break
17463 else
17464   echo "$as_me: failed program was:" >&5
17465 sed 's/^/| /' conftest.$ac_ext >&5
17466
17467 ac_lo=`expr $ac_mid + 1`
17468                     if test $ac_lo -le $ac_mid; then
17469                       ac_lo= ac_hi=
17470                       break
17471                     fi
17472                     ac_mid=`expr 2 '*' $ac_mid + 1`
17473 fi
17474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17475   done
17476 else
17477   echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17479
17480 cat >conftest.$ac_ext <<_ACEOF
17481 /* confdefs.h.  */
17482 _ACEOF
17483 cat confdefs.h >>conftest.$ac_ext
17484 cat >>conftest.$ac_ext <<_ACEOF
17485 /* end confdefs.h.  */
17486 $ac_includes_default
17487 int
17488 main ()
17489 {
17490 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17491 test_array [0] = 0
17492
17493   ;
17494   return 0;
17495 }
17496 _ACEOF
17497 rm -f conftest.$ac_objext
17498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17499   (eval $ac_compile) 2>conftest.er1
17500   ac_status=$?
17501   grep -v '^ *+' conftest.er1 >conftest.err
17502   rm -f conftest.er1
17503   cat conftest.err >&5
17504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505   (exit $ac_status); } &&
17506          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508   (eval $ac_try) 2>&5
17509   ac_status=$?
17510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511   (exit $ac_status); }; } &&
17512          { ac_try='test -s conftest.$ac_objext'
17513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514   (eval $ac_try) 2>&5
17515   ac_status=$?
17516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517   (exit $ac_status); }; }; then
17518   ac_hi=-1 ac_mid=-1
17519   while :; do
17520     cat >conftest.$ac_ext <<_ACEOF
17521 /* confdefs.h.  */
17522 _ACEOF
17523 cat confdefs.h >>conftest.$ac_ext
17524 cat >>conftest.$ac_ext <<_ACEOF
17525 /* end confdefs.h.  */
17526 $ac_includes_default
17527 int
17528 main ()
17529 {
17530 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17531 test_array [0] = 0
17532
17533   ;
17534   return 0;
17535 }
17536 _ACEOF
17537 rm -f conftest.$ac_objext
17538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17539   (eval $ac_compile) 2>conftest.er1
17540   ac_status=$?
17541   grep -v '^ *+' conftest.er1 >conftest.err
17542   rm -f conftest.er1
17543   cat conftest.err >&5
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); } &&
17546          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548   (eval $ac_try) 2>&5
17549   ac_status=$?
17550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551   (exit $ac_status); }; } &&
17552          { ac_try='test -s conftest.$ac_objext'
17553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554   (eval $ac_try) 2>&5
17555   ac_status=$?
17556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557   (exit $ac_status); }; }; then
17558   ac_lo=$ac_mid; break
17559 else
17560   echo "$as_me: failed program was:" >&5
17561 sed 's/^/| /' conftest.$ac_ext >&5
17562
17563 ac_hi=`expr '(' $ac_mid ')' - 1`
17564                        if test $ac_mid -le $ac_hi; then
17565                          ac_lo= ac_hi=
17566                          break
17567                        fi
17568                        ac_mid=`expr 2 '*' $ac_mid`
17569 fi
17570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17571   done
17572 else
17573   echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17575
17576 ac_lo= ac_hi=
17577 fi
17578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17579 fi
17580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17581 # Binary search between lo and hi bounds.
17582 while test "x$ac_lo" != "x$ac_hi"; do
17583   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17584   cat >conftest.$ac_ext <<_ACEOF
17585 /* confdefs.h.  */
17586 _ACEOF
17587 cat confdefs.h >>conftest.$ac_ext
17588 cat >>conftest.$ac_ext <<_ACEOF
17589 /* end confdefs.h.  */
17590 $ac_includes_default
17591 int
17592 main ()
17593 {
17594 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17595 test_array [0] = 0
17596
17597   ;
17598   return 0;
17599 }
17600 _ACEOF
17601 rm -f conftest.$ac_objext
17602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17603   (eval $ac_compile) 2>conftest.er1
17604   ac_status=$?
17605   grep -v '^ *+' conftest.er1 >conftest.err
17606   rm -f conftest.er1
17607   cat conftest.err >&5
17608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609   (exit $ac_status); } &&
17610          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612   (eval $ac_try) 2>&5
17613   ac_status=$?
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); }; } &&
17616          { ac_try='test -s conftest.$ac_objext'
17617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618   (eval $ac_try) 2>&5
17619   ac_status=$?
17620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621   (exit $ac_status); }; }; then
17622   ac_hi=$ac_mid
17623 else
17624   echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17626
17627 ac_lo=`expr '(' $ac_mid ')' + 1`
17628 fi
17629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17630 done
17631 case $ac_lo in
17632 ?*) ac_cv_sizeof_char=$ac_lo;;
17633 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17634 See \`config.log' for more details." >&5
17635 echo "$as_me: error: cannot compute sizeof (char), 77
17636 See \`config.log' for more details." >&2;}
17637    { (exit 1); exit 1; }; } ;;
17638 esac
17639 else
17640   if test "$cross_compiling" = yes; then
17641   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17642 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17643    { (exit 1); exit 1; }; }
17644 else
17645   cat >conftest.$ac_ext <<_ACEOF
17646 /* confdefs.h.  */
17647 _ACEOF
17648 cat confdefs.h >>conftest.$ac_ext
17649 cat >>conftest.$ac_ext <<_ACEOF
17650 /* end confdefs.h.  */
17651 $ac_includes_default
17652 long longval () { return (long) (sizeof (char)); }
17653 unsigned long ulongval () { return (long) (sizeof (char)); }
17654 #include <stdio.h>
17655 #include <stdlib.h>
17656 int
17657 main ()
17658 {
17659
17660   FILE *f = fopen ("conftest.val", "w");
17661   if (! f)
17662     exit (1);
17663   if (((long) (sizeof (char))) < 0)
17664     {
17665       long i = longval ();
17666       if (i != ((long) (sizeof (char))))
17667         exit (1);
17668       fprintf (f, "%ld\n", i);
17669     }
17670   else
17671     {
17672       unsigned long i = ulongval ();
17673       if (i != ((long) (sizeof (char))))
17674         exit (1);
17675       fprintf (f, "%lu\n", i);
17676     }
17677   exit (ferror (f) || fclose (f) != 0);
17678
17679   ;
17680   return 0;
17681 }
17682 _ACEOF
17683 rm -f conftest$ac_exeext
17684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17685   (eval $ac_link) 2>&5
17686   ac_status=$?
17687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690   (eval $ac_try) 2>&5
17691   ac_status=$?
17692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693   (exit $ac_status); }; }; then
17694   ac_cv_sizeof_char=`cat conftest.val`
17695 else
17696   echo "$as_me: program exited with status $ac_status" >&5
17697 echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17699
17700 ( exit $ac_status )
17701 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17702 See \`config.log' for more details." >&5
17703 echo "$as_me: error: cannot compute sizeof (char), 77
17704 See \`config.log' for more details." >&2;}
17705    { (exit 1); exit 1; }; }
17706 fi
17707 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17708 fi
17709 fi
17710 rm -f conftest.val
17711 else
17712   ac_cv_sizeof_char=0
17713 fi
17714 fi
17715 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17716 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17717 cat >>confdefs.h <<_ACEOF
17718 #define SIZEOF_CHAR $ac_cv_sizeof_char
17719 _ACEOF
17720
17721
17722 echo "$as_me:$LINENO: checking for short" >&5
17723 echo $ECHO_N "checking for short... $ECHO_C" >&6
17724 if test "${ac_cv_type_short+set}" = set; then
17725   echo $ECHO_N "(cached) $ECHO_C" >&6
17726 else
17727   cat >conftest.$ac_ext <<_ACEOF
17728 /* confdefs.h.  */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h.  */
17733 $ac_includes_default
17734 int
17735 main ()
17736 {
17737 if ((short *) 0)
17738   return 0;
17739 if (sizeof (short))
17740   return 0;
17741   ;
17742   return 0;
17743 }
17744 _ACEOF
17745 rm -f conftest.$ac_objext
17746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17747   (eval $ac_compile) 2>conftest.er1
17748   ac_status=$?
17749   grep -v '^ *+' conftest.er1 >conftest.err
17750   rm -f conftest.er1
17751   cat conftest.err >&5
17752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753   (exit $ac_status); } &&
17754          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756   (eval $ac_try) 2>&5
17757   ac_status=$?
17758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759   (exit $ac_status); }; } &&
17760          { ac_try='test -s conftest.$ac_objext'
17761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762   (eval $ac_try) 2>&5
17763   ac_status=$?
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); }; }; then
17766   ac_cv_type_short=yes
17767 else
17768   echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17770
17771 ac_cv_type_short=no
17772 fi
17773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17774 fi
17775 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17776 echo "${ECHO_T}$ac_cv_type_short" >&6
17777
17778 echo "$as_me:$LINENO: checking size of short" >&5
17779 echo $ECHO_N "checking size of short... $ECHO_C" >&6
17780 if test "${ac_cv_sizeof_short+set}" = set; then
17781   echo $ECHO_N "(cached) $ECHO_C" >&6
17782 else
17783   if test "$ac_cv_type_short" = yes; then
17784   # The cast to unsigned long works around a bug in the HP C Compiler
17785   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17786   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17787   # This bug is HP SR number 8606223364.
17788   if test "$cross_compiling" = yes; then
17789   # Depending upon the size, compute the lo and hi bounds.
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 $ac_includes_default
17797 int
17798 main ()
17799 {
17800 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17801 test_array [0] = 0
17802
17803   ;
17804   return 0;
17805 }
17806 _ACEOF
17807 rm -f conftest.$ac_objext
17808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17809   (eval $ac_compile) 2>conftest.er1
17810   ac_status=$?
17811   grep -v '^ *+' conftest.er1 >conftest.err
17812   rm -f conftest.er1
17813   cat conftest.err >&5
17814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   (exit $ac_status); } &&
17816          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818   (eval $ac_try) 2>&5
17819   ac_status=$?
17820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821   (exit $ac_status); }; } &&
17822          { ac_try='test -s conftest.$ac_objext'
17823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824   (eval $ac_try) 2>&5
17825   ac_status=$?
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); }; }; then
17828   ac_lo=0 ac_mid=0
17829   while :; do
17830     cat >conftest.$ac_ext <<_ACEOF
17831 /* confdefs.h.  */
17832 _ACEOF
17833 cat confdefs.h >>conftest.$ac_ext
17834 cat >>conftest.$ac_ext <<_ACEOF
17835 /* end confdefs.h.  */
17836 $ac_includes_default
17837 int
17838 main ()
17839 {
17840 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17841 test_array [0] = 0
17842
17843   ;
17844   return 0;
17845 }
17846 _ACEOF
17847 rm -f conftest.$ac_objext
17848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17849   (eval $ac_compile) 2>conftest.er1
17850   ac_status=$?
17851   grep -v '^ *+' conftest.er1 >conftest.err
17852   rm -f conftest.er1
17853   cat conftest.err >&5
17854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855   (exit $ac_status); } &&
17856          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858   (eval $ac_try) 2>&5
17859   ac_status=$?
17860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861   (exit $ac_status); }; } &&
17862          { ac_try='test -s conftest.$ac_objext'
17863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864   (eval $ac_try) 2>&5
17865   ac_status=$?
17866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867   (exit $ac_status); }; }; then
17868   ac_hi=$ac_mid; break
17869 else
17870   echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.$ac_ext >&5
17872
17873 ac_lo=`expr $ac_mid + 1`
17874                     if test $ac_lo -le $ac_mid; then
17875                       ac_lo= ac_hi=
17876                       break
17877                     fi
17878                     ac_mid=`expr 2 '*' $ac_mid + 1`
17879 fi
17880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17881   done
17882 else
17883   echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17885
17886 cat >conftest.$ac_ext <<_ACEOF
17887 /* confdefs.h.  */
17888 _ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h.  */
17892 $ac_includes_default
17893 int
17894 main ()
17895 {
17896 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17897 test_array [0] = 0
17898
17899   ;
17900   return 0;
17901 }
17902 _ACEOF
17903 rm -f conftest.$ac_objext
17904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17905   (eval $ac_compile) 2>conftest.er1
17906   ac_status=$?
17907   grep -v '^ *+' conftest.er1 >conftest.err
17908   rm -f conftest.er1
17909   cat conftest.err >&5
17910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911   (exit $ac_status); } &&
17912          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914   (eval $ac_try) 2>&5
17915   ac_status=$?
17916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917   (exit $ac_status); }; } &&
17918          { ac_try='test -s conftest.$ac_objext'
17919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920   (eval $ac_try) 2>&5
17921   ac_status=$?
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); }; }; then
17924   ac_hi=-1 ac_mid=-1
17925   while :; do
17926     cat >conftest.$ac_ext <<_ACEOF
17927 /* confdefs.h.  */
17928 _ACEOF
17929 cat confdefs.h >>conftest.$ac_ext
17930 cat >>conftest.$ac_ext <<_ACEOF
17931 /* end confdefs.h.  */
17932 $ac_includes_default
17933 int
17934 main ()
17935 {
17936 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17937 test_array [0] = 0
17938
17939   ;
17940   return 0;
17941 }
17942 _ACEOF
17943 rm -f conftest.$ac_objext
17944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17945   (eval $ac_compile) 2>conftest.er1
17946   ac_status=$?
17947   grep -v '^ *+' conftest.er1 >conftest.err
17948   rm -f conftest.er1
17949   cat conftest.err >&5
17950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951   (exit $ac_status); } &&
17952          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17954   (eval $ac_try) 2>&5
17955   ac_status=$?
17956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957   (exit $ac_status); }; } &&
17958          { ac_try='test -s conftest.$ac_objext'
17959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17960   (eval $ac_try) 2>&5
17961   ac_status=$?
17962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963   (exit $ac_status); }; }; then
17964   ac_lo=$ac_mid; break
17965 else
17966   echo "$as_me: failed program was:" >&5
17967 sed 's/^/| /' conftest.$ac_ext >&5
17968
17969 ac_hi=`expr '(' $ac_mid ')' - 1`
17970                        if test $ac_mid -le $ac_hi; then
17971                          ac_lo= ac_hi=
17972                          break
17973                        fi
17974                        ac_mid=`expr 2 '*' $ac_mid`
17975 fi
17976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17977   done
17978 else
17979   echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.$ac_ext >&5
17981
17982 ac_lo= ac_hi=
17983 fi
17984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17985 fi
17986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17987 # Binary search between lo and hi bounds.
17988 while test "x$ac_lo" != "x$ac_hi"; do
17989   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17990   cat >conftest.$ac_ext <<_ACEOF
17991 /* confdefs.h.  */
17992 _ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h.  */
17996 $ac_includes_default
17997 int
17998 main ()
17999 {
18000 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18001 test_array [0] = 0
18002
18003   ;
18004   return 0;
18005 }
18006 _ACEOF
18007 rm -f conftest.$ac_objext
18008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18009   (eval $ac_compile) 2>conftest.er1
18010   ac_status=$?
18011   grep -v '^ *+' conftest.er1 >conftest.err
18012   rm -f conftest.er1
18013   cat conftest.err >&5
18014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015   (exit $ac_status); } &&
18016          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018   (eval $ac_try) 2>&5
18019   ac_status=$?
18020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021   (exit $ac_status); }; } &&
18022          { ac_try='test -s conftest.$ac_objext'
18023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18024   (eval $ac_try) 2>&5
18025   ac_status=$?
18026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027   (exit $ac_status); }; }; then
18028   ac_hi=$ac_mid
18029 else
18030   echo "$as_me: failed program was:" >&5
18031 sed 's/^/| /' conftest.$ac_ext >&5
18032
18033 ac_lo=`expr '(' $ac_mid ')' + 1`
18034 fi
18035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18036 done
18037 case $ac_lo in
18038 ?*) ac_cv_sizeof_short=$ac_lo;;
18039 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18040 See \`config.log' for more details." >&5
18041 echo "$as_me: error: cannot compute sizeof (short), 77
18042 See \`config.log' for more details." >&2;}
18043    { (exit 1); exit 1; }; } ;;
18044 esac
18045 else
18046   if test "$cross_compiling" = yes; then
18047   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18048 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18049    { (exit 1); exit 1; }; }
18050 else
18051   cat >conftest.$ac_ext <<_ACEOF
18052 /* confdefs.h.  */
18053 _ACEOF
18054 cat confdefs.h >>conftest.$ac_ext
18055 cat >>conftest.$ac_ext <<_ACEOF
18056 /* end confdefs.h.  */
18057 $ac_includes_default
18058 long longval () { return (long) (sizeof (short)); }
18059 unsigned long ulongval () { return (long) (sizeof (short)); }
18060 #include <stdio.h>
18061 #include <stdlib.h>
18062 int
18063 main ()
18064 {
18065
18066   FILE *f = fopen ("conftest.val", "w");
18067   if (! f)
18068     exit (1);
18069   if (((long) (sizeof (short))) < 0)
18070     {
18071       long i = longval ();
18072       if (i != ((long) (sizeof (short))))
18073         exit (1);
18074       fprintf (f, "%ld\n", i);
18075     }
18076   else
18077     {
18078       unsigned long i = ulongval ();
18079       if (i != ((long) (sizeof (short))))
18080         exit (1);
18081       fprintf (f, "%lu\n", i);
18082     }
18083   exit (ferror (f) || fclose (f) != 0);
18084
18085   ;
18086   return 0;
18087 }
18088 _ACEOF
18089 rm -f conftest$ac_exeext
18090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18091   (eval $ac_link) 2>&5
18092   ac_status=$?
18093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096   (eval $ac_try) 2>&5
18097   ac_status=$?
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); }; }; then
18100   ac_cv_sizeof_short=`cat conftest.val`
18101 else
18102   echo "$as_me: program exited with status $ac_status" >&5
18103 echo "$as_me: failed program was:" >&5
18104 sed 's/^/| /' conftest.$ac_ext >&5
18105
18106 ( exit $ac_status )
18107 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18108 See \`config.log' for more details." >&5
18109 echo "$as_me: error: cannot compute sizeof (short), 77
18110 See \`config.log' for more details." >&2;}
18111    { (exit 1); exit 1; }; }
18112 fi
18113 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18114 fi
18115 fi
18116 rm -f conftest.val
18117 else
18118   ac_cv_sizeof_short=0
18119 fi
18120 fi
18121 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18122 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18123 cat >>confdefs.h <<_ACEOF
18124 #define SIZEOF_SHORT $ac_cv_sizeof_short
18125 _ACEOF
18126
18127
18128 echo "$as_me:$LINENO: checking for void *" >&5
18129 echo $ECHO_N "checking for void *... $ECHO_C" >&6
18130 if test "${ac_cv_type_void_p+set}" = set; then
18131   echo $ECHO_N "(cached) $ECHO_C" >&6
18132 else
18133   cat >conftest.$ac_ext <<_ACEOF
18134 /* confdefs.h.  */
18135 _ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h.  */
18139 $ac_includes_default
18140 int
18141 main ()
18142 {
18143 if ((void * *) 0)
18144   return 0;
18145 if (sizeof (void *))
18146   return 0;
18147   ;
18148   return 0;
18149 }
18150 _ACEOF
18151 rm -f conftest.$ac_objext
18152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18153   (eval $ac_compile) 2>conftest.er1
18154   ac_status=$?
18155   grep -v '^ *+' conftest.er1 >conftest.err
18156   rm -f conftest.er1
18157   cat conftest.err >&5
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); } &&
18160          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162   (eval $ac_try) 2>&5
18163   ac_status=$?
18164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165   (exit $ac_status); }; } &&
18166          { ac_try='test -s conftest.$ac_objext'
18167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168   (eval $ac_try) 2>&5
18169   ac_status=$?
18170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171   (exit $ac_status); }; }; then
18172   ac_cv_type_void_p=yes
18173 else
18174   echo "$as_me: failed program was:" >&5
18175 sed 's/^/| /' conftest.$ac_ext >&5
18176
18177 ac_cv_type_void_p=no
18178 fi
18179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18180 fi
18181 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18182 echo "${ECHO_T}$ac_cv_type_void_p" >&6
18183
18184 echo "$as_me:$LINENO: checking size of void *" >&5
18185 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18186 if test "${ac_cv_sizeof_void_p+set}" = set; then
18187   echo $ECHO_N "(cached) $ECHO_C" >&6
18188 else
18189   if test "$ac_cv_type_void_p" = yes; then
18190   # The cast to unsigned long works around a bug in the HP C Compiler
18191   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18192   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18193   # This bug is HP SR number 8606223364.
18194   if test "$cross_compiling" = yes; then
18195   # Depending upon the size, compute the lo and hi bounds.
18196 cat >conftest.$ac_ext <<_ACEOF
18197 /* confdefs.h.  */
18198 _ACEOF
18199 cat confdefs.h >>conftest.$ac_ext
18200 cat >>conftest.$ac_ext <<_ACEOF
18201 /* end confdefs.h.  */
18202 $ac_includes_default
18203 int
18204 main ()
18205 {
18206 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18207 test_array [0] = 0
18208
18209   ;
18210   return 0;
18211 }
18212 _ACEOF
18213 rm -f conftest.$ac_objext
18214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18215   (eval $ac_compile) 2>conftest.er1
18216   ac_status=$?
18217   grep -v '^ *+' conftest.er1 >conftest.err
18218   rm -f conftest.er1
18219   cat conftest.err >&5
18220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221   (exit $ac_status); } &&
18222          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224   (eval $ac_try) 2>&5
18225   ac_status=$?
18226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227   (exit $ac_status); }; } &&
18228          { ac_try='test -s conftest.$ac_objext'
18229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230   (eval $ac_try) 2>&5
18231   ac_status=$?
18232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); }; }; then
18234   ac_lo=0 ac_mid=0
18235   while :; do
18236     cat >conftest.$ac_ext <<_ACEOF
18237 /* confdefs.h.  */
18238 _ACEOF
18239 cat confdefs.h >>conftest.$ac_ext
18240 cat >>conftest.$ac_ext <<_ACEOF
18241 /* end confdefs.h.  */
18242 $ac_includes_default
18243 int
18244 main ()
18245 {
18246 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18247 test_array [0] = 0
18248
18249   ;
18250   return 0;
18251 }
18252 _ACEOF
18253 rm -f conftest.$ac_objext
18254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18255   (eval $ac_compile) 2>conftest.er1
18256   ac_status=$?
18257   grep -v '^ *+' conftest.er1 >conftest.err
18258   rm -f conftest.er1
18259   cat conftest.err >&5
18260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261   (exit $ac_status); } &&
18262          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264   (eval $ac_try) 2>&5
18265   ac_status=$?
18266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267   (exit $ac_status); }; } &&
18268          { ac_try='test -s conftest.$ac_objext'
18269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270   (eval $ac_try) 2>&5
18271   ac_status=$?
18272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273   (exit $ac_status); }; }; then
18274   ac_hi=$ac_mid; break
18275 else
18276   echo "$as_me: failed program was:" >&5
18277 sed 's/^/| /' conftest.$ac_ext >&5
18278
18279 ac_lo=`expr $ac_mid + 1`
18280                     if test $ac_lo -le $ac_mid; then
18281                       ac_lo= ac_hi=
18282                       break
18283                     fi
18284                     ac_mid=`expr 2 '*' $ac_mid + 1`
18285 fi
18286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18287   done
18288 else
18289   echo "$as_me: failed program was:" >&5
18290 sed 's/^/| /' conftest.$ac_ext >&5
18291
18292 cat >conftest.$ac_ext <<_ACEOF
18293 /* confdefs.h.  */
18294 _ACEOF
18295 cat confdefs.h >>conftest.$ac_ext
18296 cat >>conftest.$ac_ext <<_ACEOF
18297 /* end confdefs.h.  */
18298 $ac_includes_default
18299 int
18300 main ()
18301 {
18302 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18303 test_array [0] = 0
18304
18305   ;
18306   return 0;
18307 }
18308 _ACEOF
18309 rm -f conftest.$ac_objext
18310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18311   (eval $ac_compile) 2>conftest.er1
18312   ac_status=$?
18313   grep -v '^ *+' conftest.er1 >conftest.err
18314   rm -f conftest.er1
18315   cat conftest.err >&5
18316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317   (exit $ac_status); } &&
18318          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320   (eval $ac_try) 2>&5
18321   ac_status=$?
18322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323   (exit $ac_status); }; } &&
18324          { ac_try='test -s conftest.$ac_objext'
18325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326   (eval $ac_try) 2>&5
18327   ac_status=$?
18328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329   (exit $ac_status); }; }; then
18330   ac_hi=-1 ac_mid=-1
18331   while :; do
18332     cat >conftest.$ac_ext <<_ACEOF
18333 /* confdefs.h.  */
18334 _ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h.  */
18338 $ac_includes_default
18339 int
18340 main ()
18341 {
18342 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18343 test_array [0] = 0
18344
18345   ;
18346   return 0;
18347 }
18348 _ACEOF
18349 rm -f conftest.$ac_objext
18350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18351   (eval $ac_compile) 2>conftest.er1
18352   ac_status=$?
18353   grep -v '^ *+' conftest.er1 >conftest.err
18354   rm -f conftest.er1
18355   cat conftest.err >&5
18356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357   (exit $ac_status); } &&
18358          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360   (eval $ac_try) 2>&5
18361   ac_status=$?
18362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363   (exit $ac_status); }; } &&
18364          { ac_try='test -s conftest.$ac_objext'
18365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366   (eval $ac_try) 2>&5
18367   ac_status=$?
18368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369   (exit $ac_status); }; }; then
18370   ac_lo=$ac_mid; break
18371 else
18372   echo "$as_me: failed program was:" >&5
18373 sed 's/^/| /' conftest.$ac_ext >&5
18374
18375 ac_hi=`expr '(' $ac_mid ')' - 1`
18376                        if test $ac_mid -le $ac_hi; then
18377                          ac_lo= ac_hi=
18378                          break
18379                        fi
18380                        ac_mid=`expr 2 '*' $ac_mid`
18381 fi
18382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18383   done
18384 else
18385   echo "$as_me: failed program was:" >&5
18386 sed 's/^/| /' conftest.$ac_ext >&5
18387
18388 ac_lo= ac_hi=
18389 fi
18390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18391 fi
18392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18393 # Binary search between lo and hi bounds.
18394 while test "x$ac_lo" != "x$ac_hi"; do
18395   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18396   cat >conftest.$ac_ext <<_ACEOF
18397 /* confdefs.h.  */
18398 _ACEOF
18399 cat confdefs.h >>conftest.$ac_ext
18400 cat >>conftest.$ac_ext <<_ACEOF
18401 /* end confdefs.h.  */
18402 $ac_includes_default
18403 int
18404 main ()
18405 {
18406 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18407 test_array [0] = 0
18408
18409   ;
18410   return 0;
18411 }
18412 _ACEOF
18413 rm -f conftest.$ac_objext
18414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18415   (eval $ac_compile) 2>conftest.er1
18416   ac_status=$?
18417   grep -v '^ *+' conftest.er1 >conftest.err
18418   rm -f conftest.er1
18419   cat conftest.err >&5
18420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421   (exit $ac_status); } &&
18422          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18424   (eval $ac_try) 2>&5
18425   ac_status=$?
18426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427   (exit $ac_status); }; } &&
18428          { ac_try='test -s conftest.$ac_objext'
18429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18430   (eval $ac_try) 2>&5
18431   ac_status=$?
18432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433   (exit $ac_status); }; }; then
18434   ac_hi=$ac_mid
18435 else
18436   echo "$as_me: failed program was:" >&5
18437 sed 's/^/| /' conftest.$ac_ext >&5
18438
18439 ac_lo=`expr '(' $ac_mid ')' + 1`
18440 fi
18441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18442 done
18443 case $ac_lo in
18444 ?*) ac_cv_sizeof_void_p=$ac_lo;;
18445 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18446 See \`config.log' for more details." >&5
18447 echo "$as_me: error: cannot compute sizeof (void *), 77
18448 See \`config.log' for more details." >&2;}
18449    { (exit 1); exit 1; }; } ;;
18450 esac
18451 else
18452   if test "$cross_compiling" = yes; then
18453   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18454 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18455    { (exit 1); exit 1; }; }
18456 else
18457   cat >conftest.$ac_ext <<_ACEOF
18458 /* confdefs.h.  */
18459 _ACEOF
18460 cat confdefs.h >>conftest.$ac_ext
18461 cat >>conftest.$ac_ext <<_ACEOF
18462 /* end confdefs.h.  */
18463 $ac_includes_default
18464 long longval () { return (long) (sizeof (void *)); }
18465 unsigned long ulongval () { return (long) (sizeof (void *)); }
18466 #include <stdio.h>
18467 #include <stdlib.h>
18468 int
18469 main ()
18470 {
18471
18472   FILE *f = fopen ("conftest.val", "w");
18473   if (! f)
18474     exit (1);
18475   if (((long) (sizeof (void *))) < 0)
18476     {
18477       long i = longval ();
18478       if (i != ((long) (sizeof (void *))))
18479         exit (1);
18480       fprintf (f, "%ld\n", i);
18481     }
18482   else
18483     {
18484       unsigned long i = ulongval ();
18485       if (i != ((long) (sizeof (void *))))
18486         exit (1);
18487       fprintf (f, "%lu\n", i);
18488     }
18489   exit (ferror (f) || fclose (f) != 0);
18490
18491   ;
18492   return 0;
18493 }
18494 _ACEOF
18495 rm -f conftest$ac_exeext
18496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18497   (eval $ac_link) 2>&5
18498   ac_status=$?
18499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502   (eval $ac_try) 2>&5
18503   ac_status=$?
18504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505   (exit $ac_status); }; }; then
18506   ac_cv_sizeof_void_p=`cat conftest.val`
18507 else
18508   echo "$as_me: program exited with status $ac_status" >&5
18509 echo "$as_me: failed program was:" >&5
18510 sed 's/^/| /' conftest.$ac_ext >&5
18511
18512 ( exit $ac_status )
18513 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18514 See \`config.log' for more details." >&5
18515 echo "$as_me: error: cannot compute sizeof (void *), 77
18516 See \`config.log' for more details." >&2;}
18517    { (exit 1); exit 1; }; }
18518 fi
18519 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18520 fi
18521 fi
18522 rm -f conftest.val
18523 else
18524   ac_cv_sizeof_void_p=0
18525 fi
18526 fi
18527 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18528 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18529 cat >>confdefs.h <<_ACEOF
18530 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18531 _ACEOF
18532
18533
18534 echo "$as_me:$LINENO: checking for int" >&5
18535 echo $ECHO_N "checking for int... $ECHO_C" >&6
18536 if test "${ac_cv_type_int+set}" = set; then
18537   echo $ECHO_N "(cached) $ECHO_C" >&6
18538 else
18539   cat >conftest.$ac_ext <<_ACEOF
18540 /* confdefs.h.  */
18541 _ACEOF
18542 cat confdefs.h >>conftest.$ac_ext
18543 cat >>conftest.$ac_ext <<_ACEOF
18544 /* end confdefs.h.  */
18545 $ac_includes_default
18546 int
18547 main ()
18548 {
18549 if ((int *) 0)
18550   return 0;
18551 if (sizeof (int))
18552   return 0;
18553   ;
18554   return 0;
18555 }
18556 _ACEOF
18557 rm -f conftest.$ac_objext
18558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18559   (eval $ac_compile) 2>conftest.er1
18560   ac_status=$?
18561   grep -v '^ *+' conftest.er1 >conftest.err
18562   rm -f conftest.er1
18563   cat conftest.err >&5
18564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565   (exit $ac_status); } &&
18566          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568   (eval $ac_try) 2>&5
18569   ac_status=$?
18570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571   (exit $ac_status); }; } &&
18572          { ac_try='test -s conftest.$ac_objext'
18573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574   (eval $ac_try) 2>&5
18575   ac_status=$?
18576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577   (exit $ac_status); }; }; then
18578   ac_cv_type_int=yes
18579 else
18580   echo "$as_me: failed program was:" >&5
18581 sed 's/^/| /' conftest.$ac_ext >&5
18582
18583 ac_cv_type_int=no
18584 fi
18585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18586 fi
18587 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18588 echo "${ECHO_T}$ac_cv_type_int" >&6
18589
18590 echo "$as_me:$LINENO: checking size of int" >&5
18591 echo $ECHO_N "checking size of int... $ECHO_C" >&6
18592 if test "${ac_cv_sizeof_int+set}" = set; then
18593   echo $ECHO_N "(cached) $ECHO_C" >&6
18594 else
18595   if test "$ac_cv_type_int" = yes; then
18596   # The cast to unsigned long works around a bug in the HP C Compiler
18597   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18598   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18599   # This bug is HP SR number 8606223364.
18600   if test "$cross_compiling" = yes; then
18601   # Depending upon the size, compute the lo and hi bounds.
18602 cat >conftest.$ac_ext <<_ACEOF
18603 /* confdefs.h.  */
18604 _ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h.  */
18608 $ac_includes_default
18609 int
18610 main ()
18611 {
18612 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18613 test_array [0] = 0
18614
18615   ;
18616   return 0;
18617 }
18618 _ACEOF
18619 rm -f conftest.$ac_objext
18620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18621   (eval $ac_compile) 2>conftest.er1
18622   ac_status=$?
18623   grep -v '^ *+' conftest.er1 >conftest.err
18624   rm -f conftest.er1
18625   cat conftest.err >&5
18626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627   (exit $ac_status); } &&
18628          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630   (eval $ac_try) 2>&5
18631   ac_status=$?
18632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); }; } &&
18634          { ac_try='test -s conftest.$ac_objext'
18635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18636   (eval $ac_try) 2>&5
18637   ac_status=$?
18638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639   (exit $ac_status); }; }; then
18640   ac_lo=0 ac_mid=0
18641   while :; do
18642     cat >conftest.$ac_ext <<_ACEOF
18643 /* confdefs.h.  */
18644 _ACEOF
18645 cat confdefs.h >>conftest.$ac_ext
18646 cat >>conftest.$ac_ext <<_ACEOF
18647 /* end confdefs.h.  */
18648 $ac_includes_default
18649 int
18650 main ()
18651 {
18652 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18653 test_array [0] = 0
18654
18655   ;
18656   return 0;
18657 }
18658 _ACEOF
18659 rm -f conftest.$ac_objext
18660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18661   (eval $ac_compile) 2>conftest.er1
18662   ac_status=$?
18663   grep -v '^ *+' conftest.er1 >conftest.err
18664   rm -f conftest.er1
18665   cat conftest.err >&5
18666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667   (exit $ac_status); } &&
18668          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670   (eval $ac_try) 2>&5
18671   ac_status=$?
18672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673   (exit $ac_status); }; } &&
18674          { ac_try='test -s conftest.$ac_objext'
18675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18676   (eval $ac_try) 2>&5
18677   ac_status=$?
18678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679   (exit $ac_status); }; }; then
18680   ac_hi=$ac_mid; break
18681 else
18682   echo "$as_me: failed program was:" >&5
18683 sed 's/^/| /' conftest.$ac_ext >&5
18684
18685 ac_lo=`expr $ac_mid + 1`
18686                     if test $ac_lo -le $ac_mid; then
18687                       ac_lo= ac_hi=
18688                       break
18689                     fi
18690                     ac_mid=`expr 2 '*' $ac_mid + 1`
18691 fi
18692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18693   done
18694 else
18695   echo "$as_me: failed program was:" >&5
18696 sed 's/^/| /' conftest.$ac_ext >&5
18697
18698 cat >conftest.$ac_ext <<_ACEOF
18699 /* confdefs.h.  */
18700 _ACEOF
18701 cat confdefs.h >>conftest.$ac_ext
18702 cat >>conftest.$ac_ext <<_ACEOF
18703 /* end confdefs.h.  */
18704 $ac_includes_default
18705 int
18706 main ()
18707 {
18708 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18709 test_array [0] = 0
18710
18711   ;
18712   return 0;
18713 }
18714 _ACEOF
18715 rm -f conftest.$ac_objext
18716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18717   (eval $ac_compile) 2>conftest.er1
18718   ac_status=$?
18719   grep -v '^ *+' conftest.er1 >conftest.err
18720   rm -f conftest.er1
18721   cat conftest.err >&5
18722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723   (exit $ac_status); } &&
18724          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726   (eval $ac_try) 2>&5
18727   ac_status=$?
18728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729   (exit $ac_status); }; } &&
18730          { ac_try='test -s conftest.$ac_objext'
18731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732   (eval $ac_try) 2>&5
18733   ac_status=$?
18734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735   (exit $ac_status); }; }; then
18736   ac_hi=-1 ac_mid=-1
18737   while :; do
18738     cat >conftest.$ac_ext <<_ACEOF
18739 /* confdefs.h.  */
18740 _ACEOF
18741 cat confdefs.h >>conftest.$ac_ext
18742 cat >>conftest.$ac_ext <<_ACEOF
18743 /* end confdefs.h.  */
18744 $ac_includes_default
18745 int
18746 main ()
18747 {
18748 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18749 test_array [0] = 0
18750
18751   ;
18752   return 0;
18753 }
18754 _ACEOF
18755 rm -f conftest.$ac_objext
18756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18757   (eval $ac_compile) 2>conftest.er1
18758   ac_status=$?
18759   grep -v '^ *+' conftest.er1 >conftest.err
18760   rm -f conftest.er1
18761   cat conftest.err >&5
18762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763   (exit $ac_status); } &&
18764          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766   (eval $ac_try) 2>&5
18767   ac_status=$?
18768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769   (exit $ac_status); }; } &&
18770          { ac_try='test -s conftest.$ac_objext'
18771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772   (eval $ac_try) 2>&5
18773   ac_status=$?
18774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775   (exit $ac_status); }; }; then
18776   ac_lo=$ac_mid; break
18777 else
18778   echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.$ac_ext >&5
18780
18781 ac_hi=`expr '(' $ac_mid ')' - 1`
18782                        if test $ac_mid -le $ac_hi; then
18783                          ac_lo= ac_hi=
18784                          break
18785                        fi
18786                        ac_mid=`expr 2 '*' $ac_mid`
18787 fi
18788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18789   done
18790 else
18791   echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18793
18794 ac_lo= ac_hi=
18795 fi
18796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18797 fi
18798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18799 # Binary search between lo and hi bounds.
18800 while test "x$ac_lo" != "x$ac_hi"; do
18801   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18802   cat >conftest.$ac_ext <<_ACEOF
18803 /* confdefs.h.  */
18804 _ACEOF
18805 cat confdefs.h >>conftest.$ac_ext
18806 cat >>conftest.$ac_ext <<_ACEOF
18807 /* end confdefs.h.  */
18808 $ac_includes_default
18809 int
18810 main ()
18811 {
18812 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18813 test_array [0] = 0
18814
18815   ;
18816   return 0;
18817 }
18818 _ACEOF
18819 rm -f conftest.$ac_objext
18820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18821   (eval $ac_compile) 2>conftest.er1
18822   ac_status=$?
18823   grep -v '^ *+' conftest.er1 >conftest.err
18824   rm -f conftest.er1
18825   cat conftest.err >&5
18826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827   (exit $ac_status); } &&
18828          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18830   (eval $ac_try) 2>&5
18831   ac_status=$?
18832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833   (exit $ac_status); }; } &&
18834          { ac_try='test -s conftest.$ac_objext'
18835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18836   (eval $ac_try) 2>&5
18837   ac_status=$?
18838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839   (exit $ac_status); }; }; then
18840   ac_hi=$ac_mid
18841 else
18842   echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18844
18845 ac_lo=`expr '(' $ac_mid ')' + 1`
18846 fi
18847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18848 done
18849 case $ac_lo in
18850 ?*) ac_cv_sizeof_int=$ac_lo;;
18851 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18852 See \`config.log' for more details." >&5
18853 echo "$as_me: error: cannot compute sizeof (int), 77
18854 See \`config.log' for more details." >&2;}
18855    { (exit 1); exit 1; }; } ;;
18856 esac
18857 else
18858   if test "$cross_compiling" = yes; then
18859   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18860 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18861    { (exit 1); exit 1; }; }
18862 else
18863   cat >conftest.$ac_ext <<_ACEOF
18864 /* confdefs.h.  */
18865 _ACEOF
18866 cat confdefs.h >>conftest.$ac_ext
18867 cat >>conftest.$ac_ext <<_ACEOF
18868 /* end confdefs.h.  */
18869 $ac_includes_default
18870 long longval () { return (long) (sizeof (int)); }
18871 unsigned long ulongval () { return (long) (sizeof (int)); }
18872 #include <stdio.h>
18873 #include <stdlib.h>
18874 int
18875 main ()
18876 {
18877
18878   FILE *f = fopen ("conftest.val", "w");
18879   if (! f)
18880     exit (1);
18881   if (((long) (sizeof (int))) < 0)
18882     {
18883       long i = longval ();
18884       if (i != ((long) (sizeof (int))))
18885         exit (1);
18886       fprintf (f, "%ld\n", i);
18887     }
18888   else
18889     {
18890       unsigned long i = ulongval ();
18891       if (i != ((long) (sizeof (int))))
18892         exit (1);
18893       fprintf (f, "%lu\n", i);
18894     }
18895   exit (ferror (f) || fclose (f) != 0);
18896
18897   ;
18898   return 0;
18899 }
18900 _ACEOF
18901 rm -f conftest$ac_exeext
18902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18903   (eval $ac_link) 2>&5
18904   ac_status=$?
18905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908   (eval $ac_try) 2>&5
18909   ac_status=$?
18910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911   (exit $ac_status); }; }; then
18912   ac_cv_sizeof_int=`cat conftest.val`
18913 else
18914   echo "$as_me: program exited with status $ac_status" >&5
18915 echo "$as_me: failed program was:" >&5
18916 sed 's/^/| /' conftest.$ac_ext >&5
18917
18918 ( exit $ac_status )
18919 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18920 See \`config.log' for more details." >&5
18921 echo "$as_me: error: cannot compute sizeof (int), 77
18922 See \`config.log' for more details." >&2;}
18923    { (exit 1); exit 1; }; }
18924 fi
18925 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18926 fi
18927 fi
18928 rm -f conftest.val
18929 else
18930   ac_cv_sizeof_int=0
18931 fi
18932 fi
18933 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18934 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18935 cat >>confdefs.h <<_ACEOF
18936 #define SIZEOF_INT $ac_cv_sizeof_int
18937 _ACEOF
18938
18939
18940 echo "$as_me:$LINENO: checking for long" >&5
18941 echo $ECHO_N "checking for long... $ECHO_C" >&6
18942 if test "${ac_cv_type_long+set}" = set; then
18943   echo $ECHO_N "(cached) $ECHO_C" >&6
18944 else
18945   cat >conftest.$ac_ext <<_ACEOF
18946 /* confdefs.h.  */
18947 _ACEOF
18948 cat confdefs.h >>conftest.$ac_ext
18949 cat >>conftest.$ac_ext <<_ACEOF
18950 /* end confdefs.h.  */
18951 $ac_includes_default
18952 int
18953 main ()
18954 {
18955 if ((long *) 0)
18956   return 0;
18957 if (sizeof (long))
18958   return 0;
18959   ;
18960   return 0;
18961 }
18962 _ACEOF
18963 rm -f conftest.$ac_objext
18964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18965   (eval $ac_compile) 2>conftest.er1
18966   ac_status=$?
18967   grep -v '^ *+' conftest.er1 >conftest.err
18968   rm -f conftest.er1
18969   cat conftest.err >&5
18970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971   (exit $ac_status); } &&
18972          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974   (eval $ac_try) 2>&5
18975   ac_status=$?
18976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977   (exit $ac_status); }; } &&
18978          { ac_try='test -s conftest.$ac_objext'
18979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980   (eval $ac_try) 2>&5
18981   ac_status=$?
18982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983   (exit $ac_status); }; }; then
18984   ac_cv_type_long=yes
18985 else
18986   echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18988
18989 ac_cv_type_long=no
18990 fi
18991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18992 fi
18993 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18994 echo "${ECHO_T}$ac_cv_type_long" >&6
18995
18996 echo "$as_me:$LINENO: checking size of long" >&5
18997 echo $ECHO_N "checking size of long... $ECHO_C" >&6
18998 if test "${ac_cv_sizeof_long+set}" = set; then
18999   echo $ECHO_N "(cached) $ECHO_C" >&6
19000 else
19001   if test "$ac_cv_type_long" = yes; then
19002   # The cast to unsigned long works around a bug in the HP C Compiler
19003   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19004   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19005   # This bug is HP SR number 8606223364.
19006   if test "$cross_compiling" = yes; then
19007   # Depending upon the size, compute the lo and hi bounds.
19008 cat >conftest.$ac_ext <<_ACEOF
19009 /* confdefs.h.  */
19010 _ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h.  */
19014 $ac_includes_default
19015 int
19016 main ()
19017 {
19018 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19019 test_array [0] = 0
19020
19021   ;
19022   return 0;
19023 }
19024 _ACEOF
19025 rm -f conftest.$ac_objext
19026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19027   (eval $ac_compile) 2>conftest.er1
19028   ac_status=$?
19029   grep -v '^ *+' conftest.er1 >conftest.err
19030   rm -f conftest.er1
19031   cat conftest.err >&5
19032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033   (exit $ac_status); } &&
19034          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036   (eval $ac_try) 2>&5
19037   ac_status=$?
19038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039   (exit $ac_status); }; } &&
19040          { ac_try='test -s conftest.$ac_objext'
19041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042   (eval $ac_try) 2>&5
19043   ac_status=$?
19044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045   (exit $ac_status); }; }; then
19046   ac_lo=0 ac_mid=0
19047   while :; do
19048     cat >conftest.$ac_ext <<_ACEOF
19049 /* confdefs.h.  */
19050 _ACEOF
19051 cat confdefs.h >>conftest.$ac_ext
19052 cat >>conftest.$ac_ext <<_ACEOF
19053 /* end confdefs.h.  */
19054 $ac_includes_default
19055 int
19056 main ()
19057 {
19058 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19059 test_array [0] = 0
19060
19061   ;
19062   return 0;
19063 }
19064 _ACEOF
19065 rm -f conftest.$ac_objext
19066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19067   (eval $ac_compile) 2>conftest.er1
19068   ac_status=$?
19069   grep -v '^ *+' conftest.er1 >conftest.err
19070   rm -f conftest.er1
19071   cat conftest.err >&5
19072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073   (exit $ac_status); } &&
19074          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19076   (eval $ac_try) 2>&5
19077   ac_status=$?
19078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079   (exit $ac_status); }; } &&
19080          { ac_try='test -s conftest.$ac_objext'
19081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19082   (eval $ac_try) 2>&5
19083   ac_status=$?
19084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085   (exit $ac_status); }; }; then
19086   ac_hi=$ac_mid; break
19087 else
19088   echo "$as_me: failed program was:" >&5
19089 sed 's/^/| /' conftest.$ac_ext >&5
19090
19091 ac_lo=`expr $ac_mid + 1`
19092                     if test $ac_lo -le $ac_mid; then
19093                       ac_lo= ac_hi=
19094                       break
19095                     fi
19096                     ac_mid=`expr 2 '*' $ac_mid + 1`
19097 fi
19098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19099   done
19100 else
19101   echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19103
19104 cat >conftest.$ac_ext <<_ACEOF
19105 /* confdefs.h.  */
19106 _ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h.  */
19110 $ac_includes_default
19111 int
19112 main ()
19113 {
19114 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19115 test_array [0] = 0
19116
19117   ;
19118   return 0;
19119 }
19120 _ACEOF
19121 rm -f conftest.$ac_objext
19122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19123   (eval $ac_compile) 2>conftest.er1
19124   ac_status=$?
19125   grep -v '^ *+' conftest.er1 >conftest.err
19126   rm -f conftest.er1
19127   cat conftest.err >&5
19128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129   (exit $ac_status); } &&
19130          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19132   (eval $ac_try) 2>&5
19133   ac_status=$?
19134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135   (exit $ac_status); }; } &&
19136          { ac_try='test -s conftest.$ac_objext'
19137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138   (eval $ac_try) 2>&5
19139   ac_status=$?
19140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141   (exit $ac_status); }; }; then
19142   ac_hi=-1 ac_mid=-1
19143   while :; do
19144     cat >conftest.$ac_ext <<_ACEOF
19145 /* confdefs.h.  */
19146 _ACEOF
19147 cat confdefs.h >>conftest.$ac_ext
19148 cat >>conftest.$ac_ext <<_ACEOF
19149 /* end confdefs.h.  */
19150 $ac_includes_default
19151 int
19152 main ()
19153 {
19154 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19155 test_array [0] = 0
19156
19157   ;
19158   return 0;
19159 }
19160 _ACEOF
19161 rm -f conftest.$ac_objext
19162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19163   (eval $ac_compile) 2>conftest.er1
19164   ac_status=$?
19165   grep -v '^ *+' conftest.er1 >conftest.err
19166   rm -f conftest.er1
19167   cat conftest.err >&5
19168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169   (exit $ac_status); } &&
19170          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172   (eval $ac_try) 2>&5
19173   ac_status=$?
19174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175   (exit $ac_status); }; } &&
19176          { ac_try='test -s conftest.$ac_objext'
19177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178   (eval $ac_try) 2>&5
19179   ac_status=$?
19180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181   (exit $ac_status); }; }; then
19182   ac_lo=$ac_mid; break
19183 else
19184   echo "$as_me: failed program was:" >&5
19185 sed 's/^/| /' conftest.$ac_ext >&5
19186
19187 ac_hi=`expr '(' $ac_mid ')' - 1`
19188                        if test $ac_mid -le $ac_hi; then
19189                          ac_lo= ac_hi=
19190                          break
19191                        fi
19192                        ac_mid=`expr 2 '*' $ac_mid`
19193 fi
19194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19195   done
19196 else
19197   echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19199
19200 ac_lo= ac_hi=
19201 fi
19202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19203 fi
19204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19205 # Binary search between lo and hi bounds.
19206 while test "x$ac_lo" != "x$ac_hi"; do
19207   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19208   cat >conftest.$ac_ext <<_ACEOF
19209 /* confdefs.h.  */
19210 _ACEOF
19211 cat confdefs.h >>conftest.$ac_ext
19212 cat >>conftest.$ac_ext <<_ACEOF
19213 /* end confdefs.h.  */
19214 $ac_includes_default
19215 int
19216 main ()
19217 {
19218 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19219 test_array [0] = 0
19220
19221   ;
19222   return 0;
19223 }
19224 _ACEOF
19225 rm -f conftest.$ac_objext
19226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19227   (eval $ac_compile) 2>conftest.er1
19228   ac_status=$?
19229   grep -v '^ *+' conftest.er1 >conftest.err
19230   rm -f conftest.er1
19231   cat conftest.err >&5
19232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233   (exit $ac_status); } &&
19234          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19236   (eval $ac_try) 2>&5
19237   ac_status=$?
19238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239   (exit $ac_status); }; } &&
19240          { ac_try='test -s conftest.$ac_objext'
19241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242   (eval $ac_try) 2>&5
19243   ac_status=$?
19244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245   (exit $ac_status); }; }; then
19246   ac_hi=$ac_mid
19247 else
19248   echo "$as_me: failed program was:" >&5
19249 sed 's/^/| /' conftest.$ac_ext >&5
19250
19251 ac_lo=`expr '(' $ac_mid ')' + 1`
19252 fi
19253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19254 done
19255 case $ac_lo in
19256 ?*) ac_cv_sizeof_long=$ac_lo;;
19257 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19258 See \`config.log' for more details." >&5
19259 echo "$as_me: error: cannot compute sizeof (long), 77
19260 See \`config.log' for more details." >&2;}
19261    { (exit 1); exit 1; }; } ;;
19262 esac
19263 else
19264   if test "$cross_compiling" = yes; then
19265   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19266 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19267    { (exit 1); exit 1; }; }
19268 else
19269   cat >conftest.$ac_ext <<_ACEOF
19270 /* confdefs.h.  */
19271 _ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h.  */
19275 $ac_includes_default
19276 long longval () { return (long) (sizeof (long)); }
19277 unsigned long ulongval () { return (long) (sizeof (long)); }
19278 #include <stdio.h>
19279 #include <stdlib.h>
19280 int
19281 main ()
19282 {
19283
19284   FILE *f = fopen ("conftest.val", "w");
19285   if (! f)
19286     exit (1);
19287   if (((long) (sizeof (long))) < 0)
19288     {
19289       long i = longval ();
19290       if (i != ((long) (sizeof (long))))
19291         exit (1);
19292       fprintf (f, "%ld\n", i);
19293     }
19294   else
19295     {
19296       unsigned long i = ulongval ();
19297       if (i != ((long) (sizeof (long))))
19298         exit (1);
19299       fprintf (f, "%lu\n", i);
19300     }
19301   exit (ferror (f) || fclose (f) != 0);
19302
19303   ;
19304   return 0;
19305 }
19306 _ACEOF
19307 rm -f conftest$ac_exeext
19308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19309   (eval $ac_link) 2>&5
19310   ac_status=$?
19311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314   (eval $ac_try) 2>&5
19315   ac_status=$?
19316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317   (exit $ac_status); }; }; then
19318   ac_cv_sizeof_long=`cat conftest.val`
19319 else
19320   echo "$as_me: program exited with status $ac_status" >&5
19321 echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19323
19324 ( exit $ac_status )
19325 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19326 See \`config.log' for more details." >&5
19327 echo "$as_me: error: cannot compute sizeof (long), 77
19328 See \`config.log' for more details." >&2;}
19329    { (exit 1); exit 1; }; }
19330 fi
19331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19332 fi
19333 fi
19334 rm -f conftest.val
19335 else
19336   ac_cv_sizeof_long=0
19337 fi
19338 fi
19339 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19340 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19341 cat >>confdefs.h <<_ACEOF
19342 #define SIZEOF_LONG $ac_cv_sizeof_long
19343 _ACEOF
19344
19345
19346 echo "$as_me:$LINENO: checking for size_t" >&5
19347 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19348 if test "${ac_cv_type_size_t+set}" = set; then
19349   echo $ECHO_N "(cached) $ECHO_C" >&6
19350 else
19351   cat >conftest.$ac_ext <<_ACEOF
19352 /* confdefs.h.  */
19353 _ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h.  */
19357 $ac_includes_default
19358 int
19359 main ()
19360 {
19361 if ((size_t *) 0)
19362   return 0;
19363 if (sizeof (size_t))
19364   return 0;
19365   ;
19366   return 0;
19367 }
19368 _ACEOF
19369 rm -f conftest.$ac_objext
19370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19371   (eval $ac_compile) 2>conftest.er1
19372   ac_status=$?
19373   grep -v '^ *+' conftest.er1 >conftest.err
19374   rm -f conftest.er1
19375   cat conftest.err >&5
19376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377   (exit $ac_status); } &&
19378          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380   (eval $ac_try) 2>&5
19381   ac_status=$?
19382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383   (exit $ac_status); }; } &&
19384          { ac_try='test -s conftest.$ac_objext'
19385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386   (eval $ac_try) 2>&5
19387   ac_status=$?
19388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389   (exit $ac_status); }; }; then
19390   ac_cv_type_size_t=yes
19391 else
19392   echo "$as_me: failed program was:" >&5
19393 sed 's/^/| /' conftest.$ac_ext >&5
19394
19395 ac_cv_type_size_t=no
19396 fi
19397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19398 fi
19399 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19400 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19401
19402 echo "$as_me:$LINENO: checking size of size_t" >&5
19403 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19404 if test "${ac_cv_sizeof_size_t+set}" = set; then
19405   echo $ECHO_N "(cached) $ECHO_C" >&6
19406 else
19407   if test "$ac_cv_type_size_t" = yes; then
19408   # The cast to unsigned long works around a bug in the HP C Compiler
19409   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19410   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19411   # This bug is HP SR number 8606223364.
19412   if test "$cross_compiling" = yes; then
19413   # Depending upon the size, compute the lo and hi bounds.
19414 cat >conftest.$ac_ext <<_ACEOF
19415 /* confdefs.h.  */
19416 _ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h.  */
19420 $ac_includes_default
19421 int
19422 main ()
19423 {
19424 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19425 test_array [0] = 0
19426
19427   ;
19428   return 0;
19429 }
19430 _ACEOF
19431 rm -f conftest.$ac_objext
19432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19433   (eval $ac_compile) 2>conftest.er1
19434   ac_status=$?
19435   grep -v '^ *+' conftest.er1 >conftest.err
19436   rm -f conftest.er1
19437   cat conftest.err >&5
19438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439   (exit $ac_status); } &&
19440          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442   (eval $ac_try) 2>&5
19443   ac_status=$?
19444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445   (exit $ac_status); }; } &&
19446          { ac_try='test -s conftest.$ac_objext'
19447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448   (eval $ac_try) 2>&5
19449   ac_status=$?
19450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451   (exit $ac_status); }; }; then
19452   ac_lo=0 ac_mid=0
19453   while :; do
19454     cat >conftest.$ac_ext <<_ACEOF
19455 /* confdefs.h.  */
19456 _ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h.  */
19460 $ac_includes_default
19461 int
19462 main ()
19463 {
19464 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19465 test_array [0] = 0
19466
19467   ;
19468   return 0;
19469 }
19470 _ACEOF
19471 rm -f conftest.$ac_objext
19472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19473   (eval $ac_compile) 2>conftest.er1
19474   ac_status=$?
19475   grep -v '^ *+' conftest.er1 >conftest.err
19476   rm -f conftest.er1
19477   cat conftest.err >&5
19478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479   (exit $ac_status); } &&
19480          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482   (eval $ac_try) 2>&5
19483   ac_status=$?
19484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); }; } &&
19486          { ac_try='test -s conftest.$ac_objext'
19487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488   (eval $ac_try) 2>&5
19489   ac_status=$?
19490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491   (exit $ac_status); }; }; then
19492   ac_hi=$ac_mid; break
19493 else
19494   echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19496
19497 ac_lo=`expr $ac_mid + 1`
19498                     if test $ac_lo -le $ac_mid; then
19499                       ac_lo= ac_hi=
19500                       break
19501                     fi
19502                     ac_mid=`expr 2 '*' $ac_mid + 1`
19503 fi
19504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19505   done
19506 else
19507   echo "$as_me: failed program was:" >&5
19508 sed 's/^/| /' conftest.$ac_ext >&5
19509
19510 cat >conftest.$ac_ext <<_ACEOF
19511 /* confdefs.h.  */
19512 _ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h.  */
19516 $ac_includes_default
19517 int
19518 main ()
19519 {
19520 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19521 test_array [0] = 0
19522
19523   ;
19524   return 0;
19525 }
19526 _ACEOF
19527 rm -f conftest.$ac_objext
19528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19529   (eval $ac_compile) 2>conftest.er1
19530   ac_status=$?
19531   grep -v '^ *+' conftest.er1 >conftest.err
19532   rm -f conftest.er1
19533   cat conftest.err >&5
19534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535   (exit $ac_status); } &&
19536          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538   (eval $ac_try) 2>&5
19539   ac_status=$?
19540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541   (exit $ac_status); }; } &&
19542          { ac_try='test -s conftest.$ac_objext'
19543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544   (eval $ac_try) 2>&5
19545   ac_status=$?
19546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547   (exit $ac_status); }; }; then
19548   ac_hi=-1 ac_mid=-1
19549   while :; do
19550     cat >conftest.$ac_ext <<_ACEOF
19551 /* confdefs.h.  */
19552 _ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h.  */
19556 $ac_includes_default
19557 int
19558 main ()
19559 {
19560 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19561 test_array [0] = 0
19562
19563   ;
19564   return 0;
19565 }
19566 _ACEOF
19567 rm -f conftest.$ac_objext
19568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19569   (eval $ac_compile) 2>conftest.er1
19570   ac_status=$?
19571   grep -v '^ *+' conftest.er1 >conftest.err
19572   rm -f conftest.er1
19573   cat conftest.err >&5
19574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575   (exit $ac_status); } &&
19576          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578   (eval $ac_try) 2>&5
19579   ac_status=$?
19580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581   (exit $ac_status); }; } &&
19582          { ac_try='test -s conftest.$ac_objext'
19583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584   (eval $ac_try) 2>&5
19585   ac_status=$?
19586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587   (exit $ac_status); }; }; then
19588   ac_lo=$ac_mid; break
19589 else
19590   echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19592
19593 ac_hi=`expr '(' $ac_mid ')' - 1`
19594                        if test $ac_mid -le $ac_hi; then
19595                          ac_lo= ac_hi=
19596                          break
19597                        fi
19598                        ac_mid=`expr 2 '*' $ac_mid`
19599 fi
19600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19601   done
19602 else
19603   echo "$as_me: failed program was:" >&5
19604 sed 's/^/| /' conftest.$ac_ext >&5
19605
19606 ac_lo= ac_hi=
19607 fi
19608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19609 fi
19610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19611 # Binary search between lo and hi bounds.
19612 while test "x$ac_lo" != "x$ac_hi"; do
19613   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19614   cat >conftest.$ac_ext <<_ACEOF
19615 /* confdefs.h.  */
19616 _ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h.  */
19620 $ac_includes_default
19621 int
19622 main ()
19623 {
19624 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19625 test_array [0] = 0
19626
19627   ;
19628   return 0;
19629 }
19630 _ACEOF
19631 rm -f conftest.$ac_objext
19632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19633   (eval $ac_compile) 2>conftest.er1
19634   ac_status=$?
19635   grep -v '^ *+' conftest.er1 >conftest.err
19636   rm -f conftest.er1
19637   cat conftest.err >&5
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); } &&
19640          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642   (eval $ac_try) 2>&5
19643   ac_status=$?
19644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645   (exit $ac_status); }; } &&
19646          { ac_try='test -s conftest.$ac_objext'
19647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648   (eval $ac_try) 2>&5
19649   ac_status=$?
19650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651   (exit $ac_status); }; }; then
19652   ac_hi=$ac_mid
19653 else
19654   echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19656
19657 ac_lo=`expr '(' $ac_mid ')' + 1`
19658 fi
19659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19660 done
19661 case $ac_lo in
19662 ?*) ac_cv_sizeof_size_t=$ac_lo;;
19663 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19664 See \`config.log' for more details." >&5
19665 echo "$as_me: error: cannot compute sizeof (size_t), 77
19666 See \`config.log' for more details." >&2;}
19667    { (exit 1); exit 1; }; } ;;
19668 esac
19669 else
19670   if test "$cross_compiling" = yes; then
19671   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19672 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19673    { (exit 1); exit 1; }; }
19674 else
19675   cat >conftest.$ac_ext <<_ACEOF
19676 /* confdefs.h.  */
19677 _ACEOF
19678 cat confdefs.h >>conftest.$ac_ext
19679 cat >>conftest.$ac_ext <<_ACEOF
19680 /* end confdefs.h.  */
19681 $ac_includes_default
19682 long longval () { return (long) (sizeof (size_t)); }
19683 unsigned long ulongval () { return (long) (sizeof (size_t)); }
19684 #include <stdio.h>
19685 #include <stdlib.h>
19686 int
19687 main ()
19688 {
19689
19690   FILE *f = fopen ("conftest.val", "w");
19691   if (! f)
19692     exit (1);
19693   if (((long) (sizeof (size_t))) < 0)
19694     {
19695       long i = longval ();
19696       if (i != ((long) (sizeof (size_t))))
19697         exit (1);
19698       fprintf (f, "%ld\n", i);
19699     }
19700   else
19701     {
19702       unsigned long i = ulongval ();
19703       if (i != ((long) (sizeof (size_t))))
19704         exit (1);
19705       fprintf (f, "%lu\n", i);
19706     }
19707   exit (ferror (f) || fclose (f) != 0);
19708
19709   ;
19710   return 0;
19711 }
19712 _ACEOF
19713 rm -f conftest$ac_exeext
19714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19715   (eval $ac_link) 2>&5
19716   ac_status=$?
19717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720   (eval $ac_try) 2>&5
19721   ac_status=$?
19722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723   (exit $ac_status); }; }; then
19724   ac_cv_sizeof_size_t=`cat conftest.val`
19725 else
19726   echo "$as_me: program exited with status $ac_status" >&5
19727 echo "$as_me: failed program was:" >&5
19728 sed 's/^/| /' conftest.$ac_ext >&5
19729
19730 ( exit $ac_status )
19731 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19732 See \`config.log' for more details." >&5
19733 echo "$as_me: error: cannot compute sizeof (size_t), 77
19734 See \`config.log' for more details." >&2;}
19735    { (exit 1); exit 1; }; }
19736 fi
19737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19738 fi
19739 fi
19740 rm -f conftest.val
19741 else
19742   ac_cv_sizeof_size_t=0
19743 fi
19744 fi
19745 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19746 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19747 cat >>confdefs.h <<_ACEOF
19748 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19749 _ACEOF
19750
19751
19752
19753 case "${host}" in
19754     arm-*-linux* )
19755         echo "$as_me:$LINENO: checking for long long" >&5
19756 echo $ECHO_N "checking for long long... $ECHO_C" >&6
19757 if test "${ac_cv_type_long_long+set}" = set; then
19758   echo $ECHO_N "(cached) $ECHO_C" >&6
19759 else
19760   cat >conftest.$ac_ext <<_ACEOF
19761 /* confdefs.h.  */
19762 _ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h.  */
19766 $ac_includes_default
19767 int
19768 main ()
19769 {
19770 if ((long long *) 0)
19771   return 0;
19772 if (sizeof (long long))
19773   return 0;
19774   ;
19775   return 0;
19776 }
19777 _ACEOF
19778 rm -f conftest.$ac_objext
19779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19780   (eval $ac_compile) 2>conftest.er1
19781   ac_status=$?
19782   grep -v '^ *+' conftest.er1 >conftest.err
19783   rm -f conftest.er1
19784   cat conftest.err >&5
19785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786   (exit $ac_status); } &&
19787          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789   (eval $ac_try) 2>&5
19790   ac_status=$?
19791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792   (exit $ac_status); }; } &&
19793          { ac_try='test -s conftest.$ac_objext'
19794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795   (eval $ac_try) 2>&5
19796   ac_status=$?
19797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798   (exit $ac_status); }; }; then
19799   ac_cv_type_long_long=yes
19800 else
19801   echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19803
19804 ac_cv_type_long_long=no
19805 fi
19806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19807 fi
19808 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19809 echo "${ECHO_T}$ac_cv_type_long_long" >&6
19810
19811 echo "$as_me:$LINENO: checking size of long long" >&5
19812 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19813 if test "${ac_cv_sizeof_long_long+set}" = set; then
19814   echo $ECHO_N "(cached) $ECHO_C" >&6
19815 else
19816   if test "$ac_cv_type_long_long" = yes; then
19817   # The cast to unsigned long works around a bug in the HP C Compiler
19818   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19819   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19820   # This bug is HP SR number 8606223364.
19821   if test "$cross_compiling" = yes; then
19822   # Depending upon the size, compute the lo and hi bounds.
19823 cat >conftest.$ac_ext <<_ACEOF
19824 /* confdefs.h.  */
19825 _ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h.  */
19829 $ac_includes_default
19830 int
19831 main ()
19832 {
19833 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19834 test_array [0] = 0
19835
19836   ;
19837   return 0;
19838 }
19839 _ACEOF
19840 rm -f conftest.$ac_objext
19841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19842   (eval $ac_compile) 2>conftest.er1
19843   ac_status=$?
19844   grep -v '^ *+' conftest.er1 >conftest.err
19845   rm -f conftest.er1
19846   cat conftest.err >&5
19847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848   (exit $ac_status); } &&
19849          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851   (eval $ac_try) 2>&5
19852   ac_status=$?
19853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854   (exit $ac_status); }; } &&
19855          { ac_try='test -s conftest.$ac_objext'
19856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857   (eval $ac_try) 2>&5
19858   ac_status=$?
19859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860   (exit $ac_status); }; }; then
19861   ac_lo=0 ac_mid=0
19862   while :; do
19863     cat >conftest.$ac_ext <<_ACEOF
19864 /* confdefs.h.  */
19865 _ACEOF
19866 cat confdefs.h >>conftest.$ac_ext
19867 cat >>conftest.$ac_ext <<_ACEOF
19868 /* end confdefs.h.  */
19869 $ac_includes_default
19870 int
19871 main ()
19872 {
19873 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19874 test_array [0] = 0
19875
19876   ;
19877   return 0;
19878 }
19879 _ACEOF
19880 rm -f conftest.$ac_objext
19881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19882   (eval $ac_compile) 2>conftest.er1
19883   ac_status=$?
19884   grep -v '^ *+' conftest.er1 >conftest.err
19885   rm -f conftest.er1
19886   cat conftest.err >&5
19887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888   (exit $ac_status); } &&
19889          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891   (eval $ac_try) 2>&5
19892   ac_status=$?
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); }; } &&
19895          { ac_try='test -s conftest.$ac_objext'
19896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897   (eval $ac_try) 2>&5
19898   ac_status=$?
19899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900   (exit $ac_status); }; }; then
19901   ac_hi=$ac_mid; break
19902 else
19903   echo "$as_me: failed program was:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19905
19906 ac_lo=`expr $ac_mid + 1`
19907                     if test $ac_lo -le $ac_mid; then
19908                       ac_lo= ac_hi=
19909                       break
19910                     fi
19911                     ac_mid=`expr 2 '*' $ac_mid + 1`
19912 fi
19913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19914   done
19915 else
19916   echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19918
19919 cat >conftest.$ac_ext <<_ACEOF
19920 /* confdefs.h.  */
19921 _ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h.  */
19925 $ac_includes_default
19926 int
19927 main ()
19928 {
19929 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19930 test_array [0] = 0
19931
19932   ;
19933   return 0;
19934 }
19935 _ACEOF
19936 rm -f conftest.$ac_objext
19937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19938   (eval $ac_compile) 2>conftest.er1
19939   ac_status=$?
19940   grep -v '^ *+' conftest.er1 >conftest.err
19941   rm -f conftest.er1
19942   cat conftest.err >&5
19943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944   (exit $ac_status); } &&
19945          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947   (eval $ac_try) 2>&5
19948   ac_status=$?
19949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950   (exit $ac_status); }; } &&
19951          { ac_try='test -s conftest.$ac_objext'
19952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953   (eval $ac_try) 2>&5
19954   ac_status=$?
19955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956   (exit $ac_status); }; }; then
19957   ac_hi=-1 ac_mid=-1
19958   while :; do
19959     cat >conftest.$ac_ext <<_ACEOF
19960 /* confdefs.h.  */
19961 _ACEOF
19962 cat confdefs.h >>conftest.$ac_ext
19963 cat >>conftest.$ac_ext <<_ACEOF
19964 /* end confdefs.h.  */
19965 $ac_includes_default
19966 int
19967 main ()
19968 {
19969 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19970 test_array [0] = 0
19971
19972   ;
19973   return 0;
19974 }
19975 _ACEOF
19976 rm -f conftest.$ac_objext
19977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19978   (eval $ac_compile) 2>conftest.er1
19979   ac_status=$?
19980   grep -v '^ *+' conftest.er1 >conftest.err
19981   rm -f conftest.er1
19982   cat conftest.err >&5
19983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984   (exit $ac_status); } &&
19985          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987   (eval $ac_try) 2>&5
19988   ac_status=$?
19989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990   (exit $ac_status); }; } &&
19991          { ac_try='test -s conftest.$ac_objext'
19992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19993   (eval $ac_try) 2>&5
19994   ac_status=$?
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); }; }; then
19997   ac_lo=$ac_mid; break
19998 else
19999   echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20001
20002 ac_hi=`expr '(' $ac_mid ')' - 1`
20003                        if test $ac_mid -le $ac_hi; then
20004                          ac_lo= ac_hi=
20005                          break
20006                        fi
20007                        ac_mid=`expr 2 '*' $ac_mid`
20008 fi
20009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20010   done
20011 else
20012   echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20014
20015 ac_lo= ac_hi=
20016 fi
20017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20018 fi
20019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20020 # Binary search between lo and hi bounds.
20021 while test "x$ac_lo" != "x$ac_hi"; do
20022   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20023   cat >conftest.$ac_ext <<_ACEOF
20024 /* confdefs.h.  */
20025 _ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h.  */
20029 $ac_includes_default
20030 int
20031 main ()
20032 {
20033 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20034 test_array [0] = 0
20035
20036   ;
20037   return 0;
20038 }
20039 _ACEOF
20040 rm -f conftest.$ac_objext
20041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20042   (eval $ac_compile) 2>conftest.er1
20043   ac_status=$?
20044   grep -v '^ *+' conftest.er1 >conftest.err
20045   rm -f conftest.er1
20046   cat conftest.err >&5
20047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048   (exit $ac_status); } &&
20049          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051   (eval $ac_try) 2>&5
20052   ac_status=$?
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); }; } &&
20055          { ac_try='test -s conftest.$ac_objext'
20056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057   (eval $ac_try) 2>&5
20058   ac_status=$?
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); }; }; then
20061   ac_hi=$ac_mid
20062 else
20063   echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20065
20066 ac_lo=`expr '(' $ac_mid ')' + 1`
20067 fi
20068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20069 done
20070 case $ac_lo in
20071 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20072 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20073 See \`config.log' for more details." >&5
20074 echo "$as_me: error: cannot compute sizeof (long long), 77
20075 See \`config.log' for more details." >&2;}
20076    { (exit 1); exit 1; }; } ;;
20077 esac
20078 else
20079   if test "$cross_compiling" = yes; then
20080   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20081 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20082    { (exit 1); exit 1; }; }
20083 else
20084   cat >conftest.$ac_ext <<_ACEOF
20085 /* confdefs.h.  */
20086 _ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h.  */
20090 $ac_includes_default
20091 long longval () { return (long) (sizeof (long long)); }
20092 unsigned long ulongval () { return (long) (sizeof (long long)); }
20093 #include <stdio.h>
20094 #include <stdlib.h>
20095 int
20096 main ()
20097 {
20098
20099   FILE *f = fopen ("conftest.val", "w");
20100   if (! f)
20101     exit (1);
20102   if (((long) (sizeof (long long))) < 0)
20103     {
20104       long i = longval ();
20105       if (i != ((long) (sizeof (long long))))
20106         exit (1);
20107       fprintf (f, "%ld\n", i);
20108     }
20109   else
20110     {
20111       unsigned long i = ulongval ();
20112       if (i != ((long) (sizeof (long long))))
20113         exit (1);
20114       fprintf (f, "%lu\n", i);
20115     }
20116   exit (ferror (f) || fclose (f) != 0);
20117
20118   ;
20119   return 0;
20120 }
20121 _ACEOF
20122 rm -f conftest$ac_exeext
20123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20124   (eval $ac_link) 2>&5
20125   ac_status=$?
20126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129   (eval $ac_try) 2>&5
20130   ac_status=$?
20131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132   (exit $ac_status); }; }; then
20133   ac_cv_sizeof_long_long=`cat conftest.val`
20134 else
20135   echo "$as_me: program exited with status $ac_status" >&5
20136 echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20138
20139 ( exit $ac_status )
20140 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20141 See \`config.log' for more details." >&5
20142 echo "$as_me: error: cannot compute sizeof (long long), 77
20143 See \`config.log' for more details." >&2;}
20144    { (exit 1); exit 1; }; }
20145 fi
20146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20147 fi
20148 fi
20149 rm -f conftest.val
20150 else
20151   ac_cv_sizeof_long_long=0
20152 fi
20153 fi
20154 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20155 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20156 cat >>confdefs.h <<_ACEOF
20157 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20158 _ACEOF
20159
20160
20161     ;;
20162     *-hp-hpux* )
20163         echo "$as_me:$LINENO: checking for long long" >&5
20164 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20165 if test "${ac_cv_type_long_long+set}" = set; then
20166   echo $ECHO_N "(cached) $ECHO_C" >&6
20167 else
20168   cat >conftest.$ac_ext <<_ACEOF
20169 /* confdefs.h.  */
20170 _ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h.  */
20174 $ac_includes_default
20175 int
20176 main ()
20177 {
20178 if ((long long *) 0)
20179   return 0;
20180 if (sizeof (long long))
20181   return 0;
20182   ;
20183   return 0;
20184 }
20185 _ACEOF
20186 rm -f conftest.$ac_objext
20187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20188   (eval $ac_compile) 2>conftest.er1
20189   ac_status=$?
20190   grep -v '^ *+' conftest.er1 >conftest.err
20191   rm -f conftest.er1
20192   cat conftest.err >&5
20193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194   (exit $ac_status); } &&
20195          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197   (eval $ac_try) 2>&5
20198   ac_status=$?
20199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200   (exit $ac_status); }; } &&
20201          { ac_try='test -s conftest.$ac_objext'
20202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203   (eval $ac_try) 2>&5
20204   ac_status=$?
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); }; }; then
20207   ac_cv_type_long_long=yes
20208 else
20209   echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20211
20212 ac_cv_type_long_long=no
20213 fi
20214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20215 fi
20216 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20217 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20218
20219 echo "$as_me:$LINENO: checking size of long long" >&5
20220 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20221 if test "${ac_cv_sizeof_long_long+set}" = set; then
20222   echo $ECHO_N "(cached) $ECHO_C" >&6
20223 else
20224   if test "$ac_cv_type_long_long" = yes; then
20225   # The cast to unsigned long works around a bug in the HP C Compiler
20226   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20227   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20228   # This bug is HP SR number 8606223364.
20229   if test "$cross_compiling" = yes; then
20230   # Depending upon the size, compute the lo and hi bounds.
20231 cat >conftest.$ac_ext <<_ACEOF
20232 /* confdefs.h.  */
20233 _ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h.  */
20237 $ac_includes_default
20238 int
20239 main ()
20240 {
20241 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20242 test_array [0] = 0
20243
20244   ;
20245   return 0;
20246 }
20247 _ACEOF
20248 rm -f conftest.$ac_objext
20249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20250   (eval $ac_compile) 2>conftest.er1
20251   ac_status=$?
20252   grep -v '^ *+' conftest.er1 >conftest.err
20253   rm -f conftest.er1
20254   cat conftest.err >&5
20255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256   (exit $ac_status); } &&
20257          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259   (eval $ac_try) 2>&5
20260   ac_status=$?
20261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262   (exit $ac_status); }; } &&
20263          { ac_try='test -s conftest.$ac_objext'
20264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265   (eval $ac_try) 2>&5
20266   ac_status=$?
20267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268   (exit $ac_status); }; }; then
20269   ac_lo=0 ac_mid=0
20270   while :; do
20271     cat >conftest.$ac_ext <<_ACEOF
20272 /* confdefs.h.  */
20273 _ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h.  */
20277 $ac_includes_default
20278 int
20279 main ()
20280 {
20281 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20282 test_array [0] = 0
20283
20284   ;
20285   return 0;
20286 }
20287 _ACEOF
20288 rm -f conftest.$ac_objext
20289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20290   (eval $ac_compile) 2>conftest.er1
20291   ac_status=$?
20292   grep -v '^ *+' conftest.er1 >conftest.err
20293   rm -f conftest.er1
20294   cat conftest.err >&5
20295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296   (exit $ac_status); } &&
20297          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299   (eval $ac_try) 2>&5
20300   ac_status=$?
20301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302   (exit $ac_status); }; } &&
20303          { ac_try='test -s conftest.$ac_objext'
20304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305   (eval $ac_try) 2>&5
20306   ac_status=$?
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); }; }; then
20309   ac_hi=$ac_mid; break
20310 else
20311   echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20313
20314 ac_lo=`expr $ac_mid + 1`
20315                     if test $ac_lo -le $ac_mid; then
20316                       ac_lo= ac_hi=
20317                       break
20318                     fi
20319                     ac_mid=`expr 2 '*' $ac_mid + 1`
20320 fi
20321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20322   done
20323 else
20324   echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20326
20327 cat >conftest.$ac_ext <<_ACEOF
20328 /* confdefs.h.  */
20329 _ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h.  */
20333 $ac_includes_default
20334 int
20335 main ()
20336 {
20337 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20338 test_array [0] = 0
20339
20340   ;
20341   return 0;
20342 }
20343 _ACEOF
20344 rm -f conftest.$ac_objext
20345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20346   (eval $ac_compile) 2>conftest.er1
20347   ac_status=$?
20348   grep -v '^ *+' conftest.er1 >conftest.err
20349   rm -f conftest.er1
20350   cat conftest.err >&5
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); } &&
20353          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355   (eval $ac_try) 2>&5
20356   ac_status=$?
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); }; } &&
20359          { ac_try='test -s conftest.$ac_objext'
20360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20361   (eval $ac_try) 2>&5
20362   ac_status=$?
20363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364   (exit $ac_status); }; }; then
20365   ac_hi=-1 ac_mid=-1
20366   while :; do
20367     cat >conftest.$ac_ext <<_ACEOF
20368 /* confdefs.h.  */
20369 _ACEOF
20370 cat confdefs.h >>conftest.$ac_ext
20371 cat >>conftest.$ac_ext <<_ACEOF
20372 /* end confdefs.h.  */
20373 $ac_includes_default
20374 int
20375 main ()
20376 {
20377 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20378 test_array [0] = 0
20379
20380   ;
20381   return 0;
20382 }
20383 _ACEOF
20384 rm -f conftest.$ac_objext
20385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20386   (eval $ac_compile) 2>conftest.er1
20387   ac_status=$?
20388   grep -v '^ *+' conftest.er1 >conftest.err
20389   rm -f conftest.er1
20390   cat conftest.err >&5
20391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392   (exit $ac_status); } &&
20393          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20395   (eval $ac_try) 2>&5
20396   ac_status=$?
20397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398   (exit $ac_status); }; } &&
20399          { ac_try='test -s conftest.$ac_objext'
20400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20401   (eval $ac_try) 2>&5
20402   ac_status=$?
20403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404   (exit $ac_status); }; }; then
20405   ac_lo=$ac_mid; break
20406 else
20407   echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20409
20410 ac_hi=`expr '(' $ac_mid ')' - 1`
20411                        if test $ac_mid -le $ac_hi; then
20412                          ac_lo= ac_hi=
20413                          break
20414                        fi
20415                        ac_mid=`expr 2 '*' $ac_mid`
20416 fi
20417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20418   done
20419 else
20420   echo "$as_me: failed program was:" >&5
20421 sed 's/^/| /' conftest.$ac_ext >&5
20422
20423 ac_lo= ac_hi=
20424 fi
20425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20426 fi
20427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20428 # Binary search between lo and hi bounds.
20429 while test "x$ac_lo" != "x$ac_hi"; do
20430   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20431   cat >conftest.$ac_ext <<_ACEOF
20432 /* confdefs.h.  */
20433 _ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h.  */
20437 $ac_includes_default
20438 int
20439 main ()
20440 {
20441 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20442 test_array [0] = 0
20443
20444   ;
20445   return 0;
20446 }
20447 _ACEOF
20448 rm -f conftest.$ac_objext
20449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20450   (eval $ac_compile) 2>conftest.er1
20451   ac_status=$?
20452   grep -v '^ *+' conftest.er1 >conftest.err
20453   rm -f conftest.er1
20454   cat conftest.err >&5
20455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456   (exit $ac_status); } &&
20457          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20459   (eval $ac_try) 2>&5
20460   ac_status=$?
20461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462   (exit $ac_status); }; } &&
20463          { ac_try='test -s conftest.$ac_objext'
20464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465   (eval $ac_try) 2>&5
20466   ac_status=$?
20467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468   (exit $ac_status); }; }; then
20469   ac_hi=$ac_mid
20470 else
20471   echo "$as_me: failed program was:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20473
20474 ac_lo=`expr '(' $ac_mid ')' + 1`
20475 fi
20476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20477 done
20478 case $ac_lo in
20479 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20480 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20481 See \`config.log' for more details." >&5
20482 echo "$as_me: error: cannot compute sizeof (long long), 77
20483 See \`config.log' for more details." >&2;}
20484    { (exit 1); exit 1; }; } ;;
20485 esac
20486 else
20487   if test "$cross_compiling" = yes; then
20488   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20489 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20490    { (exit 1); exit 1; }; }
20491 else
20492   cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h.  */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h.  */
20498 $ac_includes_default
20499 long longval () { return (long) (sizeof (long long)); }
20500 unsigned long ulongval () { return (long) (sizeof (long long)); }
20501 #include <stdio.h>
20502 #include <stdlib.h>
20503 int
20504 main ()
20505 {
20506
20507   FILE *f = fopen ("conftest.val", "w");
20508   if (! f)
20509     exit (1);
20510   if (((long) (sizeof (long long))) < 0)
20511     {
20512       long i = longval ();
20513       if (i != ((long) (sizeof (long long))))
20514         exit (1);
20515       fprintf (f, "%ld\n", i);
20516     }
20517   else
20518     {
20519       unsigned long i = ulongval ();
20520       if (i != ((long) (sizeof (long long))))
20521         exit (1);
20522       fprintf (f, "%lu\n", i);
20523     }
20524   exit (ferror (f) || fclose (f) != 0);
20525
20526   ;
20527   return 0;
20528 }
20529 _ACEOF
20530 rm -f conftest$ac_exeext
20531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20532   (eval $ac_link) 2>&5
20533   ac_status=$?
20534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20537   (eval $ac_try) 2>&5
20538   ac_status=$?
20539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540   (exit $ac_status); }; }; then
20541   ac_cv_sizeof_long_long=`cat conftest.val`
20542 else
20543   echo "$as_me: program exited with status $ac_status" >&5
20544 echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20546
20547 ( exit $ac_status )
20548 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20549 See \`config.log' for more details." >&5
20550 echo "$as_me: error: cannot compute sizeof (long long), 77
20551 See \`config.log' for more details." >&2;}
20552    { (exit 1); exit 1; }; }
20553 fi
20554 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20555 fi
20556 fi
20557 rm -f conftest.val
20558 else
20559   ac_cv_sizeof_long_long=0
20560 fi
20561 fi
20562 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20563 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20564 cat >>confdefs.h <<_ACEOF
20565 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20566 _ACEOF
20567
20568
20569         if test "$ac_cv_sizeof_long_long" != "0"; then
20570                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
20571         fi
20572     ;;
20573     * )
20574         echo "$as_me:$LINENO: checking for long long" >&5
20575 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20576 if test "${ac_cv_type_long_long+set}" = set; then
20577   echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579   cat >conftest.$ac_ext <<_ACEOF
20580 /* confdefs.h.  */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h.  */
20585 $ac_includes_default
20586 int
20587 main ()
20588 {
20589 if ((long long *) 0)
20590   return 0;
20591 if (sizeof (long long))
20592   return 0;
20593   ;
20594   return 0;
20595 }
20596 _ACEOF
20597 rm -f conftest.$ac_objext
20598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20599   (eval $ac_compile) 2>conftest.er1
20600   ac_status=$?
20601   grep -v '^ *+' conftest.er1 >conftest.err
20602   rm -f conftest.er1
20603   cat conftest.err >&5
20604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605   (exit $ac_status); } &&
20606          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608   (eval $ac_try) 2>&5
20609   ac_status=$?
20610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611   (exit $ac_status); }; } &&
20612          { ac_try='test -s conftest.$ac_objext'
20613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614   (eval $ac_try) 2>&5
20615   ac_status=$?
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); }; }; then
20618   ac_cv_type_long_long=yes
20619 else
20620   echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20622
20623 ac_cv_type_long_long=no
20624 fi
20625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20626 fi
20627 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20628 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20629
20630 echo "$as_me:$LINENO: checking size of long long" >&5
20631 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20632 if test "${ac_cv_sizeof_long_long+set}" = set; then
20633   echo $ECHO_N "(cached) $ECHO_C" >&6
20634 else
20635   if test "$ac_cv_type_long_long" = yes; then
20636   # The cast to unsigned long works around a bug in the HP C Compiler
20637   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20638   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20639   # This bug is HP SR number 8606223364.
20640   if test "$cross_compiling" = yes; then
20641   # Depending upon the size, compute the lo and hi bounds.
20642 cat >conftest.$ac_ext <<_ACEOF
20643 /* confdefs.h.  */
20644 _ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h.  */
20648 $ac_includes_default
20649 int
20650 main ()
20651 {
20652 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20653 test_array [0] = 0
20654
20655   ;
20656   return 0;
20657 }
20658 _ACEOF
20659 rm -f conftest.$ac_objext
20660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20661   (eval $ac_compile) 2>conftest.er1
20662   ac_status=$?
20663   grep -v '^ *+' conftest.er1 >conftest.err
20664   rm -f conftest.er1
20665   cat conftest.err >&5
20666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667   (exit $ac_status); } &&
20668          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670   (eval $ac_try) 2>&5
20671   ac_status=$?
20672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673   (exit $ac_status); }; } &&
20674          { ac_try='test -s conftest.$ac_objext'
20675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676   (eval $ac_try) 2>&5
20677   ac_status=$?
20678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679   (exit $ac_status); }; }; then
20680   ac_lo=0 ac_mid=0
20681   while :; do
20682     cat >conftest.$ac_ext <<_ACEOF
20683 /* confdefs.h.  */
20684 _ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h.  */
20688 $ac_includes_default
20689 int
20690 main ()
20691 {
20692 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20693 test_array [0] = 0
20694
20695   ;
20696   return 0;
20697 }
20698 _ACEOF
20699 rm -f conftest.$ac_objext
20700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20701   (eval $ac_compile) 2>conftest.er1
20702   ac_status=$?
20703   grep -v '^ *+' conftest.er1 >conftest.err
20704   rm -f conftest.er1
20705   cat conftest.err >&5
20706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707   (exit $ac_status); } &&
20708          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710   (eval $ac_try) 2>&5
20711   ac_status=$?
20712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713   (exit $ac_status); }; } &&
20714          { ac_try='test -s conftest.$ac_objext'
20715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20716   (eval $ac_try) 2>&5
20717   ac_status=$?
20718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); }; }; then
20720   ac_hi=$ac_mid; break
20721 else
20722   echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20724
20725 ac_lo=`expr $ac_mid + 1`
20726                     if test $ac_lo -le $ac_mid; then
20727                       ac_lo= ac_hi=
20728                       break
20729                     fi
20730                     ac_mid=`expr 2 '*' $ac_mid + 1`
20731 fi
20732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20733   done
20734 else
20735   echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20737
20738 cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h.  */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h.  */
20744 $ac_includes_default
20745 int
20746 main ()
20747 {
20748 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20749 test_array [0] = 0
20750
20751   ;
20752   return 0;
20753 }
20754 _ACEOF
20755 rm -f conftest.$ac_objext
20756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20757   (eval $ac_compile) 2>conftest.er1
20758   ac_status=$?
20759   grep -v '^ *+' conftest.er1 >conftest.err
20760   rm -f conftest.er1
20761   cat conftest.err >&5
20762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763   (exit $ac_status); } &&
20764          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766   (eval $ac_try) 2>&5
20767   ac_status=$?
20768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769   (exit $ac_status); }; } &&
20770          { ac_try='test -s conftest.$ac_objext'
20771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772   (eval $ac_try) 2>&5
20773   ac_status=$?
20774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775   (exit $ac_status); }; }; then
20776   ac_hi=-1 ac_mid=-1
20777   while :; do
20778     cat >conftest.$ac_ext <<_ACEOF
20779 /* confdefs.h.  */
20780 _ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h.  */
20784 $ac_includes_default
20785 int
20786 main ()
20787 {
20788 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20789 test_array [0] = 0
20790
20791   ;
20792   return 0;
20793 }
20794 _ACEOF
20795 rm -f conftest.$ac_objext
20796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20797   (eval $ac_compile) 2>conftest.er1
20798   ac_status=$?
20799   grep -v '^ *+' conftest.er1 >conftest.err
20800   rm -f conftest.er1
20801   cat conftest.err >&5
20802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803   (exit $ac_status); } &&
20804          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806   (eval $ac_try) 2>&5
20807   ac_status=$?
20808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809   (exit $ac_status); }; } &&
20810          { ac_try='test -s conftest.$ac_objext'
20811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20812   (eval $ac_try) 2>&5
20813   ac_status=$?
20814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815   (exit $ac_status); }; }; then
20816   ac_lo=$ac_mid; break
20817 else
20818   echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20820
20821 ac_hi=`expr '(' $ac_mid ')' - 1`
20822                        if test $ac_mid -le $ac_hi; then
20823                          ac_lo= ac_hi=
20824                          break
20825                        fi
20826                        ac_mid=`expr 2 '*' $ac_mid`
20827 fi
20828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20829   done
20830 else
20831   echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20833
20834 ac_lo= ac_hi=
20835 fi
20836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20837 fi
20838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20839 # Binary search between lo and hi bounds.
20840 while test "x$ac_lo" != "x$ac_hi"; do
20841   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20842   cat >conftest.$ac_ext <<_ACEOF
20843 /* confdefs.h.  */
20844 _ACEOF
20845 cat confdefs.h >>conftest.$ac_ext
20846 cat >>conftest.$ac_ext <<_ACEOF
20847 /* end confdefs.h.  */
20848 $ac_includes_default
20849 int
20850 main ()
20851 {
20852 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20853 test_array [0] = 0
20854
20855   ;
20856   return 0;
20857 }
20858 _ACEOF
20859 rm -f conftest.$ac_objext
20860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20861   (eval $ac_compile) 2>conftest.er1
20862   ac_status=$?
20863   grep -v '^ *+' conftest.er1 >conftest.err
20864   rm -f conftest.er1
20865   cat conftest.err >&5
20866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867   (exit $ac_status); } &&
20868          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870   (eval $ac_try) 2>&5
20871   ac_status=$?
20872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873   (exit $ac_status); }; } &&
20874          { ac_try='test -s conftest.$ac_objext'
20875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876   (eval $ac_try) 2>&5
20877   ac_status=$?
20878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879   (exit $ac_status); }; }; then
20880   ac_hi=$ac_mid
20881 else
20882   echo "$as_me: failed program was:" >&5
20883 sed 's/^/| /' conftest.$ac_ext >&5
20884
20885 ac_lo=`expr '(' $ac_mid ')' + 1`
20886 fi
20887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20888 done
20889 case $ac_lo in
20890 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20891 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20892 See \`config.log' for more details." >&5
20893 echo "$as_me: error: cannot compute sizeof (long long), 77
20894 See \`config.log' for more details." >&2;}
20895    { (exit 1); exit 1; }; } ;;
20896 esac
20897 else
20898   if test "$cross_compiling" = yes; then
20899   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20900 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20901    { (exit 1); exit 1; }; }
20902 else
20903   cat >conftest.$ac_ext <<_ACEOF
20904 /* confdefs.h.  */
20905 _ACEOF
20906 cat confdefs.h >>conftest.$ac_ext
20907 cat >>conftest.$ac_ext <<_ACEOF
20908 /* end confdefs.h.  */
20909 $ac_includes_default
20910 long longval () { return (long) (sizeof (long long)); }
20911 unsigned long ulongval () { return (long) (sizeof (long long)); }
20912 #include <stdio.h>
20913 #include <stdlib.h>
20914 int
20915 main ()
20916 {
20917
20918   FILE *f = fopen ("conftest.val", "w");
20919   if (! f)
20920     exit (1);
20921   if (((long) (sizeof (long long))) < 0)
20922     {
20923       long i = longval ();
20924       if (i != ((long) (sizeof (long long))))
20925         exit (1);
20926       fprintf (f, "%ld\n", i);
20927     }
20928   else
20929     {
20930       unsigned long i = ulongval ();
20931       if (i != ((long) (sizeof (long long))))
20932         exit (1);
20933       fprintf (f, "%lu\n", i);
20934     }
20935   exit (ferror (f) || fclose (f) != 0);
20936
20937   ;
20938   return 0;
20939 }
20940 _ACEOF
20941 rm -f conftest$ac_exeext
20942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20943   (eval $ac_link) 2>&5
20944   ac_status=$?
20945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948   (eval $ac_try) 2>&5
20949   ac_status=$?
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); }; }; then
20952   ac_cv_sizeof_long_long=`cat conftest.val`
20953 else
20954   echo "$as_me: program exited with status $ac_status" >&5
20955 echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20957
20958 ( exit $ac_status )
20959 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20960 See \`config.log' for more details." >&5
20961 echo "$as_me: error: cannot compute sizeof (long long), 77
20962 See \`config.log' for more details." >&2;}
20963    { (exit 1); exit 1; }; }
20964 fi
20965 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20966 fi
20967 fi
20968 rm -f conftest.val
20969 else
20970   ac_cv_sizeof_long_long=0
20971 fi
20972 fi
20973 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20974 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20975 cat >>confdefs.h <<_ACEOF
20976 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20977 _ACEOF
20978
20979
20980 esac
20981
20982 echo "$as_me:$LINENO: checking for wchar_t" >&5
20983 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20984 if test "${ac_cv_type_wchar_t+set}" = set; then
20985   echo $ECHO_N "(cached) $ECHO_C" >&6
20986 else
20987   cat >conftest.$ac_ext <<_ACEOF
20988 /* confdefs.h.  */
20989 _ACEOF
20990 cat confdefs.h >>conftest.$ac_ext
20991 cat >>conftest.$ac_ext <<_ACEOF
20992 /* end confdefs.h.  */
20993
20994         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20995         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
20996         #  error "fake wchar_t"
20997         #endif
20998         #ifdef HAVE_WCHAR_H
20999         #  ifdef __CYGWIN__
21000         #    include <stddef.h>
21001         #  endif
21002         #  include <wchar.h>
21003         #endif
21004         #ifdef HAVE_STDLIB_H
21005         #  include <stdlib.h>
21006         #endif
21007         #include <stdio.h>
21008
21009
21010
21011 int
21012 main ()
21013 {
21014 if ((wchar_t *) 0)
21015   return 0;
21016 if (sizeof (wchar_t))
21017   return 0;
21018   ;
21019   return 0;
21020 }
21021 _ACEOF
21022 rm -f conftest.$ac_objext
21023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21024   (eval $ac_compile) 2>conftest.er1
21025   ac_status=$?
21026   grep -v '^ *+' conftest.er1 >conftest.err
21027   rm -f conftest.er1
21028   cat conftest.err >&5
21029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030   (exit $ac_status); } &&
21031          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033   (eval $ac_try) 2>&5
21034   ac_status=$?
21035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036   (exit $ac_status); }; } &&
21037          { ac_try='test -s conftest.$ac_objext'
21038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039   (eval $ac_try) 2>&5
21040   ac_status=$?
21041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042   (exit $ac_status); }; }; then
21043   ac_cv_type_wchar_t=yes
21044 else
21045   echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21047
21048 ac_cv_type_wchar_t=no
21049 fi
21050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21051 fi
21052 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21053 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21054
21055 echo "$as_me:$LINENO: checking size of wchar_t" >&5
21056 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
21057 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21058   echo $ECHO_N "(cached) $ECHO_C" >&6
21059 else
21060   if test "$ac_cv_type_wchar_t" = yes; then
21061   # The cast to unsigned long works around a bug in the HP C Compiler
21062   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21063   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21064   # This bug is HP SR number 8606223364.
21065   if test "$cross_compiling" = yes; then
21066   # Depending upon the size, compute the lo and hi bounds.
21067 cat >conftest.$ac_ext <<_ACEOF
21068 /* confdefs.h.  */
21069 _ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h.  */
21073
21074         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21075         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21076         #  error "fake wchar_t"
21077         #endif
21078         #ifdef HAVE_WCHAR_H
21079         #  ifdef __CYGWIN__
21080         #    include <stddef.h>
21081         #  endif
21082         #  include <wchar.h>
21083         #endif
21084         #ifdef HAVE_STDLIB_H
21085         #  include <stdlib.h>
21086         #endif
21087         #include <stdio.h>
21088
21089
21090
21091 int
21092 main ()
21093 {
21094 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21095 test_array [0] = 0
21096
21097   ;
21098   return 0;
21099 }
21100 _ACEOF
21101 rm -f conftest.$ac_objext
21102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21103   (eval $ac_compile) 2>conftest.er1
21104   ac_status=$?
21105   grep -v '^ *+' conftest.er1 >conftest.err
21106   rm -f conftest.er1
21107   cat conftest.err >&5
21108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109   (exit $ac_status); } &&
21110          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112   (eval $ac_try) 2>&5
21113   ac_status=$?
21114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115   (exit $ac_status); }; } &&
21116          { ac_try='test -s conftest.$ac_objext'
21117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118   (eval $ac_try) 2>&5
21119   ac_status=$?
21120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121   (exit $ac_status); }; }; then
21122   ac_lo=0 ac_mid=0
21123   while :; do
21124     cat >conftest.$ac_ext <<_ACEOF
21125 /* confdefs.h.  */
21126 _ACEOF
21127 cat confdefs.h >>conftest.$ac_ext
21128 cat >>conftest.$ac_ext <<_ACEOF
21129 /* end confdefs.h.  */
21130
21131         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21132         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21133         #  error "fake wchar_t"
21134         #endif
21135         #ifdef HAVE_WCHAR_H
21136         #  ifdef __CYGWIN__
21137         #    include <stddef.h>
21138         #  endif
21139         #  include <wchar.h>
21140         #endif
21141         #ifdef HAVE_STDLIB_H
21142         #  include <stdlib.h>
21143         #endif
21144         #include <stdio.h>
21145
21146
21147
21148 int
21149 main ()
21150 {
21151 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21152 test_array [0] = 0
21153
21154   ;
21155   return 0;
21156 }
21157 _ACEOF
21158 rm -f conftest.$ac_objext
21159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21160   (eval $ac_compile) 2>conftest.er1
21161   ac_status=$?
21162   grep -v '^ *+' conftest.er1 >conftest.err
21163   rm -f conftest.er1
21164   cat conftest.err >&5
21165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166   (exit $ac_status); } &&
21167          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21169   (eval $ac_try) 2>&5
21170   ac_status=$?
21171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172   (exit $ac_status); }; } &&
21173          { ac_try='test -s conftest.$ac_objext'
21174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_hi=$ac_mid; break
21180 else
21181   echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21183
21184 ac_lo=`expr $ac_mid + 1`
21185                     if test $ac_lo -le $ac_mid; then
21186                       ac_lo= ac_hi=
21187                       break
21188                     fi
21189                     ac_mid=`expr 2 '*' $ac_mid + 1`
21190 fi
21191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21192   done
21193 else
21194   echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21196
21197 cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h.  */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h.  */
21203
21204         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21205         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21206         #  error "fake wchar_t"
21207         #endif
21208         #ifdef HAVE_WCHAR_H
21209         #  ifdef __CYGWIN__
21210         #    include <stddef.h>
21211         #  endif
21212         #  include <wchar.h>
21213         #endif
21214         #ifdef HAVE_STDLIB_H
21215         #  include <stdlib.h>
21216         #endif
21217         #include <stdio.h>
21218
21219
21220
21221 int
21222 main ()
21223 {
21224 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21225 test_array [0] = 0
21226
21227   ;
21228   return 0;
21229 }
21230 _ACEOF
21231 rm -f conftest.$ac_objext
21232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21233   (eval $ac_compile) 2>conftest.er1
21234   ac_status=$?
21235   grep -v '^ *+' conftest.er1 >conftest.err
21236   rm -f conftest.er1
21237   cat conftest.err >&5
21238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239   (exit $ac_status); } &&
21240          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242   (eval $ac_try) 2>&5
21243   ac_status=$?
21244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245   (exit $ac_status); }; } &&
21246          { ac_try='test -s conftest.$ac_objext'
21247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21248   (eval $ac_try) 2>&5
21249   ac_status=$?
21250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251   (exit $ac_status); }; }; then
21252   ac_hi=-1 ac_mid=-1
21253   while :; do
21254     cat >conftest.$ac_ext <<_ACEOF
21255 /* confdefs.h.  */
21256 _ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h.  */
21260
21261         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21262         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21263         #  error "fake wchar_t"
21264         #endif
21265         #ifdef HAVE_WCHAR_H
21266         #  ifdef __CYGWIN__
21267         #    include <stddef.h>
21268         #  endif
21269         #  include <wchar.h>
21270         #endif
21271         #ifdef HAVE_STDLIB_H
21272         #  include <stdlib.h>
21273         #endif
21274         #include <stdio.h>
21275
21276
21277
21278 int
21279 main ()
21280 {
21281 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21282 test_array [0] = 0
21283
21284   ;
21285   return 0;
21286 }
21287 _ACEOF
21288 rm -f conftest.$ac_objext
21289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21290   (eval $ac_compile) 2>conftest.er1
21291   ac_status=$?
21292   grep -v '^ *+' conftest.er1 >conftest.err
21293   rm -f conftest.er1
21294   cat conftest.err >&5
21295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296   (exit $ac_status); } &&
21297          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21299   (eval $ac_try) 2>&5
21300   ac_status=$?
21301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302   (exit $ac_status); }; } &&
21303          { ac_try='test -s conftest.$ac_objext'
21304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305   (eval $ac_try) 2>&5
21306   ac_status=$?
21307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308   (exit $ac_status); }; }; then
21309   ac_lo=$ac_mid; break
21310 else
21311   echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21313
21314 ac_hi=`expr '(' $ac_mid ')' - 1`
21315                        if test $ac_mid -le $ac_hi; then
21316                          ac_lo= ac_hi=
21317                          break
21318                        fi
21319                        ac_mid=`expr 2 '*' $ac_mid`
21320 fi
21321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21322   done
21323 else
21324   echo "$as_me: failed program was:" >&5
21325 sed 's/^/| /' conftest.$ac_ext >&5
21326
21327 ac_lo= ac_hi=
21328 fi
21329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21330 fi
21331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21332 # Binary search between lo and hi bounds.
21333 while test "x$ac_lo" != "x$ac_hi"; do
21334   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21335   cat >conftest.$ac_ext <<_ACEOF
21336 /* confdefs.h.  */
21337 _ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h.  */
21341
21342         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21343         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21344         #  error "fake wchar_t"
21345         #endif
21346         #ifdef HAVE_WCHAR_H
21347         #  ifdef __CYGWIN__
21348         #    include <stddef.h>
21349         #  endif
21350         #  include <wchar.h>
21351         #endif
21352         #ifdef HAVE_STDLIB_H
21353         #  include <stdlib.h>
21354         #endif
21355         #include <stdio.h>
21356
21357
21358
21359 int
21360 main ()
21361 {
21362 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21363 test_array [0] = 0
21364
21365   ;
21366   return 0;
21367 }
21368 _ACEOF
21369 rm -f conftest.$ac_objext
21370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21371   (eval $ac_compile) 2>conftest.er1
21372   ac_status=$?
21373   grep -v '^ *+' conftest.er1 >conftest.err
21374   rm -f conftest.er1
21375   cat conftest.err >&5
21376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377   (exit $ac_status); } &&
21378          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21380   (eval $ac_try) 2>&5
21381   ac_status=$?
21382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383   (exit $ac_status); }; } &&
21384          { ac_try='test -s conftest.$ac_objext'
21385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386   (eval $ac_try) 2>&5
21387   ac_status=$?
21388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389   (exit $ac_status); }; }; then
21390   ac_hi=$ac_mid
21391 else
21392   echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.$ac_ext >&5
21394
21395 ac_lo=`expr '(' $ac_mid ')' + 1`
21396 fi
21397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21398 done
21399 case $ac_lo in
21400 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21401 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21402 See \`config.log' for more details." >&5
21403 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21404 See \`config.log' for more details." >&2;}
21405    { (exit 1); exit 1; }; } ;;
21406 esac
21407 else
21408   if test "$cross_compiling" = yes; then
21409   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21410 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21411    { (exit 1); exit 1; }; }
21412 else
21413   cat >conftest.$ac_ext <<_ACEOF
21414 /* confdefs.h.  */
21415 _ACEOF
21416 cat confdefs.h >>conftest.$ac_ext
21417 cat >>conftest.$ac_ext <<_ACEOF
21418 /* end confdefs.h.  */
21419
21420         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21421         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
21422         #  error "fake wchar_t"
21423         #endif
21424         #ifdef HAVE_WCHAR_H
21425         #  ifdef __CYGWIN__
21426         #    include <stddef.h>
21427         #  endif
21428         #  include <wchar.h>
21429         #endif
21430         #ifdef HAVE_STDLIB_H
21431         #  include <stdlib.h>
21432         #endif
21433         #include <stdio.h>
21434
21435
21436
21437 long longval () { return (long) (sizeof (wchar_t)); }
21438 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21439 #include <stdio.h>
21440 #include <stdlib.h>
21441 int
21442 main ()
21443 {
21444
21445   FILE *f = fopen ("conftest.val", "w");
21446   if (! f)
21447     exit (1);
21448   if (((long) (sizeof (wchar_t))) < 0)
21449     {
21450       long i = longval ();
21451       if (i != ((long) (sizeof (wchar_t))))
21452         exit (1);
21453       fprintf (f, "%ld\n", i);
21454     }
21455   else
21456     {
21457       unsigned long i = ulongval ();
21458       if (i != ((long) (sizeof (wchar_t))))
21459         exit (1);
21460       fprintf (f, "%lu\n", i);
21461     }
21462   exit (ferror (f) || fclose (f) != 0);
21463
21464   ;
21465   return 0;
21466 }
21467 _ACEOF
21468 rm -f conftest$ac_exeext
21469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21470   (eval $ac_link) 2>&5
21471   ac_status=$?
21472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21475   (eval $ac_try) 2>&5
21476   ac_status=$?
21477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478   (exit $ac_status); }; }; then
21479   ac_cv_sizeof_wchar_t=`cat conftest.val`
21480 else
21481   echo "$as_me: program exited with status $ac_status" >&5
21482 echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21484
21485 ( exit $ac_status )
21486 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21487 See \`config.log' for more details." >&5
21488 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21489 See \`config.log' for more details." >&2;}
21490    { (exit 1); exit 1; }; }
21491 fi
21492 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21493 fi
21494 fi
21495 rm -f conftest.val
21496 else
21497   ac_cv_sizeof_wchar_t=0
21498 fi
21499 fi
21500 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21501 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
21502 cat >>confdefs.h <<_ACEOF
21503 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21504 _ACEOF
21505
21506
21507 if test "$ac_cv_sizeof_wchar_t" != "0"; then
21508     wxUSE_WCHAR_T=yes
21509 else
21510     wxUSE_WCHAR_T=no
21511 fi
21512
21513 echo "$as_me:$LINENO: checking for va_copy" >&5
21514 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21515 if test "${wx_cv_func_va_copy+set}" = set; then
21516   echo $ECHO_N "(cached) $ECHO_C" >&6
21517 else
21518
21519         cat >conftest.$ac_ext <<_ACEOF
21520
21521             #include <stdarg.h>
21522             void foo(char *f, ...)
21523             {
21524                 va_list ap1, ap2;
21525                 va_start(ap1, f);
21526                 va_copy(ap2, ap1);
21527                 va_end(ap2);
21528                 va_end(ap1);
21529             }
21530             int main()
21531             {
21532                 foo("hi", 17);
21533                 return 0;
21534             }
21535 _ACEOF
21536 rm -f conftest.$ac_objext conftest$ac_exeext
21537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21538   (eval $ac_link) 2>conftest.er1
21539   ac_status=$?
21540   grep -v '^ *+' conftest.er1 >conftest.err
21541   rm -f conftest.er1
21542   cat conftest.err >&5
21543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544   (exit $ac_status); } &&
21545          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21547   (eval $ac_try) 2>&5
21548   ac_status=$?
21549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550   (exit $ac_status); }; } &&
21551          { ac_try='test -s conftest$ac_exeext'
21552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21553   (eval $ac_try) 2>&5
21554   ac_status=$?
21555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556   (exit $ac_status); }; }; then
21557   wx_cv_func_va_copy=yes
21558 else
21559   echo "$as_me: failed program was:" >&5
21560 sed 's/^/| /' conftest.$ac_ext >&5
21561
21562 wx_cv_func_va_copy=no
21563
21564 fi
21565 rm -f conftest.err conftest.$ac_objext \
21566       conftest$ac_exeext conftest.$ac_ext
21567
21568
21569 fi
21570 echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21571 echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21572
21573 if test $wx_cv_func_va_copy = "yes"; then
21574     cat >>confdefs.h <<\_ACEOF
21575 #define HAVE_VA_COPY 1
21576 _ACEOF
21577
21578 else
21579         echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21580 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21581 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21582   echo $ECHO_N "(cached) $ECHO_C" >&6
21583 else
21584
21585             if test "$cross_compiling" = yes; then
21586                   wx_cv_type_va_list_lvalue=yes
21587
21588 else
21589   cat >conftest.$ac_ext <<_ACEOF
21590
21591                 #include <stdarg.h>
21592                 int foo(char *f, ...)
21593                 {
21594                     va_list ap1, ap2;
21595                     va_start(ap1, f);
21596                     ap2 = ap1;
21597                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21598                         return 1;
21599                     va_end(ap2);
21600                     va_end(ap1);
21601                     return 0;
21602                 }
21603                 int main()
21604                 {
21605                     return foo("hi", 17);
21606                 }
21607 _ACEOF
21608 rm -f conftest$ac_exeext
21609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21610   (eval $ac_link) 2>&5
21611   ac_status=$?
21612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21615   (eval $ac_try) 2>&5
21616   ac_status=$?
21617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618   (exit $ac_status); }; }; then
21619   wx_cv_type_va_list_lvalue=yes
21620 else
21621   echo "$as_me: program exited with status $ac_status" >&5
21622 echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21624
21625 ( exit $ac_status )
21626 wx_cv_type_va_list_lvalue=no
21627 fi
21628 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21629 fi
21630
21631
21632 fi
21633 echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21634 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21635
21636     if test $wx_cv_type_va_list_lvalue != "yes"; then
21637                         cat >>confdefs.h <<\_ACEOF
21638 #define VA_LIST_IS_ARRAY 1
21639 _ACEOF
21640
21641     fi
21642 fi
21643
21644 if test "$wxUSE_VARARG_MACROS" = "yes"; then
21645
21646 echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
21647 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
21648 if test "${wx_cv_have_variadic_macros+set}" = set; then
21649   echo $ECHO_N "(cached) $ECHO_C" >&6
21650 else
21651
21652                         ac_ext=cc
21653 ac_cpp='$CXXCPP $CPPFLAGS'
21654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21657
21658         cat >conftest.$ac_ext <<_ACEOF
21659 /* confdefs.h.  */
21660 _ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h.  */
21664
21665                     #include <stdio.h>
21666                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
21667
21668 int
21669 main ()
21670 {
21671
21672                     test("%s %d %p", "test", 1, 0);
21673
21674
21675   ;
21676   return 0;
21677 }
21678 _ACEOF
21679 rm -f conftest.$ac_objext
21680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21681   (eval $ac_compile) 2>conftest.er1
21682   ac_status=$?
21683   grep -v '^ *+' conftest.er1 >conftest.err
21684   rm -f conftest.er1
21685   cat conftest.err >&5
21686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687   (exit $ac_status); } &&
21688          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690   (eval $ac_try) 2>&5
21691   ac_status=$?
21692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693   (exit $ac_status); }; } &&
21694          { ac_try='test -s conftest.$ac_objext'
21695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696   (eval $ac_try) 2>&5
21697   ac_status=$?
21698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699   (exit $ac_status); }; }; then
21700   wx_cv_have_variadic_macros=yes
21701 else
21702   echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21704
21705 wx_cv_have_variadic_macros=no
21706
21707 fi
21708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21709         ac_ext=c
21710 ac_cpp='$CPP $CPPFLAGS'
21711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21714
21715
21716
21717 fi
21718 echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
21719 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
21720
21721 if test $wx_cv_have_variadic_macros = "yes"; then
21722     cat >>confdefs.h <<\_ACEOF
21723 #define HAVE_VARIADIC_MACROS 1
21724 _ACEOF
21725
21726 fi
21727
21728 fi
21729 # Check whether --enable-largefile or --disable-largefile was given.
21730 if test "${enable_largefile+set}" = set; then
21731   enableval="$enable_largefile"
21732
21733 fi;
21734 if test "$enable_largefile" != no; then
21735             wx_largefile=no
21736
21737     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21738 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21739 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21740   echo $ECHO_N "(cached) $ECHO_C" >&6
21741 else
21742
21743           cat >conftest.$ac_ext <<_ACEOF
21744 /* confdefs.h.  */
21745 _ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h.  */
21749 #define _FILE_OFFSET_BITS 64
21750                           #include <sys/types.h>
21751 int
21752 main ()
21753 {
21754 typedef struct {
21755     unsigned int field: sizeof(off_t) == 8;
21756 } wxlf;
21757
21758   ;
21759   return 0;
21760 }
21761 _ACEOF
21762 rm -f conftest.$ac_objext
21763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21764   (eval $ac_compile) 2>conftest.er1
21765   ac_status=$?
21766   grep -v '^ *+' conftest.er1 >conftest.err
21767   rm -f conftest.er1
21768   cat conftest.err >&5
21769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770   (exit $ac_status); } &&
21771          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21773   (eval $ac_try) 2>&5
21774   ac_status=$?
21775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776   (exit $ac_status); }; } &&
21777          { ac_try='test -s conftest.$ac_objext'
21778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21779   (eval $ac_try) 2>&5
21780   ac_status=$?
21781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782   (exit $ac_status); }; }; then
21783   ac_cv_sys_file_offset_bits=64
21784 else
21785   echo "$as_me: failed program was:" >&5
21786 sed 's/^/| /' conftest.$ac_ext >&5
21787
21788 ac_cv_sys_file_offset_bits=no
21789 fi
21790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21791
21792
21793 fi
21794 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21795 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21796
21797     if test "$ac_cv_sys_file_offset_bits" != no; then
21798         wx_largefile=yes
21799         cat >>confdefs.h <<_ACEOF
21800 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21801 _ACEOF
21802
21803     fi
21804
21805     if test "x$wx_largefile" != "xyes"; then
21806
21807     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21808 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21809 if test "${ac_cv_sys_large_files+set}" = set; then
21810   echo $ECHO_N "(cached) $ECHO_C" >&6
21811 else
21812
21813           cat >conftest.$ac_ext <<_ACEOF
21814 /* confdefs.h.  */
21815 _ACEOF
21816 cat confdefs.h >>conftest.$ac_ext
21817 cat >>conftest.$ac_ext <<_ACEOF
21818 /* end confdefs.h.  */
21819 #define _LARGE_FILES 1
21820                           #include <sys/types.h>
21821 int
21822 main ()
21823 {
21824 typedef struct {
21825     unsigned int field: sizeof(off_t) == 8;
21826 } wxlf;
21827
21828   ;
21829   return 0;
21830 }
21831 _ACEOF
21832 rm -f conftest.$ac_objext
21833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21834   (eval $ac_compile) 2>conftest.er1
21835   ac_status=$?
21836   grep -v '^ *+' conftest.er1 >conftest.err
21837   rm -f conftest.er1
21838   cat conftest.err >&5
21839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840   (exit $ac_status); } &&
21841          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21843   (eval $ac_try) 2>&5
21844   ac_status=$?
21845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846   (exit $ac_status); }; } &&
21847          { ac_try='test -s conftest.$ac_objext'
21848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849   (eval $ac_try) 2>&5
21850   ac_status=$?
21851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852   (exit $ac_status); }; }; then
21853   ac_cv_sys_large_files=1
21854 else
21855   echo "$as_me: failed program was:" >&5
21856 sed 's/^/| /' conftest.$ac_ext >&5
21857
21858 ac_cv_sys_large_files=no
21859 fi
21860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21861
21862
21863 fi
21864 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21865 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21866
21867     if test "$ac_cv_sys_large_files" != no; then
21868         wx_largefile=yes
21869         cat >>confdefs.h <<_ACEOF
21870 #define _LARGE_FILES $ac_cv_sys_large_files
21871 _ACEOF
21872
21873     fi
21874
21875     fi
21876
21877     echo "$as_me:$LINENO: checking if large file support is available" >&5
21878 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21879     if test "x$wx_largefile" = "xyes"; then
21880         cat >>confdefs.h <<\_ACEOF
21881 #define HAVE_LARGEFILE_SUPPORT 1
21882 _ACEOF
21883
21884     fi
21885     echo "$as_me:$LINENO: result: $wx_largefile" >&5
21886 echo "${ECHO_T}$wx_largefile" >&6
21887 fi
21888
21889
21890 if test "x$wx_largefile" = "xyes"; then
21891     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
21892         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
21893
21894                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21895             echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21896 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21897 if test "${wx_cv_STDC_EXT_required+set}" = set; then
21898   echo $ECHO_N "(cached) $ECHO_C" >&6
21899 else
21900
21901                     ac_ext=cc
21902 ac_cpp='$CXXCPP $CPPFLAGS'
21903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21906
21907                     cat >conftest.$ac_ext <<_ACEOF
21908 /* confdefs.h.  */
21909 _ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h.  */
21913
21914 int
21915 main ()
21916 {
21917
21918                             #ifndef __STDC_EXT__
21919                                 choke me
21920                             #endif
21921
21922   ;
21923   return 0;
21924 }
21925 _ACEOF
21926 rm -f conftest.$ac_objext
21927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21928   (eval $ac_compile) 2>conftest.er1
21929   ac_status=$?
21930   grep -v '^ *+' conftest.er1 >conftest.err
21931   rm -f conftest.er1
21932   cat conftest.err >&5
21933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934   (exit $ac_status); } &&
21935          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21937   (eval $ac_try) 2>&5
21938   ac_status=$?
21939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940   (exit $ac_status); }; } &&
21941          { ac_try='test -s conftest.$ac_objext'
21942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943   (eval $ac_try) 2>&5
21944   ac_status=$?
21945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946   (exit $ac_status); }; }; then
21947   wx_cv_STDC_EXT_required=no
21948 else
21949   echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21951
21952 wx_cv_STDC_EXT_required=yes
21953
21954 fi
21955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21956                     ac_ext=c
21957 ac_cpp='$CPP $CPPFLAGS'
21958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21961
21962
21963
21964 fi
21965 echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21966 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21967             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
21968                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
21969             fi
21970         fi
21971     else
21972         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
21973     fi
21974         echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
21975 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21976 if test "${ac_cv_sys_largefile_source+set}" = set; then
21977   echo $ECHO_N "(cached) $ECHO_C" >&6
21978 else
21979   while :; do
21980   ac_cv_sys_largefile_source=no
21981   cat >conftest.$ac_ext <<_ACEOF
21982 /* confdefs.h.  */
21983 _ACEOF
21984 cat confdefs.h >>conftest.$ac_ext
21985 cat >>conftest.$ac_ext <<_ACEOF
21986 /* end confdefs.h.  */
21987 #include <stdio.h>
21988 int
21989 main ()
21990 {
21991 return !fseeko;
21992   ;
21993   return 0;
21994 }
21995 _ACEOF
21996 rm -f conftest.$ac_objext
21997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21998   (eval $ac_compile) 2>conftest.er1
21999   ac_status=$?
22000   grep -v '^ *+' conftest.er1 >conftest.err
22001   rm -f conftest.er1
22002   cat conftest.err >&5
22003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004   (exit $ac_status); } &&
22005          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007   (eval $ac_try) 2>&5
22008   ac_status=$?
22009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010   (exit $ac_status); }; } &&
22011          { ac_try='test -s conftest.$ac_objext'
22012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22013   (eval $ac_try) 2>&5
22014   ac_status=$?
22015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016   (exit $ac_status); }; }; then
22017   break
22018 else
22019   echo "$as_me: failed program was:" >&5
22020 sed 's/^/| /' conftest.$ac_ext >&5
22021
22022 fi
22023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22024   cat >conftest.$ac_ext <<_ACEOF
22025 /* confdefs.h.  */
22026 _ACEOF
22027 cat confdefs.h >>conftest.$ac_ext
22028 cat >>conftest.$ac_ext <<_ACEOF
22029 /* end confdefs.h.  */
22030 #define _LARGEFILE_SOURCE 1
22031 #include <stdio.h>
22032 int
22033 main ()
22034 {
22035 return !fseeko;
22036   ;
22037   return 0;
22038 }
22039 _ACEOF
22040 rm -f conftest.$ac_objext
22041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22042   (eval $ac_compile) 2>conftest.er1
22043   ac_status=$?
22044   grep -v '^ *+' conftest.er1 >conftest.err
22045   rm -f conftest.er1
22046   cat conftest.err >&5
22047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048   (exit $ac_status); } &&
22049          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22051   (eval $ac_try) 2>&5
22052   ac_status=$?
22053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054   (exit $ac_status); }; } &&
22055          { ac_try='test -s conftest.$ac_objext'
22056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057   (eval $ac_try) 2>&5
22058   ac_status=$?
22059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060   (exit $ac_status); }; }; then
22061   ac_cv_sys_largefile_source=1; break
22062 else
22063   echo "$as_me: failed program was:" >&5
22064 sed 's/^/| /' conftest.$ac_ext >&5
22065
22066 fi
22067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22068   break
22069 done
22070 fi
22071 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22072 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22073 if test "$ac_cv_sys_largefile_source" != no; then
22074
22075 cat >>confdefs.h <<_ACEOF
22076 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22077 _ACEOF
22078
22079 fi
22080 rm -f conftest*
22081
22082 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22083 # in glibc 2.1.3, but that breaks too many other things.
22084 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22085 echo "$as_me:$LINENO: checking for fseeko" >&5
22086 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22087 if test "${ac_cv_func_fseeko+set}" = set; then
22088   echo $ECHO_N "(cached) $ECHO_C" >&6
22089 else
22090   cat >conftest.$ac_ext <<_ACEOF
22091 /* confdefs.h.  */
22092 _ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h.  */
22096 #include <stdio.h>
22097 int
22098 main ()
22099 {
22100 return fseeko && fseeko (stdin, 0, 0);
22101   ;
22102   return 0;
22103 }
22104 _ACEOF
22105 rm -f conftest.$ac_objext conftest$ac_exeext
22106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22107   (eval $ac_link) 2>conftest.er1
22108   ac_status=$?
22109   grep -v '^ *+' conftest.er1 >conftest.err
22110   rm -f conftest.er1
22111   cat conftest.err >&5
22112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113   (exit $ac_status); } &&
22114          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22116   (eval $ac_try) 2>&5
22117   ac_status=$?
22118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119   (exit $ac_status); }; } &&
22120          { ac_try='test -s conftest$ac_exeext'
22121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22122   (eval $ac_try) 2>&5
22123   ac_status=$?
22124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125   (exit $ac_status); }; }; then
22126   ac_cv_func_fseeko=yes
22127 else
22128   echo "$as_me: failed program was:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22130
22131 ac_cv_func_fseeko=no
22132 fi
22133 rm -f conftest.err conftest.$ac_objext \
22134       conftest$ac_exeext conftest.$ac_ext
22135 fi
22136 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22137 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22138 if test $ac_cv_func_fseeko = yes; then
22139
22140 cat >>confdefs.h <<\_ACEOF
22141 #define HAVE_FSEEKO 1
22142 _ACEOF
22143
22144 fi
22145
22146     if test "$ac_cv_sys_largefile_source" != no; then
22147         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
22148     fi
22149 fi
22150
22151 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22152 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22153 if test "${ac_cv_c_bigendian+set}" = set; then
22154   echo $ECHO_N "(cached) $ECHO_C" >&6
22155 else
22156   ac_cv_c_bigendian=unknown
22157 # See if sys/param.h defines the BYTE_ORDER macro.
22158 cat >conftest.$ac_ext <<_ACEOF
22159 /* confdefs.h.  */
22160 _ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h.  */
22164 #include <sys/types.h>
22165 #include <sys/param.h>
22166 int
22167 main ()
22168 {
22169
22170 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22171  bogus endian macros
22172 #endif
22173   ;
22174   return 0;
22175 }
22176 _ACEOF
22177 rm -f conftest.$ac_objext
22178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22179   (eval $ac_compile) 2>conftest.er1
22180   ac_status=$?
22181   grep -v '^ *+' conftest.er1 >conftest.err
22182   rm -f conftest.er1
22183   cat conftest.err >&5
22184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185   (exit $ac_status); } &&
22186          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22188   (eval $ac_try) 2>&5
22189   ac_status=$?
22190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191   (exit $ac_status); }; } &&
22192          { ac_try='test -s conftest.$ac_objext'
22193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194   (eval $ac_try) 2>&5
22195   ac_status=$?
22196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197   (exit $ac_status); }; }; then
22198   # It does; now see whether it defined to BIG_ENDIAN or not.
22199 cat >conftest.$ac_ext <<_ACEOF
22200 /* confdefs.h.  */
22201 _ACEOF
22202 cat confdefs.h >>conftest.$ac_ext
22203 cat >>conftest.$ac_ext <<_ACEOF
22204 /* end confdefs.h.  */
22205 #include <sys/types.h>
22206 #include <sys/param.h>
22207 int
22208 main ()
22209 {
22210
22211 #if BYTE_ORDER != BIG_ENDIAN
22212  not big endian
22213 #endif
22214   ;
22215   return 0;
22216 }
22217 _ACEOF
22218 rm -f conftest.$ac_objext
22219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22220   (eval $ac_compile) 2>conftest.er1
22221   ac_status=$?
22222   grep -v '^ *+' conftest.er1 >conftest.err
22223   rm -f conftest.er1
22224   cat conftest.err >&5
22225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226   (exit $ac_status); } &&
22227          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22229   (eval $ac_try) 2>&5
22230   ac_status=$?
22231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232   (exit $ac_status); }; } &&
22233          { ac_try='test -s conftest.$ac_objext'
22234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22235   (eval $ac_try) 2>&5
22236   ac_status=$?
22237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238   (exit $ac_status); }; }; then
22239   ac_cv_c_bigendian=yes
22240 else
22241   echo "$as_me: failed program was:" >&5
22242 sed 's/^/| /' conftest.$ac_ext >&5
22243
22244 ac_cv_c_bigendian=no
22245 fi
22246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22247 else
22248   echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22250
22251 fi
22252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22253 if test $ac_cv_c_bigendian = unknown; then
22254 if test "$cross_compiling" = yes; then
22255   ac_cv_c_bigendian=unknown
22256 else
22257   cat >conftest.$ac_ext <<_ACEOF
22258 /* confdefs.h.  */
22259 _ACEOF
22260 cat confdefs.h >>conftest.$ac_ext
22261 cat >>conftest.$ac_ext <<_ACEOF
22262 /* end confdefs.h.  */
22263 main () {
22264   /* Are we little or big endian?  From Harbison&Steele.  */
22265   union
22266   {
22267     long l;
22268     char c[sizeof (long)];
22269   } u;
22270   u.l = 1;
22271   exit (u.c[sizeof (long) - 1] == 1);
22272 }
22273 _ACEOF
22274 rm -f conftest$ac_exeext
22275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22276   (eval $ac_link) 2>&5
22277   ac_status=$?
22278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22281   (eval $ac_try) 2>&5
22282   ac_status=$?
22283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284   (exit $ac_status); }; }; then
22285   ac_cv_c_bigendian=no
22286 else
22287   echo "$as_me: program exited with status $ac_status" >&5
22288 echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.$ac_ext >&5
22290
22291 ( exit $ac_status )
22292 ac_cv_c_bigendian=yes
22293 fi
22294 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22295 fi
22296 fi
22297 fi
22298 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22299 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22300 if test $ac_cv_c_bigendian = unknown; then
22301   { echo "$as_me:$LINENO: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&5
22302 echo "$as_me: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&2;}
22303 fi
22304 if test $ac_cv_c_bigendian = yes; then
22305   cat >>confdefs.h <<\_ACEOF
22306 #define WORDS_BIGENDIAN 1
22307 _ACEOF
22308
22309 fi
22310
22311
22312 ac_ext=cc
22313 ac_cpp='$CXXCPP $CPPFLAGS'
22314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22317 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
22318 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
22319 if test -z "$CXXCPP"; then
22320   if test "${ac_cv_prog_CXXCPP+set}" = set; then
22321   echo $ECHO_N "(cached) $ECHO_C" >&6
22322 else
22323       # Double quotes because CXXCPP needs to be expanded
22324     for CXXCPP in "$CXX -E" "/lib/cpp"
22325     do
22326       ac_preproc_ok=false
22327 for ac_cxx_preproc_warn_flag in '' yes
22328 do
22329   # Use a header file that comes with gcc, so configuring glibc
22330   # with a fresh cross-compiler works.
22331   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22332   # <limits.h> exists even on freestanding compilers.
22333   # On the NeXT, cc -E runs the code through the compiler's parser,
22334   # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
22342 # include <limits.h>
22343 #else
22344 # include <assert.h>
22345 #endif
22346                      Syntax error
22347 _ACEOF
22348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22349   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22350   ac_status=$?
22351   grep -v '^ *+' conftest.er1 >conftest.err
22352   rm -f conftest.er1
22353   cat conftest.err >&5
22354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355   (exit $ac_status); } >/dev/null; then
22356   if test -s conftest.err; then
22357     ac_cpp_err=$ac_cxx_preproc_warn_flag
22358     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22359   else
22360     ac_cpp_err=
22361   fi
22362 else
22363   ac_cpp_err=yes
22364 fi
22365 if test -z "$ac_cpp_err"; then
22366   :
22367 else
22368   echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22370
22371   # Broken: fails on valid input.
22372 continue
22373 fi
22374 rm -f conftest.err conftest.$ac_ext
22375
22376   # OK, works on sane cases.  Now check whether non-existent headers
22377   # can be detected and how.
22378   cat >conftest.$ac_ext <<_ACEOF
22379 /* confdefs.h.  */
22380 _ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h.  */
22384 #include <ac_nonexistent.h>
22385 _ACEOF
22386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22387   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22388   ac_status=$?
22389   grep -v '^ *+' conftest.er1 >conftest.err
22390   rm -f conftest.er1
22391   cat conftest.err >&5
22392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393   (exit $ac_status); } >/dev/null; then
22394   if test -s conftest.err; then
22395     ac_cpp_err=$ac_cxx_preproc_warn_flag
22396     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22397   else
22398     ac_cpp_err=
22399   fi
22400 else
22401   ac_cpp_err=yes
22402 fi
22403 if test -z "$ac_cpp_err"; then
22404   # Broken: success on invalid input.
22405 continue
22406 else
22407   echo "$as_me: failed program was:" >&5
22408 sed 's/^/| /' conftest.$ac_ext >&5
22409
22410   # Passes both tests.
22411 ac_preproc_ok=:
22412 break
22413 fi
22414 rm -f conftest.err conftest.$ac_ext
22415
22416 done
22417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22418 rm -f conftest.err conftest.$ac_ext
22419 if $ac_preproc_ok; then
22420   break
22421 fi
22422
22423     done
22424     ac_cv_prog_CXXCPP=$CXXCPP
22425
22426 fi
22427   CXXCPP=$ac_cv_prog_CXXCPP
22428 else
22429   ac_cv_prog_CXXCPP=$CXXCPP
22430 fi
22431 echo "$as_me:$LINENO: result: $CXXCPP" >&5
22432 echo "${ECHO_T}$CXXCPP" >&6
22433 ac_preproc_ok=false
22434 for ac_cxx_preproc_warn_flag in '' yes
22435 do
22436   # Use a header file that comes with gcc, so configuring glibc
22437   # with a fresh cross-compiler works.
22438   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22439   # <limits.h> exists even on freestanding compilers.
22440   # On the NeXT, cc -E runs the code through the compiler's parser,
22441   # not just through cpp. "Syntax error" is here to catch this case.
22442   cat >conftest.$ac_ext <<_ACEOF
22443 /* confdefs.h.  */
22444 _ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h.  */
22448 #ifdef __STDC__
22449 # include <limits.h>
22450 #else
22451 # include <assert.h>
22452 #endif
22453                      Syntax error
22454 _ACEOF
22455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22456   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
22463   if test -s conftest.err; then
22464     ac_cpp_err=$ac_cxx_preproc_warn_flag
22465     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22466   else
22467     ac_cpp_err=
22468   fi
22469 else
22470   ac_cpp_err=yes
22471 fi
22472 if test -z "$ac_cpp_err"; then
22473   :
22474 else
22475   echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22477
22478   # Broken: fails on valid input.
22479 continue
22480 fi
22481 rm -f conftest.err conftest.$ac_ext
22482
22483   # OK, works on sane cases.  Now check whether non-existent headers
22484   # can be detected and how.
22485   cat >conftest.$ac_ext <<_ACEOF
22486 /* confdefs.h.  */
22487 _ACEOF
22488 cat confdefs.h >>conftest.$ac_ext
22489 cat >>conftest.$ac_ext <<_ACEOF
22490 /* end confdefs.h.  */
22491 #include <ac_nonexistent.h>
22492 _ACEOF
22493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22494   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22495   ac_status=$?
22496   grep -v '^ *+' conftest.er1 >conftest.err
22497   rm -f conftest.er1
22498   cat conftest.err >&5
22499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500   (exit $ac_status); } >/dev/null; then
22501   if test -s conftest.err; then
22502     ac_cpp_err=$ac_cxx_preproc_warn_flag
22503     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22504   else
22505     ac_cpp_err=
22506   fi
22507 else
22508   ac_cpp_err=yes
22509 fi
22510 if test -z "$ac_cpp_err"; then
22511   # Broken: success on invalid input.
22512 continue
22513 else
22514   echo "$as_me: failed program was:" >&5
22515 sed 's/^/| /' conftest.$ac_ext >&5
22516
22517   # Passes both tests.
22518 ac_preproc_ok=:
22519 break
22520 fi
22521 rm -f conftest.err conftest.$ac_ext
22522
22523 done
22524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22525 rm -f conftest.err conftest.$ac_ext
22526 if $ac_preproc_ok; then
22527   :
22528 else
22529   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22530 See \`config.log' for more details." >&5
22531 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22532 See \`config.log' for more details." >&2;}
22533    { (exit 1); exit 1; }; }
22534 fi
22535
22536 ac_ext=cc
22537 ac_cpp='$CXXCPP $CPPFLAGS'
22538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22541
22542
22543
22544
22545
22546     ac_ext=cc
22547 ac_cpp='$CXXCPP $CPPFLAGS'
22548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22551
22552
22553
22554 for ac_header in iostream
22555 do
22556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22558   echo "$as_me:$LINENO: checking for $ac_header" >&5
22559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22561   echo $ECHO_N "(cached) $ECHO_C" >&6
22562 fi
22563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22565 else
22566   # Is the header compilable?
22567 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22569 cat >conftest.$ac_ext <<_ACEOF
22570 /* confdefs.h.  */
22571 _ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h.  */
22575 $ac_includes_default
22576 #include <$ac_header>
22577 _ACEOF
22578 rm -f conftest.$ac_objext
22579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22580   (eval $ac_compile) 2>conftest.er1
22581   ac_status=$?
22582   grep -v '^ *+' conftest.er1 >conftest.err
22583   rm -f conftest.er1
22584   cat conftest.err >&5
22585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586   (exit $ac_status); } &&
22587          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22589   (eval $ac_try) 2>&5
22590   ac_status=$?
22591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592   (exit $ac_status); }; } &&
22593          { ac_try='test -s conftest.$ac_objext'
22594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22595   (eval $ac_try) 2>&5
22596   ac_status=$?
22597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598   (exit $ac_status); }; }; then
22599   ac_header_compiler=yes
22600 else
22601   echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22603
22604 ac_header_compiler=no
22605 fi
22606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22608 echo "${ECHO_T}$ac_header_compiler" >&6
22609
22610 # Is the header present?
22611 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22613 cat >conftest.$ac_ext <<_ACEOF
22614 /* confdefs.h.  */
22615 _ACEOF
22616 cat confdefs.h >>conftest.$ac_ext
22617 cat >>conftest.$ac_ext <<_ACEOF
22618 /* end confdefs.h.  */
22619 #include <$ac_header>
22620 _ACEOF
22621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22622   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22623   ac_status=$?
22624   grep -v '^ *+' conftest.er1 >conftest.err
22625   rm -f conftest.er1
22626   cat conftest.err >&5
22627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628   (exit $ac_status); } >/dev/null; then
22629   if test -s conftest.err; then
22630     ac_cpp_err=$ac_cxx_preproc_warn_flag
22631     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22632   else
22633     ac_cpp_err=
22634   fi
22635 else
22636   ac_cpp_err=yes
22637 fi
22638 if test -z "$ac_cpp_err"; then
22639   ac_header_preproc=yes
22640 else
22641   echo "$as_me: failed program was:" >&5
22642 sed 's/^/| /' conftest.$ac_ext >&5
22643
22644   ac_header_preproc=no
22645 fi
22646 rm -f conftest.err conftest.$ac_ext
22647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22648 echo "${ECHO_T}$ac_header_preproc" >&6
22649
22650 # So?  What about this header?
22651 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22652   yes:no: )
22653     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22657     ac_header_preproc=yes
22658     ;;
22659   no:yes:* )
22660     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22662     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22663 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22664     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22666     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22667 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22668     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22670     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22672     (
22673       cat <<\_ASBOX
22674 ## ----------------------------------------- ##
22675 ## Report this to wx-dev@lists.wxwidgets.org ##
22676 ## ----------------------------------------- ##
22677 _ASBOX
22678     ) |
22679       sed "s/^/$as_me: WARNING:     /" >&2
22680     ;;
22681 esac
22682 echo "$as_me:$LINENO: checking for $ac_header" >&5
22683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22685   echo $ECHO_N "(cached) $ECHO_C" >&6
22686 else
22687   eval "$as_ac_Header=\$ac_header_preproc"
22688 fi
22689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22691
22692 fi
22693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22694   cat >>confdefs.h <<_ACEOF
22695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22696 _ACEOF
22697
22698 fi
22699
22700 done
22701
22702
22703     if test "$ac_cv_header_iostream" = "yes" ; then
22704       :
22705     else
22706       cat >>confdefs.h <<\_ACEOF
22707 #define wxUSE_IOSTREAMH 1
22708 _ACEOF
22709
22710     fi
22711
22712     ac_ext=c
22713 ac_cpp='$CPP $CPPFLAGS'
22714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22717
22718
22719
22720
22721   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22722 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22723 if test "${wx_cv_cpp_bool+set}" = set; then
22724   echo $ECHO_N "(cached) $ECHO_C" >&6
22725 else
22726
22727
22728
22729     ac_ext=cc
22730 ac_cpp='$CXXCPP $CPPFLAGS'
22731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22734
22735
22736     cat >conftest.$ac_ext <<_ACEOF
22737 /* confdefs.h.  */
22738 _ACEOF
22739 cat confdefs.h >>conftest.$ac_ext
22740 cat >>conftest.$ac_ext <<_ACEOF
22741 /* end confdefs.h.  */
22742
22743
22744 int
22745 main ()
22746 {
22747
22748         bool b = true;
22749
22750         return 0;
22751
22752   ;
22753   return 0;
22754 }
22755 _ACEOF
22756 rm -f conftest.$ac_objext
22757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22758   (eval $ac_compile) 2>conftest.er1
22759   ac_status=$?
22760   grep -v '^ *+' conftest.er1 >conftest.err
22761   rm -f conftest.er1
22762   cat conftest.err >&5
22763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764   (exit $ac_status); } &&
22765          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22767   (eval $ac_try) 2>&5
22768   ac_status=$?
22769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770   (exit $ac_status); }; } &&
22771          { ac_try='test -s conftest.$ac_objext'
22772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22773   (eval $ac_try) 2>&5
22774   ac_status=$?
22775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776   (exit $ac_status); }; }; then
22777
22778         wx_cv_cpp_bool=yes
22779
22780 else
22781   echo "$as_me: failed program was:" >&5
22782 sed 's/^/| /' conftest.$ac_ext >&5
22783
22784
22785         wx_cv_cpp_bool=no
22786
22787
22788 fi
22789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22790
22791     ac_ext=c
22792 ac_cpp='$CPP $CPPFLAGS'
22793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22796
22797
22798 fi
22799 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22800 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22801
22802   if test "$wx_cv_cpp_bool" = "yes"; then
22803     cat >>confdefs.h <<\_ACEOF
22804 #define HAVE_BOOL 1
22805 _ACEOF
22806
22807   fi
22808
22809
22810
22811   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22812 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22813 if test "${wx_cv_explicit+set}" = set; then
22814   echo $ECHO_N "(cached) $ECHO_C" >&6
22815 else
22816
22817
22818
22819     ac_ext=cc
22820 ac_cpp='$CXXCPP $CPPFLAGS'
22821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22824
22825
22826             cat >conftest.$ac_ext <<_ACEOF
22827 /* confdefs.h.  */
22828 _ACEOF
22829 cat confdefs.h >>conftest.$ac_ext
22830 cat >>conftest.$ac_ext <<_ACEOF
22831 /* end confdefs.h.  */
22832
22833         class Foo { public: explicit Foo(int) {} };
22834
22835 int
22836 main ()
22837 {
22838
22839         return 0;
22840
22841   ;
22842   return 0;
22843 }
22844 _ACEOF
22845 rm -f conftest.$ac_objext
22846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22847   (eval $ac_compile) 2>conftest.er1
22848   ac_status=$?
22849   grep -v '^ *+' conftest.er1 >conftest.err
22850   rm -f conftest.er1
22851   cat conftest.err >&5
22852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853   (exit $ac_status); } &&
22854          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22856   (eval $ac_try) 2>&5
22857   ac_status=$?
22858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859   (exit $ac_status); }; } &&
22860          { ac_try='test -s conftest.$ac_objext'
22861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22862   (eval $ac_try) 2>&5
22863   ac_status=$?
22864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865   (exit $ac_status); }; }; then
22866
22867         cat >conftest.$ac_ext <<_ACEOF
22868 /* confdefs.h.  */
22869 _ACEOF
22870 cat confdefs.h >>conftest.$ac_ext
22871 cat >>conftest.$ac_ext <<_ACEOF
22872 /* end confdefs.h.  */
22873
22874                 class Foo { public: explicit Foo(int) {} };
22875                 static void TakeFoo(const Foo& foo) { }
22876
22877 int
22878 main ()
22879 {
22880
22881                 TakeFoo(17);
22882                 return 0;
22883
22884   ;
22885   return 0;
22886 }
22887 _ACEOF
22888 rm -f conftest.$ac_objext
22889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22890   (eval $ac_compile) 2>conftest.er1
22891   ac_status=$?
22892   grep -v '^ *+' conftest.er1 >conftest.err
22893   rm -f conftest.er1
22894   cat conftest.err >&5
22895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896   (exit $ac_status); } &&
22897          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22899   (eval $ac_try) 2>&5
22900   ac_status=$?
22901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902   (exit $ac_status); }; } &&
22903          { ac_try='test -s conftest.$ac_objext'
22904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22905   (eval $ac_try) 2>&5
22906   ac_status=$?
22907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908   (exit $ac_status); }; }; then
22909   wx_cv_explicit=no
22910 else
22911   echo "$as_me: failed program was:" >&5
22912 sed 's/^/| /' conftest.$ac_ext >&5
22913
22914 wx_cv_explicit=yes
22915
22916 fi
22917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22918
22919 else
22920   echo "$as_me: failed program was:" >&5
22921 sed 's/^/| /' conftest.$ac_ext >&5
22922
22923 wx_cv_explicit=no
22924
22925 fi
22926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22927
22928     ac_ext=c
22929 ac_cpp='$CPP $CPPFLAGS'
22930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22933
22934
22935 fi
22936 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22937 echo "${ECHO_T}$wx_cv_explicit" >&6
22938
22939   if test "$wx_cv_explicit" = "yes"; then
22940     cat >>confdefs.h <<\_ACEOF
22941 #define HAVE_EXPLICIT 1
22942 _ACEOF
22943
22944   fi
22945
22946
22947 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22948 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22949 if test "${ac_cv_cxx_const_cast+set}" = set; then
22950   echo $ECHO_N "(cached) $ECHO_C" >&6
22951 else
22952
22953
22954  ac_ext=cc
22955 ac_cpp='$CXXCPP $CPPFLAGS'
22956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22959
22960  cat >conftest.$ac_ext <<_ACEOF
22961 /* confdefs.h.  */
22962 _ACEOF
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h.  */
22966
22967 int
22968 main ()
22969 {
22970 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22971   ;
22972   return 0;
22973 }
22974 _ACEOF
22975 rm -f conftest.$ac_objext
22976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22977   (eval $ac_compile) 2>conftest.er1
22978   ac_status=$?
22979   grep -v '^ *+' conftest.er1 >conftest.err
22980   rm -f conftest.er1
22981   cat conftest.err >&5
22982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983   (exit $ac_status); } &&
22984          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22986   (eval $ac_try) 2>&5
22987   ac_status=$?
22988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989   (exit $ac_status); }; } &&
22990          { ac_try='test -s conftest.$ac_objext'
22991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22992   (eval $ac_try) 2>&5
22993   ac_status=$?
22994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995   (exit $ac_status); }; }; then
22996   ac_cv_cxx_const_cast=yes
22997 else
22998   echo "$as_me: failed program was:" >&5
22999 sed 's/^/| /' conftest.$ac_ext >&5
23000
23001 ac_cv_cxx_const_cast=no
23002 fi
23003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23004  ac_ext=c
23005 ac_cpp='$CPP $CPPFLAGS'
23006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23009
23010
23011 fi
23012 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23013 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23014 if test "$ac_cv_cxx_const_cast" = yes; then
23015
23016 cat >>confdefs.h <<\_ACEOF
23017 #define HAVE_CONST_CAST
23018 _ACEOF
23019
23020 fi
23021
23022 echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23023 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23024 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23025   echo $ECHO_N "(cached) $ECHO_C" >&6
23026 else
23027
23028
23029  ac_ext=cc
23030 ac_cpp='$CXXCPP $CPPFLAGS'
23031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23034
23035  cat >conftest.$ac_ext <<_ACEOF
23036 /* confdefs.h.  */
23037 _ACEOF
23038 cat confdefs.h >>conftest.$ac_ext
23039 cat >>conftest.$ac_ext <<_ACEOF
23040 /* end confdefs.h.  */
23041 #include <typeinfo>
23042 class Base { public : Base () {} virtual void f () = 0;};
23043 class Derived : public Base { public : Derived () {} virtual void f () {} };
23044 class Unrelated { public : Unrelated () {} };
23045 int g (Unrelated&) { return 0; }
23046 int
23047 main ()
23048 {
23049
23050 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23051   ;
23052   return 0;
23053 }
23054 _ACEOF
23055 rm -f conftest.$ac_objext
23056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23057   (eval $ac_compile) 2>conftest.er1
23058   ac_status=$?
23059   grep -v '^ *+' conftest.er1 >conftest.err
23060   rm -f conftest.er1
23061   cat conftest.err >&5
23062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063   (exit $ac_status); } &&
23064          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23066   (eval $ac_try) 2>&5
23067   ac_status=$?
23068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069   (exit $ac_status); }; } &&
23070          { ac_try='test -s conftest.$ac_objext'
23071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23072   (eval $ac_try) 2>&5
23073   ac_status=$?
23074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075   (exit $ac_status); }; }; then
23076   ac_cv_cxx_reinterpret_cast=yes
23077 else
23078   echo "$as_me: failed program was:" >&5
23079 sed 's/^/| /' conftest.$ac_ext >&5
23080
23081 ac_cv_cxx_reinterpret_cast=no
23082 fi
23083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23084  ac_ext=c
23085 ac_cpp='$CPP $CPPFLAGS'
23086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23089
23090
23091 fi
23092 echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23093 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23094 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23095
23096 cat >>confdefs.h <<\_ACEOF
23097 #define HAVE_REINTERPRET_CAST
23098 _ACEOF
23099
23100 fi
23101
23102 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23103 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23104 if test "${ac_cv_cxx_static_cast+set}" = set; then
23105   echo $ECHO_N "(cached) $ECHO_C" >&6
23106 else
23107
23108
23109  ac_ext=cc
23110 ac_cpp='$CXXCPP $CPPFLAGS'
23111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23114
23115  cat >conftest.$ac_ext <<_ACEOF
23116 /* confdefs.h.  */
23117 _ACEOF
23118 cat confdefs.h >>conftest.$ac_ext
23119 cat >>conftest.$ac_ext <<_ACEOF
23120 /* end confdefs.h.  */
23121 #include <typeinfo>
23122 class Base { public : Base () {} virtual void f () = 0; };
23123 class Derived : public Base { public : Derived () {} virtual void f () {} };
23124 int g (Derived&) { return 0; }
23125 int
23126 main ()
23127 {
23128
23129 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23130   ;
23131   return 0;
23132 }
23133 _ACEOF
23134 rm -f conftest.$ac_objext
23135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23136   (eval $ac_compile) 2>conftest.er1
23137   ac_status=$?
23138   grep -v '^ *+' conftest.er1 >conftest.err
23139   rm -f conftest.er1
23140   cat conftest.err >&5
23141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142   (exit $ac_status); } &&
23143          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23145   (eval $ac_try) 2>&5
23146   ac_status=$?
23147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148   (exit $ac_status); }; } &&
23149          { ac_try='test -s conftest.$ac_objext'
23150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23151   (eval $ac_try) 2>&5
23152   ac_status=$?
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); }; }; then
23155   ac_cv_cxx_static_cast=yes
23156 else
23157   echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23159
23160 ac_cv_cxx_static_cast=no
23161 fi
23162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23163  ac_ext=c
23164 ac_cpp='$CPP $CPPFLAGS'
23165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23168
23169
23170 fi
23171 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23172 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23173 if test "$ac_cv_cxx_static_cast" = yes; then
23174
23175 cat >>confdefs.h <<\_ACEOF
23176 #define HAVE_STATIC_CAST
23177 _ACEOF
23178
23179 fi
23180
23181
23182 if test "x$SUNCXX" = xyes; then
23183     CXXFLAGS="-features=tmplife $CXXFLAGS"
23184 fi
23185
23186 if test "x$SUNCC" = xyes; then
23187     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
23188 fi
23189
23190 if test "x$SGICC" = "xyes"; then
23191     CFLAGS="-woff 3970 $CFLAGS"
23192 fi
23193 if test "x$SGICXX" = "xyes"; then
23194     CXXFLAGS="-woff 3970 $CXXFLAGS"
23195 fi
23196
23197 if test "x$HPCC" = "xyes"; then
23198                     CFLAGS="+W 2011,2450 $CFLAGS"
23199 fi
23200 if test "x$HPCXX" = "xyes"; then
23201             CXXFLAGS="+W 2340 $CXXFLAGS"
23202 fi
23203
23204 if test "x$COMPAQCXX" = "xyes"; then
23205                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23206 fi
23207
23208 ac_ext=cc
23209 ac_cpp='$CXXCPP $CPPFLAGS'
23210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23213
23214
23215 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
23216     if test "$wxUSE_UNICODE" = "yes"; then
23217         std_string="std::wstring"
23218         char_type="wchar_t"
23219     else
23220         std_string="std::string"
23221         char_type="char"
23222     fi
23223
23224         echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23225 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
23226 if test "${wx_cv_class_stdstring+set}" = set; then
23227   echo $ECHO_N "(cached) $ECHO_C" >&6
23228 else
23229
23230             cat >conftest.$ac_ext <<_ACEOF
23231 /* confdefs.h.  */
23232 _ACEOF
23233 cat confdefs.h >>conftest.$ac_ext
23234 cat >>conftest.$ac_ext <<_ACEOF
23235 /* end confdefs.h.  */
23236 #include <string>
23237 int
23238 main ()
23239 {
23240 $std_string foo;
23241   ;
23242   return 0;
23243 }
23244 _ACEOF
23245 rm -f conftest.$ac_objext
23246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23247   (eval $ac_compile) 2>conftest.er1
23248   ac_status=$?
23249   grep -v '^ *+' conftest.er1 >conftest.err
23250   rm -f conftest.er1
23251   cat conftest.err >&5
23252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253   (exit $ac_status); } &&
23254          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23256   (eval $ac_try) 2>&5
23257   ac_status=$?
23258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259   (exit $ac_status); }; } &&
23260          { ac_try='test -s conftest.$ac_objext'
23261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23262   (eval $ac_try) 2>&5
23263   ac_status=$?
23264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265   (exit $ac_status); }; }; then
23266   wx_cv_class_stdstring=yes
23267 else
23268   echo "$as_me: failed program was:" >&5
23269 sed 's/^/| /' conftest.$ac_ext >&5
23270
23271 wx_cv_class_stdstring=no
23272
23273 fi
23274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23275
23276
23277 fi
23278 echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
23279 echo "${ECHO_T}$wx_cv_class_stdstring" >&6
23280
23281     if test "$wx_cv_class_stdstring" = yes; then
23282         if test "$wxUSE_UNICODE" = "yes"; then
23283             cat >>confdefs.h <<\_ACEOF
23284 #define HAVE_STD_WSTRING 1
23285 _ACEOF
23286
23287         fi
23288                     else
23289         echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23290 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
23291 if test "${wx_cv_class_stdbasicstring+set}" = set; then
23292   echo $ECHO_N "(cached) $ECHO_C" >&6
23293 else
23294
23295                 cat >conftest.$ac_ext <<_ACEOF
23296 /* confdefs.h.  */
23297 _ACEOF
23298 cat confdefs.h >>conftest.$ac_ext
23299 cat >>conftest.$ac_ext <<_ACEOF
23300 /* end confdefs.h.  */
23301
23302                     #ifdef HAVE_WCHAR_H
23303                     #  ifdef __CYGWIN__
23304                     #    include <stddef.h>
23305                     #  endif
23306                     #  include <wchar.h>
23307                     #endif
23308                     #ifdef HAVE_STDLIB_H
23309                     #  include <stdlib.h>
23310                     #endif
23311                     #include <stdio.h>
23312                     #include <string>
23313
23314 int
23315 main ()
23316 {
23317 std::basic_string<$char_type> foo;
23318                      const $char_type* dummy = foo.c_str();
23319   ;
23320   return 0;
23321 }
23322 _ACEOF
23323 rm -f conftest.$ac_objext
23324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23325   (eval $ac_compile) 2>conftest.er1
23326   ac_status=$?
23327   grep -v '^ *+' conftest.er1 >conftest.err
23328   rm -f conftest.er1
23329   cat conftest.err >&5
23330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331   (exit $ac_status); } &&
23332          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23334   (eval $ac_try) 2>&5
23335   ac_status=$?
23336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337   (exit $ac_status); }; } &&
23338          { ac_try='test -s conftest.$ac_objext'
23339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340   (eval $ac_try) 2>&5
23341   ac_status=$?
23342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343   (exit $ac_status); }; }; then
23344   wx_cv_class_stdbasicstring=yes
23345 else
23346   echo "$as_me: failed program was:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23348
23349 wx_cv_class_stdbasicstring=no
23350
23351 fi
23352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23353
23354
23355 fi
23356 echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
23357 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6
23358
23359         if test "$wx_cv_class_stdbasicstring" != yes; then
23360             if test "$wxUSE_STL" = "yes"; then
23361                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23362 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23363    { (exit 1); exit 1; }; }
23364             elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23365                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23366 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
23367    { (exit 1); exit 1; }; }
23368             else
23369                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23370 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23371                 wxUSE_STD_STRING=no
23372             fi
23373         fi
23374     fi
23375 fi
23376
23377 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
23378     echo "$as_me:$LINENO: checking for std::istream" >&5
23379 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23380 if test "${ac_cv_type_std__istream+set}" = set; then
23381   echo $ECHO_N "(cached) $ECHO_C" >&6
23382 else
23383   cat >conftest.$ac_ext <<_ACEOF
23384 /* confdefs.h.  */
23385 _ACEOF
23386 cat confdefs.h >>conftest.$ac_ext
23387 cat >>conftest.$ac_ext <<_ACEOF
23388 /* end confdefs.h.  */
23389 #include <iostream>
23390
23391 int
23392 main ()
23393 {
23394 if ((std::istream *) 0)
23395   return 0;
23396 if (sizeof (std::istream))
23397   return 0;
23398   ;
23399   return 0;
23400 }
23401 _ACEOF
23402 rm -f conftest.$ac_objext
23403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23404   (eval $ac_compile) 2>conftest.er1
23405   ac_status=$?
23406   grep -v '^ *+' conftest.er1 >conftest.err
23407   rm -f conftest.er1
23408   cat conftest.err >&5
23409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410   (exit $ac_status); } &&
23411          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23413   (eval $ac_try) 2>&5
23414   ac_status=$?
23415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416   (exit $ac_status); }; } &&
23417          { ac_try='test -s conftest.$ac_objext'
23418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23419   (eval $ac_try) 2>&5
23420   ac_status=$?
23421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422   (exit $ac_status); }; }; then
23423   ac_cv_type_std__istream=yes
23424 else
23425   echo "$as_me: failed program was:" >&5
23426 sed 's/^/| /' conftest.$ac_ext >&5
23427
23428 ac_cv_type_std__istream=no
23429 fi
23430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23431 fi
23432 echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23433 echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23434 if test $ac_cv_type_std__istream = yes; then
23435
23436 cat >>confdefs.h <<_ACEOF
23437 #define HAVE_STD__ISTREAM 1
23438 _ACEOF
23439
23440
23441 else
23442   wxUSE_STD_IOSTREAM=no
23443 fi
23444 echo "$as_me:$LINENO: checking for std::ostream" >&5
23445 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23446 if test "${ac_cv_type_std__ostream+set}" = set; then
23447   echo $ECHO_N "(cached) $ECHO_C" >&6
23448 else
23449   cat >conftest.$ac_ext <<_ACEOF
23450 /* confdefs.h.  */
23451 _ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h.  */
23455 #include <iostream>
23456
23457 int
23458 main ()
23459 {
23460 if ((std::ostream *) 0)
23461   return 0;
23462 if (sizeof (std::ostream))
23463   return 0;
23464   ;
23465   return 0;
23466 }
23467 _ACEOF
23468 rm -f conftest.$ac_objext
23469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23470   (eval $ac_compile) 2>conftest.er1
23471   ac_status=$?
23472   grep -v '^ *+' conftest.er1 >conftest.err
23473   rm -f conftest.er1
23474   cat conftest.err >&5
23475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476   (exit $ac_status); } &&
23477          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23479   (eval $ac_try) 2>&5
23480   ac_status=$?
23481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482   (exit $ac_status); }; } &&
23483          { ac_try='test -s conftest.$ac_objext'
23484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23485   (eval $ac_try) 2>&5
23486   ac_status=$?
23487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488   (exit $ac_status); }; }; then
23489   ac_cv_type_std__ostream=yes
23490 else
23491   echo "$as_me: failed program was:" >&5
23492 sed 's/^/| /' conftest.$ac_ext >&5
23493
23494 ac_cv_type_std__ostream=no
23495 fi
23496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23497 fi
23498 echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23499 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23500 if test $ac_cv_type_std__ostream = yes; then
23501
23502 cat >>confdefs.h <<_ACEOF
23503 #define HAVE_STD__OSTREAM 1
23504 _ACEOF
23505
23506
23507 else
23508   wxUSE_STD_IOSTREAM=no
23509 fi
23510
23511
23512     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
23513         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23514             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23515 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23516    { (exit 1); exit 1; }; }
23517         else
23518             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
23519 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
23520         fi
23521     fi
23522 fi
23523
23524 if test "$wxUSE_STL" = "yes"; then
23525         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23526 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
23527 if test "${wx_cv_lib_stl+set}" = set; then
23528   echo $ECHO_N "(cached) $ECHO_C" >&6
23529 else
23530   cat >conftest.$ac_ext <<_ACEOF
23531 /* confdefs.h.  */
23532 _ACEOF
23533 cat confdefs.h >>conftest.$ac_ext
23534 cat >>conftest.$ac_ext <<_ACEOF
23535 /* end confdefs.h.  */
23536 #include <string>
23537             #include <functional>
23538             #include <algorithm>
23539             #include <vector>
23540             #include <list>
23541 int
23542 main ()
23543 {
23544 std::vector<int> moo;
23545              std::list<int> foo;
23546              std::vector<int>::iterator it =
23547                  std::find_if(moo.begin(), moo.end(),
23548                               std::bind2nd(std::less<int>(), 3));
23549   ;
23550   return 0;
23551 }
23552 _ACEOF
23553 rm -f conftest.$ac_objext
23554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23555   (eval $ac_compile) 2>conftest.er1
23556   ac_status=$?
23557   grep -v '^ *+' conftest.er1 >conftest.err
23558   rm -f conftest.er1
23559   cat conftest.err >&5
23560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561   (exit $ac_status); } &&
23562          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23564   (eval $ac_try) 2>&5
23565   ac_status=$?
23566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567   (exit $ac_status); }; } &&
23568          { ac_try='test -s conftest.$ac_objext'
23569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23570   (eval $ac_try) 2>&5
23571   ac_status=$?
23572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573   (exit $ac_status); }; }; then
23574   wx_cv_lib_stl=yes
23575 else
23576   echo "$as_me: failed program was:" >&5
23577 sed 's/^/| /' conftest.$ac_ext >&5
23578
23579 wx_cv_lib_stl=no
23580
23581 fi
23582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23583
23584 fi
23585 echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
23586 echo "${ECHO_T}$wx_cv_lib_stl" >&6
23587
23588     if test "$wx_cv_lib_stl" != yes; then
23589          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
23590 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
23591    { (exit 1); exit 1; }; }
23592     fi
23593
23594         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23595 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23596 if test "${wx_cv_func_stdstring_compare+set}" = set; then
23597   echo $ECHO_N "(cached) $ECHO_C" >&6
23598 else
23599   cat >conftest.$ac_ext <<_ACEOF
23600 /* confdefs.h.  */
23601 _ACEOF
23602 cat confdefs.h >>conftest.$ac_ext
23603 cat >>conftest.$ac_ext <<_ACEOF
23604 /* end confdefs.h.  */
23605 #include <string>
23606 int
23607 main ()
23608 {
23609 std::string foo, bar;
23610             foo.compare(bar);
23611             foo.compare(1, 1, bar);
23612             foo.compare(1, 1, bar, 1, 1);
23613             foo.compare("");
23614             foo.compare(1, 1, "");
23615             foo.compare(1, 1, "", 2);
23616   ;
23617   return 0;
23618 }
23619 _ACEOF
23620 rm -f conftest.$ac_objext
23621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23622   (eval $ac_compile) 2>conftest.er1
23623   ac_status=$?
23624   grep -v '^ *+' conftest.er1 >conftest.err
23625   rm -f conftest.er1
23626   cat conftest.err >&5
23627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628   (exit $ac_status); } &&
23629          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23631   (eval $ac_try) 2>&5
23632   ac_status=$?
23633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634   (exit $ac_status); }; } &&
23635          { ac_try='test -s conftest.$ac_objext'
23636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23637   (eval $ac_try) 2>&5
23638   ac_status=$?
23639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640   (exit $ac_status); }; }; then
23641   wx_cv_func_stdstring_compare=yes
23642 else
23643   echo "$as_me: failed program was:" >&5
23644 sed 's/^/| /' conftest.$ac_ext >&5
23645
23646 wx_cv_func_stdstring_compare=no
23647
23648 fi
23649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23650
23651 fi
23652 echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
23653 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6
23654
23655     if test "$wx_cv_func_stdstring_compare" = yes; then
23656         cat >>confdefs.h <<\_ACEOF
23657 #define HAVE_STD_STRING_COMPARE 1
23658 _ACEOF
23659
23660     fi
23661
23662         if test "${ac_cv_header_hash_map+set}" = set; then
23663   echo "$as_me:$LINENO: checking for hash_map" >&5
23664 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23665 if test "${ac_cv_header_hash_map+set}" = set; then
23666   echo $ECHO_N "(cached) $ECHO_C" >&6
23667 fi
23668 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23669 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23670 else
23671   # Is the header compilable?
23672 echo "$as_me:$LINENO: checking hash_map usability" >&5
23673 echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23674 cat >conftest.$ac_ext <<_ACEOF
23675 /* confdefs.h.  */
23676 _ACEOF
23677 cat confdefs.h >>conftest.$ac_ext
23678 cat >>conftest.$ac_ext <<_ACEOF
23679 /* end confdefs.h.  */
23680 $ac_includes_default
23681 #include <hash_map>
23682 _ACEOF
23683 rm -f conftest.$ac_objext
23684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23685   (eval $ac_compile) 2>conftest.er1
23686   ac_status=$?
23687   grep -v '^ *+' conftest.er1 >conftest.err
23688   rm -f conftest.er1
23689   cat conftest.err >&5
23690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691   (exit $ac_status); } &&
23692          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23694   (eval $ac_try) 2>&5
23695   ac_status=$?
23696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697   (exit $ac_status); }; } &&
23698          { ac_try='test -s conftest.$ac_objext'
23699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23700   (eval $ac_try) 2>&5
23701   ac_status=$?
23702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703   (exit $ac_status); }; }; then
23704   ac_header_compiler=yes
23705 else
23706   echo "$as_me: failed program was:" >&5
23707 sed 's/^/| /' conftest.$ac_ext >&5
23708
23709 ac_header_compiler=no
23710 fi
23711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23713 echo "${ECHO_T}$ac_header_compiler" >&6
23714
23715 # Is the header present?
23716 echo "$as_me:$LINENO: checking hash_map presence" >&5
23717 echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23718 cat >conftest.$ac_ext <<_ACEOF
23719 /* confdefs.h.  */
23720 _ACEOF
23721 cat confdefs.h >>conftest.$ac_ext
23722 cat >>conftest.$ac_ext <<_ACEOF
23723 /* end confdefs.h.  */
23724 #include <hash_map>
23725 _ACEOF
23726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23727   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23728   ac_status=$?
23729   grep -v '^ *+' conftest.er1 >conftest.err
23730   rm -f conftest.er1
23731   cat conftest.err >&5
23732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733   (exit $ac_status); } >/dev/null; then
23734   if test -s conftest.err; then
23735     ac_cpp_err=$ac_cxx_preproc_warn_flag
23736     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23737   else
23738     ac_cpp_err=
23739   fi
23740 else
23741   ac_cpp_err=yes
23742 fi
23743 if test -z "$ac_cpp_err"; then
23744   ac_header_preproc=yes
23745 else
23746   echo "$as_me: failed program was:" >&5
23747 sed 's/^/| /' conftest.$ac_ext >&5
23748
23749   ac_header_preproc=no
23750 fi
23751 rm -f conftest.err conftest.$ac_ext
23752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23753 echo "${ECHO_T}$ac_header_preproc" >&6
23754
23755 # So?  What about this header?
23756 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23757   yes:no: )
23758     { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23759 echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
23760     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23761 echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23762     ac_header_preproc=yes
23763     ;;
23764   no:yes:* )
23765     { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23766 echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
23767     { echo "$as_me:$LINENO: WARNING: hash_map:     check for missing prerequisite headers?" >&5
23768 echo "$as_me: WARNING: hash_map:     check for missing prerequisite headers?" >&2;}
23769     { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23770 echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23771     { echo "$as_me:$LINENO: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&5
23772 echo "$as_me: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
23773     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23774 echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
23775     { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23776 echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
23777     (
23778       cat <<\_ASBOX
23779 ## ----------------------------------------- ##
23780 ## Report this to wx-dev@lists.wxwidgets.org ##
23781 ## ----------------------------------------- ##
23782 _ASBOX
23783     ) |
23784       sed "s/^/$as_me: WARNING:     /" >&2
23785     ;;
23786 esac
23787 echo "$as_me:$LINENO: checking for hash_map" >&5
23788 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23789 if test "${ac_cv_header_hash_map+set}" = set; then
23790   echo $ECHO_N "(cached) $ECHO_C" >&6
23791 else
23792   ac_cv_header_hash_map=$ac_header_preproc
23793 fi
23794 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23795 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23796
23797 fi
23798 if test $ac_cv_header_hash_map = yes; then
23799   echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
23800 echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6
23801 if test "${wx_cv_class_stdhashmapset+set}" = set; then
23802   echo $ECHO_N "(cached) $ECHO_C" >&6
23803 else
23804   cat >conftest.$ac_ext <<_ACEOF
23805 /* confdefs.h.  */
23806 _ACEOF
23807 cat confdefs.h >>conftest.$ac_ext
23808 cat >>conftest.$ac_ext <<_ACEOF
23809 /* end confdefs.h.  */
23810 #include <hash_map>
23811                 #include <hash_set>
23812 int
23813 main ()
23814 {
23815 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23816                  std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23817   ;
23818   return 0;
23819 }
23820 _ACEOF
23821 rm -f conftest.$ac_objext
23822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23823   (eval $ac_compile) 2>conftest.er1
23824   ac_status=$?
23825   grep -v '^ *+' conftest.er1 >conftest.err
23826   rm -f conftest.er1
23827   cat conftest.err >&5
23828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829   (exit $ac_status); } &&
23830          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23832   (eval $ac_try) 2>&5
23833   ac_status=$?
23834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835   (exit $ac_status); }; } &&
23836          { ac_try='test -s conftest.$ac_objext'
23837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23838   (eval $ac_try) 2>&5
23839   ac_status=$?
23840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841   (exit $ac_status); }; }; then
23842   wx_cv_class_stdhashmapset=yes
23843 else
23844   echo "$as_me: failed program was:" >&5
23845 sed 's/^/| /' conftest.$ac_ext >&5
23846
23847 wx_cv_class_stdhashmapset=no
23848 fi
23849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23850
23851
23852 fi
23853 echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
23854 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6
23855
23856 fi
23857
23858
23859
23860     if test "$wx_cv_class_stdhashmapset" = yes; then
23861         cat >>confdefs.h <<\_ACEOF
23862 #define HAVE_HASH_MAP 1
23863 _ACEOF
23864
23865         cat >>confdefs.h <<\_ACEOF
23866 #define HAVE_STD_HASH_MAP 1
23867 _ACEOF
23868
23869     fi
23870
23871     if test "${ac_cv_header_ext_hash_map+set}" = set; then
23872   echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23873 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23874 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23875   echo $ECHO_N "(cached) $ECHO_C" >&6
23876 fi
23877 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23878 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23879 else
23880   # Is the header compilable?
23881 echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23882 echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23883 cat >conftest.$ac_ext <<_ACEOF
23884 /* confdefs.h.  */
23885 _ACEOF
23886 cat confdefs.h >>conftest.$ac_ext
23887 cat >>conftest.$ac_ext <<_ACEOF
23888 /* end confdefs.h.  */
23889 $ac_includes_default
23890 #include <ext/hash_map>
23891 _ACEOF
23892 rm -f conftest.$ac_objext
23893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23894   (eval $ac_compile) 2>conftest.er1
23895   ac_status=$?
23896   grep -v '^ *+' conftest.er1 >conftest.err
23897   rm -f conftest.er1
23898   cat conftest.err >&5
23899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900   (exit $ac_status); } &&
23901          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23903   (eval $ac_try) 2>&5
23904   ac_status=$?
23905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906   (exit $ac_status); }; } &&
23907          { ac_try='test -s conftest.$ac_objext'
23908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23909   (eval $ac_try) 2>&5
23910   ac_status=$?
23911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912   (exit $ac_status); }; }; then
23913   ac_header_compiler=yes
23914 else
23915   echo "$as_me: failed program was:" >&5
23916 sed 's/^/| /' conftest.$ac_ext >&5
23917
23918 ac_header_compiler=no
23919 fi
23920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23922 echo "${ECHO_T}$ac_header_compiler" >&6
23923
23924 # Is the header present?
23925 echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23926 echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23927 cat >conftest.$ac_ext <<_ACEOF
23928 /* confdefs.h.  */
23929 _ACEOF
23930 cat confdefs.h >>conftest.$ac_ext
23931 cat >>conftest.$ac_ext <<_ACEOF
23932 /* end confdefs.h.  */
23933 #include <ext/hash_map>
23934 _ACEOF
23935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23936   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23937   ac_status=$?
23938   grep -v '^ *+' conftest.er1 >conftest.err
23939   rm -f conftest.er1
23940   cat conftest.err >&5
23941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942   (exit $ac_status); } >/dev/null; then
23943   if test -s conftest.err; then
23944     ac_cpp_err=$ac_cxx_preproc_warn_flag
23945     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23946   else
23947     ac_cpp_err=
23948   fi
23949 else
23950   ac_cpp_err=yes
23951 fi
23952 if test -z "$ac_cpp_err"; then
23953   ac_header_preproc=yes
23954 else
23955   echo "$as_me: failed program was:" >&5
23956 sed 's/^/| /' conftest.$ac_ext >&5
23957
23958   ac_header_preproc=no
23959 fi
23960 rm -f conftest.err conftest.$ac_ext
23961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23962 echo "${ECHO_T}$ac_header_preproc" >&6
23963
23964 # So?  What about this header?
23965 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23966   yes:no: )
23967     { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23968 echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
23969     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23970 echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23971     ac_header_preproc=yes
23972     ;;
23973   no:yes:* )
23974     { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23975 echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
23976     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&5
23977 echo "$as_me: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&2;}
23978     { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23979 echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23980     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&5
23981 echo "$as_me: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
23982     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23983 echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
23984     { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23985 echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
23986     (
23987       cat <<\_ASBOX
23988 ## ----------------------------------------- ##
23989 ## Report this to wx-dev@lists.wxwidgets.org ##
23990 ## ----------------------------------------- ##
23991 _ASBOX
23992     ) |
23993       sed "s/^/$as_me: WARNING:     /" >&2
23994     ;;
23995 esac
23996 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23997 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23998 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23999   echo $ECHO_N "(cached) $ECHO_C" >&6
24000 else
24001   ac_cv_header_ext_hash_map=$ac_header_preproc
24002 fi
24003 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24004 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24005
24006 fi
24007 if test $ac_cv_header_ext_hash_map = yes; then
24008   echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
24009 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6
24010 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
24011   echo $ECHO_N "(cached) $ECHO_C" >&6
24012 else
24013   cat >conftest.$ac_ext <<_ACEOF
24014 /* confdefs.h.  */
24015 _ACEOF
24016 cat confdefs.h >>conftest.$ac_ext
24017 cat >>conftest.$ac_ext <<_ACEOF
24018 /* end confdefs.h.  */
24019 #include <ext/hash_map>
24020                 #include <ext/hash_set>
24021 int
24022 main ()
24023 {
24024 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24025                  __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24026   ;
24027   return 0;
24028 }
24029 _ACEOF
24030 rm -f conftest.$ac_objext
24031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24032   (eval $ac_compile) 2>conftest.er1
24033   ac_status=$?
24034   grep -v '^ *+' conftest.er1 >conftest.err
24035   rm -f conftest.er1
24036   cat conftest.err >&5
24037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038   (exit $ac_status); } &&
24039          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
24040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24041   (eval $ac_try) 2>&5
24042   ac_status=$?
24043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044   (exit $ac_status); }; } &&
24045          { ac_try='test -s conftest.$ac_objext'
24046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24047   (eval $ac_try) 2>&5
24048   ac_status=$?
24049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050   (exit $ac_status); }; }; then
24051   wx_cv_class_gnuhashmapset=yes
24052 else
24053   echo "$as_me: failed program was:" >&5
24054 sed 's/^/| /' conftest.$ac_ext >&5
24055
24056 wx_cv_class_gnuhashmapset=no
24057 fi
24058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24059
24060
24061 fi
24062 echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
24063 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6
24064
24065 fi
24066
24067
24068
24069     if test "$wx_cv_class_gnuhashmapset" = yes; then
24070          cat >>confdefs.h <<\_ACEOF
24071 #define HAVE_EXT_HASH_MAP 1
24072 _ACEOF
24073
24074          cat >>confdefs.h <<\_ACEOF
24075 #define HAVE_GNU_CXX_HASH_MAP 1
24076 _ACEOF
24077
24078     fi
24079 fi
24080
24081 ac_ext=c
24082 ac_cpp='$CPP $CPPFLAGS'
24083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24086
24087
24088
24089 SEARCH_INCLUDE="\
24090     /usr/local/include        \
24091                               \
24092     /usr/Motif-2.1/include    \
24093     /usr/Motif-1.2/include    \
24094     /usr/include/Motif1.2     \
24095                               \
24096     /usr/dt/include           \
24097     /usr/openwin/include      \
24098                               \
24099     /usr/include/Xm           \
24100                               \
24101     /usr/X11R6/include        \
24102     /usr/X11R6.4/include      \
24103     /usr/X11R5/include        \
24104     /usr/X11R4/include        \
24105                               \
24106     /usr/include/X11R6        \
24107     /usr/include/X11R5        \
24108     /usr/include/X11R4        \
24109                               \
24110     /usr/local/X11R6/include  \
24111     /usr/local/X11R5/include  \
24112     /usr/local/X11R4/include  \
24113                               \
24114     /usr/local/include/X11R6  \
24115     /usr/local/include/X11R5  \
24116     /usr/local/include/X11R4  \
24117                               \
24118     /usr/X11/include          \
24119     /usr/include/X11          \
24120     /usr/local/X11/include    \
24121     /usr/local/include/X11    \
24122                               \
24123     /usr/XFree86/include/X11  \
24124     /usr/pkg/include          \
24125                               \
24126     /usr/openwin/share/include"
24127
24128 echo "$as_me:$LINENO: checking for libraries directory" >&5
24129 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
24130
24131 case "${host}" in
24132     *-*-irix6* )
24133         if test "${wx_cv_std_libpath+set}" = set; then
24134   echo $ECHO_N "(cached) $ECHO_C" >&6
24135 else
24136
24137                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24138                     for e in a so sl dylib dll.a; do
24139                         libc="$d/libc.$e"
24140                         if test -f $libc; then
24141                             save_LIBS="$LIBS"
24142                             LIBS="$libc"
24143                             cat >conftest.$ac_ext <<_ACEOF
24144 int main() { return 0; }
24145 _ACEOF
24146 rm -f conftest.$ac_objext conftest$ac_exeext
24147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24148   (eval $ac_link) 2>conftest.er1
24149   ac_status=$?
24150   grep -v '^ *+' conftest.er1 >conftest.err
24151   rm -f conftest.er1
24152   cat conftest.err >&5
24153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154   (exit $ac_status); } &&
24155          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24157   (eval $ac_try) 2>&5
24158   ac_status=$?
24159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160   (exit $ac_status); }; } &&
24161          { ac_try='test -s conftest$ac_exeext'
24162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24163   (eval $ac_try) 2>&5
24164   ac_status=$?
24165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166   (exit $ac_status); }; }; then
24167   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24168 else
24169   echo "$as_me: failed program was:" >&5
24170 sed 's/^/| /' conftest.$ac_ext >&5
24171
24172 fi
24173 rm -f conftest.err conftest.$ac_objext \
24174       conftest$ac_exeext conftest.$ac_ext
24175                             LIBS="$save_LIBS"
24176                             if test "x$wx_cv_std_libpath" != "x"; then
24177                                 break 2
24178                             fi
24179                         fi
24180                     done
24181                 done
24182                 if test "x$wx_cv_std_libpath" = "x"; then
24183                     wx_cv_std_libpath="lib"
24184                 fi
24185
24186
24187 fi
24188
24189         ;;
24190
24191     *-*-solaris2* )
24192                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24193             wx_cv_std_libpath="lib/64"
24194         else
24195             wx_cv_std_libpath="lib"
24196         fi
24197         ;;
24198
24199     *-*-linux* )
24200                 if test "$ac_cv_sizeof_void_p" = 8 -a \
24201                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24202             wx_cv_std_libpath="lib64"
24203         else
24204             wx_cv_std_libpath="lib"
24205         fi
24206         ;;
24207
24208     *)
24209         wx_cv_std_libpath="lib";
24210         ;;
24211 esac
24212
24213 echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24214 echo "${ECHO_T}$wx_cv_std_libpath" >&6
24215
24216 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
24217
24218 if test "$build" != "$host" -a "$GCC" = yes; then
24219                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24220         cross_root=`dirname $cross_root`
24221         cross_root=`dirname $cross_root`
24222
24223                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24224         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24225         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
24226
24227                 if test -z "$PKG_CONFIG_PATH"; then
24228             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24229             export PKG_CONFIG_PATH
24230         fi
24231
24232                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
24233
24234 ac_find_includes=
24235 for ac_dir in $SEARCH_INCLUDE /usr/include;
24236   do
24237     if test -f "$ac_dir/X11/Intrinsic.h"; then
24238       ac_find_includes=$ac_dir
24239       break
24240     fi
24241   done
24242
24243             x_includes=$ac_find_includes
24244         fi
24245         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24246
24247   ac_find_libraries=
24248   for ac_dir in $SEARCH_LIB;
24249   do
24250     for ac_extension in a so sl dylib dll.a; do
24251       if test -f "$ac_dir/libXt.$ac_extension"; then
24252         ac_find_libraries=$ac_dir
24253         break 2
24254       fi
24255     done
24256   done
24257
24258             x_libraries=$ac_find_libraries
24259         fi
24260     fi
24261 fi
24262
24263
24264 cat >confcache <<\_ACEOF
24265 # This file is a shell script that caches the results of configure
24266 # tests run on this system so they can be shared between configure
24267 # scripts and configure runs, see configure's option --config-cache.
24268 # It is not useful on other systems.  If it contains results you don't
24269 # want to keep, you may remove or edit it.
24270 #
24271 # config.status only pays attention to the cache file if you give it
24272 # the --recheck option to rerun configure.
24273 #
24274 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24275 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24276 # following values.
24277
24278 _ACEOF
24279
24280 # The following way of writing the cache mishandles newlines in values,
24281 # but we know of no workaround that is simple, portable, and efficient.
24282 # So, don't put newlines in cache variables' values.
24283 # Ultrix sh set writes to stderr and can't be redirected directly,
24284 # and sets the high bit in the cache file unless we assign to the vars.
24285 {
24286   (set) 2>&1 |
24287     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24288     *ac_space=\ *)
24289       # `set' does not quote correctly, so add quotes (double-quote
24290       # substitution turns \\\\ into \\, and sed turns \\ into \).
24291       sed -n \
24292         "s/'/'\\\\''/g;
24293           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24294       ;;
24295     *)
24296       # `set' quotes correctly as required by POSIX, so do not add quotes.
24297       sed -n \
24298         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24299       ;;
24300     esac;
24301 } |
24302   sed '
24303      t clear
24304      : clear
24305      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24306      t end
24307      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24308      : end' >>confcache
24309 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24310   if test -w $cache_file; then
24311     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24312     cat confcache >$cache_file
24313   else
24314     echo "not updating unwritable cache $cache_file"
24315   fi
24316 fi
24317 rm -f confcache
24318
24319 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24320     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24321 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24322 if test "${wx_cv_lib_glibc21+set}" = set; then
24323   echo $ECHO_N "(cached) $ECHO_C" >&6
24324 else
24325
24326         cat >conftest.$ac_ext <<_ACEOF
24327 /* confdefs.h.  */
24328 _ACEOF
24329 cat confdefs.h >>conftest.$ac_ext
24330 cat >>conftest.$ac_ext <<_ACEOF
24331 /* end confdefs.h.  */
24332 #include <features.h>
24333 int
24334 main ()
24335 {
24336
24337                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
24338                 not glibc 2.1
24339                 #endif
24340
24341   ;
24342   return 0;
24343 }
24344 _ACEOF
24345 rm -f conftest.$ac_objext
24346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24347   (eval $ac_compile) 2>conftest.er1
24348   ac_status=$?
24349   grep -v '^ *+' conftest.er1 >conftest.err
24350   rm -f conftest.er1
24351   cat conftest.err >&5
24352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353   (exit $ac_status); } &&
24354          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24356   (eval $ac_try) 2>&5
24357   ac_status=$?
24358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359   (exit $ac_status); }; } &&
24360          { ac_try='test -s conftest.$ac_objext'
24361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24362   (eval $ac_try) 2>&5
24363   ac_status=$?
24364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365   (exit $ac_status); }; }; then
24366
24367                 wx_cv_lib_glibc21=yes
24368
24369 else
24370   echo "$as_me: failed program was:" >&5
24371 sed 's/^/| /' conftest.$ac_ext >&5
24372
24373
24374                 wx_cv_lib_glibc21=no
24375
24376
24377 fi
24378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24379
24380 fi
24381 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24382 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24383     if test "$wx_cv_lib_glibc21" = "yes"; then
24384         cat >>confdefs.h <<\_ACEOF
24385 #define wxHAVE_GLIBC2 1
24386 _ACEOF
24387
24388     fi
24389 fi
24390
24391 if test "x$wx_cv_lib_glibc21" = "xyes"; then
24392     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24393         cat >>confdefs.h <<\_ACEOF
24394 #define _GNU_SOURCE 1
24395 _ACEOF
24396
24397     fi
24398 fi
24399
24400 have_cos=0
24401 have_floor=0
24402
24403 for ac_func in cos
24404 do
24405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24406 echo "$as_me:$LINENO: checking for $ac_func" >&5
24407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24408 if eval "test \"\${$as_ac_var+set}\" = set"; then
24409   echo $ECHO_N "(cached) $ECHO_C" >&6
24410 else
24411   cat >conftest.$ac_ext <<_ACEOF
24412 /* confdefs.h.  */
24413 _ACEOF
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h.  */
24417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24419 #define $ac_func innocuous_$ac_func
24420
24421 /* System header to define __stub macros and hopefully few prototypes,
24422     which can conflict with char $ac_func (); below.
24423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24424     <limits.h> exists even on freestanding compilers.  */
24425
24426 #ifdef __STDC__
24427 # include <limits.h>
24428 #else
24429 # include <assert.h>
24430 #endif
24431
24432 #undef $ac_func
24433
24434 /* Override any gcc2 internal prototype to avoid an error.  */
24435 #ifdef __cplusplus
24436 extern "C"
24437 {
24438 #endif
24439 /* We use char because int might match the return type of a gcc2
24440    builtin and then its argument prototype would still apply.  */
24441 char $ac_func ();
24442 /* The GNU C library defines this for functions which it implements
24443     to always fail with ENOSYS.  Some functions are actually named
24444     something starting with __ and the normal name is an alias.  */
24445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24446 choke me
24447 #else
24448 char (*f) () = $ac_func;
24449 #endif
24450 #ifdef __cplusplus
24451 }
24452 #endif
24453
24454 int
24455 main ()
24456 {
24457 return f != $ac_func;
24458   ;
24459   return 0;
24460 }
24461 _ACEOF
24462 rm -f conftest.$ac_objext conftest$ac_exeext
24463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24464   (eval $ac_link) 2>conftest.er1
24465   ac_status=$?
24466   grep -v '^ *+' conftest.er1 >conftest.err
24467   rm -f conftest.er1
24468   cat conftest.err >&5
24469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470   (exit $ac_status); } &&
24471          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473   (eval $ac_try) 2>&5
24474   ac_status=$?
24475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476   (exit $ac_status); }; } &&
24477          { ac_try='test -s conftest$ac_exeext'
24478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479   (eval $ac_try) 2>&5
24480   ac_status=$?
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); }; }; then
24483   eval "$as_ac_var=yes"
24484 else
24485   echo "$as_me: failed program was:" >&5
24486 sed 's/^/| /' conftest.$ac_ext >&5
24487
24488 eval "$as_ac_var=no"
24489 fi
24490 rm -f conftest.err conftest.$ac_objext \
24491       conftest$ac_exeext conftest.$ac_ext
24492 fi
24493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24495 if test `eval echo '${'$as_ac_var'}'` = yes; then
24496   cat >>confdefs.h <<_ACEOF
24497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24498 _ACEOF
24499  have_cos=1
24500 fi
24501 done
24502
24503
24504 for ac_func in floor
24505 do
24506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24507 echo "$as_me:$LINENO: checking for $ac_func" >&5
24508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24509 if eval "test \"\${$as_ac_var+set}\" = set"; then
24510   echo $ECHO_N "(cached) $ECHO_C" >&6
24511 else
24512   cat >conftest.$ac_ext <<_ACEOF
24513 /* confdefs.h.  */
24514 _ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h.  */
24518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24519    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24520 #define $ac_func innocuous_$ac_func
24521
24522 /* System header to define __stub macros and hopefully few prototypes,
24523     which can conflict with char $ac_func (); below.
24524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24525     <limits.h> exists even on freestanding compilers.  */
24526
24527 #ifdef __STDC__
24528 # include <limits.h>
24529 #else
24530 # include <assert.h>
24531 #endif
24532
24533 #undef $ac_func
24534
24535 /* Override any gcc2 internal prototype to avoid an error.  */
24536 #ifdef __cplusplus
24537 extern "C"
24538 {
24539 #endif
24540 /* We use char because int might match the return type of a gcc2
24541    builtin and then its argument prototype would still apply.  */
24542 char $ac_func ();
24543 /* The GNU C library defines this for functions which it implements
24544     to always fail with ENOSYS.  Some functions are actually named
24545     something starting with __ and the normal name is an alias.  */
24546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24547 choke me
24548 #else
24549 char (*f) () = $ac_func;
24550 #endif
24551 #ifdef __cplusplus
24552 }
24553 #endif
24554
24555 int
24556 main ()
24557 {
24558 return f != $ac_func;
24559   ;
24560   return 0;
24561 }
24562 _ACEOF
24563 rm -f conftest.$ac_objext conftest$ac_exeext
24564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24565   (eval $ac_link) 2>conftest.er1
24566   ac_status=$?
24567   grep -v '^ *+' conftest.er1 >conftest.err
24568   rm -f conftest.er1
24569   cat conftest.err >&5
24570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571   (exit $ac_status); } &&
24572          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24574   (eval $ac_try) 2>&5
24575   ac_status=$?
24576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577   (exit $ac_status); }; } &&
24578          { ac_try='test -s conftest$ac_exeext'
24579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24580   (eval $ac_try) 2>&5
24581   ac_status=$?
24582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583   (exit $ac_status); }; }; then
24584   eval "$as_ac_var=yes"
24585 else
24586   echo "$as_me: failed program was:" >&5
24587 sed 's/^/| /' conftest.$ac_ext >&5
24588
24589 eval "$as_ac_var=no"
24590 fi
24591 rm -f conftest.err conftest.$ac_objext \
24592       conftest$ac_exeext conftest.$ac_ext
24593 fi
24594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24596 if test `eval echo '${'$as_ac_var'}'` = yes; then
24597   cat >>confdefs.h <<_ACEOF
24598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24599 _ACEOF
24600  have_floor=1
24601 fi
24602 done
24603
24604 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24605 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24606 if test "$have_cos" = 1 -a "$have_floor" = 1; then
24607     echo "$as_me:$LINENO: result: yes" >&5
24608 echo "${ECHO_T}yes" >&6
24609 else
24610     echo "$as_me:$LINENO: result: no" >&5
24611 echo "${ECHO_T}no" >&6
24612     LIBS="$LIBS -lm"
24613     # use different functions to avoid configure caching
24614     have_sin=0
24615     have_ceil=0
24616
24617 for ac_func in sin
24618 do
24619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24620 echo "$as_me:$LINENO: checking for $ac_func" >&5
24621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24622 if eval "test \"\${$as_ac_var+set}\" = set"; then
24623   echo $ECHO_N "(cached) $ECHO_C" >&6
24624 else
24625   cat >conftest.$ac_ext <<_ACEOF
24626 /* confdefs.h.  */
24627 _ACEOF
24628 cat confdefs.h >>conftest.$ac_ext
24629 cat >>conftest.$ac_ext <<_ACEOF
24630 /* end confdefs.h.  */
24631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24633 #define $ac_func innocuous_$ac_func
24634
24635 /* System header to define __stub macros and hopefully few prototypes,
24636     which can conflict with char $ac_func (); below.
24637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24638     <limits.h> exists even on freestanding compilers.  */
24639
24640 #ifdef __STDC__
24641 # include <limits.h>
24642 #else
24643 # include <assert.h>
24644 #endif
24645
24646 #undef $ac_func
24647
24648 /* Override any gcc2 internal prototype to avoid an error.  */
24649 #ifdef __cplusplus
24650 extern "C"
24651 {
24652 #endif
24653 /* We use char because int might match the return type of a gcc2
24654    builtin and then its argument prototype would still apply.  */
24655 char $ac_func ();
24656 /* The GNU C library defines this for functions which it implements
24657     to always fail with ENOSYS.  Some functions are actually named
24658     something starting with __ and the normal name is an alias.  */
24659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24660 choke me
24661 #else
24662 char (*f) () = $ac_func;
24663 #endif
24664 #ifdef __cplusplus
24665 }
24666 #endif
24667
24668 int
24669 main ()
24670 {
24671 return f != $ac_func;
24672   ;
24673   return 0;
24674 }
24675 _ACEOF
24676 rm -f conftest.$ac_objext conftest$ac_exeext
24677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24678   (eval $ac_link) 2>conftest.er1
24679   ac_status=$?
24680   grep -v '^ *+' conftest.er1 >conftest.err
24681   rm -f conftest.er1
24682   cat conftest.err >&5
24683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684   (exit $ac_status); } &&
24685          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24687   (eval $ac_try) 2>&5
24688   ac_status=$?
24689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690   (exit $ac_status); }; } &&
24691          { ac_try='test -s conftest$ac_exeext'
24692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24693   (eval $ac_try) 2>&5
24694   ac_status=$?
24695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24696   (exit $ac_status); }; }; then
24697   eval "$as_ac_var=yes"
24698 else
24699   echo "$as_me: failed program was:" >&5
24700 sed 's/^/| /' conftest.$ac_ext >&5
24701
24702 eval "$as_ac_var=no"
24703 fi
24704 rm -f conftest.err conftest.$ac_objext \
24705       conftest$ac_exeext conftest.$ac_ext
24706 fi
24707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24709 if test `eval echo '${'$as_ac_var'}'` = yes; then
24710   cat >>confdefs.h <<_ACEOF
24711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24712 _ACEOF
24713  have_sin=1
24714 fi
24715 done
24716
24717
24718 for ac_func in ceil
24719 do
24720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24721 echo "$as_me:$LINENO: checking for $ac_func" >&5
24722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24723 if eval "test \"\${$as_ac_var+set}\" = set"; then
24724   echo $ECHO_N "(cached) $ECHO_C" >&6
24725 else
24726   cat >conftest.$ac_ext <<_ACEOF
24727 /* confdefs.h.  */
24728 _ACEOF
24729 cat confdefs.h >>conftest.$ac_ext
24730 cat >>conftest.$ac_ext <<_ACEOF
24731 /* end confdefs.h.  */
24732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24734 #define $ac_func innocuous_$ac_func
24735
24736 /* System header to define __stub macros and hopefully few prototypes,
24737     which can conflict with char $ac_func (); below.
24738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24739     <limits.h> exists even on freestanding compilers.  */
24740
24741 #ifdef __STDC__
24742 # include <limits.h>
24743 #else
24744 # include <assert.h>
24745 #endif
24746
24747 #undef $ac_func
24748
24749 /* Override any gcc2 internal prototype to avoid an error.  */
24750 #ifdef __cplusplus
24751 extern "C"
24752 {
24753 #endif
24754 /* We use char because int might match the return type of a gcc2
24755    builtin and then its argument prototype would still apply.  */
24756 char $ac_func ();
24757 /* The GNU C library defines this for functions which it implements
24758     to always fail with ENOSYS.  Some functions are actually named
24759     something starting with __ and the normal name is an alias.  */
24760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24761 choke me
24762 #else
24763 char (*f) () = $ac_func;
24764 #endif
24765 #ifdef __cplusplus
24766 }
24767 #endif
24768
24769 int
24770 main ()
24771 {
24772 return f != $ac_func;
24773   ;
24774   return 0;
24775 }
24776 _ACEOF
24777 rm -f conftest.$ac_objext conftest$ac_exeext
24778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24779   (eval $ac_link) 2>conftest.er1
24780   ac_status=$?
24781   grep -v '^ *+' conftest.er1 >conftest.err
24782   rm -f conftest.er1
24783   cat conftest.err >&5
24784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785   (exit $ac_status); } &&
24786          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24788   (eval $ac_try) 2>&5
24789   ac_status=$?
24790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791   (exit $ac_status); }; } &&
24792          { ac_try='test -s conftest$ac_exeext'
24793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24794   (eval $ac_try) 2>&5
24795   ac_status=$?
24796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797   (exit $ac_status); }; }; then
24798   eval "$as_ac_var=yes"
24799 else
24800   echo "$as_me: failed program was:" >&5
24801 sed 's/^/| /' conftest.$ac_ext >&5
24802
24803 eval "$as_ac_var=no"
24804 fi
24805 rm -f conftest.err conftest.$ac_objext \
24806       conftest$ac_exeext conftest.$ac_ext
24807 fi
24808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24809 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24810 if test `eval echo '${'$as_ac_var'}'` = yes; then
24811   cat >>confdefs.h <<_ACEOF
24812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24813 _ACEOF
24814  have_ceil=1
24815 fi
24816 done
24817
24818     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24819 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24820     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24821         echo "$as_me:$LINENO: result: yes" >&5
24822 echo "${ECHO_T}yes" >&6
24823     else
24824         echo "$as_me:$LINENO: result: no" >&5
24825 echo "${ECHO_T}no" >&6
24826         # not sure we should warn the user, crash, etc.
24827     fi
24828 fi
24829
24830 if test "wxUSE_UNICODE" = "yes"; then
24831
24832   for wx_func in wcstoull
24833   do
24834     echo "$as_me:$LINENO: checking for $wx_func" >&5
24835 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
24836 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
24837   echo $ECHO_N "(cached) $ECHO_C" >&6
24838 else
24839
24840         cat >conftest.$ac_ext <<_ACEOF
24841
24842             /* confdefs.h.  */
24843 _ACEOF
24844 cat confdefs.h >>conftest.$ac_ext
24845 cat >>conftest.$ac_ext <<_ACEOF
24846 /* end confdefs.h.  */
24847
24848
24849                 $ac_includes_default
24850
24851 int
24852 main ()
24853 {
24854
24855                 #ifndef $wx_func
24856                   &$wx_func;
24857                 #endif
24858
24859
24860   ;
24861   return 0;
24862 }
24863
24864 _ACEOF
24865 rm -f conftest.$ac_objext conftest$ac_exeext
24866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24867   (eval $ac_link) 2>conftest.er1
24868   ac_status=$?
24869   grep -v '^ *+' conftest.er1 >conftest.err
24870   rm -f conftest.er1
24871   cat conftest.err >&5
24872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873   (exit $ac_status); } &&
24874          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24876   (eval $ac_try) 2>&5
24877   ac_status=$?
24878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879   (exit $ac_status); }; } &&
24880          { ac_try='test -s conftest$ac_exeext'
24881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24882   (eval $ac_try) 2>&5
24883   ac_status=$?
24884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885   (exit $ac_status); }; }; then
24886   eval wx_cv_func_$wx_func=yes
24887 else
24888   echo "$as_me: failed program was:" >&5
24889 sed 's/^/| /' conftest.$ac_ext >&5
24890
24891 eval wx_cv_func_$wx_func=no
24892 fi
24893 rm -f conftest.err conftest.$ac_objext \
24894       conftest$ac_exeext conftest.$ac_ext
24895
24896 fi
24897 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
24898 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
24899
24900     if eval test \$wx_cv_func_$wx_func = yes
24901     then
24902       cat >>confdefs.h <<_ACEOF
24903 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
24904 _ACEOF
24905
24906
24907     else
24908       :
24909
24910     fi
24911   done
24912
24913 else
24914
24915   for wx_func in strtoull
24916   do
24917     echo "$as_me:$LINENO: checking for $wx_func" >&5
24918 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
24919 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
24920   echo $ECHO_N "(cached) $ECHO_C" >&6
24921 else
24922
24923         cat >conftest.$ac_ext <<_ACEOF
24924
24925             /* confdefs.h.  */
24926 _ACEOF
24927 cat confdefs.h >>conftest.$ac_ext
24928 cat >>conftest.$ac_ext <<_ACEOF
24929 /* end confdefs.h.  */
24930
24931
24932                 $ac_includes_default
24933
24934 int
24935 main ()
24936 {
24937
24938                 #ifndef $wx_func
24939                   &$wx_func;
24940                 #endif
24941
24942
24943   ;
24944   return 0;
24945 }
24946
24947 _ACEOF
24948 rm -f conftest.$ac_objext conftest$ac_exeext
24949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24950   (eval $ac_link) 2>conftest.er1
24951   ac_status=$?
24952   grep -v '^ *+' conftest.er1 >conftest.err
24953   rm -f conftest.er1
24954   cat conftest.err >&5
24955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956   (exit $ac_status); } &&
24957          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24959   (eval $ac_try) 2>&5
24960   ac_status=$?
24961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962   (exit $ac_status); }; } &&
24963          { ac_try='test -s conftest$ac_exeext'
24964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24965   (eval $ac_try) 2>&5
24966   ac_status=$?
24967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968   (exit $ac_status); }; }; then
24969   eval wx_cv_func_$wx_func=yes
24970 else
24971   echo "$as_me: failed program was:" >&5
24972 sed 's/^/| /' conftest.$ac_ext >&5
24973
24974 eval wx_cv_func_$wx_func=no
24975 fi
24976 rm -f conftest.err conftest.$ac_objext \
24977       conftest$ac_exeext conftest.$ac_ext
24978
24979 fi
24980 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
24981 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
24982
24983     if eval test \$wx_cv_func_$wx_func = yes
24984     then
24985       cat >>confdefs.h <<_ACEOF
24986 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
24987 _ACEOF
24988
24989
24990     else
24991       :
24992
24993     fi
24994   done
24995
24996 fi
24997
24998
24999
25000 if test "$wxUSE_REGEX" != "no"; then
25001     cat >>confdefs.h <<\_ACEOF
25002 #define wxUSE_REGEX 1
25003 _ACEOF
25004
25005
25006     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25007         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25008 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25009         wxUSE_REGEX=builtin
25010     fi
25011
25012     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25013                         if test "${ac_cv_header_regex_h+set}" = set; then
25014   echo "$as_me:$LINENO: checking for regex.h" >&5
25015 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25016 if test "${ac_cv_header_regex_h+set}" = set; then
25017   echo $ECHO_N "(cached) $ECHO_C" >&6
25018 fi
25019 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25020 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25021 else
25022   # Is the header compilable?
25023 echo "$as_me:$LINENO: checking regex.h usability" >&5
25024 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
25025 cat >conftest.$ac_ext <<_ACEOF
25026 /* confdefs.h.  */
25027 _ACEOF
25028 cat confdefs.h >>conftest.$ac_ext
25029 cat >>conftest.$ac_ext <<_ACEOF
25030 /* end confdefs.h.  */
25031 $ac_includes_default
25032 #include <regex.h>
25033 _ACEOF
25034 rm -f conftest.$ac_objext
25035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25036   (eval $ac_compile) 2>conftest.er1
25037   ac_status=$?
25038   grep -v '^ *+' conftest.er1 >conftest.err
25039   rm -f conftest.er1
25040   cat conftest.err >&5
25041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042   (exit $ac_status); } &&
25043          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25045   (eval $ac_try) 2>&5
25046   ac_status=$?
25047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048   (exit $ac_status); }; } &&
25049          { ac_try='test -s conftest.$ac_objext'
25050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25051   (eval $ac_try) 2>&5
25052   ac_status=$?
25053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054   (exit $ac_status); }; }; then
25055   ac_header_compiler=yes
25056 else
25057   echo "$as_me: failed program was:" >&5
25058 sed 's/^/| /' conftest.$ac_ext >&5
25059
25060 ac_header_compiler=no
25061 fi
25062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25064 echo "${ECHO_T}$ac_header_compiler" >&6
25065
25066 # Is the header present?
25067 echo "$as_me:$LINENO: checking regex.h presence" >&5
25068 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
25069 cat >conftest.$ac_ext <<_ACEOF
25070 /* confdefs.h.  */
25071 _ACEOF
25072 cat confdefs.h >>conftest.$ac_ext
25073 cat >>conftest.$ac_ext <<_ACEOF
25074 /* end confdefs.h.  */
25075 #include <regex.h>
25076 _ACEOF
25077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25078   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25079   ac_status=$?
25080   grep -v '^ *+' conftest.er1 >conftest.err
25081   rm -f conftest.er1
25082   cat conftest.err >&5
25083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084   (exit $ac_status); } >/dev/null; then
25085   if test -s conftest.err; then
25086     ac_cpp_err=$ac_c_preproc_warn_flag
25087     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25088   else
25089     ac_cpp_err=
25090   fi
25091 else
25092   ac_cpp_err=yes
25093 fi
25094 if test -z "$ac_cpp_err"; then
25095   ac_header_preproc=yes
25096 else
25097   echo "$as_me: failed program was:" >&5
25098 sed 's/^/| /' conftest.$ac_ext >&5
25099
25100   ac_header_preproc=no
25101 fi
25102 rm -f conftest.err conftest.$ac_ext
25103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25104 echo "${ECHO_T}$ac_header_preproc" >&6
25105
25106 # So?  What about this header?
25107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25108   yes:no: )
25109     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25110 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25111     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
25112 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
25113     ac_header_preproc=yes
25114     ;;
25115   no:yes:* )
25116     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
25117 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
25118     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
25119 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
25120     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
25121 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
25122     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
25123 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25124     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
25125 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25126     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25127 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
25128     (
25129       cat <<\_ASBOX
25130 ## ----------------------------------------- ##
25131 ## Report this to wx-dev@lists.wxwidgets.org ##
25132 ## ----------------------------------------- ##
25133 _ASBOX
25134     ) |
25135       sed "s/^/$as_me: WARNING:     /" >&2
25136     ;;
25137 esac
25138 echo "$as_me:$LINENO: checking for regex.h" >&5
25139 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25140 if test "${ac_cv_header_regex_h+set}" = set; then
25141   echo $ECHO_N "(cached) $ECHO_C" >&6
25142 else
25143   ac_cv_header_regex_h=$ac_header_preproc
25144 fi
25145 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25146 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25147
25148 fi
25149 if test $ac_cv_header_regex_h = yes; then
25150
25151
25152 for ac_func in regcomp re_search
25153 do
25154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25155 echo "$as_me:$LINENO: checking for $ac_func" >&5
25156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25157 if eval "test \"\${$as_ac_var+set}\" = set"; then
25158   echo $ECHO_N "(cached) $ECHO_C" >&6
25159 else
25160   cat >conftest.$ac_ext <<_ACEOF
25161 /* confdefs.h.  */
25162 _ACEOF
25163 cat confdefs.h >>conftest.$ac_ext
25164 cat >>conftest.$ac_ext <<_ACEOF
25165 /* end confdefs.h.  */
25166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25168 #define $ac_func innocuous_$ac_func
25169
25170 /* System header to define __stub macros and hopefully few prototypes,
25171     which can conflict with char $ac_func (); below.
25172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25173     <limits.h> exists even on freestanding compilers.  */
25174
25175 #ifdef __STDC__
25176 # include <limits.h>
25177 #else
25178 # include <assert.h>
25179 #endif
25180
25181 #undef $ac_func
25182
25183 /* Override any gcc2 internal prototype to avoid an error.  */
25184 #ifdef __cplusplus
25185 extern "C"
25186 {
25187 #endif
25188 /* We use char because int might match the return type of a gcc2
25189    builtin and then its argument prototype would still apply.  */
25190 char $ac_func ();
25191 /* The GNU C library defines this for functions which it implements
25192     to always fail with ENOSYS.  Some functions are actually named
25193     something starting with __ and the normal name is an alias.  */
25194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25195 choke me
25196 #else
25197 char (*f) () = $ac_func;
25198 #endif
25199 #ifdef __cplusplus
25200 }
25201 #endif
25202
25203 int
25204 main ()
25205 {
25206 return f != $ac_func;
25207   ;
25208   return 0;
25209 }
25210 _ACEOF
25211 rm -f conftest.$ac_objext conftest$ac_exeext
25212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25213   (eval $ac_link) 2>conftest.er1
25214   ac_status=$?
25215   grep -v '^ *+' conftest.er1 >conftest.err
25216   rm -f conftest.er1
25217   cat conftest.err >&5
25218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219   (exit $ac_status); } &&
25220          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25222   (eval $ac_try) 2>&5
25223   ac_status=$?
25224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225   (exit $ac_status); }; } &&
25226          { ac_try='test -s conftest$ac_exeext'
25227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25228   (eval $ac_try) 2>&5
25229   ac_status=$?
25230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231   (exit $ac_status); }; }; then
25232   eval "$as_ac_var=yes"
25233 else
25234   echo "$as_me: failed program was:" >&5
25235 sed 's/^/| /' conftest.$ac_ext >&5
25236
25237 eval "$as_ac_var=no"
25238 fi
25239 rm -f conftest.err conftest.$ac_objext \
25240       conftest$ac_exeext conftest.$ac_ext
25241 fi
25242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25244 if test `eval echo '${'$as_ac_var'}'` = yes; then
25245   cat >>confdefs.h <<_ACEOF
25246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25247 _ACEOF
25248
25249 fi
25250 done
25251
25252 fi
25253
25254
25255
25256         if test "x$ac_cv_func_regcomp" != "xyes"; then
25257             if test "$wxUSE_REGEX" = "sys" ; then
25258                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25259 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25260    { (exit 1); exit 1; }; }
25261             else
25262                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25263 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25264                 wxUSE_REGEX=builtin
25265             fi
25266         else
25267                         wxUSE_REGEX=sys
25268                         cat >>confdefs.h <<\_ACEOF
25269 #define WX_NO_REGEX_ADVANCED 1
25270 _ACEOF
25271
25272         fi
25273     fi
25274 fi
25275
25276
25277 ZLIB_LINK=
25278 if test "$wxUSE_ZLIB" != "no" ; then
25279     cat >>confdefs.h <<\_ACEOF
25280 #define wxUSE_ZLIB 1
25281 _ACEOF
25282
25283
25284     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25285                                                 if test "$USE_DARWIN" = 1; then
25286             system_zlib_h_ok="yes"
25287         else
25288                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25289 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25290 if test "${ac_cv_header_zlib_h+set}" = set; then
25291   echo $ECHO_N "(cached) $ECHO_C" >&6
25292 else
25293   if test "$cross_compiling" = yes; then
25294                       unset ac_cv_header_zlib_h
25295
25296 else
25297   cat >conftest.$ac_ext <<_ACEOF
25298 /* confdefs.h.  */
25299 _ACEOF
25300 cat confdefs.h >>conftest.$ac_ext
25301 cat >>conftest.$ac_ext <<_ACEOF
25302 /* end confdefs.h.  */
25303
25304                         #include <zlib.h>
25305                         #include <stdio.h>
25306
25307                         int main()
25308                         {
25309                             FILE *f=fopen("conftestval", "w");
25310                             if (!f) exit(1);
25311                             fprintf(f, "%s",
25312                                     ZLIB_VERSION[0] == '1' &&
25313                                     (ZLIB_VERSION[2] > '1' ||
25314                                     (ZLIB_VERSION[2] == '1' &&
25315                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25316                             exit(0);
25317                         }
25318
25319 _ACEOF
25320 rm -f conftest$ac_exeext
25321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25322   (eval $ac_link) 2>&5
25323   ac_status=$?
25324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25327   (eval $ac_try) 2>&5
25328   ac_status=$?
25329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330   (exit $ac_status); }; }; then
25331   ac_cv_header_zlib_h=`cat conftestval`
25332 else
25333   echo "$as_me: program exited with status $ac_status" >&5
25334 echo "$as_me: failed program was:" >&5
25335 sed 's/^/| /' conftest.$ac_ext >&5
25336
25337 ( exit $ac_status )
25338 ac_cv_header_zlib_h=no
25339 fi
25340 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25341 fi
25342
25343 fi
25344 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25345 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25346                                     if test "${ac_cv_header_zlib_h+set}" = set; then
25347   echo "$as_me:$LINENO: checking for zlib.h" >&5
25348 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25349 if test "${ac_cv_header_zlib_h+set}" = set; then
25350   echo $ECHO_N "(cached) $ECHO_C" >&6
25351 fi
25352 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25353 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25354 else
25355   # Is the header compilable?
25356 echo "$as_me:$LINENO: checking zlib.h usability" >&5
25357 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25358 cat >conftest.$ac_ext <<_ACEOF
25359 /* confdefs.h.  */
25360 _ACEOF
25361 cat confdefs.h >>conftest.$ac_ext
25362 cat >>conftest.$ac_ext <<_ACEOF
25363 /* end confdefs.h.  */
25364 $ac_includes_default
25365 #include <zlib.h>
25366 _ACEOF
25367 rm -f conftest.$ac_objext
25368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25369   (eval $ac_compile) 2>conftest.er1
25370   ac_status=$?
25371   grep -v '^ *+' conftest.er1 >conftest.err
25372   rm -f conftest.er1
25373   cat conftest.err >&5
25374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375   (exit $ac_status); } &&
25376          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25378   (eval $ac_try) 2>&5
25379   ac_status=$?
25380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381   (exit $ac_status); }; } &&
25382          { ac_try='test -s conftest.$ac_objext'
25383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384   (eval $ac_try) 2>&5
25385   ac_status=$?
25386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387   (exit $ac_status); }; }; then
25388   ac_header_compiler=yes
25389 else
25390   echo "$as_me: failed program was:" >&5
25391 sed 's/^/| /' conftest.$ac_ext >&5
25392
25393 ac_header_compiler=no
25394 fi
25395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25397 echo "${ECHO_T}$ac_header_compiler" >&6
25398
25399 # Is the header present?
25400 echo "$as_me:$LINENO: checking zlib.h presence" >&5
25401 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25402 cat >conftest.$ac_ext <<_ACEOF
25403 /* confdefs.h.  */
25404 _ACEOF
25405 cat confdefs.h >>conftest.$ac_ext
25406 cat >>conftest.$ac_ext <<_ACEOF
25407 /* end confdefs.h.  */
25408 #include <zlib.h>
25409 _ACEOF
25410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25412   ac_status=$?
25413   grep -v '^ *+' conftest.er1 >conftest.err
25414   rm -f conftest.er1
25415   cat conftest.err >&5
25416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417   (exit $ac_status); } >/dev/null; then
25418   if test -s conftest.err; then
25419     ac_cpp_err=$ac_c_preproc_warn_flag
25420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25421   else
25422     ac_cpp_err=
25423   fi
25424 else
25425   ac_cpp_err=yes
25426 fi
25427 if test -z "$ac_cpp_err"; then
25428   ac_header_preproc=yes
25429 else
25430   echo "$as_me: failed program was:" >&5
25431 sed 's/^/| /' conftest.$ac_ext >&5
25432
25433   ac_header_preproc=no
25434 fi
25435 rm -f conftest.err conftest.$ac_ext
25436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25437 echo "${ECHO_T}$ac_header_preproc" >&6
25438
25439 # So?  What about this header?
25440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25441   yes:no: )
25442     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25443 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25444     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25445 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25446     ac_header_preproc=yes
25447     ;;
25448   no:yes:* )
25449     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25450 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
25451     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
25452 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
25453     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25454 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25455     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
25456 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25457     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25458 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
25459     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25460 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
25461     (
25462       cat <<\_ASBOX
25463 ## ----------------------------------------- ##
25464 ## Report this to wx-dev@lists.wxwidgets.org ##
25465 ## ----------------------------------------- ##
25466 _ASBOX
25467     ) |
25468       sed "s/^/$as_me: WARNING:     /" >&2
25469     ;;
25470 esac
25471 echo "$as_me:$LINENO: checking for zlib.h" >&5
25472 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25473 if test "${ac_cv_header_zlib_h+set}" = set; then
25474   echo $ECHO_N "(cached) $ECHO_C" >&6
25475 else
25476   ac_cv_header_zlib_h=$ac_header_preproc
25477 fi
25478 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25479 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25480
25481 fi
25482
25483
25484
25485             system_zlib_h_ok=$ac_cv_header_zlib_h
25486         fi
25487
25488         if test "$system_zlib_h_ok" = "yes"; then
25489             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25490 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25491 if test "${ac_cv_lib_z_deflate+set}" = set; then
25492   echo $ECHO_N "(cached) $ECHO_C" >&6
25493 else
25494   ac_check_lib_save_LIBS=$LIBS
25495 LIBS="-lz  $LIBS"
25496 cat >conftest.$ac_ext <<_ACEOF
25497 /* confdefs.h.  */
25498 _ACEOF
25499 cat confdefs.h >>conftest.$ac_ext
25500 cat >>conftest.$ac_ext <<_ACEOF
25501 /* end confdefs.h.  */
25502
25503 /* Override any gcc2 internal prototype to avoid an error.  */
25504 #ifdef __cplusplus
25505 extern "C"
25506 #endif
25507 /* We use char because int might match the return type of a gcc2
25508    builtin and then its argument prototype would still apply.  */
25509 char deflate ();
25510 int
25511 main ()
25512 {
25513 deflate ();
25514   ;
25515   return 0;
25516 }
25517 _ACEOF
25518 rm -f conftest.$ac_objext conftest$ac_exeext
25519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25520   (eval $ac_link) 2>conftest.er1
25521   ac_status=$?
25522   grep -v '^ *+' conftest.er1 >conftest.err
25523   rm -f conftest.er1
25524   cat conftest.err >&5
25525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526   (exit $ac_status); } &&
25527          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25529   (eval $ac_try) 2>&5
25530   ac_status=$?
25531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532   (exit $ac_status); }; } &&
25533          { ac_try='test -s conftest$ac_exeext'
25534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25535   (eval $ac_try) 2>&5
25536   ac_status=$?
25537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538   (exit $ac_status); }; }; then
25539   ac_cv_lib_z_deflate=yes
25540 else
25541   echo "$as_me: failed program was:" >&5
25542 sed 's/^/| /' conftest.$ac_ext >&5
25543
25544 ac_cv_lib_z_deflate=no
25545 fi
25546 rm -f conftest.err conftest.$ac_objext \
25547       conftest$ac_exeext conftest.$ac_ext
25548 LIBS=$ac_check_lib_save_LIBS
25549 fi
25550 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25551 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25552 if test $ac_cv_lib_z_deflate = yes; then
25553   ZLIB_LINK=" -lz"
25554 fi
25555
25556         fi
25557
25558         if test "x$ZLIB_LINK" = "x" ; then
25559             if test "$wxUSE_ZLIB" = "sys" ; then
25560                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25561 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25562    { (exit 1); exit 1; }; }
25563             else
25564                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25565 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25566                 wxUSE_ZLIB=builtin
25567             fi
25568         else
25569                         wxUSE_ZLIB=sys
25570         fi
25571     fi
25572 fi
25573
25574
25575 PNG_LINK=
25576 if test "$wxUSE_LIBPNG" != "no" ; then
25577     cat >>confdefs.h <<\_ACEOF
25578 #define wxUSE_LIBPNG 1
25579 _ACEOF
25580
25581
25582     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25583         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25584 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25585         wxUSE_LIBPNG=sys
25586     fi
25587
25588                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25589         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25590 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25591         wxUSE_LIBPNG=builtin
25592     fi
25593
25594     if test "$wxUSE_MGL" != 1 ; then
25595                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25596                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25597 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25598 if test "${ac_cv_header_png_h+set}" = set; then
25599   echo $ECHO_N "(cached) $ECHO_C" >&6
25600 else
25601   if test "$cross_compiling" = yes; then
25602                       unset ac_cv_header_png_h
25603
25604 else
25605   cat >conftest.$ac_ext <<_ACEOF
25606 /* confdefs.h.  */
25607 _ACEOF
25608 cat confdefs.h >>conftest.$ac_ext
25609 cat >>conftest.$ac_ext <<_ACEOF
25610 /* end confdefs.h.  */
25611
25612                         #include <png.h>
25613                         #include <stdio.h>
25614
25615                         int main()
25616                         {
25617                             FILE *f=fopen("conftestval", "w");
25618                             if (!f) exit(1);
25619                             fprintf(f, "%s",
25620                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
25621                             exit(0);
25622                         }
25623
25624 _ACEOF
25625 rm -f conftest$ac_exeext
25626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25627   (eval $ac_link) 2>&5
25628   ac_status=$?
25629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25632   (eval $ac_try) 2>&5
25633   ac_status=$?
25634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635   (exit $ac_status); }; }; then
25636   ac_cv_header_png_h=`cat conftestval`
25637 else
25638   echo "$as_me: program exited with status $ac_status" >&5
25639 echo "$as_me: failed program was:" >&5
25640 sed 's/^/| /' conftest.$ac_ext >&5
25641
25642 ( exit $ac_status )
25643 ac_cv_header_png_h=no
25644 fi
25645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25646 fi
25647
25648 fi
25649 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25650 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25651             if test "${ac_cv_header_png_h+set}" = set; then
25652   echo "$as_me:$LINENO: checking for png.h" >&5
25653 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25654 if test "${ac_cv_header_png_h+set}" = set; then
25655   echo $ECHO_N "(cached) $ECHO_C" >&6
25656 fi
25657 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25658 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25659 else
25660   # Is the header compilable?
25661 echo "$as_me:$LINENO: checking png.h usability" >&5
25662 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25663 cat >conftest.$ac_ext <<_ACEOF
25664 /* confdefs.h.  */
25665 _ACEOF
25666 cat confdefs.h >>conftest.$ac_ext
25667 cat >>conftest.$ac_ext <<_ACEOF
25668 /* end confdefs.h.  */
25669 $ac_includes_default
25670 #include <png.h>
25671 _ACEOF
25672 rm -f conftest.$ac_objext
25673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25674   (eval $ac_compile) 2>conftest.er1
25675   ac_status=$?
25676   grep -v '^ *+' conftest.er1 >conftest.err
25677   rm -f conftest.er1
25678   cat conftest.err >&5
25679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680   (exit $ac_status); } &&
25681          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25683   (eval $ac_try) 2>&5
25684   ac_status=$?
25685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686   (exit $ac_status); }; } &&
25687          { ac_try='test -s conftest.$ac_objext'
25688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25689   (eval $ac_try) 2>&5
25690   ac_status=$?
25691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692   (exit $ac_status); }; }; then
25693   ac_header_compiler=yes
25694 else
25695   echo "$as_me: failed program was:" >&5
25696 sed 's/^/| /' conftest.$ac_ext >&5
25697
25698 ac_header_compiler=no
25699 fi
25700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25701 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25702 echo "${ECHO_T}$ac_header_compiler" >&6
25703
25704 # Is the header present?
25705 echo "$as_me:$LINENO: checking png.h presence" >&5
25706 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25707 cat >conftest.$ac_ext <<_ACEOF
25708 /* confdefs.h.  */
25709 _ACEOF
25710 cat confdefs.h >>conftest.$ac_ext
25711 cat >>conftest.$ac_ext <<_ACEOF
25712 /* end confdefs.h.  */
25713 #include <png.h>
25714 _ACEOF
25715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25716   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
25723   if test -s conftest.err; then
25724     ac_cpp_err=$ac_c_preproc_warn_flag
25725     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25726   else
25727     ac_cpp_err=
25728   fi
25729 else
25730   ac_cpp_err=yes
25731 fi
25732 if test -z "$ac_cpp_err"; then
25733   ac_header_preproc=yes
25734 else
25735   echo "$as_me: failed program was:" >&5
25736 sed 's/^/| /' conftest.$ac_ext >&5
25737
25738   ac_header_preproc=no
25739 fi
25740 rm -f conftest.err conftest.$ac_ext
25741 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25742 echo "${ECHO_T}$ac_header_preproc" >&6
25743
25744 # So?  What about this header?
25745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25746   yes:no: )
25747     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25748 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25749     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25750 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25751     ac_header_preproc=yes
25752     ;;
25753   no:yes:* )
25754     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25755 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
25756     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
25757 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
25758     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25759 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25760     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
25761 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25762     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25763 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
25764     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25765 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
25766     (
25767       cat <<\_ASBOX
25768 ## ----------------------------------------- ##
25769 ## Report this to wx-dev@lists.wxwidgets.org ##
25770 ## ----------------------------------------- ##
25771 _ASBOX
25772     ) |
25773       sed "s/^/$as_me: WARNING:     /" >&2
25774     ;;
25775 esac
25776 echo "$as_me:$LINENO: checking for png.h" >&5
25777 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25778 if test "${ac_cv_header_png_h+set}" = set; then
25779   echo $ECHO_N "(cached) $ECHO_C" >&6
25780 else
25781   ac_cv_header_png_h=$ac_header_preproc
25782 fi
25783 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25784 echo "${ECHO_T}$ac_cv_header_png_h" >&6
25785
25786 fi
25787
25788
25789
25790             if test "$ac_cv_header_png_h" = "yes"; then
25791                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25792 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25793 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25794   echo $ECHO_N "(cached) $ECHO_C" >&6
25795 else
25796   ac_check_lib_save_LIBS=$LIBS
25797 LIBS="-lpng -lz -lm $LIBS"
25798 cat >conftest.$ac_ext <<_ACEOF
25799 /* confdefs.h.  */
25800 _ACEOF
25801 cat confdefs.h >>conftest.$ac_ext
25802 cat >>conftest.$ac_ext <<_ACEOF
25803 /* end confdefs.h.  */
25804
25805 /* Override any gcc2 internal prototype to avoid an error.  */
25806 #ifdef __cplusplus
25807 extern "C"
25808 #endif
25809 /* We use char because int might match the return type of a gcc2
25810    builtin and then its argument prototype would still apply.  */
25811 char png_check_sig ();
25812 int
25813 main ()
25814 {
25815 png_check_sig ();
25816   ;
25817   return 0;
25818 }
25819 _ACEOF
25820 rm -f conftest.$ac_objext conftest$ac_exeext
25821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25822   (eval $ac_link) 2>conftest.er1
25823   ac_status=$?
25824   grep -v '^ *+' conftest.er1 >conftest.err
25825   rm -f conftest.er1
25826   cat conftest.err >&5
25827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828   (exit $ac_status); } &&
25829          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25831   (eval $ac_try) 2>&5
25832   ac_status=$?
25833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834   (exit $ac_status); }; } &&
25835          { ac_try='test -s conftest$ac_exeext'
25836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25837   (eval $ac_try) 2>&5
25838   ac_status=$?
25839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840   (exit $ac_status); }; }; then
25841   ac_cv_lib_png_png_check_sig=yes
25842 else
25843   echo "$as_me: failed program was:" >&5
25844 sed 's/^/| /' conftest.$ac_ext >&5
25845
25846 ac_cv_lib_png_png_check_sig=no
25847 fi
25848 rm -f conftest.err conftest.$ac_objext \
25849       conftest$ac_exeext conftest.$ac_ext
25850 LIBS=$ac_check_lib_save_LIBS
25851 fi
25852 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25853 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25854 if test $ac_cv_lib_png_png_check_sig = yes; then
25855   PNG_LINK=" -lpng -lz"
25856 fi
25857
25858             fi
25859
25860             if test "x$PNG_LINK" = "x" ; then
25861                 if test "$wxUSE_LIBPNG" = "sys" ; then
25862                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25863 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25864    { (exit 1); exit 1; }; }
25865                 else
25866                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25867 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25868                     wxUSE_LIBPNG=builtin
25869                 fi
25870             else
25871                                 wxUSE_LIBPNG=sys
25872             fi
25873         fi
25874     fi
25875
25876     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25877 fi
25878
25879
25880 JPEG_LINK=
25881 if test "$wxUSE_LIBJPEG" != "no" ; then
25882     cat >>confdefs.h <<\_ACEOF
25883 #define wxUSE_LIBJPEG 1
25884 _ACEOF
25885
25886
25887     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25888         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25889 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25890         wxUSE_LIBJPEG=sys
25891     fi
25892
25893     if test "$wxUSE_MGL" != 1 ; then
25894                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25895                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25896 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25897             if test "${ac_cv_header_jpeglib_h+set}" = set; then
25898   echo $ECHO_N "(cached) $ECHO_C" >&6
25899 else
25900   cat >conftest.$ac_ext <<_ACEOF
25901 /* confdefs.h.  */
25902 _ACEOF
25903 cat confdefs.h >>conftest.$ac_ext
25904 cat >>conftest.$ac_ext <<_ACEOF
25905 /* end confdefs.h.  */
25906
25907                         #undef HAVE_STDLIB_H
25908                         #include <stdio.h>
25909                         #include <jpeglib.h>
25910
25911 int
25912 main ()
25913 {
25914
25915
25916   ;
25917   return 0;
25918 }
25919 _ACEOF
25920 rm -f conftest.$ac_objext
25921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25922   (eval $ac_compile) 2>conftest.er1
25923   ac_status=$?
25924   grep -v '^ *+' conftest.er1 >conftest.err
25925   rm -f conftest.er1
25926   cat conftest.err >&5
25927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928   (exit $ac_status); } &&
25929          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25931   (eval $ac_try) 2>&5
25932   ac_status=$?
25933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934   (exit $ac_status); }; } &&
25935          { ac_try='test -s conftest.$ac_objext'
25936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25937   (eval $ac_try) 2>&5
25938   ac_status=$?
25939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940   (exit $ac_status); }; }; then
25941   ac_cv_header_jpeglib_h=yes
25942 else
25943   echo "$as_me: failed program was:" >&5
25944 sed 's/^/| /' conftest.$ac_ext >&5
25945
25946 ac_cv_header_jpeglib_h=no
25947
25948 fi
25949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25950
25951 fi
25952
25953             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25954 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25955
25956             if test "$ac_cv_header_jpeglib_h" = "yes"; then
25957                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25958 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25959 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25960   echo $ECHO_N "(cached) $ECHO_C" >&6
25961 else
25962   ac_check_lib_save_LIBS=$LIBS
25963 LIBS="-ljpeg  $LIBS"
25964 cat >conftest.$ac_ext <<_ACEOF
25965 /* confdefs.h.  */
25966 _ACEOF
25967 cat confdefs.h >>conftest.$ac_ext
25968 cat >>conftest.$ac_ext <<_ACEOF
25969 /* end confdefs.h.  */
25970
25971 /* Override any gcc2 internal prototype to avoid an error.  */
25972 #ifdef __cplusplus
25973 extern "C"
25974 #endif
25975 /* We use char because int might match the return type of a gcc2
25976    builtin and then its argument prototype would still apply.  */
25977 char jpeg_read_header ();
25978 int
25979 main ()
25980 {
25981 jpeg_read_header ();
25982   ;
25983   return 0;
25984 }
25985 _ACEOF
25986 rm -f conftest.$ac_objext conftest$ac_exeext
25987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25988   (eval $ac_link) 2>conftest.er1
25989   ac_status=$?
25990   grep -v '^ *+' conftest.er1 >conftest.err
25991   rm -f conftest.er1
25992   cat conftest.err >&5
25993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994   (exit $ac_status); } &&
25995          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25997   (eval $ac_try) 2>&5
25998   ac_status=$?
25999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000   (exit $ac_status); }; } &&
26001          { ac_try='test -s conftest$ac_exeext'
26002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26003   (eval $ac_try) 2>&5
26004   ac_status=$?
26005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006   (exit $ac_status); }; }; then
26007   ac_cv_lib_jpeg_jpeg_read_header=yes
26008 else
26009   echo "$as_me: failed program was:" >&5
26010 sed 's/^/| /' conftest.$ac_ext >&5
26011
26012 ac_cv_lib_jpeg_jpeg_read_header=no
26013 fi
26014 rm -f conftest.err conftest.$ac_objext \
26015       conftest$ac_exeext conftest.$ac_ext
26016 LIBS=$ac_check_lib_save_LIBS
26017 fi
26018 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26019 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
26020 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26021   JPEG_LINK=" -ljpeg"
26022 fi
26023
26024             fi
26025
26026             if test "x$JPEG_LINK" = "x" ; then
26027                 if test "$wxUSE_LIBJPEG" = "sys" ; then
26028                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26029 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26030    { (exit 1); exit 1; }; }
26031                 else
26032                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26033 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26034                     wxUSE_LIBJPEG=builtin
26035                 fi
26036             else
26037                                 wxUSE_LIBJPEG=sys
26038             fi
26039         fi
26040     fi
26041 fi
26042
26043
26044 TIFF_LINK=
26045 TIFF_PREREQ_LINKS=-lm
26046 if test "$wxUSE_LIBTIFF" != "no" ; then
26047     cat >>confdefs.h <<\_ACEOF
26048 #define wxUSE_LIBTIFF 1
26049 _ACEOF
26050
26051
26052     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26053                         if test "$wxUSE_LIBJPEG" = "sys"; then
26054             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26055         fi
26056         if test "$wxUSE_ZLIB" = "sys"; then
26057             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26058         fi
26059         if test "${ac_cv_header_tiffio_h+set}" = set; then
26060   echo "$as_me:$LINENO: checking for tiffio.h" >&5
26061 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26062 if test "${ac_cv_header_tiffio_h+set}" = set; then
26063   echo $ECHO_N "(cached) $ECHO_C" >&6
26064 fi
26065 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26066 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26067 else
26068   # Is the header compilable?
26069 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26070 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
26071 cat >conftest.$ac_ext <<_ACEOF
26072 /* confdefs.h.  */
26073 _ACEOF
26074 cat confdefs.h >>conftest.$ac_ext
26075 cat >>conftest.$ac_ext <<_ACEOF
26076 /* end confdefs.h.  */
26077 $ac_includes_default
26078 #include <tiffio.h>
26079 _ACEOF
26080 rm -f conftest.$ac_objext
26081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26082   (eval $ac_compile) 2>conftest.er1
26083   ac_status=$?
26084   grep -v '^ *+' conftest.er1 >conftest.err
26085   rm -f conftest.er1
26086   cat conftest.err >&5
26087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088   (exit $ac_status); } &&
26089          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26091   (eval $ac_try) 2>&5
26092   ac_status=$?
26093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094   (exit $ac_status); }; } &&
26095          { ac_try='test -s conftest.$ac_objext'
26096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26097   (eval $ac_try) 2>&5
26098   ac_status=$?
26099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100   (exit $ac_status); }; }; then
26101   ac_header_compiler=yes
26102 else
26103   echo "$as_me: failed program was:" >&5
26104 sed 's/^/| /' conftest.$ac_ext >&5
26105
26106 ac_header_compiler=no
26107 fi
26108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26110 echo "${ECHO_T}$ac_header_compiler" >&6
26111
26112 # Is the header present?
26113 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26114 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
26115 cat >conftest.$ac_ext <<_ACEOF
26116 /* confdefs.h.  */
26117 _ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h.  */
26121 #include <tiffio.h>
26122 _ACEOF
26123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26124   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26125   ac_status=$?
26126   grep -v '^ *+' conftest.er1 >conftest.err
26127   rm -f conftest.er1
26128   cat conftest.err >&5
26129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130   (exit $ac_status); } >/dev/null; then
26131   if test -s conftest.err; then
26132     ac_cpp_err=$ac_c_preproc_warn_flag
26133     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26134   else
26135     ac_cpp_err=
26136   fi
26137 else
26138   ac_cpp_err=yes
26139 fi
26140 if test -z "$ac_cpp_err"; then
26141   ac_header_preproc=yes
26142 else
26143   echo "$as_me: failed program was:" >&5
26144 sed 's/^/| /' conftest.$ac_ext >&5
26145
26146   ac_header_preproc=no
26147 fi
26148 rm -f conftest.err conftest.$ac_ext
26149 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26150 echo "${ECHO_T}$ac_header_preproc" >&6
26151
26152 # So?  What about this header?
26153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26154   yes:no: )
26155     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26156 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26157     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26158 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26159     ac_header_preproc=yes
26160     ;;
26161   no:yes:* )
26162     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26163 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
26164     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
26165 echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
26166     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26167 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26168     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
26169 echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26170     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26171 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
26172     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26173 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
26174     (
26175       cat <<\_ASBOX
26176 ## ----------------------------------------- ##
26177 ## Report this to wx-dev@lists.wxwidgets.org ##
26178 ## ----------------------------------------- ##
26179 _ASBOX
26180     ) |
26181       sed "s/^/$as_me: WARNING:     /" >&2
26182     ;;
26183 esac
26184 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26185 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26186 if test "${ac_cv_header_tiffio_h+set}" = set; then
26187   echo $ECHO_N "(cached) $ECHO_C" >&6
26188 else
26189   ac_cv_header_tiffio_h=$ac_header_preproc
26190 fi
26191 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26192 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26193
26194 fi
26195 if test $ac_cv_header_tiffio_h = yes; then
26196
26197                             echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26198 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26199 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26200   echo $ECHO_N "(cached) $ECHO_C" >&6
26201 else
26202   ac_check_lib_save_LIBS=$LIBS
26203 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26204 cat >conftest.$ac_ext <<_ACEOF
26205 /* confdefs.h.  */
26206 _ACEOF
26207 cat confdefs.h >>conftest.$ac_ext
26208 cat >>conftest.$ac_ext <<_ACEOF
26209 /* end confdefs.h.  */
26210
26211 /* Override any gcc2 internal prototype to avoid an error.  */
26212 #ifdef __cplusplus
26213 extern "C"
26214 #endif
26215 /* We use char because int might match the return type of a gcc2
26216    builtin and then its argument prototype would still apply.  */
26217 char TIFFError ();
26218 int
26219 main ()
26220 {
26221 TIFFError ();
26222   ;
26223   return 0;
26224 }
26225 _ACEOF
26226 rm -f conftest.$ac_objext conftest$ac_exeext
26227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26228   (eval $ac_link) 2>conftest.er1
26229   ac_status=$?
26230   grep -v '^ *+' conftest.er1 >conftest.err
26231   rm -f conftest.er1
26232   cat conftest.err >&5
26233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234   (exit $ac_status); } &&
26235          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26237   (eval $ac_try) 2>&5
26238   ac_status=$?
26239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26240   (exit $ac_status); }; } &&
26241          { ac_try='test -s conftest$ac_exeext'
26242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26243   (eval $ac_try) 2>&5
26244   ac_status=$?
26245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246   (exit $ac_status); }; }; then
26247   ac_cv_lib_tiff_TIFFError=yes
26248 else
26249   echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.$ac_ext >&5
26251
26252 ac_cv_lib_tiff_TIFFError=no
26253 fi
26254 rm -f conftest.err conftest.$ac_objext \
26255       conftest$ac_exeext conftest.$ac_ext
26256 LIBS=$ac_check_lib_save_LIBS
26257 fi
26258 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26259 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26260 if test $ac_cv_lib_tiff_TIFFError = yes; then
26261   TIFF_LINK=" -ltiff"
26262 fi
26263
26264
26265
26266 fi
26267
26268
26269
26270         if test "x$TIFF_LINK" = "x" ; then
26271             if test "$wxUSE_LIBTIFF" = "sys" ; then
26272                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26273 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26274    { (exit 1); exit 1; }; }
26275             else
26276                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26277 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26278                 wxUSE_LIBTIFF=builtin
26279             fi
26280         else
26281                         wxUSE_LIBTIFF=sys
26282         fi
26283     fi
26284 fi
26285
26286
26287 if test "$wxUSE_WCHAR_T" != "yes"; then
26288     if test "$wxUSE_EXPAT" != "no"; then
26289         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26290 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26291         wxUSE_EXPAT=no
26292     fi
26293     if test "$wxUSE_XML" != "no"; then
26294         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26295 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26296         wxUSE_XML=no
26297     fi
26298 fi
26299
26300 if test "$wxUSE_EXPAT" != "no"; then
26301     wxUSE_XML=yes
26302     cat >>confdefs.h <<\_ACEOF
26303 #define wxUSE_EXPAT 1
26304 _ACEOF
26305
26306     cat >>confdefs.h <<\_ACEOF
26307 #define wxUSE_XML 1
26308 _ACEOF
26309
26310
26311     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26312         if test "${ac_cv_header_expat_h+set}" = set; then
26313   echo "$as_me:$LINENO: checking for expat.h" >&5
26314 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26315 if test "${ac_cv_header_expat_h+set}" = set; then
26316   echo $ECHO_N "(cached) $ECHO_C" >&6
26317 fi
26318 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26319 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26320 else
26321   # Is the header compilable?
26322 echo "$as_me:$LINENO: checking expat.h usability" >&5
26323 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26324 cat >conftest.$ac_ext <<_ACEOF
26325 /* confdefs.h.  */
26326 _ACEOF
26327 cat confdefs.h >>conftest.$ac_ext
26328 cat >>conftest.$ac_ext <<_ACEOF
26329 /* end confdefs.h.  */
26330 $ac_includes_default
26331 #include <expat.h>
26332 _ACEOF
26333 rm -f conftest.$ac_objext
26334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26335   (eval $ac_compile) 2>conftest.er1
26336   ac_status=$?
26337   grep -v '^ *+' conftest.er1 >conftest.err
26338   rm -f conftest.er1
26339   cat conftest.err >&5
26340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341   (exit $ac_status); } &&
26342          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26344   (eval $ac_try) 2>&5
26345   ac_status=$?
26346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347   (exit $ac_status); }; } &&
26348          { ac_try='test -s conftest.$ac_objext'
26349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26350   (eval $ac_try) 2>&5
26351   ac_status=$?
26352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353   (exit $ac_status); }; }; then
26354   ac_header_compiler=yes
26355 else
26356   echo "$as_me: failed program was:" >&5
26357 sed 's/^/| /' conftest.$ac_ext >&5
26358
26359 ac_header_compiler=no
26360 fi
26361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26363 echo "${ECHO_T}$ac_header_compiler" >&6
26364
26365 # Is the header present?
26366 echo "$as_me:$LINENO: checking expat.h presence" >&5
26367 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26368 cat >conftest.$ac_ext <<_ACEOF
26369 /* confdefs.h.  */
26370 _ACEOF
26371 cat confdefs.h >>conftest.$ac_ext
26372 cat >>conftest.$ac_ext <<_ACEOF
26373 /* end confdefs.h.  */
26374 #include <expat.h>
26375 _ACEOF
26376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26377   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26378   ac_status=$?
26379   grep -v '^ *+' conftest.er1 >conftest.err
26380   rm -f conftest.er1
26381   cat conftest.err >&5
26382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383   (exit $ac_status); } >/dev/null; then
26384   if test -s conftest.err; then
26385     ac_cpp_err=$ac_c_preproc_warn_flag
26386     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26387   else
26388     ac_cpp_err=
26389   fi
26390 else
26391   ac_cpp_err=yes
26392 fi
26393 if test -z "$ac_cpp_err"; then
26394   ac_header_preproc=yes
26395 else
26396   echo "$as_me: failed program was:" >&5
26397 sed 's/^/| /' conftest.$ac_ext >&5
26398
26399   ac_header_preproc=no
26400 fi
26401 rm -f conftest.err conftest.$ac_ext
26402 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26403 echo "${ECHO_T}$ac_header_preproc" >&6
26404
26405 # So?  What about this header?
26406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26407   yes:no: )
26408     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26409 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26410     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26411 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26412     ac_header_preproc=yes
26413     ;;
26414   no:yes:* )
26415     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26416 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
26417     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
26418 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
26419     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26420 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26421     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
26422 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26423     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26424 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
26425     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26426 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
26427     (
26428       cat <<\_ASBOX
26429 ## ----------------------------------------- ##
26430 ## Report this to wx-dev@lists.wxwidgets.org ##
26431 ## ----------------------------------------- ##
26432 _ASBOX
26433     ) |
26434       sed "s/^/$as_me: WARNING:     /" >&2
26435     ;;
26436 esac
26437 echo "$as_me:$LINENO: checking for expat.h" >&5
26438 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26439 if test "${ac_cv_header_expat_h+set}" = set; then
26440   echo $ECHO_N "(cached) $ECHO_C" >&6
26441 else
26442   ac_cv_header_expat_h=$ac_header_preproc
26443 fi
26444 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26445 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26446
26447 fi
26448 if test $ac_cv_header_expat_h = yes; then
26449   found_expat_h=1
26450 fi
26451
26452
26453         if test "x$found_expat_h" = "x1"; then
26454                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26455 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26456 if test "${wx_cv_expat_is_not_broken+set}" = set; then
26457   echo $ECHO_N "(cached) $ECHO_C" >&6
26458 else
26459
26460                 ac_ext=cc
26461 ac_cpp='$CXXCPP $CPPFLAGS'
26462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26465
26466                 cat >conftest.$ac_ext <<_ACEOF
26467 /* confdefs.h.  */
26468 _ACEOF
26469 cat confdefs.h >>conftest.$ac_ext
26470 cat >>conftest.$ac_ext <<_ACEOF
26471 /* end confdefs.h.  */
26472 #include <expat.h>
26473 int
26474 main ()
26475 {
26476
26477   ;
26478   return 0;
26479 }
26480 _ACEOF
26481 rm -f conftest.$ac_objext
26482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26483   (eval $ac_compile) 2>conftest.er1
26484   ac_status=$?
26485   grep -v '^ *+' conftest.er1 >conftest.err
26486   rm -f conftest.er1
26487   cat conftest.err >&5
26488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489   (exit $ac_status); } &&
26490          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
26491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26492   (eval $ac_try) 2>&5
26493   ac_status=$?
26494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495   (exit $ac_status); }; } &&
26496          { ac_try='test -s conftest.$ac_objext'
26497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26498   (eval $ac_try) 2>&5
26499   ac_status=$?
26500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501   (exit $ac_status); }; }; then
26502   wx_cv_expat_is_not_broken=yes
26503 else
26504   echo "$as_me: failed program was:" >&5
26505 sed 's/^/| /' conftest.$ac_ext >&5
26506
26507 wx_cv_expat_is_not_broken=no
26508
26509 fi
26510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26511                 ac_ext=c
26512 ac_cpp='$CPP $CPPFLAGS'
26513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26516
26517
26518
26519 fi
26520 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26521 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26522             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26523                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26524 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26525 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26526   echo $ECHO_N "(cached) $ECHO_C" >&6
26527 else
26528   ac_check_lib_save_LIBS=$LIBS
26529 LIBS="-lexpat  $LIBS"
26530 cat >conftest.$ac_ext <<_ACEOF
26531 /* confdefs.h.  */
26532 _ACEOF
26533 cat confdefs.h >>conftest.$ac_ext
26534 cat >>conftest.$ac_ext <<_ACEOF
26535 /* end confdefs.h.  */
26536
26537 /* Override any gcc2 internal prototype to avoid an error.  */
26538 #ifdef __cplusplus
26539 extern "C"
26540 #endif
26541 /* We use char because int might match the return type of a gcc2
26542    builtin and then its argument prototype would still apply.  */
26543 char XML_ParserCreate ();
26544 int
26545 main ()
26546 {
26547 XML_ParserCreate ();
26548   ;
26549   return 0;
26550 }
26551 _ACEOF
26552 rm -f conftest.$ac_objext conftest$ac_exeext
26553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26554   (eval $ac_link) 2>conftest.er1
26555   ac_status=$?
26556   grep -v '^ *+' conftest.er1 >conftest.err
26557   rm -f conftest.er1
26558   cat conftest.err >&5
26559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560   (exit $ac_status); } &&
26561          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26563   (eval $ac_try) 2>&5
26564   ac_status=$?
26565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566   (exit $ac_status); }; } &&
26567          { ac_try='test -s conftest$ac_exeext'
26568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26569   (eval $ac_try) 2>&5
26570   ac_status=$?
26571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572   (exit $ac_status); }; }; then
26573   ac_cv_lib_expat_XML_ParserCreate=yes
26574 else
26575   echo "$as_me: failed program was:" >&5
26576 sed 's/^/| /' conftest.$ac_ext >&5
26577
26578 ac_cv_lib_expat_XML_ParserCreate=no
26579 fi
26580 rm -f conftest.err conftest.$ac_objext \
26581       conftest$ac_exeext conftest.$ac_ext
26582 LIBS=$ac_check_lib_save_LIBS
26583 fi
26584 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26585 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26586 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26587   EXPAT_LINK=" -lexpat"
26588 fi
26589
26590             fi
26591         fi
26592         if test "x$EXPAT_LINK" = "x" ; then
26593             if test "$wxUSE_EXPAT" = "sys" ; then
26594                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26595 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26596    { (exit 1); exit 1; }; }
26597             else
26598                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26599 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26600                 wxUSE_EXPAT=builtin
26601             fi
26602         else
26603                         wxUSE_EXPAT=sys
26604         fi
26605     fi
26606     if test "$wxUSE_EXPAT" = "builtin" ; then
26607
26608
26609 subdirs="$subdirs src/expat"
26610
26611     fi
26612 fi
26613
26614
26615
26616 if test "$wxUSE_LIBMSPACK" != "no"; then
26617     if test "${ac_cv_header_mspack_h+set}" = set; then
26618   echo "$as_me:$LINENO: checking for mspack.h" >&5
26619 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26620 if test "${ac_cv_header_mspack_h+set}" = set; then
26621   echo $ECHO_N "(cached) $ECHO_C" >&6
26622 fi
26623 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26624 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26625 else
26626   # Is the header compilable?
26627 echo "$as_me:$LINENO: checking mspack.h usability" >&5
26628 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26629 cat >conftest.$ac_ext <<_ACEOF
26630 /* confdefs.h.  */
26631 _ACEOF
26632 cat confdefs.h >>conftest.$ac_ext
26633 cat >>conftest.$ac_ext <<_ACEOF
26634 /* end confdefs.h.  */
26635 $ac_includes_default
26636 #include <mspack.h>
26637 _ACEOF
26638 rm -f conftest.$ac_objext
26639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26640   (eval $ac_compile) 2>conftest.er1
26641   ac_status=$?
26642   grep -v '^ *+' conftest.er1 >conftest.err
26643   rm -f conftest.er1
26644   cat conftest.err >&5
26645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646   (exit $ac_status); } &&
26647          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26649   (eval $ac_try) 2>&5
26650   ac_status=$?
26651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652   (exit $ac_status); }; } &&
26653          { ac_try='test -s conftest.$ac_objext'
26654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26655   (eval $ac_try) 2>&5
26656   ac_status=$?
26657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658   (exit $ac_status); }; }; then
26659   ac_header_compiler=yes
26660 else
26661   echo "$as_me: failed program was:" >&5
26662 sed 's/^/| /' conftest.$ac_ext >&5
26663
26664 ac_header_compiler=no
26665 fi
26666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26668 echo "${ECHO_T}$ac_header_compiler" >&6
26669
26670 # Is the header present?
26671 echo "$as_me:$LINENO: checking mspack.h presence" >&5
26672 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26673 cat >conftest.$ac_ext <<_ACEOF
26674 /* confdefs.h.  */
26675 _ACEOF
26676 cat confdefs.h >>conftest.$ac_ext
26677 cat >>conftest.$ac_ext <<_ACEOF
26678 /* end confdefs.h.  */
26679 #include <mspack.h>
26680 _ACEOF
26681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26682   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26683   ac_status=$?
26684   grep -v '^ *+' conftest.er1 >conftest.err
26685   rm -f conftest.er1
26686   cat conftest.err >&5
26687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688   (exit $ac_status); } >/dev/null; then
26689   if test -s conftest.err; then
26690     ac_cpp_err=$ac_c_preproc_warn_flag
26691     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26692   else
26693     ac_cpp_err=
26694   fi
26695 else
26696   ac_cpp_err=yes
26697 fi
26698 if test -z "$ac_cpp_err"; then
26699   ac_header_preproc=yes
26700 else
26701   echo "$as_me: failed program was:" >&5
26702 sed 's/^/| /' conftest.$ac_ext >&5
26703
26704   ac_header_preproc=no
26705 fi
26706 rm -f conftest.err conftest.$ac_ext
26707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26708 echo "${ECHO_T}$ac_header_preproc" >&6
26709
26710 # So?  What about this header?
26711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26712   yes:no: )
26713     { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26714 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26715     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26716 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26717     ac_header_preproc=yes
26718     ;;
26719   no:yes:* )
26720     { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26721 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
26722     { echo "$as_me:$LINENO: WARNING: mspack.h:     check for missing prerequisite headers?" >&5
26723 echo "$as_me: WARNING: mspack.h:     check for missing prerequisite headers?" >&2;}
26724     { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26725 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26726     { echo "$as_me:$LINENO: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&5
26727 echo "$as_me: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26728     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26729 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
26730     { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26731 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
26732     (
26733       cat <<\_ASBOX
26734 ## ----------------------------------------- ##
26735 ## Report this to wx-dev@lists.wxwidgets.org ##
26736 ## ----------------------------------------- ##
26737 _ASBOX
26738     ) |
26739       sed "s/^/$as_me: WARNING:     /" >&2
26740     ;;
26741 esac
26742 echo "$as_me:$LINENO: checking for mspack.h" >&5
26743 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26744 if test "${ac_cv_header_mspack_h+set}" = set; then
26745   echo $ECHO_N "(cached) $ECHO_C" >&6
26746 else
26747   ac_cv_header_mspack_h=$ac_header_preproc
26748 fi
26749 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26750 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26751
26752 fi
26753 if test $ac_cv_header_mspack_h = yes; then
26754   found_mspack_h=1
26755 fi
26756
26757
26758     if test "x$found_mspack_h" = "x1"; then
26759         echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26760 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26761 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26762   echo $ECHO_N "(cached) $ECHO_C" >&6
26763 else
26764   ac_check_lib_save_LIBS=$LIBS
26765 LIBS="-lmspack  $LIBS"
26766 cat >conftest.$ac_ext <<_ACEOF
26767 /* confdefs.h.  */
26768 _ACEOF
26769 cat confdefs.h >>conftest.$ac_ext
26770 cat >>conftest.$ac_ext <<_ACEOF
26771 /* end confdefs.h.  */
26772
26773 /* Override any gcc2 internal prototype to avoid an error.  */
26774 #ifdef __cplusplus
26775 extern "C"
26776 #endif
26777 /* We use char because int might match the return type of a gcc2
26778    builtin and then its argument prototype would still apply.  */
26779 char mspack_create_chm_decompressor ();
26780 int
26781 main ()
26782 {
26783 mspack_create_chm_decompressor ();
26784   ;
26785   return 0;
26786 }
26787 _ACEOF
26788 rm -f conftest.$ac_objext conftest$ac_exeext
26789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26790   (eval $ac_link) 2>conftest.er1
26791   ac_status=$?
26792   grep -v '^ *+' conftest.er1 >conftest.err
26793   rm -f conftest.er1
26794   cat conftest.err >&5
26795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796   (exit $ac_status); } &&
26797          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26799   (eval $ac_try) 2>&5
26800   ac_status=$?
26801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802   (exit $ac_status); }; } &&
26803          { ac_try='test -s conftest$ac_exeext'
26804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26805   (eval $ac_try) 2>&5
26806   ac_status=$?
26807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808   (exit $ac_status); }; }; then
26809   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26810 else
26811   echo "$as_me: failed program was:" >&5
26812 sed 's/^/| /' conftest.$ac_ext >&5
26813
26814 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26815 fi
26816 rm -f conftest.err conftest.$ac_objext \
26817       conftest$ac_exeext conftest.$ac_ext
26818 LIBS=$ac_check_lib_save_LIBS
26819 fi
26820 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26821 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26822 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26823   MSPACK_LINK=" -lmspack"
26824 fi
26825
26826     fi
26827     if test "x$MSPACK_LINK" = "x" ; then
26828         wxUSE_LIBMSPACK=no
26829     fi
26830 fi
26831
26832 if test "$wxUSE_LIBMSPACK" != "no"; then
26833     cat >>confdefs.h <<\_ACEOF
26834 #define wxUSE_LIBMSPACK 1
26835 _ACEOF
26836
26837 fi
26838
26839
26840
26841 AFMINSTALL=
26842 WIN32INSTALL=
26843
26844 TOOLKIT=
26845 TOOLKIT_INCLUDE=
26846 WIDGET_SET=
26847
26848 if test "$USE_WIN32" = 1 ; then
26849
26850 for ac_header in w32api.h
26851 do
26852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26854   echo "$as_me:$LINENO: checking for $ac_header" >&5
26855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26857   echo $ECHO_N "(cached) $ECHO_C" >&6
26858 fi
26859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26861 else
26862   # Is the header compilable?
26863 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26865 cat >conftest.$ac_ext <<_ACEOF
26866 /* confdefs.h.  */
26867 _ACEOF
26868 cat confdefs.h >>conftest.$ac_ext
26869 cat >>conftest.$ac_ext <<_ACEOF
26870 /* end confdefs.h.  */
26871 $ac_includes_default
26872 #include <$ac_header>
26873 _ACEOF
26874 rm -f conftest.$ac_objext
26875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26876   (eval $ac_compile) 2>conftest.er1
26877   ac_status=$?
26878   grep -v '^ *+' conftest.er1 >conftest.err
26879   rm -f conftest.er1
26880   cat conftest.err >&5
26881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882   (exit $ac_status); } &&
26883          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26885   (eval $ac_try) 2>&5
26886   ac_status=$?
26887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888   (exit $ac_status); }; } &&
26889          { ac_try='test -s conftest.$ac_objext'
26890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26891   (eval $ac_try) 2>&5
26892   ac_status=$?
26893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894   (exit $ac_status); }; }; then
26895   ac_header_compiler=yes
26896 else
26897   echo "$as_me: failed program was:" >&5
26898 sed 's/^/| /' conftest.$ac_ext >&5
26899
26900 ac_header_compiler=no
26901 fi
26902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26903 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26904 echo "${ECHO_T}$ac_header_compiler" >&6
26905
26906 # Is the header present?
26907 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26909 cat >conftest.$ac_ext <<_ACEOF
26910 /* confdefs.h.  */
26911 _ACEOF
26912 cat confdefs.h >>conftest.$ac_ext
26913 cat >>conftest.$ac_ext <<_ACEOF
26914 /* end confdefs.h.  */
26915 #include <$ac_header>
26916 _ACEOF
26917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26918   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26919   ac_status=$?
26920   grep -v '^ *+' conftest.er1 >conftest.err
26921   rm -f conftest.er1
26922   cat conftest.err >&5
26923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924   (exit $ac_status); } >/dev/null; then
26925   if test -s conftest.err; then
26926     ac_cpp_err=$ac_c_preproc_warn_flag
26927     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26928   else
26929     ac_cpp_err=
26930   fi
26931 else
26932   ac_cpp_err=yes
26933 fi
26934 if test -z "$ac_cpp_err"; then
26935   ac_header_preproc=yes
26936 else
26937   echo "$as_me: failed program was:" >&5
26938 sed 's/^/| /' conftest.$ac_ext >&5
26939
26940   ac_header_preproc=no
26941 fi
26942 rm -f conftest.err conftest.$ac_ext
26943 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26944 echo "${ECHO_T}$ac_header_preproc" >&6
26945
26946 # So?  What about this header?
26947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26948   yes:no: )
26949     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26953     ac_header_preproc=yes
26954     ;;
26955   no:yes:* )
26956     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26958     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26959 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26960     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26962     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26963 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26966     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26968     (
26969       cat <<\_ASBOX
26970 ## ----------------------------------------- ##
26971 ## Report this to wx-dev@lists.wxwidgets.org ##
26972 ## ----------------------------------------- ##
26973 _ASBOX
26974     ) |
26975       sed "s/^/$as_me: WARNING:     /" >&2
26976     ;;
26977 esac
26978 echo "$as_me:$LINENO: checking for $ac_header" >&5
26979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26981   echo $ECHO_N "(cached) $ECHO_C" >&6
26982 else
26983   eval "$as_ac_Header=\$ac_header_preproc"
26984 fi
26985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26987
26988 fi
26989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26990   cat >>confdefs.h <<_ACEOF
26991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26992 _ACEOF
26993
26994 fi
26995
26996 done
26997
26998     if test "${ac_cv_header_windows_h+set}" = set; then
26999   echo "$as_me:$LINENO: checking for windows.h" >&5
27000 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27001 if test "${ac_cv_header_windows_h+set}" = set; then
27002   echo $ECHO_N "(cached) $ECHO_C" >&6
27003 fi
27004 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27005 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27006 else
27007   # Is the header compilable?
27008 echo "$as_me:$LINENO: checking windows.h usability" >&5
27009 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
27010 cat >conftest.$ac_ext <<_ACEOF
27011 /* confdefs.h.  */
27012 _ACEOF
27013 cat confdefs.h >>conftest.$ac_ext
27014 cat >>conftest.$ac_ext <<_ACEOF
27015 /* end confdefs.h.  */
27016 $ac_includes_default
27017 #include <windows.h>
27018 _ACEOF
27019 rm -f conftest.$ac_objext
27020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27021   (eval $ac_compile) 2>conftest.er1
27022   ac_status=$?
27023   grep -v '^ *+' conftest.er1 >conftest.err
27024   rm -f conftest.er1
27025   cat conftest.err >&5
27026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027   (exit $ac_status); } &&
27028          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27030   (eval $ac_try) 2>&5
27031   ac_status=$?
27032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033   (exit $ac_status); }; } &&
27034          { ac_try='test -s conftest.$ac_objext'
27035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27036   (eval $ac_try) 2>&5
27037   ac_status=$?
27038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039   (exit $ac_status); }; }; then
27040   ac_header_compiler=yes
27041 else
27042   echo "$as_me: failed program was:" >&5
27043 sed 's/^/| /' conftest.$ac_ext >&5
27044
27045 ac_header_compiler=no
27046 fi
27047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27049 echo "${ECHO_T}$ac_header_compiler" >&6
27050
27051 # Is the header present?
27052 echo "$as_me:$LINENO: checking windows.h presence" >&5
27053 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
27054 cat >conftest.$ac_ext <<_ACEOF
27055 /* confdefs.h.  */
27056 _ACEOF
27057 cat confdefs.h >>conftest.$ac_ext
27058 cat >>conftest.$ac_ext <<_ACEOF
27059 /* end confdefs.h.  */
27060 #include <windows.h>
27061 _ACEOF
27062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27064   ac_status=$?
27065   grep -v '^ *+' conftest.er1 >conftest.err
27066   rm -f conftest.er1
27067   cat conftest.err >&5
27068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069   (exit $ac_status); } >/dev/null; then
27070   if test -s conftest.err; then
27071     ac_cpp_err=$ac_c_preproc_warn_flag
27072     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27073   else
27074     ac_cpp_err=
27075   fi
27076 else
27077   ac_cpp_err=yes
27078 fi
27079 if test -z "$ac_cpp_err"; then
27080   ac_header_preproc=yes
27081 else
27082   echo "$as_me: failed program was:" >&5
27083 sed 's/^/| /' conftest.$ac_ext >&5
27084
27085   ac_header_preproc=no
27086 fi
27087 rm -f conftest.err conftest.$ac_ext
27088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27089 echo "${ECHO_T}$ac_header_preproc" >&6
27090
27091 # So?  What about this header?
27092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27093   yes:no: )
27094     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
27095 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27096     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
27097 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
27098     ac_header_preproc=yes
27099     ;;
27100   no:yes:* )
27101     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
27102 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
27103     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
27104 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
27105     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
27106 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
27107     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
27108 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27109     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
27110 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
27111     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
27112 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
27113     (
27114       cat <<\_ASBOX
27115 ## ----------------------------------------- ##
27116 ## Report this to wx-dev@lists.wxwidgets.org ##
27117 ## ----------------------------------------- ##
27118 _ASBOX
27119     ) |
27120       sed "s/^/$as_me: WARNING:     /" >&2
27121     ;;
27122 esac
27123 echo "$as_me:$LINENO: checking for windows.h" >&5
27124 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27125 if test "${ac_cv_header_windows_h+set}" = set; then
27126   echo $ECHO_N "(cached) $ECHO_C" >&6
27127 else
27128   ac_cv_header_windows_h=$ac_header_preproc
27129 fi
27130 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27131 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27132
27133 fi
27134 if test $ac_cv_header_windows_h = yes; then
27135   :
27136 else
27137
27138         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27139 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27140    { (exit 1); exit 1; }; }
27141
27142 fi
27143
27144
27145
27146             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27147
27148     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27149         LIBS="$LIBS -loleacc"
27150     fi
27151
27152     case "${host}" in
27153         *-*-cygwin* )
27154                         LIBS="$LIBS -lkernel32 -luser32"
27155     esac
27156
27157         if test "$wxUSE_ODBC" = "sys" ; then
27158         wxUSE_ODBC = "yes"
27159     fi
27160     if test "$wxUSE_ODBC" = "yes" ; then
27161         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27162         cat >>confdefs.h <<\_ACEOF
27163 #define wxUSE_ODBC 1
27164 _ACEOF
27165
27166     fi
27167
27168         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27169     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27170
27171                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
27172
27173         WIN32INSTALL=win32install
27174
27175
27176 for ac_header in pbt.h
27177 do
27178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27180   echo "$as_me:$LINENO: checking for $ac_header" >&5
27181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27183   echo $ECHO_N "(cached) $ECHO_C" >&6
27184 fi
27185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27187 else
27188   # Is the header compilable?
27189 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27191 cat >conftest.$ac_ext <<_ACEOF
27192 /* confdefs.h.  */
27193 _ACEOF
27194 cat confdefs.h >>conftest.$ac_ext
27195 cat >>conftest.$ac_ext <<_ACEOF
27196 /* end confdefs.h.  */
27197 $ac_includes_default
27198 #include <$ac_header>
27199 _ACEOF
27200 rm -f conftest.$ac_objext
27201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27202   (eval $ac_compile) 2>conftest.er1
27203   ac_status=$?
27204   grep -v '^ *+' conftest.er1 >conftest.err
27205   rm -f conftest.er1
27206   cat conftest.err >&5
27207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208   (exit $ac_status); } &&
27209          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27211   (eval $ac_try) 2>&5
27212   ac_status=$?
27213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214   (exit $ac_status); }; } &&
27215          { ac_try='test -s conftest.$ac_objext'
27216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27217   (eval $ac_try) 2>&5
27218   ac_status=$?
27219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220   (exit $ac_status); }; }; then
27221   ac_header_compiler=yes
27222 else
27223   echo "$as_me: failed program was:" >&5
27224 sed 's/^/| /' conftest.$ac_ext >&5
27225
27226 ac_header_compiler=no
27227 fi
27228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27230 echo "${ECHO_T}$ac_header_compiler" >&6
27231
27232 # Is the header present?
27233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27235 cat >conftest.$ac_ext <<_ACEOF
27236 /* confdefs.h.  */
27237 _ACEOF
27238 cat confdefs.h >>conftest.$ac_ext
27239 cat >>conftest.$ac_ext <<_ACEOF
27240 /* end confdefs.h.  */
27241 #include <$ac_header>
27242 _ACEOF
27243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27244   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27245   ac_status=$?
27246   grep -v '^ *+' conftest.er1 >conftest.err
27247   rm -f conftest.er1
27248   cat conftest.err >&5
27249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250   (exit $ac_status); } >/dev/null; then
27251   if test -s conftest.err; then
27252     ac_cpp_err=$ac_c_preproc_warn_flag
27253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27254   else
27255     ac_cpp_err=
27256   fi
27257 else
27258   ac_cpp_err=yes
27259 fi
27260 if test -z "$ac_cpp_err"; then
27261   ac_header_preproc=yes
27262 else
27263   echo "$as_me: failed program was:" >&5
27264 sed 's/^/| /' conftest.$ac_ext >&5
27265
27266   ac_header_preproc=no
27267 fi
27268 rm -f conftest.err conftest.$ac_ext
27269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27270 echo "${ECHO_T}$ac_header_preproc" >&6
27271
27272 # So?  What about this header?
27273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27274   yes:no: )
27275     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27277     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27279     ac_header_preproc=yes
27280     ;;
27281   no:yes:* )
27282     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27284     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27285 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27286     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27288     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27289 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27292     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27294     (
27295       cat <<\_ASBOX
27296 ## ----------------------------------------- ##
27297 ## Report this to wx-dev@lists.wxwidgets.org ##
27298 ## ----------------------------------------- ##
27299 _ASBOX
27300     ) |
27301       sed "s/^/$as_me: WARNING:     /" >&2
27302     ;;
27303 esac
27304 echo "$as_me:$LINENO: checking for $ac_header" >&5
27305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27307   echo $ECHO_N "(cached) $ECHO_C" >&6
27308 else
27309   eval "$as_ac_Header=\$ac_header_preproc"
27310 fi
27311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27313
27314 fi
27315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27316   cat >>confdefs.h <<_ACEOF
27317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27318 _ACEOF
27319
27320 else
27321   cat >>confdefs.h <<\_ACEOF
27322 #define NEED_PBT_H 1
27323 _ACEOF
27324
27325 fi
27326
27327 done
27328
27329 fi
27330
27331 if test "$wxUSE_GUI" = "yes"; then
27332     USE_GUI=1
27333
27334     GUI_TK_LIBRARY=
27335
27336     WXGTK12=
27337     WXGTK127=
27338     WXGTK20=
27339     WXGPE=
27340
27341     if test "$wxUSE_COCOA" = 1 ; then
27342         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27343             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27344 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27345             wxUSE_PRINTING_ARCHITECTURE=no
27346         fi
27347         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27348             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27349 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27350             wxUSE_DRAG_AND_DROP=no
27351         fi
27352         if test "$wxUSE_DRAGIMAGE" = "yes"; then
27353             { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27354 echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27355             wxUSE_DRAGIMAGE=no
27356         fi
27357     fi
27358
27359     if test "$wxUSE_MSW" = 1 ; then
27360         TOOLKIT=MSW
27361         GUIDIST=MSW_DIST
27362
27363                 case "${host}" in
27364             *-*-mingw32* )
27365                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27366         esac
27367     fi
27368
27369     if test "$wxUSE_GTK" = 1; then
27370                 echo "$as_me:$LINENO: checking for GTK+ version" >&5
27371 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27372
27373         gtk_version_cached=1
27374         if test "${wx_cv_lib_gtk+set}" = set; then
27375   echo $ECHO_N "(cached) $ECHO_C" >&6
27376 else
27377
27378                                                 gtk_version_cached=0
27379                 echo "$as_me:$LINENO: result: " >&5
27380 echo "${ECHO_T}" >&6
27381
27382                                                 GTK_MODULES=
27383                 if test "$wxUSE_THREADS" = "yes"; then
27384                     GTK_MODULES=gthread
27385                 fi
27386
27387                                 wx_cv_lib_gtk=
27388                 if test "x$wxGTK_VERSION" != "x1"
27389                 then
27390                                                                                 case "${host}" in
27391                         *-*-solaris2* )
27392                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27393                             enable_gtktest=no
27394                             fi
27395                     esac
27396
27397                     # Check whether --enable-gtktest or --disable-gtktest was given.
27398 if test "${enable_gtktest+set}" = set; then
27399   enableval="$enable_gtktest"
27400
27401 else
27402   enable_gtktest=yes
27403 fi;
27404
27405   pkg_config_args=gtk+-2.0
27406   for module in . $GTK_MODULES
27407   do
27408       case "$module" in
27409          gthread)
27410              pkg_config_args="$pkg_config_args gthread-2.0"
27411          ;;
27412       esac
27413   done
27414
27415   no_gtk=""
27416
27417   # Extract the first word of "pkg-config", so it can be a program name with args.
27418 set dummy pkg-config; ac_word=$2
27419 echo "$as_me:$LINENO: checking for $ac_word" >&5
27420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27421 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27422   echo $ECHO_N "(cached) $ECHO_C" >&6
27423 else
27424   case $PKG_CONFIG in
27425   [\\/]* | ?:[\\/]*)
27426   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27427   ;;
27428   *)
27429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27430 for as_dir in $PATH
27431 do
27432   IFS=$as_save_IFS
27433   test -z "$as_dir" && as_dir=.
27434   for ac_exec_ext in '' $ac_executable_extensions; do
27435   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27436     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27438     break 2
27439   fi
27440 done
27441 done
27442
27443   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27444   ;;
27445 esac
27446 fi
27447 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27448
27449 if test -n "$PKG_CONFIG"; then
27450   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27451 echo "${ECHO_T}$PKG_CONFIG" >&6
27452 else
27453   echo "$as_me:$LINENO: result: no" >&5
27454 echo "${ECHO_T}no" >&6
27455 fi
27456
27457
27458   if test x$PKG_CONFIG != xno ; then
27459     if pkg-config --atleast-pkgconfig-version 0.7 ; then
27460       :
27461     else
27462       echo "*** pkg-config too old; version 0.7 or better required."
27463       no_gtk=yes
27464       PKG_CONFIG=no
27465     fi
27466   else
27467     no_gtk=yes
27468   fi
27469
27470   min_gtk_version=2.0.0
27471   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27472 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27473
27474   if test x$PKG_CONFIG != xno ; then
27475     ## don't try to run the test against uninstalled libtool libs
27476     if $PKG_CONFIG --uninstalled $pkg_config_args; then
27477           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27478           enable_gtktest=no
27479     fi
27480
27481     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27482           :
27483     else
27484           no_gtk=yes
27485     fi
27486   fi
27487
27488   if test x"$no_gtk" = x ; then
27489     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27490     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27491     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27492            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27493     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27494            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27495     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27496            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27497     if test "x$enable_gtktest" = "xyes" ; then
27498       ac_save_CFLAGS="$CFLAGS"
27499       ac_save_LIBS="$LIBS"
27500       CFLAGS="$CFLAGS $GTK_CFLAGS"
27501       LIBS="$GTK_LIBS $LIBS"
27502       rm -f conf.gtktest
27503       if test "$cross_compiling" = yes; then
27504   echo $ac_n "cross compiling; assumed OK... $ac_c"
27505 else
27506   cat >conftest.$ac_ext <<_ACEOF
27507 /* confdefs.h.  */
27508 _ACEOF
27509 cat confdefs.h >>conftest.$ac_ext
27510 cat >>conftest.$ac_ext <<_ACEOF
27511 /* end confdefs.h.  */
27512
27513 #include <gtk/gtk.h>
27514 #include <stdio.h>
27515 #include <stdlib.h>
27516
27517 int
27518 main ()
27519 {
27520   int major, minor, micro;
27521   char *tmp_version;
27522
27523   system ("touch conf.gtktest");
27524
27525   /* HP/UX 9 (%@#!) writes to sscanf strings */
27526   tmp_version = g_strdup("$min_gtk_version");
27527   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27528      printf("%s, bad version string\n", "$min_gtk_version");
27529      exit(1);
27530    }
27531
27532   if ((gtk_major_version != $gtk_config_major_version) ||
27533       (gtk_minor_version != $gtk_config_minor_version) ||
27534       (gtk_micro_version != $gtk_config_micro_version))
27535     {
27536       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27537              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27538              gtk_major_version, gtk_minor_version, gtk_micro_version);
27539       printf ("*** was found! If pkg-config was correct, then it is best\n");
27540       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27541       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27542       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27543       printf("*** required on your system.\n");
27544       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27545       printf("*** to point to the correct configuration files\n");
27546     }
27547   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27548            (gtk_minor_version != GTK_MINOR_VERSION) ||
27549            (gtk_micro_version != GTK_MICRO_VERSION))
27550     {
27551       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27552              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27553       printf("*** library (version %d.%d.%d)\n",
27554              gtk_major_version, gtk_minor_version, gtk_micro_version);
27555     }
27556   else
27557     {
27558       if ((gtk_major_version > major) ||
27559         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27560         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27561       {
27562         return 0;
27563        }
27564      else
27565       {
27566         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27567                gtk_major_version, gtk_minor_version, gtk_micro_version);
27568         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27569                major, minor, micro);
27570         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27571         printf("***\n");
27572         printf("*** If you have already installed a sufficiently new version, this error\n");
27573         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27574         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27575         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27576         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27577         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27578         printf("*** so that the correct libraries are found at run-time))\n");
27579       }
27580     }
27581   return 1;
27582 }
27583
27584 _ACEOF
27585 rm -f conftest$ac_exeext
27586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27587   (eval $ac_link) 2>&5
27588   ac_status=$?
27589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27592   (eval $ac_try) 2>&5
27593   ac_status=$?
27594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595   (exit $ac_status); }; }; then
27596   :
27597 else
27598   echo "$as_me: program exited with status $ac_status" >&5
27599 echo "$as_me: failed program was:" >&5
27600 sed 's/^/| /' conftest.$ac_ext >&5
27601
27602 ( exit $ac_status )
27603 no_gtk=yes
27604 fi
27605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27606 fi
27607        CFLAGS="$ac_save_CFLAGS"
27608        LIBS="$ac_save_LIBS"
27609      fi
27610   fi
27611   if test "x$no_gtk" = x ; then
27612      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27613 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27614      wx_cv_lib_gtk=2.0
27615   else
27616      echo "$as_me:$LINENO: result: no" >&5
27617 echo "${ECHO_T}no" >&6
27618      if test "$PKG_CONFIG" = "no" ; then
27619        echo "*** A new enough version of pkg-config was not found."
27620        echo "*** See http://pkgconfig.sourceforge.net"
27621      else
27622        if test -f conf.gtktest ; then
27623         :
27624        else
27625           echo "*** Could not run GTK+ test program, checking why..."
27626           ac_save_CFLAGS="$CFLAGS"
27627           ac_save_LIBS="$LIBS"
27628           CFLAGS="$CFLAGS $GTK_CFLAGS"
27629           LIBS="$LIBS $GTK_LIBS"
27630           cat >conftest.$ac_ext <<_ACEOF
27631 /* confdefs.h.  */
27632 _ACEOF
27633 cat confdefs.h >>conftest.$ac_ext
27634 cat >>conftest.$ac_ext <<_ACEOF
27635 /* end confdefs.h.  */
27636
27637 #include <gtk/gtk.h>
27638 #include <stdio.h>
27639
27640 int
27641 main ()
27642 {
27643  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27644   ;
27645   return 0;
27646 }
27647 _ACEOF
27648 rm -f conftest.$ac_objext conftest$ac_exeext
27649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27650   (eval $ac_link) 2>conftest.er1
27651   ac_status=$?
27652   grep -v '^ *+' conftest.er1 >conftest.err
27653   rm -f conftest.er1
27654   cat conftest.err >&5
27655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656   (exit $ac_status); } &&
27657          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27659   (eval $ac_try) 2>&5
27660   ac_status=$?
27661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662   (exit $ac_status); }; } &&
27663          { ac_try='test -s conftest$ac_exeext'
27664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27665   (eval $ac_try) 2>&5
27666   ac_status=$?
27667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668   (exit $ac_status); }; }; then
27669    echo "*** The test program compiled, but did not run. This usually means"
27670           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27671           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27672           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27673           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
27674           echo "*** is required on your system"
27675           echo "***"
27676           echo "*** If you have an old version installed, it is best to remove it, although"
27677           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27678 else
27679   echo "$as_me: failed program was:" >&5
27680 sed 's/^/| /' conftest.$ac_ext >&5
27681
27682  echo "*** The test program failed to compile or link. See the file config.log for the"
27683           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27684 fi
27685 rm -f conftest.err conftest.$ac_objext \
27686       conftest$ac_exeext conftest.$ac_ext
27687           CFLAGS="$ac_save_CFLAGS"
27688           LIBS="$ac_save_LIBS"
27689        fi
27690      fi
27691      GTK_CFLAGS=""
27692      GTK_LIBS=""
27693      :
27694   fi
27695
27696
27697   rm -f conf.gtktest
27698
27699
27700                                         case "${host}" in
27701                         *-*-solaris2* )
27702                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27703                                 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27704                                 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27705                             fi
27706                                                         if test "$wxUSE_SHARED" != "yes"; then
27707                                 GTK_LIBS="$GTK_LIBS -lX11"
27708                             fi
27709                     esac
27710                 fi
27711
27712                                 if test -z "$wx_cv_lib_gtk"; then
27713                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
27714
27715 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27716 if test "${with_gtk_prefix+set}" = set; then
27717   withval="$with_gtk_prefix"
27718   gtk_config_prefix="$withval"
27719 else
27720   gtk_config_prefix=""
27721 fi;
27722
27723 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27724 if test "${with_gtk_exec_prefix+set}" = set; then
27725   withval="$with_gtk_exec_prefix"
27726   gtk_config_exec_prefix="$withval"
27727 else
27728   gtk_config_exec_prefix=""
27729 fi;
27730 # Check whether --enable-gtktest or --disable-gtktest was given.
27731 if test "${enable_gtktest+set}" = set; then
27732   enableval="$enable_gtktest"
27733
27734 else
27735   enable_gtktest=yes
27736 fi;
27737
27738   for module in . $GTK_MODULES
27739   do
27740       case "$module" in
27741          gthread)
27742              gtk_config_args="$gtk_config_args gthread"
27743          ;;
27744       esac
27745   done
27746
27747   if test x$gtk_config_exec_prefix != x ; then
27748      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27749      if test x${GTK_CONFIG+set} != xset ; then
27750         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27751      fi
27752   fi
27753   if test x$gtk_config_prefix != x ; then
27754      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27755      if test x${GTK_CONFIG+set} != xset ; then
27756         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27757      fi
27758   fi
27759
27760   # Extract the first word of "gtk-config", so it can be a program name with args.
27761 set dummy gtk-config; ac_word=$2
27762 echo "$as_me:$LINENO: checking for $ac_word" >&5
27763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27764 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27765   echo $ECHO_N "(cached) $ECHO_C" >&6
27766 else
27767   case $GTK_CONFIG in
27768   [\\/]* | ?:[\\/]*)
27769   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27770   ;;
27771   *)
27772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27773 for as_dir in $PATH
27774 do
27775   IFS=$as_save_IFS
27776   test -z "$as_dir" && as_dir=.
27777   for ac_exec_ext in '' $ac_executable_extensions; do
27778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27779     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27781     break 2
27782   fi
27783 done
27784 done
27785
27786   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27787   ;;
27788 esac
27789 fi
27790 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27791
27792 if test -n "$GTK_CONFIG"; then
27793   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27794 echo "${ECHO_T}$GTK_CONFIG" >&6
27795 else
27796   echo "$as_me:$LINENO: result: no" >&5
27797 echo "${ECHO_T}no" >&6
27798 fi
27799
27800   min_gtk_version=1.2.7
27801   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27802 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27803   no_gtk=""
27804   if test "$GTK_CONFIG" = "no" ; then
27805     no_gtk=yes
27806   else
27807     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27808     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27809     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27810            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27811     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27812            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27813     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27814            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27815     if test "x$enable_gtktest" = "xyes" ; then
27816       ac_save_CFLAGS="$CFLAGS"
27817       ac_save_LIBS="$LIBS"
27818       CFLAGS="$CFLAGS $GTK_CFLAGS"
27819       LIBS="$GTK_LIBS $LIBS"
27820       rm -f conf.gtktest
27821       if test "$cross_compiling" = yes; then
27822   echo $ac_n "cross compiling; assumed OK... $ac_c"
27823 else
27824   cat >conftest.$ac_ext <<_ACEOF
27825 /* confdefs.h.  */
27826 _ACEOF
27827 cat confdefs.h >>conftest.$ac_ext
27828 cat >>conftest.$ac_ext <<_ACEOF
27829 /* end confdefs.h.  */
27830
27831 #include <gtk/gtk.h>
27832 #include <stdio.h>
27833 #include <stdlib.h>
27834
27835 int
27836 main ()
27837 {
27838   int major, minor, micro;
27839   char *tmp_version;
27840
27841   system ("touch conf.gtktest");
27842
27843   /* HP/UX 9 (%@#!) writes to sscanf strings */
27844   tmp_version = g_strdup("$min_gtk_version");
27845   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27846      printf("%s, bad version string\n", "$min_gtk_version");
27847      exit(1);
27848    }
27849
27850   if ((gtk_major_version != $gtk_config_major_version) ||
27851       (gtk_minor_version != $gtk_config_minor_version) ||
27852       (gtk_micro_version != $gtk_config_micro_version))
27853     {
27854       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27855              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27856              gtk_major_version, gtk_minor_version, gtk_micro_version);
27857       printf ("*** was found! If gtk-config was correct, then it is best\n");
27858       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27859       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27860       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27861       printf("*** required on your system.\n");
27862       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27863       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27864       printf("*** before re-running configure\n");
27865     }
27866 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27867   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27868            (gtk_minor_version != GTK_MINOR_VERSION) ||
27869            (gtk_micro_version != GTK_MICRO_VERSION))
27870     {
27871       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27872              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27873       printf("*** library (version %d.%d.%d)\n",
27874              gtk_major_version, gtk_minor_version, gtk_micro_version);
27875     }
27876 #endif /* defined (GTK_MAJOR_VERSION) ... */
27877   else
27878     {
27879       if ((gtk_major_version > major) ||
27880         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27881         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27882       {
27883         return 0;
27884        }
27885      else
27886       {
27887         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27888                gtk_major_version, gtk_minor_version, gtk_micro_version);
27889         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27890                major, minor, micro);
27891         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27892         printf("***\n");
27893         printf("*** If you have already installed a sufficiently new version, this error\n");
27894         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27895         printf("*** being found. The easiest way to fix this is to remove the old version\n");
27896         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27897         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27898         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27899         printf("*** so that the correct libraries are found at run-time))\n");
27900       }
27901     }
27902   return 1;
27903 }
27904
27905 _ACEOF
27906 rm -f conftest$ac_exeext
27907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27908   (eval $ac_link) 2>&5
27909   ac_status=$?
27910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27913   (eval $ac_try) 2>&5
27914   ac_status=$?
27915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916   (exit $ac_status); }; }; then
27917   :
27918 else
27919   echo "$as_me: program exited with status $ac_status" >&5
27920 echo "$as_me: failed program was:" >&5
27921 sed 's/^/| /' conftest.$ac_ext >&5
27922
27923 ( exit $ac_status )
27924 no_gtk=yes
27925 fi
27926 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27927 fi
27928        CFLAGS="$ac_save_CFLAGS"
27929        LIBS="$ac_save_LIBS"
27930      fi
27931   fi
27932   if test "x$no_gtk" = x ; then
27933      echo "$as_me:$LINENO: result: yes" >&5
27934 echo "${ECHO_T}yes" >&6
27935      wx_cv_lib_gtk=1.2.7
27936   else
27937      echo "$as_me:$LINENO: result: no" >&5
27938 echo "${ECHO_T}no" >&6
27939      if test "$GTK_CONFIG" = "no" ; then
27940        echo "*** The gtk-config script installed by GTK could not be found"
27941        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27942        echo "*** your path, or set the GTK_CONFIG environment variable to the"
27943        echo "*** full path to gtk-config."
27944      else
27945        if test -f conf.gtktest ; then
27946         :
27947        else
27948           echo "*** Could not run GTK test program, checking why..."
27949           CFLAGS="$CFLAGS $GTK_CFLAGS"
27950           LIBS="$LIBS $GTK_LIBS"
27951           cat >conftest.$ac_ext <<_ACEOF
27952 /* confdefs.h.  */
27953 _ACEOF
27954 cat confdefs.h >>conftest.$ac_ext
27955 cat >>conftest.$ac_ext <<_ACEOF
27956 /* end confdefs.h.  */
27957
27958 #include <gtk/gtk.h>
27959 #include <stdio.h>
27960
27961 int
27962 main ()
27963 {
27964  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27965   ;
27966   return 0;
27967 }
27968 _ACEOF
27969 rm -f conftest.$ac_objext conftest$ac_exeext
27970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27971   (eval $ac_link) 2>conftest.er1
27972   ac_status=$?
27973   grep -v '^ *+' conftest.er1 >conftest.err
27974   rm -f conftest.er1
27975   cat conftest.err >&5
27976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27977   (exit $ac_status); } &&
27978          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27980   (eval $ac_try) 2>&5
27981   ac_status=$?
27982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983   (exit $ac_status); }; } &&
27984          { ac_try='test -s conftest$ac_exeext'
27985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27986   (eval $ac_try) 2>&5
27987   ac_status=$?
27988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989   (exit $ac_status); }; }; then
27990    echo "*** The test program compiled, but did not run. This usually means"
27991           echo "*** that the run-time linker is not finding GTK or finding the wrong"
27992           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27993           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27994           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
27995           echo "*** is required on your system"
27996           echo "***"
27997           echo "*** If you have an old version installed, it is best to remove it, although"
27998           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27999           echo "***"
28000           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28001           echo "*** came with the system with the command"
28002           echo "***"
28003           echo "***    rpm --erase --nodeps gtk gtk-devel"
28004 else
28005   echo "$as_me: failed program was:" >&5
28006 sed 's/^/| /' conftest.$ac_ext >&5
28007
28008  echo "*** The test program failed to compile or link. See the file config.log for the"
28009           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28010           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28011           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28012 fi
28013 rm -f conftest.err conftest.$ac_objext \
28014       conftest$ac_exeext conftest.$ac_ext
28015           CFLAGS="$ac_save_CFLAGS"
28016           LIBS="$ac_save_LIBS"
28017        fi
28018      fi
28019      GTK_CFLAGS=""
28020      GTK_LIBS=""
28021      :
28022   fi
28023
28024
28025   rm -f conf.gtktest
28026
28027
28028                         if test -z "$wx_cv_lib_gtk"; then
28029
28030 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28031 if test "${with_gtk_prefix+set}" = set; then
28032   withval="$with_gtk_prefix"
28033   gtk_config_prefix="$withval"
28034 else
28035   gtk_config_prefix=""
28036 fi;
28037
28038 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28039 if test "${with_gtk_exec_prefix+set}" = set; then
28040   withval="$with_gtk_exec_prefix"
28041   gtk_config_exec_prefix="$withval"
28042 else
28043   gtk_config_exec_prefix=""
28044 fi;
28045 # Check whether --enable-gtktest or --disable-gtktest was given.
28046 if test "${enable_gtktest+set}" = set; then
28047   enableval="$enable_gtktest"
28048
28049 else
28050   enable_gtktest=yes
28051 fi;
28052
28053   for module in . $GTK_MODULES
28054   do
28055       case "$module" in
28056          gthread)
28057              gtk_config_args="$gtk_config_args gthread"
28058          ;;
28059       esac
28060   done
28061
28062   if test x$gtk_config_exec_prefix != x ; then
28063      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28064      if test x${GTK_CONFIG+set} != xset ; then
28065         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28066      fi
28067   fi
28068   if test x$gtk_config_prefix != x ; then
28069      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28070      if test x${GTK_CONFIG+set} != xset ; then
28071         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28072      fi
28073   fi
28074
28075   # Extract the first word of "gtk-config", so it can be a program name with args.
28076 set dummy gtk-config; ac_word=$2
28077 echo "$as_me:$LINENO: checking for $ac_word" >&5
28078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28079 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28080   echo $ECHO_N "(cached) $ECHO_C" >&6
28081 else
28082   case $GTK_CONFIG in
28083   [\\/]* | ?:[\\/]*)
28084   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28085   ;;
28086   *)
28087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28088 for as_dir in $PATH
28089 do
28090   IFS=$as_save_IFS
28091   test -z "$as_dir" && as_dir=.
28092   for ac_exec_ext in '' $ac_executable_extensions; do
28093   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28094     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28096     break 2
28097   fi
28098 done
28099 done
28100
28101   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28102   ;;
28103 esac
28104 fi
28105 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28106
28107 if test -n "$GTK_CONFIG"; then
28108   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28109 echo "${ECHO_T}$GTK_CONFIG" >&6
28110 else
28111   echo "$as_me:$LINENO: result: no" >&5
28112 echo "${ECHO_T}no" >&6
28113 fi
28114
28115   min_gtk_version=1.2.3
28116   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28117 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28118   no_gtk=""
28119   if test "$GTK_CONFIG" = "no" ; then
28120     no_gtk=yes
28121   else
28122     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28123     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28124     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28125            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28126     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28127            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28128     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28129            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28130     if test "x$enable_gtktest" = "xyes" ; then
28131       ac_save_CFLAGS="$CFLAGS"
28132       ac_save_LIBS="$LIBS"
28133       CFLAGS="$CFLAGS $GTK_CFLAGS"
28134       LIBS="$GTK_LIBS $LIBS"
28135       rm -f conf.gtktest
28136       if test "$cross_compiling" = yes; then
28137   echo $ac_n "cross compiling; assumed OK... $ac_c"
28138 else
28139   cat >conftest.$ac_ext <<_ACEOF
28140 /* confdefs.h.  */
28141 _ACEOF
28142 cat confdefs.h >>conftest.$ac_ext
28143 cat >>conftest.$ac_ext <<_ACEOF
28144 /* end confdefs.h.  */
28145
28146 #include <gtk/gtk.h>
28147 #include <stdio.h>
28148 #include <stdlib.h>
28149
28150 int
28151 main ()
28152 {
28153   int major, minor, micro;
28154   char *tmp_version;
28155
28156   system ("touch conf.gtktest");
28157
28158   /* HP/UX 9 (%@#!) writes to sscanf strings */
28159   tmp_version = g_strdup("$min_gtk_version");
28160   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28161      printf("%s, bad version string\n", "$min_gtk_version");
28162      exit(1);
28163    }
28164
28165   if ((gtk_major_version != $gtk_config_major_version) ||
28166       (gtk_minor_version != $gtk_config_minor_version) ||
28167       (gtk_micro_version != $gtk_config_micro_version))
28168     {
28169       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28170              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28171              gtk_major_version, gtk_minor_version, gtk_micro_version);
28172       printf ("*** was found! If gtk-config was correct, then it is best\n");
28173       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28174       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28175       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28176       printf("*** required on your system.\n");
28177       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28178       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28179       printf("*** before re-running configure\n");
28180     }
28181 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28182   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28183            (gtk_minor_version != GTK_MINOR_VERSION) ||
28184            (gtk_micro_version != GTK_MICRO_VERSION))
28185     {
28186       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28187              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28188       printf("*** library (version %d.%d.%d)\n",
28189              gtk_major_version, gtk_minor_version, gtk_micro_version);
28190     }
28191 #endif /* defined (GTK_MAJOR_VERSION) ... */
28192   else
28193     {
28194       if ((gtk_major_version > major) ||
28195         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28196         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28197       {
28198         return 0;
28199        }
28200      else
28201       {
28202         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28203                gtk_major_version, gtk_minor_version, gtk_micro_version);
28204         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28205                major, minor, micro);
28206         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28207         printf("***\n");
28208         printf("*** If you have already installed a sufficiently new version, this error\n");
28209         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28210         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28211         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28212         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28213         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28214         printf("*** so that the correct libraries are found at run-time))\n");
28215       }
28216     }
28217   return 1;
28218 }
28219
28220 _ACEOF
28221 rm -f conftest$ac_exeext
28222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28223   (eval $ac_link) 2>&5
28224   ac_status=$?
28225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28228   (eval $ac_try) 2>&5
28229   ac_status=$?
28230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231   (exit $ac_status); }; }; then
28232   :
28233 else
28234   echo "$as_me: program exited with status $ac_status" >&5
28235 echo "$as_me: failed program was:" >&5
28236 sed 's/^/| /' conftest.$ac_ext >&5
28237
28238 ( exit $ac_status )
28239 no_gtk=yes
28240 fi
28241 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28242 fi
28243        CFLAGS="$ac_save_CFLAGS"
28244        LIBS="$ac_save_LIBS"
28245      fi
28246   fi
28247   if test "x$no_gtk" = x ; then
28248      echo "$as_me:$LINENO: result: yes" >&5
28249 echo "${ECHO_T}yes" >&6
28250      wx_cv_lib_gtk=1.2.3
28251   else
28252      echo "$as_me:$LINENO: result: no" >&5
28253 echo "${ECHO_T}no" >&6
28254      if test "$GTK_CONFIG" = "no" ; then
28255        echo "*** The gtk-config script installed by GTK could not be found"
28256        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28257        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28258        echo "*** full path to gtk-config."
28259      else
28260        if test -f conf.gtktest ; then
28261         :
28262        else
28263           echo "*** Could not run GTK test program, checking why..."
28264           CFLAGS="$CFLAGS $GTK_CFLAGS"
28265           LIBS="$LIBS $GTK_LIBS"
28266           cat >conftest.$ac_ext <<_ACEOF
28267 /* confdefs.h.  */
28268 _ACEOF
28269 cat confdefs.h >>conftest.$ac_ext
28270 cat >>conftest.$ac_ext <<_ACEOF
28271 /* end confdefs.h.  */
28272
28273 #include <gtk/gtk.h>
28274 #include <stdio.h>
28275
28276 int
28277 main ()
28278 {
28279  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28280   ;
28281   return 0;
28282 }
28283 _ACEOF
28284 rm -f conftest.$ac_objext conftest$ac_exeext
28285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28286   (eval $ac_link) 2>conftest.er1
28287   ac_status=$?
28288   grep -v '^ *+' conftest.er1 >conftest.err
28289   rm -f conftest.er1
28290   cat conftest.err >&5
28291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292   (exit $ac_status); } &&
28293          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28295   (eval $ac_try) 2>&5
28296   ac_status=$?
28297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298   (exit $ac_status); }; } &&
28299          { ac_try='test -s conftest$ac_exeext'
28300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28301   (eval $ac_try) 2>&5
28302   ac_status=$?
28303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304   (exit $ac_status); }; }; then
28305    echo "*** The test program compiled, but did not run. This usually means"
28306           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28307           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28308           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28309           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28310           echo "*** is required on your system"
28311           echo "***"
28312           echo "*** If you have an old version installed, it is best to remove it, although"
28313           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28314           echo "***"
28315           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28316           echo "*** came with the system with the command"
28317           echo "***"
28318           echo "***    rpm --erase --nodeps gtk gtk-devel"
28319 else
28320   echo "$as_me: failed program was:" >&5
28321 sed 's/^/| /' conftest.$ac_ext >&5
28322
28323  echo "*** The test program failed to compile or link. See the file config.log for the"
28324           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28325           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28326           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28327 fi
28328 rm -f conftest.err conftest.$ac_objext \
28329       conftest$ac_exeext conftest.$ac_ext
28330           CFLAGS="$ac_save_CFLAGS"
28331           LIBS="$ac_save_LIBS"
28332        fi
28333      fi
28334      GTK_CFLAGS=""
28335      GTK_LIBS=""
28336      :
28337   fi
28338
28339
28340   rm -f conf.gtktest
28341
28342                         fi
28343                     fi
28344                 fi
28345
28346                 if test -z "$wx_cv_lib_gtk"; then
28347                                         wx_cv_lib_gtk=none
28348                 else
28349                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
28350                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
28351                 fi
28352
28353
28354 fi
28355
28356
28357                         if test "$gtk_version_cached" = 1; then
28358             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28359 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28360         fi
28361
28362         case "$wx_cv_lib_gtk" in
28363             2.0)    WXGTK20=1
28364                     TOOLKIT_VERSION=2
28365                     ;;
28366             1.2.7)  WXGTK127=1
28367                     WXGTK12=1
28368                     ;;
28369             1.2.3)  WXGTK12=1
28370                     ;;
28371             *)      { { echo "$as_me:$LINENO: error:
28372 The development files for GTK+ were not found. For GTK+ 2, please
28373 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28374 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28375 and that the version is 1.2.3 or above. Also check that the
28376 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28377 --libs' are in the LD_LIBRARY_PATH or equivalent.
28378                             " >&5
28379 echo "$as_me: error:
28380 The development files for GTK+ were not found. For GTK+ 2, please
28381 ensure that pkg-config is in the path and that gtk+-2.0.pc is
28382 installed. For GTK+ 1.2 please check that gtk-config is in the path,
28383 and that the version is 1.2.3 or above. Also check that the
28384 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28385 --libs' are in the LD_LIBRARY_PATH or equivalent.
28386                             " >&2;}
28387    { (exit 1); exit 1; }; }
28388                     ;;
28389         esac
28390
28391         if test "$WXGTK20" = 1; then
28392             save_CFLAGS="$CFLAGS"
28393             save_LIBS="$LIBS"
28394             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
28395             LIBS="$LIBS $wx_cv_libs_gtk"
28396
28397                                                             echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
28398 echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
28399 if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
28400   echo $ECHO_N "(cached) $ECHO_C" >&6
28401 else
28402   cat >conftest.$ac_ext <<_ACEOF
28403 /* confdefs.h.  */
28404 _ACEOF
28405 cat confdefs.h >>conftest.$ac_ext
28406 cat >>conftest.$ac_ext <<_ACEOF
28407 /* end confdefs.h.  */
28408 #include <gtk/gtk.h>
28409
28410 int
28411 main ()
28412 {
28413 #ifndef gtk_icon_size_lookup
28414   char *p = (char *) gtk_icon_size_lookup;
28415 #endif
28416
28417   ;
28418   return 0;
28419 }
28420 _ACEOF
28421 rm -f conftest.$ac_objext
28422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28423   (eval $ac_compile) 2>conftest.er1
28424   ac_status=$?
28425   grep -v '^ *+' conftest.er1 >conftest.err
28426   rm -f conftest.er1
28427   cat conftest.err >&5
28428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429   (exit $ac_status); } &&
28430          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28432   (eval $ac_try) 2>&5
28433   ac_status=$?
28434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435   (exit $ac_status); }; } &&
28436          { ac_try='test -s conftest.$ac_objext'
28437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28438   (eval $ac_try) 2>&5
28439   ac_status=$?
28440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28441   (exit $ac_status); }; }; then
28442   ac_cv_have_decl_gtk_icon_size_lookup=yes
28443 else
28444   echo "$as_me: failed program was:" >&5
28445 sed 's/^/| /' conftest.$ac_ext >&5
28446
28447 ac_cv_have_decl_gtk_icon_size_lookup=no
28448 fi
28449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28450 fi
28451 echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
28452 echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
28453 if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
28454
28455 cat >>confdefs.h <<_ACEOF
28456 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
28457 _ACEOF
28458
28459
28460 else
28461   cat >>confdefs.h <<_ACEOF
28462 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
28463 _ACEOF
28464
28465 cat >>confdefs.h <<\_ACEOF
28466 #define NEED_GTK_ICON_SIZE_LOOKUP 1
28467 _ACEOF
28468
28469 fi
28470
28471
28472
28473                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28474 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28475             cat >conftest.$ac_ext <<_ACEOF
28476 /* confdefs.h.  */
28477 _ACEOF
28478 cat confdefs.h >>conftest.$ac_ext
28479 cat >>conftest.$ac_ext <<_ACEOF
28480 /* end confdefs.h.  */
28481
28482                             #include <gtk/gtk.h>
28483
28484 int
28485 main ()
28486 {
28487
28488                             #if !GTK_CHECK_VERSION(2,6,0)
28489                             Not GTK+ 2.6
28490                             #endif
28491
28492   ;
28493   return 0;
28494 }
28495 _ACEOF
28496 rm -f conftest.$ac_objext
28497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28498   (eval $ac_compile) 2>conftest.er1
28499   ac_status=$?
28500   grep -v '^ *+' conftest.er1 >conftest.err
28501   rm -f conftest.er1
28502   cat conftest.err >&5
28503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504   (exit $ac_status); } &&
28505          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28507   (eval $ac_try) 2>&5
28508   ac_status=$?
28509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510   (exit $ac_status); }; } &&
28511          { ac_try='test -s conftest.$ac_objext'
28512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28513   (eval $ac_try) 2>&5
28514   ac_status=$?
28515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516   (exit $ac_status); }; }; then
28517
28518                             cat >>confdefs.h <<\_ACEOF
28519 #define __WXGTK26__ 1
28520 _ACEOF
28521
28522                             cat >>confdefs.h <<\_ACEOF
28523 #define __WXGTK24__ 1
28524 _ACEOF
28525
28526                             echo "$as_me:$LINENO: result: yes" >&5
28527 echo "${ECHO_T}yes" >&6
28528                             ac_wxgtk26=1
28529
28530 else
28531   echo "$as_me: failed program was:" >&5
28532 sed 's/^/| /' conftest.$ac_ext >&5
28533
28534
28535                             echo "$as_me:$LINENO: result: no" >&5
28536 echo "${ECHO_T}no" >&6
28537                             ac_wxgtk26=0
28538
28539 fi
28540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28541
28542             if test "$ac_wxgtk26" = 0; then
28543                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28544 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28545             cat >conftest.$ac_ext <<_ACEOF
28546 /* confdefs.h.  */
28547 _ACEOF
28548 cat confdefs.h >>conftest.$ac_ext
28549 cat >>conftest.$ac_ext <<_ACEOF
28550 /* end confdefs.h.  */
28551
28552                             #include <gtk/gtk.h>
28553
28554 int
28555 main ()
28556 {
28557
28558                             #if !GTK_CHECK_VERSION(2,4,0)
28559                             Not GTK+ 2.4
28560                             #endif
28561
28562   ;
28563   return 0;
28564 }
28565 _ACEOF
28566 rm -f conftest.$ac_objext
28567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28568   (eval $ac_compile) 2>conftest.er1
28569   ac_status=$?
28570   grep -v '^ *+' conftest.er1 >conftest.err
28571   rm -f conftest.er1
28572   cat conftest.err >&5
28573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28574   (exit $ac_status); } &&
28575          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28577   (eval $ac_try) 2>&5
28578   ac_status=$?
28579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28580   (exit $ac_status); }; } &&
28581          { ac_try='test -s conftest.$ac_objext'
28582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28583   (eval $ac_try) 2>&5
28584   ac_status=$?
28585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586   (exit $ac_status); }; }; then
28587
28588                             cat >>confdefs.h <<\_ACEOF
28589 #define __WXGTK24__ 1
28590 _ACEOF
28591
28592                             echo "$as_me:$LINENO: result: yes" >&5
28593 echo "${ECHO_T}yes" >&6
28594
28595 else
28596   echo "$as_me: failed program was:" >&5
28597 sed 's/^/| /' conftest.$ac_ext >&5
28598
28599
28600                             echo "$as_me:$LINENO: result: no" >&5
28601 echo "${ECHO_T}no" >&6
28602
28603 fi
28604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28605             fi
28606
28607             CFLAGS="$save_CFLAGS"
28608             LIBS="$save_LIBS"
28609         else
28610             if test "$wxUSE_UNICODE" = "yes"; then
28611                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28612 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28613                 wxUSE_UNICODE=no
28614             fi
28615
28616                         echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28617 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28618 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28619   echo $ECHO_N "(cached) $ECHO_C" >&6
28620 else
28621   ac_check_lib_save_LIBS=$LIBS
28622 LIBS="-lgdk  $LIBS"
28623 cat >conftest.$ac_ext <<_ACEOF
28624 /* confdefs.h.  */
28625 _ACEOF
28626 cat confdefs.h >>conftest.$ac_ext
28627 cat >>conftest.$ac_ext <<_ACEOF
28628 /* end confdefs.h.  */
28629
28630 /* Override any gcc2 internal prototype to avoid an error.  */
28631 #ifdef __cplusplus
28632 extern "C"
28633 #endif
28634 /* We use char because int might match the return type of a gcc2
28635    builtin and then its argument prototype would still apply.  */
28636 char gdk_im_open ();
28637 int
28638 main ()
28639 {
28640 gdk_im_open ();
28641   ;
28642   return 0;
28643 }
28644 _ACEOF
28645 rm -f conftest.$ac_objext conftest$ac_exeext
28646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28647   (eval $ac_link) 2>conftest.er1
28648   ac_status=$?
28649   grep -v '^ *+' conftest.er1 >conftest.err
28650   rm -f conftest.er1
28651   cat conftest.err >&5
28652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653   (exit $ac_status); } &&
28654          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28656   (eval $ac_try) 2>&5
28657   ac_status=$?
28658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659   (exit $ac_status); }; } &&
28660          { ac_try='test -s conftest$ac_exeext'
28661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28662   (eval $ac_try) 2>&5
28663   ac_status=$?
28664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665   (exit $ac_status); }; }; then
28666   ac_cv_lib_gdk_gdk_im_open=yes
28667 else
28668   echo "$as_me: failed program was:" >&5
28669 sed 's/^/| /' conftest.$ac_ext >&5
28670
28671 ac_cv_lib_gdk_gdk_im_open=no
28672 fi
28673 rm -f conftest.err conftest.$ac_objext \
28674       conftest$ac_exeext conftest.$ac_ext
28675 LIBS=$ac_check_lib_save_LIBS
28676 fi
28677 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28678 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28679 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28680   cat >>confdefs.h <<\_ACEOF
28681 #define HAVE_XIM 1
28682 _ACEOF
28683
28684 fi
28685
28686         fi
28687
28688                         if test "$USE_DARWIN" != 1; then
28689
28690 for ac_func in poll
28691 do
28692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28693 echo "$as_me:$LINENO: checking for $ac_func" >&5
28694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28695 if eval "test \"\${$as_ac_var+set}\" = set"; then
28696   echo $ECHO_N "(cached) $ECHO_C" >&6
28697 else
28698   cat >conftest.$ac_ext <<_ACEOF
28699 /* confdefs.h.  */
28700 _ACEOF
28701 cat confdefs.h >>conftest.$ac_ext
28702 cat >>conftest.$ac_ext <<_ACEOF
28703 /* end confdefs.h.  */
28704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28706 #define $ac_func innocuous_$ac_func
28707
28708 /* System header to define __stub macros and hopefully few prototypes,
28709     which can conflict with char $ac_func (); below.
28710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28711     <limits.h> exists even on freestanding compilers.  */
28712
28713 #ifdef __STDC__
28714 # include <limits.h>
28715 #else
28716 # include <assert.h>
28717 #endif
28718
28719 #undef $ac_func
28720
28721 /* Override any gcc2 internal prototype to avoid an error.  */
28722 #ifdef __cplusplus
28723 extern "C"
28724 {
28725 #endif
28726 /* We use char because int might match the return type of a gcc2
28727    builtin and then its argument prototype would still apply.  */
28728 char $ac_func ();
28729 /* The GNU C library defines this for functions which it implements
28730     to always fail with ENOSYS.  Some functions are actually named
28731     something starting with __ and the normal name is an alias.  */
28732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28733 choke me
28734 #else
28735 char (*f) () = $ac_func;
28736 #endif
28737 #ifdef __cplusplus
28738 }
28739 #endif
28740
28741 int
28742 main ()
28743 {
28744 return f != $ac_func;
28745   ;
28746   return 0;
28747 }
28748 _ACEOF
28749 rm -f conftest.$ac_objext conftest$ac_exeext
28750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28751   (eval $ac_link) 2>conftest.er1
28752   ac_status=$?
28753   grep -v '^ *+' conftest.er1 >conftest.err
28754   rm -f conftest.er1
28755   cat conftest.err >&5
28756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757   (exit $ac_status); } &&
28758          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28760   (eval $ac_try) 2>&5
28761   ac_status=$?
28762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763   (exit $ac_status); }; } &&
28764          { ac_try='test -s conftest$ac_exeext'
28765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28766   (eval $ac_try) 2>&5
28767   ac_status=$?
28768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769   (exit $ac_status); }; }; then
28770   eval "$as_ac_var=yes"
28771 else
28772   echo "$as_me: failed program was:" >&5
28773 sed 's/^/| /' conftest.$ac_ext >&5
28774
28775 eval "$as_ac_var=no"
28776 fi
28777 rm -f conftest.err conftest.$ac_objext \
28778       conftest$ac_exeext conftest.$ac_ext
28779 fi
28780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28782 if test `eval echo '${'$as_ac_var'}'` = yes; then
28783   cat >>confdefs.h <<_ACEOF
28784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28785 _ACEOF
28786
28787 fi
28788 done
28789
28790         fi
28791
28792         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28793         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28794
28795         AFMINSTALL=afminstall
28796         TOOLKIT=GTK
28797         GUIDIST=GTK_DIST
28798
28799                 if test "$wxUSE_GPE" = "yes"; then
28800             echo "$as_me:$LINENO: checking for gpewidget library" >&5
28801 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28802
28803   ac_find_libraries=
28804   for ac_dir in $SEARCH_LIB;
28805   do
28806     for ac_extension in a so sl dylib dll.a; do
28807       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28808         ac_find_libraries=$ac_dir
28809         break 2
28810       fi
28811     done
28812   done
28813
28814             if test "$ac_find_libraries" != "" ; then
28815
28816     if test "$ac_find_libraries" = "default location"; then
28817     ac_path_to_link=""
28818   else
28819     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28820     result=$?
28821     if test $result = 0; then
28822       ac_path_to_link=""
28823     else
28824       ac_path_to_link=" -L$ac_find_libraries"
28825     fi
28826   fi
28827
28828                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28829                 WXGPE=1
28830                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28831 echo "${ECHO_T}found in $ac_find_libraries" >&6
28832             else
28833                 echo "$as_me:$LINENO: result: not found" >&5
28834 echo "${ECHO_T}not found" >&6
28835             fi
28836
28837                                                                                                                     fi
28838     fi
28839
28840     if test "$wxUSE_MGL" = 1; then
28841        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28842 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28843         if test "x$MGL_ROOT" = x ; then
28844             echo "$as_me:$LINENO: result: not found" >&5
28845 echo "${ECHO_T}not found" >&6
28846             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28847 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28848    { (exit 1); exit 1; }; }
28849         else
28850             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28851 echo "${ECHO_T}$MGL_ROOT" >&6
28852         fi
28853
28854         echo "$as_me:$LINENO: checking for libmgl location" >&5
28855 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28856                                 case "${host}" in
28857             *-*-linux* )
28858                                           if test "x$wxUSE_SHARED" = xyes ; then
28859                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28860               else
28861                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28862               fi
28863               ;;
28864             *-pc-msdosdjgpp )
28865               mgl_os_candidates="dos32/dj2"
28866               ;;
28867             *)
28868               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28869 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28870    { (exit 1); exit 1; }; }
28871         esac
28872
28873         mgl_lib_type=""
28874         mgl_os=""
28875
28876         for mgl_os_i in $mgl_os_candidates ; do
28877             if test "x$mgl_os" = x ; then
28878                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28879                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28880                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28881                         mgl_lib_type=debug
28882                         mgl_os=$mgl_os_i
28883                     fi
28884                 fi
28885                 if test "x$mgl_lib_type" = x ; then
28886                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28887                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28888                         mgl_lib_type=release
28889                         mgl_os=$mgl_os_i
28890                     fi
28891                 fi
28892             fi
28893         done
28894
28895         if test "x$mgl_os" = x ; then
28896             echo "$as_me:$LINENO: result: not found" >&5
28897 echo "${ECHO_T}not found" >&6
28898             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28899 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28900    { (exit 1); exit 1; }; }
28901         fi
28902         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28903 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28904
28905         wxUSE_UNIVERSAL="yes"
28906
28907         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28908         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28909
28910         AFMINSTALL=afminstall
28911         TOOLKIT=MGL
28912         GUIDIST=MGL_DIST
28913     fi
28914
28915     if test "$wxUSE_DFB" = 1; then
28916
28917
28918 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
28919         if test -n "$ac_tool_prefix"; then
28920   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28921 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28922 echo "$as_me:$LINENO: checking for $ac_word" >&5
28923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28924 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28925   echo $ECHO_N "(cached) $ECHO_C" >&6
28926 else
28927   case $PKG_CONFIG in
28928   [\\/]* | ?:[\\/]*)
28929   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28930   ;;
28931   *)
28932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28933 for as_dir in $PATH
28934 do
28935   IFS=$as_save_IFS
28936   test -z "$as_dir" && as_dir=.
28937   for ac_exec_ext in '' $ac_executable_extensions; do
28938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28939     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28941     break 2
28942   fi
28943 done
28944 done
28945
28946   ;;
28947 esac
28948 fi
28949 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28950
28951 if test -n "$PKG_CONFIG"; then
28952   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28953 echo "${ECHO_T}$PKG_CONFIG" >&6
28954 else
28955   echo "$as_me:$LINENO: result: no" >&5
28956 echo "${ECHO_T}no" >&6
28957 fi
28958
28959 fi
28960 if test -z "$ac_cv_path_PKG_CONFIG"; then
28961   ac_pt_PKG_CONFIG=$PKG_CONFIG
28962   # Extract the first word of "pkg-config", so it can be a program name with args.
28963 set dummy pkg-config; ac_word=$2
28964 echo "$as_me:$LINENO: checking for $ac_word" >&5
28965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28966 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
28967   echo $ECHO_N "(cached) $ECHO_C" >&6
28968 else
28969   case $ac_pt_PKG_CONFIG in
28970   [\\/]* | ?:[\\/]*)
28971   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
28972   ;;
28973   *)
28974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28975 for as_dir in $PATH
28976 do
28977   IFS=$as_save_IFS
28978   test -z "$as_dir" && as_dir=.
28979   for ac_exec_ext in '' $ac_executable_extensions; do
28980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28981     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28983     break 2
28984   fi
28985 done
28986 done
28987
28988   ;;
28989 esac
28990 fi
28991 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
28992
28993 if test -n "$ac_pt_PKG_CONFIG"; then
28994   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
28995 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
28996 else
28997   echo "$as_me:$LINENO: result: no" >&5
28998 echo "${ECHO_T}no" >&6
28999 fi
29000
29001   PKG_CONFIG=$ac_pt_PKG_CONFIG
29002 else
29003   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29004 fi
29005
29006 fi
29007 if test -n "$PKG_CONFIG"; then
29008         _pkg_min_version=0.9.0
29009         echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29010 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29011         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29012                 echo "$as_me:$LINENO: result: yes" >&5
29013 echo "${ECHO_T}yes" >&6
29014         else
29015                 echo "$as_me:$LINENO: result: no" >&5
29016 echo "${ECHO_T}no" >&6
29017                 PKG_CONFIG=""
29018         fi
29019
29020 fi
29021
29022
29023 pkg_failed=no
29024 echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29025 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
29026
29027 if test -n "$PKG_CONFIG"; then
29028     if test -n "$DIRECTFB_CFLAGS"; then
29029         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29030     else
29031         if test -n "$PKG_CONFIG" && \
29032     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29033   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29034   ac_status=$?
29035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29036   (exit $ac_status); }; then
29037   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
29038 else
29039   pkg_failed=yes
29040 fi
29041     fi
29042 else
29043         pkg_failed=untried
29044 fi
29045 if test -n "$PKG_CONFIG"; then
29046     if test -n "$DIRECTFB_LIBS"; then
29047         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29048     else
29049         if test -n "$PKG_CONFIG" && \
29050     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29051   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29052   ac_status=$?
29053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054   (exit $ac_status); }; then
29055   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
29056 else
29057   pkg_failed=yes
29058 fi
29059     fi
29060 else
29061         pkg_failed=untried
29062 fi
29063
29064
29065
29066 if test $pkg_failed = yes; then
29067
29068 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29069         _pkg_short_errors_supported=yes
29070 else
29071         _pkg_short_errors_supported=no
29072 fi
29073         if test $_pkg_short_errors_supported = yes; then
29074                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29075         else
29076                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29077         fi
29078         # Put the nasty error message in config.log where it belongs
29079         echo "$DIRECTFB_PKG_ERRORS" >&5
29080
29081
29082                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29083 echo "$as_me: error: DirectFB not found." >&2;}
29084    { (exit 1); exit 1; }; }
29085
29086
29087 elif test $pkg_failed = untried; then
29088
29089                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29090 echo "$as_me: error: DirectFB not found." >&2;}
29091    { (exit 1); exit 1; }; }
29092
29093
29094 else
29095         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29096         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29097         echo "$as_me:$LINENO: result: yes" >&5
29098 echo "${ECHO_T}yes" >&6
29099
29100                            wxUSE_UNIVERSAL="yes"
29101                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29102                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29103                            TOOLKIT=DFB
29104                            GUIDIST=DFB_DIST
29105
29106 fi
29107     fi
29108
29109     if test "$wxUSE_MICROWIN" = 1; then
29110         echo "$as_me:$LINENO: checking for MicroWindows" >&5
29111 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29112         if test "x$MICROWINDOWS" = x ; then
29113             echo "$as_me:$LINENO: result: not found" >&5
29114 echo "${ECHO_T}not found" >&6
29115             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29116 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29117    { (exit 1); exit 1; }; }
29118         else
29119             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29120 echo "${ECHO_T}$MICROWINDOWS" >&6
29121         fi
29122
29123         if test -f $MICROWINDOWS/lib/libmwin.a; then
29124             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29125 echo "${ECHO_T}MicroWindows' libraries found." >&6
29126         else
29127             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29128 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29129    { (exit 1); exit 1; }; }
29130         fi
29131
29132         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29133         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29134
29135         wxUSE_UNIVERSAL="yes"
29136
29137         AFMINSTALL=afminstall
29138         TOOLKIT=MICROWIN
29139         GUIDIST=MICROWIN_DIST
29140
29141         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29142     fi
29143
29144         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
29145
29146 if test "x$ac_path_x_has_been_run" != xyes; then
29147   echo "$as_me:$LINENO: checking for X" >&5
29148 echo $ECHO_N "checking for X... $ECHO_C" >&6
29149
29150 ac_path_x_has_been_run=yes
29151
29152 # Check whether --with-x or --without-x was given.
29153 if test "${with_x+set}" = set; then
29154   withval="$with_x"
29155
29156 fi;
29157 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29158 if test "x$with_x" = xno; then
29159   # The user explicitly disabled X.
29160   have_x=disabled
29161 else
29162   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29163     # Both variables are already set.
29164     have_x=yes
29165   else
29166     if test "${ac_cv_have_x+set}" = set; then
29167   echo $ECHO_N "(cached) $ECHO_C" >&6
29168 else
29169   # One or both of the vars are not set, and there is no cached value.
29170 ac_x_includes=no ac_x_libraries=no
29171 rm -fr conftest.dir
29172 if mkdir conftest.dir; then
29173   cd conftest.dir
29174   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29175   cat >Imakefile <<'_ACEOF'
29176 acfindx:
29177         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29178 _ACEOF
29179   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29180     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29181     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29182     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29183     for ac_extension in a so sl; do
29184       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
29185          test -f $ac_im_libdir/libX11.$ac_extension; then
29186         ac_im_usrlibdir=$ac_im_libdir; break
29187       fi
29188     done
29189     # Screen out bogus values from the imake configuration.  They are
29190     # bogus both because they are the default anyway, and because
29191     # using them would break gcc on systems where it needs fixed includes.
29192     case $ac_im_incroot in
29193         /usr/include) ;;
29194         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29195     esac
29196     case $ac_im_usrlibdir in
29197         /usr/lib | /lib) ;;
29198         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29199     esac
29200   fi
29201   cd ..
29202   rm -fr conftest.dir
29203 fi
29204
29205 # Standard set of common directories for X headers.
29206 # Check X11 before X11Rn because it is often a symlink to the current release.
29207 ac_x_header_dirs='
29208 /usr/X11/include
29209 /usr/X11R6/include
29210 /usr/X11R5/include
29211 /usr/X11R4/include
29212
29213 /usr/include/X11
29214 /usr/include/X11R6
29215 /usr/include/X11R5
29216 /usr/include/X11R4
29217
29218 /usr/local/X11/include
29219 /usr/local/X11R6/include
29220 /usr/local/X11R5/include
29221 /usr/local/X11R4/include
29222
29223 /usr/local/include/X11
29224 /usr/local/include/X11R6
29225 /usr/local/include/X11R5
29226 /usr/local/include/X11R4
29227
29228 /usr/X386/include
29229 /usr/x386/include
29230 /usr/XFree86/include/X11
29231
29232 /usr/include
29233 /usr/local/include
29234 /usr/unsupported/include
29235 /usr/athena/include
29236 /usr/local/x11r5/include
29237 /usr/lpp/Xamples/include
29238
29239 /usr/openwin/include
29240 /usr/openwin/share/include'
29241
29242 if test "$ac_x_includes" = no; then
29243   # Guess where to find include files, by looking for a specified header file.
29244   # First, try using that file with no special directory specified.
29245   cat >conftest.$ac_ext <<_ACEOF
29246 /* confdefs.h.  */
29247 _ACEOF
29248 cat confdefs.h >>conftest.$ac_ext
29249 cat >>conftest.$ac_ext <<_ACEOF
29250 /* end confdefs.h.  */
29251 #include <X11/Xlib.h>
29252 _ACEOF
29253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29254   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29255   ac_status=$?
29256   grep -v '^ *+' conftest.er1 >conftest.err
29257   rm -f conftest.er1
29258   cat conftest.err >&5
29259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29260   (exit $ac_status); } >/dev/null; then
29261   if test -s conftest.err; then
29262     ac_cpp_err=$ac_c_preproc_warn_flag
29263     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29264   else
29265     ac_cpp_err=
29266   fi
29267 else
29268   ac_cpp_err=yes
29269 fi
29270 if test -z "$ac_cpp_err"; then
29271   # We can compile using X headers with no special include directory.
29272 ac_x_includes=
29273 else
29274   echo "$as_me: failed program was:" >&5
29275 sed 's/^/| /' conftest.$ac_ext >&5
29276
29277   for ac_dir in $ac_x_header_dirs; do
29278   if test -r "$ac_dir/X11/Xlib.h"; then
29279     ac_x_includes=$ac_dir
29280     break
29281   fi
29282 done
29283 fi
29284 rm -f conftest.err conftest.$ac_ext
29285 fi # $ac_x_includes = no
29286
29287 if test "$ac_x_libraries" = no; then
29288   # Check for the libraries.
29289   # See if we find them without any special options.
29290   # Don't add to $LIBS permanently.
29291   ac_save_LIBS=$LIBS
29292   LIBS="-lX11 $LIBS"
29293   cat >conftest.$ac_ext <<_ACEOF
29294 /* confdefs.h.  */
29295 _ACEOF
29296 cat confdefs.h >>conftest.$ac_ext
29297 cat >>conftest.$ac_ext <<_ACEOF
29298 /* end confdefs.h.  */
29299 #include <X11/Xlib.h>
29300 int
29301 main ()
29302 {
29303 XrmInitialize ()
29304   ;
29305   return 0;
29306 }
29307 _ACEOF
29308 rm -f conftest.$ac_objext conftest$ac_exeext
29309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29310   (eval $ac_link) 2>conftest.er1
29311   ac_status=$?
29312   grep -v '^ *+' conftest.er1 >conftest.err
29313   rm -f conftest.er1
29314   cat conftest.err >&5
29315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316   (exit $ac_status); } &&
29317          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29319   (eval $ac_try) 2>&5
29320   ac_status=$?
29321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29322   (exit $ac_status); }; } &&
29323          { ac_try='test -s conftest$ac_exeext'
29324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29325   (eval $ac_try) 2>&5
29326   ac_status=$?
29327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328   (exit $ac_status); }; }; then
29329   LIBS=$ac_save_LIBS
29330 # We can link X programs with no special library path.
29331 ac_x_libraries=
29332 else
29333   echo "$as_me: failed program was:" >&5
29334 sed 's/^/| /' conftest.$ac_ext >&5
29335
29336 LIBS=$ac_save_LIBS
29337 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29338 do
29339   # Don't even attempt the hair of trying to link an X program!
29340   for ac_extension in a so sl; do
29341     if test -r $ac_dir/libX11.$ac_extension; then
29342       ac_x_libraries=$ac_dir
29343       break 2
29344     fi
29345   done
29346 done
29347 fi
29348 rm -f conftest.err conftest.$ac_objext \
29349       conftest$ac_exeext conftest.$ac_ext
29350 fi # $ac_x_libraries = no
29351
29352 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29353   # Didn't find X anywhere.  Cache the known absence of X.
29354   ac_cv_have_x="have_x=no"
29355 else
29356   # Record where we found X for the cache.
29357   ac_cv_have_x="have_x=yes \
29358                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
29359 fi
29360 fi
29361
29362   fi
29363   eval "$ac_cv_have_x"
29364 fi # $with_x != no
29365
29366 if test "$have_x" != yes; then
29367   echo "$as_me:$LINENO: result: $have_x" >&5
29368 echo "${ECHO_T}$have_x" >&6
29369   no_x=yes
29370 else
29371   # If each of the values was on the command line, it overrides each guess.
29372   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29373   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29374   # Update the cache value to reflect the command line values.
29375   ac_cv_have_x="have_x=yes \
29376                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
29377   # It might be that x_includes is empty (headers are found in the
29378   # standard search path. Then output the corresponding message
29379   ac_out_x_includes=$x_includes
29380   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
29381   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
29382 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
29383 fi
29384
29385 fi
29386 if test "$no_x" = yes; then
29387   # Not all programs may use this symbol, but it does not hurt to define it.
29388
29389 cat >>confdefs.h <<\_ACEOF
29390 #define X_DISPLAY_MISSING 1
29391 _ACEOF
29392
29393   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29394 else
29395   if test -n "$x_includes"; then
29396     X_CFLAGS="$X_CFLAGS -I$x_includes"
29397   fi
29398
29399   # It would also be nice to do this for all -L options, not just this one.
29400   if test -n "$x_libraries"; then
29401     X_LIBS="$X_LIBS -L$x_libraries"
29402     # For Solaris; some versions of Sun CC require a space after -R and
29403     # others require no space.  Words are not sufficient . . . .
29404     case `(uname -sr) 2>/dev/null` in
29405     "SunOS 5"*)
29406       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29407 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29408       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29409       cat >conftest.$ac_ext <<_ACEOF
29410 /* confdefs.h.  */
29411 _ACEOF
29412 cat confdefs.h >>conftest.$ac_ext
29413 cat >>conftest.$ac_ext <<_ACEOF
29414 /* end confdefs.h.  */
29415
29416 int
29417 main ()
29418 {
29419
29420   ;
29421   return 0;
29422 }
29423 _ACEOF
29424 rm -f conftest.$ac_objext conftest$ac_exeext
29425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29426   (eval $ac_link) 2>conftest.er1
29427   ac_status=$?
29428   grep -v '^ *+' conftest.er1 >conftest.err
29429   rm -f conftest.er1
29430   cat conftest.err >&5
29431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432   (exit $ac_status); } &&
29433          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29435   (eval $ac_try) 2>&5
29436   ac_status=$?
29437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438   (exit $ac_status); }; } &&
29439          { ac_try='test -s conftest$ac_exeext'
29440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29441   (eval $ac_try) 2>&5
29442   ac_status=$?
29443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444   (exit $ac_status); }; }; then
29445   ac_R_nospace=yes
29446 else
29447   echo "$as_me: failed program was:" >&5
29448 sed 's/^/| /' conftest.$ac_ext >&5
29449
29450 ac_R_nospace=no
29451 fi
29452 rm -f conftest.err conftest.$ac_objext \
29453       conftest$ac_exeext conftest.$ac_ext
29454       if test $ac_R_nospace = yes; then
29455         echo "$as_me:$LINENO: result: no" >&5
29456 echo "${ECHO_T}no" >&6
29457         X_LIBS="$X_LIBS -R$x_libraries"
29458       else
29459         LIBS="$ac_xsave_LIBS -R $x_libraries"
29460         cat >conftest.$ac_ext <<_ACEOF
29461 /* confdefs.h.  */
29462 _ACEOF
29463 cat confdefs.h >>conftest.$ac_ext
29464 cat >>conftest.$ac_ext <<_ACEOF
29465 /* end confdefs.h.  */
29466
29467 int
29468 main ()
29469 {
29470
29471   ;
29472   return 0;
29473 }
29474 _ACEOF
29475 rm -f conftest.$ac_objext conftest$ac_exeext
29476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29477   (eval $ac_link) 2>conftest.er1
29478   ac_status=$?
29479   grep -v '^ *+' conftest.er1 >conftest.err
29480   rm -f conftest.er1
29481   cat conftest.err >&5
29482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29483   (exit $ac_status); } &&
29484          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29486   (eval $ac_try) 2>&5
29487   ac_status=$?
29488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489   (exit $ac_status); }; } &&
29490          { ac_try='test -s conftest$ac_exeext'
29491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29492   (eval $ac_try) 2>&5
29493   ac_status=$?
29494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495   (exit $ac_status); }; }; then
29496   ac_R_space=yes
29497 else
29498   echo "$as_me: failed program was:" >&5
29499 sed 's/^/| /' conftest.$ac_ext >&5
29500
29501 ac_R_space=no
29502 fi
29503 rm -f conftest.err conftest.$ac_objext \
29504       conftest$ac_exeext conftest.$ac_ext
29505         if test $ac_R_space = yes; then
29506           echo "$as_me:$LINENO: result: yes" >&5
29507 echo "${ECHO_T}yes" >&6
29508           X_LIBS="$X_LIBS -R $x_libraries"
29509         else
29510           echo "$as_me:$LINENO: result: neither works" >&5
29511 echo "${ECHO_T}neither works" >&6
29512         fi
29513       fi
29514       LIBS=$ac_xsave_LIBS
29515     esac
29516   fi
29517
29518   # Check for system-dependent libraries X programs must link with.
29519   # Do this before checking for the system-independent R6 libraries
29520   # (-lICE), since we may need -lsocket or whatever for X linking.
29521
29522   if test "$ISC" = yes; then
29523     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29524   else
29525     # Martyn Johnson says this is needed for Ultrix, if the X
29526     # libraries were built with DECnet support.  And Karl Berry says
29527     # the Alpha needs dnet_stub (dnet does not exist).
29528     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29529     cat >conftest.$ac_ext <<_ACEOF
29530 /* confdefs.h.  */
29531 _ACEOF
29532 cat confdefs.h >>conftest.$ac_ext
29533 cat >>conftest.$ac_ext <<_ACEOF
29534 /* end confdefs.h.  */
29535
29536 /* Override any gcc2 internal prototype to avoid an error.  */
29537 #ifdef __cplusplus
29538 extern "C"
29539 #endif
29540 /* We use char because int might match the return type of a gcc2
29541    builtin and then its argument prototype would still apply.  */
29542 char XOpenDisplay ();
29543 int
29544 main ()
29545 {
29546 XOpenDisplay ();
29547   ;
29548   return 0;
29549 }
29550 _ACEOF
29551 rm -f conftest.$ac_objext conftest$ac_exeext
29552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29553   (eval $ac_link) 2>conftest.er1
29554   ac_status=$?
29555   grep -v '^ *+' conftest.er1 >conftest.err
29556   rm -f conftest.er1
29557   cat conftest.err >&5
29558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559   (exit $ac_status); } &&
29560          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29562   (eval $ac_try) 2>&5
29563   ac_status=$?
29564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565   (exit $ac_status); }; } &&
29566          { ac_try='test -s conftest$ac_exeext'
29567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29568   (eval $ac_try) 2>&5
29569   ac_status=$?
29570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29571   (exit $ac_status); }; }; then
29572   :
29573 else
29574   echo "$as_me: failed program was:" >&5
29575 sed 's/^/| /' conftest.$ac_ext >&5
29576
29577 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29578 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29579 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29580   echo $ECHO_N "(cached) $ECHO_C" >&6
29581 else
29582   ac_check_lib_save_LIBS=$LIBS
29583 LIBS="-ldnet  $LIBS"
29584 cat >conftest.$ac_ext <<_ACEOF
29585 /* confdefs.h.  */
29586 _ACEOF
29587 cat confdefs.h >>conftest.$ac_ext
29588 cat >>conftest.$ac_ext <<_ACEOF
29589 /* end confdefs.h.  */
29590
29591 /* Override any gcc2 internal prototype to avoid an error.  */
29592 #ifdef __cplusplus
29593 extern "C"
29594 #endif
29595 /* We use char because int might match the return type of a gcc2
29596    builtin and then its argument prototype would still apply.  */
29597 char dnet_ntoa ();
29598 int
29599 main ()
29600 {
29601 dnet_ntoa ();
29602   ;
29603   return 0;
29604 }
29605 _ACEOF
29606 rm -f conftest.$ac_objext conftest$ac_exeext
29607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29608   (eval $ac_link) 2>conftest.er1
29609   ac_status=$?
29610   grep -v '^ *+' conftest.er1 >conftest.err
29611   rm -f conftest.er1
29612   cat conftest.err >&5
29613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29614   (exit $ac_status); } &&
29615          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29617   (eval $ac_try) 2>&5
29618   ac_status=$?
29619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620   (exit $ac_status); }; } &&
29621          { ac_try='test -s conftest$ac_exeext'
29622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29623   (eval $ac_try) 2>&5
29624   ac_status=$?
29625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626   (exit $ac_status); }; }; then
29627   ac_cv_lib_dnet_dnet_ntoa=yes
29628 else
29629   echo "$as_me: failed program was:" >&5
29630 sed 's/^/| /' conftest.$ac_ext >&5
29631
29632 ac_cv_lib_dnet_dnet_ntoa=no
29633 fi
29634 rm -f conftest.err conftest.$ac_objext \
29635       conftest$ac_exeext conftest.$ac_ext
29636 LIBS=$ac_check_lib_save_LIBS
29637 fi
29638 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29639 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29640 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29641   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29642 fi
29643
29644     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29645       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29646 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29647 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29648   echo $ECHO_N "(cached) $ECHO_C" >&6
29649 else
29650   ac_check_lib_save_LIBS=$LIBS
29651 LIBS="-ldnet_stub  $LIBS"
29652 cat >conftest.$ac_ext <<_ACEOF
29653 /* confdefs.h.  */
29654 _ACEOF
29655 cat confdefs.h >>conftest.$ac_ext
29656 cat >>conftest.$ac_ext <<_ACEOF
29657 /* end confdefs.h.  */
29658
29659 /* Override any gcc2 internal prototype to avoid an error.  */
29660 #ifdef __cplusplus
29661 extern "C"
29662 #endif
29663 /* We use char because int might match the return type of a gcc2
29664    builtin and then its argument prototype would still apply.  */
29665 char dnet_ntoa ();
29666 int
29667 main ()
29668 {
29669 dnet_ntoa ();
29670   ;
29671   return 0;
29672 }
29673 _ACEOF
29674 rm -f conftest.$ac_objext conftest$ac_exeext
29675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29676   (eval $ac_link) 2>conftest.er1
29677   ac_status=$?
29678   grep -v '^ *+' conftest.er1 >conftest.err
29679   rm -f conftest.er1
29680   cat conftest.err >&5
29681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29682   (exit $ac_status); } &&
29683          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29685   (eval $ac_try) 2>&5
29686   ac_status=$?
29687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688   (exit $ac_status); }; } &&
29689          { ac_try='test -s conftest$ac_exeext'
29690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29691   (eval $ac_try) 2>&5
29692   ac_status=$?
29693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694   (exit $ac_status); }; }; then
29695   ac_cv_lib_dnet_stub_dnet_ntoa=yes
29696 else
29697   echo "$as_me: failed program was:" >&5
29698 sed 's/^/| /' conftest.$ac_ext >&5
29699
29700 ac_cv_lib_dnet_stub_dnet_ntoa=no
29701 fi
29702 rm -f conftest.err conftest.$ac_objext \
29703       conftest$ac_exeext conftest.$ac_ext
29704 LIBS=$ac_check_lib_save_LIBS
29705 fi
29706 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29707 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29708 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29709   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29710 fi
29711
29712     fi
29713 fi
29714 rm -f conftest.err conftest.$ac_objext \
29715       conftest$ac_exeext conftest.$ac_ext
29716     LIBS="$ac_xsave_LIBS"
29717
29718     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29719     # to get the SysV transport functions.
29720     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29721     # needs -lnsl.
29722     # The nsl library prevents programs from opening the X display
29723     # on Irix 5.2, according to T.E. Dickey.
29724     # The functions gethostbyname, getservbyname, and inet_addr are
29725     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29726     echo "$as_me:$LINENO: checking for gethostbyname" >&5
29727 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29728 if test "${ac_cv_func_gethostbyname+set}" = set; then
29729   echo $ECHO_N "(cached) $ECHO_C" >&6
29730 else
29731   cat >conftest.$ac_ext <<_ACEOF
29732 /* confdefs.h.  */
29733 _ACEOF
29734 cat confdefs.h >>conftest.$ac_ext
29735 cat >>conftest.$ac_ext <<_ACEOF
29736 /* end confdefs.h.  */
29737 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29739 #define gethostbyname innocuous_gethostbyname
29740
29741 /* System header to define __stub macros and hopefully few prototypes,
29742     which can conflict with char gethostbyname (); below.
29743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29744     <limits.h> exists even on freestanding compilers.  */
29745
29746 #ifdef __STDC__
29747 # include <limits.h>
29748 #else
29749 # include <assert.h>
29750 #endif
29751
29752 #undef gethostbyname
29753
29754 /* Override any gcc2 internal prototype to avoid an error.  */
29755 #ifdef __cplusplus
29756 extern "C"
29757 {
29758 #endif
29759 /* We use char because int might match the return type of a gcc2
29760    builtin and then its argument prototype would still apply.  */
29761 char gethostbyname ();
29762 /* The GNU C library defines this for functions which it implements
29763     to always fail with ENOSYS.  Some functions are actually named
29764     something starting with __ and the normal name is an alias.  */
29765 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29766 choke me
29767 #else
29768 char (*f) () = gethostbyname;
29769 #endif
29770 #ifdef __cplusplus
29771 }
29772 #endif
29773
29774 int
29775 main ()
29776 {
29777 return f != gethostbyname;
29778   ;
29779   return 0;
29780 }
29781 _ACEOF
29782 rm -f conftest.$ac_objext conftest$ac_exeext
29783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29784   (eval $ac_link) 2>conftest.er1
29785   ac_status=$?
29786   grep -v '^ *+' conftest.er1 >conftest.err
29787   rm -f conftest.er1
29788   cat conftest.err >&5
29789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790   (exit $ac_status); } &&
29791          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29793   (eval $ac_try) 2>&5
29794   ac_status=$?
29795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29796   (exit $ac_status); }; } &&
29797          { ac_try='test -s conftest$ac_exeext'
29798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29799   (eval $ac_try) 2>&5
29800   ac_status=$?
29801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802   (exit $ac_status); }; }; then
29803   ac_cv_func_gethostbyname=yes
29804 else
29805   echo "$as_me: failed program was:" >&5
29806 sed 's/^/| /' conftest.$ac_ext >&5
29807
29808 ac_cv_func_gethostbyname=no
29809 fi
29810 rm -f conftest.err conftest.$ac_objext \
29811       conftest$ac_exeext conftest.$ac_ext
29812 fi
29813 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29814 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29815
29816     if test $ac_cv_func_gethostbyname = no; then
29817       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29818 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29819 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29820   echo $ECHO_N "(cached) $ECHO_C" >&6
29821 else
29822   ac_check_lib_save_LIBS=$LIBS
29823 LIBS="-lnsl  $LIBS"
29824 cat >conftest.$ac_ext <<_ACEOF
29825 /* confdefs.h.  */
29826 _ACEOF
29827 cat confdefs.h >>conftest.$ac_ext
29828 cat >>conftest.$ac_ext <<_ACEOF
29829 /* end confdefs.h.  */
29830
29831 /* Override any gcc2 internal prototype to avoid an error.  */
29832 #ifdef __cplusplus
29833 extern "C"
29834 #endif
29835 /* We use char because int might match the return type of a gcc2
29836    builtin and then its argument prototype would still apply.  */
29837 char gethostbyname ();
29838 int
29839 main ()
29840 {
29841 gethostbyname ();
29842   ;
29843   return 0;
29844 }
29845 _ACEOF
29846 rm -f conftest.$ac_objext conftest$ac_exeext
29847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29848   (eval $ac_link) 2>conftest.er1
29849   ac_status=$?
29850   grep -v '^ *+' conftest.er1 >conftest.err
29851   rm -f conftest.er1
29852   cat conftest.err >&5
29853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854   (exit $ac_status); } &&
29855          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29857   (eval $ac_try) 2>&5
29858   ac_status=$?
29859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29860   (exit $ac_status); }; } &&
29861          { ac_try='test -s conftest$ac_exeext'
29862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29863   (eval $ac_try) 2>&5
29864   ac_status=$?
29865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866   (exit $ac_status); }; }; then
29867   ac_cv_lib_nsl_gethostbyname=yes
29868 else
29869   echo "$as_me: failed program was:" >&5
29870 sed 's/^/| /' conftest.$ac_ext >&5
29871
29872 ac_cv_lib_nsl_gethostbyname=no
29873 fi
29874 rm -f conftest.err conftest.$ac_objext \
29875       conftest$ac_exeext conftest.$ac_ext
29876 LIBS=$ac_check_lib_save_LIBS
29877 fi
29878 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29879 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29880 if test $ac_cv_lib_nsl_gethostbyname = yes; then
29881   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29882 fi
29883
29884       if test $ac_cv_lib_nsl_gethostbyname = no; then
29885         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29886 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29887 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29888   echo $ECHO_N "(cached) $ECHO_C" >&6
29889 else
29890   ac_check_lib_save_LIBS=$LIBS
29891 LIBS="-lbsd  $LIBS"
29892 cat >conftest.$ac_ext <<_ACEOF
29893 /* confdefs.h.  */
29894 _ACEOF
29895 cat confdefs.h >>conftest.$ac_ext
29896 cat >>conftest.$ac_ext <<_ACEOF
29897 /* end confdefs.h.  */
29898
29899 /* Override any gcc2 internal prototype to avoid an error.  */
29900 #ifdef __cplusplus
29901 extern "C"
29902 #endif
29903 /* We use char because int might match the return type of a gcc2
29904    builtin and then its argument prototype would still apply.  */
29905 char gethostbyname ();
29906 int
29907 main ()
29908 {
29909 gethostbyname ();
29910   ;
29911   return 0;
29912 }
29913 _ACEOF
29914 rm -f conftest.$ac_objext conftest$ac_exeext
29915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29916   (eval $ac_link) 2>conftest.er1
29917   ac_status=$?
29918   grep -v '^ *+' conftest.er1 >conftest.err
29919   rm -f conftest.er1
29920   cat conftest.err >&5
29921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29922   (exit $ac_status); } &&
29923          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29925   (eval $ac_try) 2>&5
29926   ac_status=$?
29927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928   (exit $ac_status); }; } &&
29929          { ac_try='test -s conftest$ac_exeext'
29930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29931   (eval $ac_try) 2>&5
29932   ac_status=$?
29933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29934   (exit $ac_status); }; }; then
29935   ac_cv_lib_bsd_gethostbyname=yes
29936 else
29937   echo "$as_me: failed program was:" >&5
29938 sed 's/^/| /' conftest.$ac_ext >&5
29939
29940 ac_cv_lib_bsd_gethostbyname=no
29941 fi
29942 rm -f conftest.err conftest.$ac_objext \
29943       conftest$ac_exeext conftest.$ac_ext
29944 LIBS=$ac_check_lib_save_LIBS
29945 fi
29946 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29947 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29948 if test $ac_cv_lib_bsd_gethostbyname = yes; then
29949   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29950 fi
29951
29952       fi
29953     fi
29954
29955     # lieder@skyler.mavd.honeywell.com says without -lsocket,
29956     # socket/setsockopt and other routines are undefined under SCO ODT
29957     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29958     # on later versions), says Simon Leinen: it contains gethostby*
29959     # variants that don't use the name server (or something).  -lsocket
29960     # must be given before -lnsl if both are needed.  We assume that
29961     # if connect needs -lnsl, so does gethostbyname.
29962     echo "$as_me:$LINENO: checking for connect" >&5
29963 echo $ECHO_N "checking for connect... $ECHO_C" >&6
29964 if test "${ac_cv_func_connect+set}" = set; then
29965   echo $ECHO_N "(cached) $ECHO_C" >&6
29966 else
29967   cat >conftest.$ac_ext <<_ACEOF
29968 /* confdefs.h.  */
29969 _ACEOF
29970 cat confdefs.h >>conftest.$ac_ext
29971 cat >>conftest.$ac_ext <<_ACEOF
29972 /* end confdefs.h.  */
29973 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
29974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29975 #define connect innocuous_connect
29976
29977 /* System header to define __stub macros and hopefully few prototypes,
29978     which can conflict with char connect (); below.
29979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29980     <limits.h> exists even on freestanding compilers.  */
29981
29982 #ifdef __STDC__
29983 # include <limits.h>
29984 #else
29985 # include <assert.h>
29986 #endif
29987
29988 #undef connect
29989
29990 /* Override any gcc2 internal prototype to avoid an error.  */
29991 #ifdef __cplusplus
29992 extern "C"
29993 {
29994 #endif
29995 /* We use char because int might match the return type of a gcc2
29996    builtin and then its argument prototype would still apply.  */
29997 char connect ();
29998 /* The GNU C library defines this for functions which it implements
29999     to always fail with ENOSYS.  Some functions are actually named
30000     something starting with __ and the normal name is an alias.  */
30001 #if defined (__stub_connect) || defined (__stub___connect)
30002 choke me
30003 #else
30004 char (*f) () = connect;
30005 #endif
30006 #ifdef __cplusplus
30007 }
30008 #endif
30009
30010 int
30011 main ()
30012 {
30013 return f != connect;
30014   ;
30015   return 0;
30016 }
30017 _ACEOF
30018 rm -f conftest.$ac_objext conftest$ac_exeext
30019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30020   (eval $ac_link) 2>conftest.er1
30021   ac_status=$?
30022   grep -v '^ *+' conftest.er1 >conftest.err
30023   rm -f conftest.er1
30024   cat conftest.err >&5
30025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026   (exit $ac_status); } &&
30027          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30029   (eval $ac_try) 2>&5
30030   ac_status=$?
30031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032   (exit $ac_status); }; } &&
30033          { ac_try='test -s conftest$ac_exeext'
30034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30035   (eval $ac_try) 2>&5
30036   ac_status=$?
30037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038   (exit $ac_status); }; }; then
30039   ac_cv_func_connect=yes
30040 else
30041   echo "$as_me: failed program was:" >&5
30042 sed 's/^/| /' conftest.$ac_ext >&5
30043
30044 ac_cv_func_connect=no
30045 fi
30046 rm -f conftest.err conftest.$ac_objext \
30047       conftest$ac_exeext conftest.$ac_ext
30048 fi
30049 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30050 echo "${ECHO_T}$ac_cv_func_connect" >&6
30051
30052     if test $ac_cv_func_connect = no; then
30053       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30054 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30055 if test "${ac_cv_lib_socket_connect+set}" = set; then
30056   echo $ECHO_N "(cached) $ECHO_C" >&6
30057 else
30058   ac_check_lib_save_LIBS=$LIBS
30059 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30060 cat >conftest.$ac_ext <<_ACEOF
30061 /* confdefs.h.  */
30062 _ACEOF
30063 cat confdefs.h >>conftest.$ac_ext
30064 cat >>conftest.$ac_ext <<_ACEOF
30065 /* end confdefs.h.  */
30066
30067 /* Override any gcc2 internal prototype to avoid an error.  */
30068 #ifdef __cplusplus
30069 extern "C"
30070 #endif
30071 /* We use char because int might match the return type of a gcc2
30072    builtin and then its argument prototype would still apply.  */
30073 char connect ();
30074 int
30075 main ()
30076 {
30077 connect ();
30078   ;
30079   return 0;
30080 }
30081 _ACEOF
30082 rm -f conftest.$ac_objext conftest$ac_exeext
30083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30084   (eval $ac_link) 2>conftest.er1
30085   ac_status=$?
30086   grep -v '^ *+' conftest.er1 >conftest.err
30087   rm -f conftest.er1
30088   cat conftest.err >&5
30089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090   (exit $ac_status); } &&
30091          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30093   (eval $ac_try) 2>&5
30094   ac_status=$?
30095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096   (exit $ac_status); }; } &&
30097          { ac_try='test -s conftest$ac_exeext'
30098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30099   (eval $ac_try) 2>&5
30100   ac_status=$?
30101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102   (exit $ac_status); }; }; then
30103   ac_cv_lib_socket_connect=yes
30104 else
30105   echo "$as_me: failed program was:" >&5
30106 sed 's/^/| /' conftest.$ac_ext >&5
30107
30108 ac_cv_lib_socket_connect=no
30109 fi
30110 rm -f conftest.err conftest.$ac_objext \
30111       conftest$ac_exeext conftest.$ac_ext
30112 LIBS=$ac_check_lib_save_LIBS
30113 fi
30114 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30115 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30116 if test $ac_cv_lib_socket_connect = yes; then
30117   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30118 fi
30119
30120     fi
30121
30122     # Guillermo Gomez says -lposix is necessary on A/UX.
30123     echo "$as_me:$LINENO: checking for remove" >&5
30124 echo $ECHO_N "checking for remove... $ECHO_C" >&6
30125 if test "${ac_cv_func_remove+set}" = set; then
30126   echo $ECHO_N "(cached) $ECHO_C" >&6
30127 else
30128   cat >conftest.$ac_ext <<_ACEOF
30129 /* confdefs.h.  */
30130 _ACEOF
30131 cat confdefs.h >>conftest.$ac_ext
30132 cat >>conftest.$ac_ext <<_ACEOF
30133 /* end confdefs.h.  */
30134 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30136 #define remove innocuous_remove
30137
30138 /* System header to define __stub macros and hopefully few prototypes,
30139     which can conflict with char remove (); below.
30140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30141     <limits.h> exists even on freestanding compilers.  */
30142
30143 #ifdef __STDC__
30144 # include <limits.h>
30145 #else
30146 # include <assert.h>
30147 #endif
30148
30149 #undef remove
30150
30151 /* Override any gcc2 internal prototype to avoid an error.  */
30152 #ifdef __cplusplus
30153 extern "C"
30154 {
30155 #endif
30156 /* We use char because int might match the return type of a gcc2
30157    builtin and then its argument prototype would still apply.  */
30158 char remove ();
30159 /* The GNU C library defines this for functions which it implements
30160     to always fail with ENOSYS.  Some functions are actually named
30161     something starting with __ and the normal name is an alias.  */
30162 #if defined (__stub_remove) || defined (__stub___remove)
30163 choke me
30164 #else
30165 char (*f) () = remove;
30166 #endif
30167 #ifdef __cplusplus
30168 }
30169 #endif
30170
30171 int
30172 main ()
30173 {
30174 return f != remove;
30175   ;
30176   return 0;
30177 }
30178 _ACEOF
30179 rm -f conftest.$ac_objext conftest$ac_exeext
30180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30181   (eval $ac_link) 2>conftest.er1
30182   ac_status=$?
30183   grep -v '^ *+' conftest.er1 >conftest.err
30184   rm -f conftest.er1
30185   cat conftest.err >&5
30186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30187   (exit $ac_status); } &&
30188          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30190   (eval $ac_try) 2>&5
30191   ac_status=$?
30192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193   (exit $ac_status); }; } &&
30194          { ac_try='test -s conftest$ac_exeext'
30195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30196   (eval $ac_try) 2>&5
30197   ac_status=$?
30198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199   (exit $ac_status); }; }; then
30200   ac_cv_func_remove=yes
30201 else
30202   echo "$as_me: failed program was:" >&5
30203 sed 's/^/| /' conftest.$ac_ext >&5
30204
30205 ac_cv_func_remove=no
30206 fi
30207 rm -f conftest.err conftest.$ac_objext \
30208       conftest$ac_exeext conftest.$ac_ext
30209 fi
30210 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30211 echo "${ECHO_T}$ac_cv_func_remove" >&6
30212
30213     if test $ac_cv_func_remove = no; then
30214       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30215 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30216 if test "${ac_cv_lib_posix_remove+set}" = set; then
30217   echo $ECHO_N "(cached) $ECHO_C" >&6
30218 else
30219   ac_check_lib_save_LIBS=$LIBS
30220 LIBS="-lposix  $LIBS"
30221 cat >conftest.$ac_ext <<_ACEOF
30222 /* confdefs.h.  */
30223 _ACEOF
30224 cat confdefs.h >>conftest.$ac_ext
30225 cat >>conftest.$ac_ext <<_ACEOF
30226 /* end confdefs.h.  */
30227
30228 /* Override any gcc2 internal prototype to avoid an error.  */
30229 #ifdef __cplusplus
30230 extern "C"
30231 #endif
30232 /* We use char because int might match the return type of a gcc2
30233    builtin and then its argument prototype would still apply.  */
30234 char remove ();
30235 int
30236 main ()
30237 {
30238 remove ();
30239   ;
30240   return 0;
30241 }
30242 _ACEOF
30243 rm -f conftest.$ac_objext conftest$ac_exeext
30244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30245   (eval $ac_link) 2>conftest.er1
30246   ac_status=$?
30247   grep -v '^ *+' conftest.er1 >conftest.err
30248   rm -f conftest.er1
30249   cat conftest.err >&5
30250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251   (exit $ac_status); } &&
30252          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30254   (eval $ac_try) 2>&5
30255   ac_status=$?
30256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257   (exit $ac_status); }; } &&
30258          { ac_try='test -s conftest$ac_exeext'
30259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30260   (eval $ac_try) 2>&5
30261   ac_status=$?
30262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263   (exit $ac_status); }; }; then
30264   ac_cv_lib_posix_remove=yes
30265 else
30266   echo "$as_me: failed program was:" >&5
30267 sed 's/^/| /' conftest.$ac_ext >&5
30268
30269 ac_cv_lib_posix_remove=no
30270 fi
30271 rm -f conftest.err conftest.$ac_objext \
30272       conftest$ac_exeext conftest.$ac_ext
30273 LIBS=$ac_check_lib_save_LIBS
30274 fi
30275 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30276 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30277 if test $ac_cv_lib_posix_remove = yes; then
30278   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30279 fi
30280
30281     fi
30282
30283     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30284     echo "$as_me:$LINENO: checking for shmat" >&5
30285 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30286 if test "${ac_cv_func_shmat+set}" = set; then
30287   echo $ECHO_N "(cached) $ECHO_C" >&6
30288 else
30289   cat >conftest.$ac_ext <<_ACEOF
30290 /* confdefs.h.  */
30291 _ACEOF
30292 cat confdefs.h >>conftest.$ac_ext
30293 cat >>conftest.$ac_ext <<_ACEOF
30294 /* end confdefs.h.  */
30295 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30296    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30297 #define shmat innocuous_shmat
30298
30299 /* System header to define __stub macros and hopefully few prototypes,
30300     which can conflict with char shmat (); below.
30301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30302     <limits.h> exists even on freestanding compilers.  */
30303
30304 #ifdef __STDC__
30305 # include <limits.h>
30306 #else
30307 # include <assert.h>
30308 #endif
30309
30310 #undef shmat
30311
30312 /* Override any gcc2 internal prototype to avoid an error.  */
30313 #ifdef __cplusplus
30314 extern "C"
30315 {
30316 #endif
30317 /* We use char because int might match the return type of a gcc2
30318    builtin and then its argument prototype would still apply.  */
30319 char shmat ();
30320 /* The GNU C library defines this for functions which it implements
30321     to always fail with ENOSYS.  Some functions are actually named
30322     something starting with __ and the normal name is an alias.  */
30323 #if defined (__stub_shmat) || defined (__stub___shmat)
30324 choke me
30325 #else
30326 char (*f) () = shmat;
30327 #endif
30328 #ifdef __cplusplus
30329 }
30330 #endif
30331
30332 int
30333 main ()
30334 {
30335 return f != shmat;
30336   ;
30337   return 0;
30338 }
30339 _ACEOF
30340 rm -f conftest.$ac_objext conftest$ac_exeext
30341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30342   (eval $ac_link) 2>conftest.er1
30343   ac_status=$?
30344   grep -v '^ *+' conftest.er1 >conftest.err
30345   rm -f conftest.er1
30346   cat conftest.err >&5
30347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30348   (exit $ac_status); } &&
30349          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30351   (eval $ac_try) 2>&5
30352   ac_status=$?
30353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354   (exit $ac_status); }; } &&
30355          { ac_try='test -s conftest$ac_exeext'
30356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30357   (eval $ac_try) 2>&5
30358   ac_status=$?
30359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30360   (exit $ac_status); }; }; then
30361   ac_cv_func_shmat=yes
30362 else
30363   echo "$as_me: failed program was:" >&5
30364 sed 's/^/| /' conftest.$ac_ext >&5
30365
30366 ac_cv_func_shmat=no
30367 fi
30368 rm -f conftest.err conftest.$ac_objext \
30369       conftest$ac_exeext conftest.$ac_ext
30370 fi
30371 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30372 echo "${ECHO_T}$ac_cv_func_shmat" >&6
30373
30374     if test $ac_cv_func_shmat = no; then
30375       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30376 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30377 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30378   echo $ECHO_N "(cached) $ECHO_C" >&6
30379 else
30380   ac_check_lib_save_LIBS=$LIBS
30381 LIBS="-lipc  $LIBS"
30382 cat >conftest.$ac_ext <<_ACEOF
30383 /* confdefs.h.  */
30384 _ACEOF
30385 cat confdefs.h >>conftest.$ac_ext
30386 cat >>conftest.$ac_ext <<_ACEOF
30387 /* end confdefs.h.  */
30388
30389 /* Override any gcc2 internal prototype to avoid an error.  */
30390 #ifdef __cplusplus
30391 extern "C"
30392 #endif
30393 /* We use char because int might match the return type of a gcc2
30394    builtin and then its argument prototype would still apply.  */
30395 char shmat ();
30396 int
30397 main ()
30398 {
30399 shmat ();
30400   ;
30401   return 0;
30402 }
30403 _ACEOF
30404 rm -f conftest.$ac_objext conftest$ac_exeext
30405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30406   (eval $ac_link) 2>conftest.er1
30407   ac_status=$?
30408   grep -v '^ *+' conftest.er1 >conftest.err
30409   rm -f conftest.er1
30410   cat conftest.err >&5
30411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412   (exit $ac_status); } &&
30413          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30415   (eval $ac_try) 2>&5
30416   ac_status=$?
30417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418   (exit $ac_status); }; } &&
30419          { ac_try='test -s conftest$ac_exeext'
30420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30421   (eval $ac_try) 2>&5
30422   ac_status=$?
30423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424   (exit $ac_status); }; }; then
30425   ac_cv_lib_ipc_shmat=yes
30426 else
30427   echo "$as_me: failed program was:" >&5
30428 sed 's/^/| /' conftest.$ac_ext >&5
30429
30430 ac_cv_lib_ipc_shmat=no
30431 fi
30432 rm -f conftest.err conftest.$ac_objext \
30433       conftest$ac_exeext conftest.$ac_ext
30434 LIBS=$ac_check_lib_save_LIBS
30435 fi
30436 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30437 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30438 if test $ac_cv_lib_ipc_shmat = yes; then
30439   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30440 fi
30441
30442     fi
30443   fi
30444
30445   # Check for libraries that X11R6 Xt/Xaw programs need.
30446   ac_save_LDFLAGS=$LDFLAGS
30447   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30448   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30449   # check for ICE first), but we must link in the order -lSM -lICE or
30450   # we get undefined symbols.  So assume we have SM if we have ICE.
30451   # These have to be linked with before -lX11, unlike the other
30452   # libraries we check for below, so use a different variable.
30453   # John Interrante, Karl Berry
30454   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30455 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30456 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30457   echo $ECHO_N "(cached) $ECHO_C" >&6
30458 else
30459   ac_check_lib_save_LIBS=$LIBS
30460 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30461 cat >conftest.$ac_ext <<_ACEOF
30462 /* confdefs.h.  */
30463 _ACEOF
30464 cat confdefs.h >>conftest.$ac_ext
30465 cat >>conftest.$ac_ext <<_ACEOF
30466 /* end confdefs.h.  */
30467
30468 /* Override any gcc2 internal prototype to avoid an error.  */
30469 #ifdef __cplusplus
30470 extern "C"
30471 #endif
30472 /* We use char because int might match the return type of a gcc2
30473    builtin and then its argument prototype would still apply.  */
30474 char IceConnectionNumber ();
30475 int
30476 main ()
30477 {
30478 IceConnectionNumber ();
30479   ;
30480   return 0;
30481 }
30482 _ACEOF
30483 rm -f conftest.$ac_objext conftest$ac_exeext
30484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30485   (eval $ac_link) 2>conftest.er1
30486   ac_status=$?
30487   grep -v '^ *+' conftest.er1 >conftest.err
30488   rm -f conftest.er1
30489   cat conftest.err >&5
30490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491   (exit $ac_status); } &&
30492          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30494   (eval $ac_try) 2>&5
30495   ac_status=$?
30496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497   (exit $ac_status); }; } &&
30498          { ac_try='test -s conftest$ac_exeext'
30499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30500   (eval $ac_try) 2>&5
30501   ac_status=$?
30502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30503   (exit $ac_status); }; }; then
30504   ac_cv_lib_ICE_IceConnectionNumber=yes
30505 else
30506   echo "$as_me: failed program was:" >&5
30507 sed 's/^/| /' conftest.$ac_ext >&5
30508
30509 ac_cv_lib_ICE_IceConnectionNumber=no
30510 fi
30511 rm -f conftest.err conftest.$ac_objext \
30512       conftest$ac_exeext conftest.$ac_ext
30513 LIBS=$ac_check_lib_save_LIBS
30514 fi
30515 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30516 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30517 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30518   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30519 fi
30520
30521   LDFLAGS=$ac_save_LDFLAGS
30522
30523 fi
30524
30525
30526         if test "$no_x" = "yes"; then
30527           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30528 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30529    { (exit 1); exit 1; }; }
30530         fi
30531
30532                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30533         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
30534         AFMINSTALL=afminstall
30535         COMPILED_X_PROGRAM=0
30536
30537     fi
30538
30539     if test "$wxUSE_X11" = 1; then
30540         if test "$wxUSE_NANOX" = "yes"; then
30541             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30542 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30543             if test "x$MICROWIN" = x ; then
30544                 echo "$as_me:$LINENO: result: not found" >&5
30545 echo "${ECHO_T}not found" >&6
30546                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30547 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30548    { (exit 1); exit 1; }; }
30549             else
30550                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30551 echo "${ECHO_T}$MICROWIN" >&6
30552                 cat >>confdefs.h <<\_ACEOF
30553 #define wxUSE_NANOX 1
30554 _ACEOF
30555
30556             fi
30557         fi
30558
30559         if test "$wxUSE_UNICODE" = "yes"; then
30560
30561
30562 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30563         if test -n "$ac_tool_prefix"; then
30564   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30565 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30566 echo "$as_me:$LINENO: checking for $ac_word" >&5
30567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30568 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30569   echo $ECHO_N "(cached) $ECHO_C" >&6
30570 else
30571   case $PKG_CONFIG in
30572   [\\/]* | ?:[\\/]*)
30573   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30574   ;;
30575   *)
30576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30577 for as_dir in $PATH
30578 do
30579   IFS=$as_save_IFS
30580   test -z "$as_dir" && as_dir=.
30581   for ac_exec_ext in '' $ac_executable_extensions; do
30582   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30583     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30585     break 2
30586   fi
30587 done
30588 done
30589
30590   ;;
30591 esac
30592 fi
30593 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30594
30595 if test -n "$PKG_CONFIG"; then
30596   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30597 echo "${ECHO_T}$PKG_CONFIG" >&6
30598 else
30599   echo "$as_me:$LINENO: result: no" >&5
30600 echo "${ECHO_T}no" >&6
30601 fi
30602
30603 fi
30604 if test -z "$ac_cv_path_PKG_CONFIG"; then
30605   ac_pt_PKG_CONFIG=$PKG_CONFIG
30606   # Extract the first word of "pkg-config", so it can be a program name with args.
30607 set dummy pkg-config; ac_word=$2
30608 echo "$as_me:$LINENO: checking for $ac_word" >&5
30609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30610 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
30611   echo $ECHO_N "(cached) $ECHO_C" >&6
30612 else
30613   case $ac_pt_PKG_CONFIG in
30614   [\\/]* | ?:[\\/]*)
30615   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
30616   ;;
30617   *)
30618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30619 for as_dir in $PATH
30620 do
30621   IFS=$as_save_IFS
30622   test -z "$as_dir" && as_dir=.
30623   for ac_exec_ext in '' $ac_executable_extensions; do
30624   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30625     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30627     break 2
30628   fi
30629 done
30630 done
30631
30632   ;;
30633 esac
30634 fi
30635 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
30636
30637 if test -n "$ac_pt_PKG_CONFIG"; then
30638   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30639 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
30640 else
30641   echo "$as_me:$LINENO: result: no" >&5
30642 echo "${ECHO_T}no" >&6
30643 fi
30644
30645   PKG_CONFIG=$ac_pt_PKG_CONFIG
30646 else
30647   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30648 fi
30649
30650 fi
30651 if test -n "$PKG_CONFIG"; then
30652         _pkg_min_version=0.9.0
30653         echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
30654 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
30655         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
30656                 echo "$as_me:$LINENO: result: yes" >&5
30657 echo "${ECHO_T}yes" >&6
30658         else
30659                 echo "$as_me:$LINENO: result: no" >&5
30660 echo "${ECHO_T}no" >&6
30661                 PKG_CONFIG=""
30662         fi
30663
30664 fi
30665
30666
30667 pkg_failed=no
30668 echo "$as_me:$LINENO: checking for PANGOX" >&5
30669 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
30670
30671 if test -n "$PKG_CONFIG"; then
30672     if test -n "$PANGOX_CFLAGS"; then
30673         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30674     else
30675         if test -n "$PKG_CONFIG" && \
30676     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30677   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30678   ac_status=$?
30679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680   (exit $ac_status); }; then
30681   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30682 else
30683   pkg_failed=yes
30684 fi
30685     fi
30686 else
30687         pkg_failed=untried
30688 fi
30689 if test -n "$PKG_CONFIG"; then
30690     if test -n "$PANGOX_LIBS"; then
30691         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30692     else
30693         if test -n "$PKG_CONFIG" && \
30694     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30695   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30696   ac_status=$?
30697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30698   (exit $ac_status); }; then
30699   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
30700 else
30701   pkg_failed=yes
30702 fi
30703     fi
30704 else
30705         pkg_failed=untried
30706 fi
30707
30708
30709
30710 if test $pkg_failed = yes; then
30711
30712 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30713         _pkg_short_errors_supported=yes
30714 else
30715         _pkg_short_errors_supported=no
30716 fi
30717         if test $_pkg_short_errors_supported = yes; then
30718                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
30719         else
30720                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
30721         fi
30722         # Put the nasty error message in config.log where it belongs
30723         echo "$PANGOX_PKG_ERRORS" >&5
30724
30725
30726                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30727 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30728    { (exit 1); exit 1; }; }
30729
30730
30731 elif test $pkg_failed = untried; then
30732
30733                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30734 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30735    { (exit 1); exit 1; }; }
30736
30737
30738 else
30739         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
30740         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
30741         echo "$as_me:$LINENO: result: yes" >&5
30742 echo "${ECHO_T}yes" >&6
30743
30744                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
30745                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30746                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
30747
30748 fi
30749
30750 pkg_failed=no
30751 echo "$as_me:$LINENO: checking for PANGOFT2" >&5
30752 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
30753
30754 if test -n "$PKG_CONFIG"; then
30755     if test -n "$PANGOFT2_CFLAGS"; then
30756         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
30757     else
30758         if test -n "$PKG_CONFIG" && \
30759     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30760   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30761   ac_status=$?
30762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30763   (exit $ac_status); }; then
30764   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30765 else
30766   pkg_failed=yes
30767 fi
30768     fi
30769 else
30770         pkg_failed=untried
30771 fi
30772 if test -n "$PKG_CONFIG"; then
30773     if test -n "$PANGOFT2_LIBS"; then
30774         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
30775     else
30776         if test -n "$PKG_CONFIG" && \
30777     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30778   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30779   ac_status=$?
30780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781   (exit $ac_status); }; then
30782   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30783 else
30784   pkg_failed=yes
30785 fi
30786     fi
30787 else
30788         pkg_failed=untried
30789 fi
30790
30791
30792
30793 if test $pkg_failed = yes; then
30794
30795 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30796         _pkg_short_errors_supported=yes
30797 else
30798         _pkg_short_errors_supported=no
30799 fi
30800         if test $_pkg_short_errors_supported = yes; then
30801                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
30802         else
30803                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30804         fi
30805         # Put the nasty error message in config.log where it belongs
30806         echo "$PANGOFT2_PKG_ERRORS" >&5
30807
30808
30809                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30810 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30811                     wxUSE_PRINTING_ARCHITECTURE="no"
30812
30813
30814 elif test $pkg_failed = untried; then
30815
30816                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30817 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30818                     wxUSE_PRINTING_ARCHITECTURE="no"
30819
30820
30821 else
30822         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
30823         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
30824         echo "$as_me:$LINENO: result: yes" >&5
30825 echo "${ECHO_T}yes" >&6
30826
30827                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
30828                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
30829                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
30830
30831 fi
30832
30833 pkg_failed=no
30834 echo "$as_me:$LINENO: checking for PANGOXFT" >&5
30835 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
30836
30837 if test -n "$PKG_CONFIG"; then
30838     if test -n "$PANGOXFT_CFLAGS"; then
30839         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
30840     else
30841         if test -n "$PKG_CONFIG" && \
30842     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30843   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30844   ac_status=$?
30845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846   (exit $ac_status); }; then
30847   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
30848 else
30849   pkg_failed=yes
30850 fi
30851     fi
30852 else
30853         pkg_failed=untried
30854 fi
30855 if test -n "$PKG_CONFIG"; then
30856     if test -n "$PANGOXFT_LIBS"; then
30857         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
30858     else
30859         if test -n "$PKG_CONFIG" && \
30860     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30861   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30862   ac_status=$?
30863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30864   (exit $ac_status); }; then
30865   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
30866 else
30867   pkg_failed=yes
30868 fi
30869     fi
30870 else
30871         pkg_failed=untried
30872 fi
30873
30874
30875
30876 if test $pkg_failed = yes; then
30877
30878 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30879         _pkg_short_errors_supported=yes
30880 else
30881         _pkg_short_errors_supported=no
30882 fi
30883         if test $_pkg_short_errors_supported = yes; then
30884                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
30885         else
30886                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
30887         fi
30888         # Put the nasty error message in config.log where it belongs
30889         echo "$PANGOXFT_PKG_ERRORS" >&5
30890
30891
30892                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30893 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30894
30895
30896 elif test $pkg_failed = untried; then
30897
30898                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30899 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30900
30901
30902 else
30903         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
30904         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
30905         echo "$as_me:$LINENO: result: yes" >&5
30906 echo "${ECHO_T}yes" >&6
30907
30908                     cat >>confdefs.h <<\_ACEOF
30909 #define HAVE_PANGO_XFT 1
30910 _ACEOF
30911
30912                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
30913                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
30914                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30915
30916 fi
30917             save_LIBS="$LIBS"
30918             LIBS="$LIBS $PANGOX_LIBS"
30919
30920 for ac_func in pango_font_family_is_monospace
30921 do
30922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30923 echo "$as_me:$LINENO: checking for $ac_func" >&5
30924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30925 if eval "test \"\${$as_ac_var+set}\" = set"; then
30926   echo $ECHO_N "(cached) $ECHO_C" >&6
30927 else
30928   cat >conftest.$ac_ext <<_ACEOF
30929 /* confdefs.h.  */
30930 _ACEOF
30931 cat confdefs.h >>conftest.$ac_ext
30932 cat >>conftest.$ac_ext <<_ACEOF
30933 /* end confdefs.h.  */
30934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30936 #define $ac_func innocuous_$ac_func
30937
30938 /* System header to define __stub macros and hopefully few prototypes,
30939     which can conflict with char $ac_func (); below.
30940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30941     <limits.h> exists even on freestanding compilers.  */
30942
30943 #ifdef __STDC__
30944 # include <limits.h>
30945 #else
30946 # include <assert.h>
30947 #endif
30948
30949 #undef $ac_func
30950
30951 /* Override any gcc2 internal prototype to avoid an error.  */
30952 #ifdef __cplusplus
30953 extern "C"
30954 {
30955 #endif
30956 /* We use char because int might match the return type of a gcc2
30957    builtin and then its argument prototype would still apply.  */
30958 char $ac_func ();
30959 /* The GNU C library defines this for functions which it implements
30960     to always fail with ENOSYS.  Some functions are actually named
30961     something starting with __ and the normal name is an alias.  */
30962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30963 choke me
30964 #else
30965 char (*f) () = $ac_func;
30966 #endif
30967 #ifdef __cplusplus
30968 }
30969 #endif
30970
30971 int
30972 main ()
30973 {
30974 return f != $ac_func;
30975   ;
30976   return 0;
30977 }
30978 _ACEOF
30979 rm -f conftest.$ac_objext conftest$ac_exeext
30980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30981   (eval $ac_link) 2>conftest.er1
30982   ac_status=$?
30983   grep -v '^ *+' conftest.er1 >conftest.err
30984   rm -f conftest.er1
30985   cat conftest.err >&5
30986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987   (exit $ac_status); } &&
30988          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30990   (eval $ac_try) 2>&5
30991   ac_status=$?
30992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993   (exit $ac_status); }; } &&
30994          { ac_try='test -s conftest$ac_exeext'
30995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30996   (eval $ac_try) 2>&5
30997   ac_status=$?
30998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30999   (exit $ac_status); }; }; then
31000   eval "$as_ac_var=yes"
31001 else
31002   echo "$as_me: failed program was:" >&5
31003 sed 's/^/| /' conftest.$ac_ext >&5
31004
31005 eval "$as_ac_var=no"
31006 fi
31007 rm -f conftest.err conftest.$ac_objext \
31008       conftest$ac_exeext conftest.$ac_ext
31009 fi
31010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31012 if test `eval echo '${'$as_ac_var'}'` = yes; then
31013   cat >>confdefs.h <<_ACEOF
31014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31015 _ACEOF
31016
31017 fi
31018 done
31019
31020             LIBS="$save_LIBS"
31021         fi
31022
31023         wxUSE_UNIVERSAL="yes"
31024
31025         if test "$wxUSE_NANOX" = "yes"; then
31026             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31027             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"
31028             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31029         else
31030             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31031         fi
31032
31033         TOOLKIT=X11
31034         GUIDIST=X11_DIST
31035     fi
31036
31037     if test "$wxUSE_MOTIF" = 1; then
31038         if test "$wxUSE_UNICODE" = "yes"; then
31039             { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31040 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31041    { (exit 1); exit 1; }; }
31042         fi
31043
31044         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31045 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
31046
31047 ac_find_includes=
31048 for ac_dir in $SEARCH_INCLUDE /usr/include;
31049   do
31050     if test -f "$ac_dir/Xm/Xm.h"; then
31051       ac_find_includes=$ac_dir
31052       break
31053     fi
31054   done
31055
31056         if test "$ac_find_includes" != "" ; then
31057             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31058 echo "${ECHO_T}found in $ac_find_includes" >&6
31059
31060     if test "x$ac_find_includes" = "x/usr/include"; then
31061     ac_path_to_include=""
31062   else
31063     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31064     result=$?
31065     if test $result = 0; then
31066       ac_path_to_include=""
31067     else
31068       ac_path_to_include=" -I$ac_find_includes"
31069     fi
31070   fi
31071
31072             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31073         else
31074             save_CFLAGS=$CFLAGS
31075             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31076
31077             cat >conftest.$ac_ext <<_ACEOF
31078 /* confdefs.h.  */
31079 _ACEOF
31080 cat confdefs.h >>conftest.$ac_ext
31081 cat >>conftest.$ac_ext <<_ACEOF
31082 /* end confdefs.h.  */
31083
31084                     #include <Xm/Xm.h>
31085
31086 int
31087 main ()
31088 {
31089
31090                     int version;
31091                     version = xmUseVersion;
31092
31093   ;
31094   return 0;
31095 }
31096 _ACEOF
31097 rm -f conftest.$ac_objext
31098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31099   (eval $ac_compile) 2>conftest.er1
31100   ac_status=$?
31101   grep -v '^ *+' conftest.er1 >conftest.err
31102   rm -f conftest.er1
31103   cat conftest.err >&5
31104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105   (exit $ac_status); } &&
31106          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31108   (eval $ac_try) 2>&5
31109   ac_status=$?
31110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31111   (exit $ac_status); }; } &&
31112          { ac_try='test -s conftest.$ac_objext'
31113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31114   (eval $ac_try) 2>&5
31115   ac_status=$?
31116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31117   (exit $ac_status); }; }; then
31118
31119                     echo "$as_me:$LINENO: result: found in default search path" >&5
31120 echo "${ECHO_T}found in default search path" >&6
31121                     COMPILED_X_PROGRAM=1
31122
31123 else
31124   echo "$as_me: failed program was:" >&5
31125 sed 's/^/| /' conftest.$ac_ext >&5
31126
31127
31128                     echo "$as_me:$LINENO: result: no" >&5
31129 echo "${ECHO_T}no" >&6
31130                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31131 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
31132    { (exit 1); exit 1; }; }
31133
31134
31135 fi
31136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31137
31138             CFLAGS=$save_CFLAGS
31139         fi
31140
31141
31142         echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31143 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
31144
31145   ac_find_libraries=
31146   for ac_dir in $SEARCH_LIB;
31147   do
31148     for ac_extension in a so sl dylib dll.a; do
31149       if test -f "$ac_dir/libXm.$ac_extension"; then
31150         ac_find_libraries=$ac_dir
31151         break 2
31152       fi
31153     done
31154   done
31155
31156
31157         if test "x$ac_find_libraries" != "x" ; then
31158             echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31159 echo "${ECHO_T}found in $ac_find_libraries" >&6
31160
31161
31162     if test "$ac_find_libraries" = "default location"; then
31163     ac_path_to_link=""
31164   else
31165     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31166     result=$?
31167     if test $result = 0; then
31168       ac_path_to_link=""
31169     else
31170       ac_path_to_link=" -L$ac_find_libraries"
31171     fi
31172   fi
31173
31174             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31175         else
31176                                                 save_CFLAGS=$CFLAGS
31177             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31178             save_LIBS="$LIBS"
31179             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
31180
31181             cat >conftest.$ac_ext <<_ACEOF
31182 /* confdefs.h.  */
31183 _ACEOF
31184 cat confdefs.h >>conftest.$ac_ext
31185 cat >>conftest.$ac_ext <<_ACEOF
31186 /* end confdefs.h.  */
31187
31188                     #include <Xm/Xm.h>
31189
31190 int
31191 main ()
31192 {
31193
31194                     int version;
31195                     version = xmUseVersion;
31196
31197   ;
31198   return 0;
31199 }
31200 _ACEOF
31201 rm -f conftest.$ac_objext conftest$ac_exeext
31202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31203   (eval $ac_link) 2>conftest.er1
31204   ac_status=$?
31205   grep -v '^ *+' conftest.er1 >conftest.err
31206   rm -f conftest.er1
31207   cat conftest.err >&5
31208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31209   (exit $ac_status); } &&
31210          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31212   (eval $ac_try) 2>&5
31213   ac_status=$?
31214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215   (exit $ac_status); }; } &&
31216          { ac_try='test -s conftest$ac_exeext'
31217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31218   (eval $ac_try) 2>&5
31219   ac_status=$?
31220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221   (exit $ac_status); }; }; then
31222
31223                     echo "$as_me:$LINENO: result: found in default search path" >&5
31224 echo "${ECHO_T}found in default search path" >&6
31225                     COMPILED_X_PROGRAM=1
31226
31227 else
31228   echo "$as_me: failed program was:" >&5
31229 sed 's/^/| /' conftest.$ac_ext >&5
31230
31231
31232                     echo "$as_me:$LINENO: result: no" >&5
31233 echo "${ECHO_T}no" >&6
31234                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
31235 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31236    { (exit 1); exit 1; }; }
31237
31238
31239 fi
31240 rm -f conftest.err conftest.$ac_objext \
31241       conftest$ac_exeext conftest.$ac_ext
31242
31243             CFLAGS=$save_CFLAGS
31244             LIBS="$save_LIBS"
31245         fi
31246
31247         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31248 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31249         libp_link=""
31250         libsm_ice_link=""
31251         libs_found=0
31252         for libp in "" " -lXp"; do
31253             if test "$libs_found" = "0"; then
31254                 for libsm_ice in "" " -lSM -lICE"; do
31255                     if test "$libs_found" = "0"; then
31256                         save_LIBS="$LIBS"
31257                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
31258                         save_CFLAGS=$CFLAGS
31259                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31260
31261                         cat >conftest.$ac_ext <<_ACEOF
31262 /* confdefs.h.  */
31263 _ACEOF
31264 cat confdefs.h >>conftest.$ac_ext
31265 cat >>conftest.$ac_ext <<_ACEOF
31266 /* end confdefs.h.  */
31267
31268                                 #include <Xm/Xm.h>
31269                                 #include <Xm/List.h>
31270
31271 int
31272 main ()
31273 {
31274
31275                                 XmString string = NULL;
31276                                 Widget w = NULL;
31277                                 int position = 0;
31278                                 XmListAddItem(w, string, position);
31279
31280   ;
31281   return 0;
31282 }
31283 _ACEOF
31284 rm -f conftest.$ac_objext conftest$ac_exeext
31285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31286   (eval $ac_link) 2>conftest.er1
31287   ac_status=$?
31288   grep -v '^ *+' conftest.er1 >conftest.err
31289   rm -f conftest.er1
31290   cat conftest.err >&5
31291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31292   (exit $ac_status); } &&
31293          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31295   (eval $ac_try) 2>&5
31296   ac_status=$?
31297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298   (exit $ac_status); }; } &&
31299          { ac_try='test -s conftest$ac_exeext'
31300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31301   (eval $ac_try) 2>&5
31302   ac_status=$?
31303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304   (exit $ac_status); }; }; then
31305
31306                                 libp_link="$libp"
31307                                 libsm_ice_link="$libsm_ice"
31308                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31309 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
31310                                 libs_found=1
31311
31312 else
31313   echo "$as_me: failed program was:" >&5
31314 sed 's/^/| /' conftest.$ac_ext >&5
31315
31316
31317
31318 fi
31319 rm -f conftest.err conftest.$ac_objext \
31320       conftest$ac_exeext conftest.$ac_ext
31321
31322                         LIBS="$save_LIBS"
31323                         CFLAGS=$save_CFLAGS
31324                     fi
31325                 done
31326             fi
31327         done
31328
31329         if test "$libs_found" = "0"; then
31330             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31331 echo "${ECHO_T}can't find the right libraries" >&6
31332             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31333 echo "$as_me: error: can't link a simple motif program" >&2;}
31334    { (exit 1); exit 1; }; }
31335         fi
31336
31337                         echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31338 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
31339 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31340   echo $ECHO_N "(cached) $ECHO_C" >&6
31341 else
31342   ac_check_lib_save_LIBS=$LIBS
31343 LIBS="-lSgm  $LIBS"
31344 cat >conftest.$ac_ext <<_ACEOF
31345 /* confdefs.h.  */
31346 _ACEOF
31347 cat confdefs.h >>conftest.$ac_ext
31348 cat >>conftest.$ac_ext <<_ACEOF
31349 /* end confdefs.h.  */
31350
31351 /* Override any gcc2 internal prototype to avoid an error.  */
31352 #ifdef __cplusplus
31353 extern "C"
31354 #endif
31355 /* We use char because int might match the return type of a gcc2
31356    builtin and then its argument prototype would still apply.  */
31357 char SgCreateList ();
31358 int
31359 main ()
31360 {
31361 SgCreateList ();
31362   ;
31363   return 0;
31364 }
31365 _ACEOF
31366 rm -f conftest.$ac_objext conftest$ac_exeext
31367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31368   (eval $ac_link) 2>conftest.er1
31369   ac_status=$?
31370   grep -v '^ *+' conftest.er1 >conftest.err
31371   rm -f conftest.er1
31372   cat conftest.err >&5
31373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31374   (exit $ac_status); } &&
31375          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31377   (eval $ac_try) 2>&5
31378   ac_status=$?
31379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31380   (exit $ac_status); }; } &&
31381          { ac_try='test -s conftest$ac_exeext'
31382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31383   (eval $ac_try) 2>&5
31384   ac_status=$?
31385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386   (exit $ac_status); }; }; then
31387   ac_cv_lib_Sgm_SgCreateList=yes
31388 else
31389   echo "$as_me: failed program was:" >&5
31390 sed 's/^/| /' conftest.$ac_ext >&5
31391
31392 ac_cv_lib_Sgm_SgCreateList=no
31393 fi
31394 rm -f conftest.err conftest.$ac_objext \
31395       conftest$ac_exeext conftest.$ac_ext
31396 LIBS=$ac_check_lib_save_LIBS
31397 fi
31398 echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31399 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
31400 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31401   libsgm_link=" -lSgm"
31402 fi
31403
31404
31405         save_CFLAGS=$CFLAGS
31406         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31407
31408         echo "$as_me:$LINENO: checking for Motif 2" >&5
31409 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
31410 if test "${wx_cv_lib_motif2+set}" = set; then
31411   echo $ECHO_N "(cached) $ECHO_C" >&6
31412 else
31413   cat >conftest.$ac_ext <<_ACEOF
31414 /* confdefs.h.  */
31415 _ACEOF
31416 cat confdefs.h >>conftest.$ac_ext
31417 cat >>conftest.$ac_ext <<_ACEOF
31418 /* end confdefs.h.  */
31419
31420                             #include <Xm/Xm.h>
31421
31422 int
31423 main ()
31424 {
31425
31426                             #if XmVersion < 2000
31427                             Not Motif 2
31428                             #endif
31429
31430   ;
31431   return 0;
31432 }
31433 _ACEOF
31434 rm -f conftest.$ac_objext
31435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31436   (eval $ac_compile) 2>conftest.er1
31437   ac_status=$?
31438   grep -v '^ *+' conftest.er1 >conftest.err
31439   rm -f conftest.er1
31440   cat conftest.err >&5
31441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442   (exit $ac_status); } &&
31443          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31445   (eval $ac_try) 2>&5
31446   ac_status=$?
31447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448   (exit $ac_status); }; } &&
31449          { ac_try='test -s conftest.$ac_objext'
31450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31451   (eval $ac_try) 2>&5
31452   ac_status=$?
31453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31454   (exit $ac_status); }; }; then
31455   wx_cv_lib_motif2="yes"
31456 else
31457   echo "$as_me: failed program was:" >&5
31458 sed 's/^/| /' conftest.$ac_ext >&5
31459
31460 wx_cv_lib_motif2="no"
31461 fi
31462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31463 fi
31464 echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31465 echo "${ECHO_T}$wx_cv_lib_motif2" >&6
31466         if test "$wx_cv_lib_motif2" = "yes"; then
31467             cat >>confdefs.h <<\_ACEOF
31468 #define __WXMOTIF20__ 1
31469 _ACEOF
31470
31471         else
31472             cat >>confdefs.h <<\_ACEOF
31473 #define __WXMOTIF20__ 0
31474 _ACEOF
31475
31476         fi
31477
31478         echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31479 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
31480 if test "${wx_cv_lib_lesstif+set}" = set; then
31481   echo $ECHO_N "(cached) $ECHO_C" >&6
31482 else
31483   cat >conftest.$ac_ext <<_ACEOF
31484 /* confdefs.h.  */
31485 _ACEOF
31486 cat confdefs.h >>conftest.$ac_ext
31487 cat >>conftest.$ac_ext <<_ACEOF
31488 /* end confdefs.h.  */
31489
31490                             #include <Xm/Xm.h>
31491
31492 int
31493 main ()
31494 {
31495
31496                             #if !defined(LesstifVersion) || LesstifVersion <= 0
31497                             Not Lesstif
31498                             #endif
31499
31500   ;
31501   return 0;
31502 }
31503 _ACEOF
31504 rm -f conftest.$ac_objext
31505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31506   (eval $ac_compile) 2>conftest.er1
31507   ac_status=$?
31508   grep -v '^ *+' conftest.er1 >conftest.err
31509   rm -f conftest.er1
31510   cat conftest.err >&5
31511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31512   (exit $ac_status); } &&
31513          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31515   (eval $ac_try) 2>&5
31516   ac_status=$?
31517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31518   (exit $ac_status); }; } &&
31519          { ac_try='test -s conftest.$ac_objext'
31520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31521   (eval $ac_try) 2>&5
31522   ac_status=$?
31523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524   (exit $ac_status); }; }; then
31525   wx_cv_lib_lesstif="yes"
31526 else
31527   echo "$as_me: failed program was:" >&5
31528 sed 's/^/| /' conftest.$ac_ext >&5
31529
31530 wx_cv_lib_lesstif="no"
31531 fi
31532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31533
31534 fi
31535 echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31536 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31537         if test "$wx_cv_lib_lesstif" = "yes"; then
31538             cat >>confdefs.h <<\_ACEOF
31539 #define __WXLESSTIF__ 1
31540 _ACEOF
31541
31542         else
31543             cat >>confdefs.h <<\_ACEOF
31544 #define __WXLESSTIF__ 0
31545 _ACEOF
31546
31547         fi
31548
31549         CFLAGS=$save_CFLAGS
31550
31551         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
31552         TOOLKIT=MOTIF
31553         GUIDIST=MOTIF_DIST
31554     fi
31555
31556         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31557                 if test "$wxUSE_LIBXPM" = "sys"; then
31558             echo "$as_me:$LINENO: checking for Xpm library" >&5
31559 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31560
31561   ac_find_libraries=
31562   for ac_dir in $SEARCH_LIB;
31563   do
31564     for ac_extension in a so sl dylib dll.a; do
31565       if test -f "$ac_dir/libXpm.$ac_extension"; then
31566         ac_find_libraries=$ac_dir
31567         break 2
31568       fi
31569     done
31570   done
31571
31572             if test "$ac_find_libraries" != "" ; then
31573
31574     if test "$ac_find_libraries" = "default location"; then
31575     ac_path_to_link=""
31576   else
31577     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31578     result=$?
31579     if test $result = 0; then
31580       ac_path_to_link=""
31581     else
31582       ac_path_to_link=" -L$ac_find_libraries"
31583     fi
31584   fi
31585
31586                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31587                 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31588 echo "${ECHO_T}found in $ac_find_libraries" >&6
31589
31590                 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31591 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31592 if test "${wx_cv_x11_xpm_h+set}" = set; then
31593   echo $ECHO_N "(cached) $ECHO_C" >&6
31594 else
31595
31596                         save_CFLAGS=$CFLAGS
31597                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31598
31599                         cat >conftest.$ac_ext <<_ACEOF
31600 /* confdefs.h.  */
31601 _ACEOF
31602 cat confdefs.h >>conftest.$ac_ext
31603 cat >>conftest.$ac_ext <<_ACEOF
31604 /* end confdefs.h.  */
31605
31606                                 #include <X11/xpm.h>
31607
31608 int
31609 main ()
31610 {
31611
31612                                 int version;
31613                                 version = XpmLibraryVersion();
31614
31615   ;
31616   return 0;
31617 }
31618 _ACEOF
31619 rm -f conftest.$ac_objext
31620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31621   (eval $ac_compile) 2>conftest.er1
31622   ac_status=$?
31623   grep -v '^ *+' conftest.er1 >conftest.err
31624   rm -f conftest.er1
31625   cat conftest.err >&5
31626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31627   (exit $ac_status); } &&
31628          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31630   (eval $ac_try) 2>&5
31631   ac_status=$?
31632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31633   (exit $ac_status); }; } &&
31634          { ac_try='test -s conftest.$ac_objext'
31635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31636   (eval $ac_try) 2>&5
31637   ac_status=$?
31638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31639   (exit $ac_status); }; }; then
31640   wx_cv_x11_xpm_h=yes
31641 else
31642   echo "$as_me: failed program was:" >&5
31643 sed 's/^/| /' conftest.$ac_ext >&5
31644
31645 wx_cv_x11_xpm_h=no
31646
31647 fi
31648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31649
31650                         CFLAGS=$save_CFLAGS
31651
31652
31653 fi
31654 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31655 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31656
31657                 if test $wx_cv_x11_xpm_h = "yes"; then
31658                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31659                     cat >>confdefs.h <<\_ACEOF
31660 #define wxHAVE_LIB_XPM 1
31661 _ACEOF
31662
31663                 else
31664                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31665 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31666                 fi
31667             fi
31668
31669         fi
31670
31671                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31672 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31673 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31674   echo $ECHO_N "(cached) $ECHO_C" >&6
31675 else
31676   ac_check_lib_save_LIBS=$LIBS
31677 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31678 cat >conftest.$ac_ext <<_ACEOF
31679 /* confdefs.h.  */
31680 _ACEOF
31681 cat confdefs.h >>conftest.$ac_ext
31682 cat >>conftest.$ac_ext <<_ACEOF
31683 /* end confdefs.h.  */
31684
31685 /* Override any gcc2 internal prototype to avoid an error.  */
31686 #ifdef __cplusplus
31687 extern "C"
31688 #endif
31689 /* We use char because int might match the return type of a gcc2
31690    builtin and then its argument prototype would still apply.  */
31691 char XShapeQueryExtension ();
31692 int
31693 main ()
31694 {
31695 XShapeQueryExtension ();
31696   ;
31697   return 0;
31698 }
31699 _ACEOF
31700 rm -f conftest.$ac_objext conftest$ac_exeext
31701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31702   (eval $ac_link) 2>conftest.er1
31703   ac_status=$?
31704   grep -v '^ *+' conftest.er1 >conftest.err
31705   rm -f conftest.er1
31706   cat conftest.err >&5
31707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708   (exit $ac_status); } &&
31709          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31711   (eval $ac_try) 2>&5
31712   ac_status=$?
31713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714   (exit $ac_status); }; } &&
31715          { ac_try='test -s conftest$ac_exeext'
31716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31717   (eval $ac_try) 2>&5
31718   ac_status=$?
31719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31720   (exit $ac_status); }; }; then
31721   ac_cv_lib_Xext_XShapeQueryExtension=yes
31722 else
31723   echo "$as_me: failed program was:" >&5
31724 sed 's/^/| /' conftest.$ac_ext >&5
31725
31726 ac_cv_lib_Xext_XShapeQueryExtension=no
31727 fi
31728 rm -f conftest.err conftest.$ac_objext \
31729       conftest$ac_exeext conftest.$ac_ext
31730 LIBS=$ac_check_lib_save_LIBS
31731 fi
31732 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31733 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
31734 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31735
31736                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31737                       wxHAVE_XEXT_LIB=1
31738
31739 fi
31740
31741
31742         if test "$wxHAVE_XEXT_LIB" = 1; then
31743             save_CFLAGS="$CFLAGS"
31744             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31745
31746             echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31747 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
31748             cat >conftest.$ac_ext <<_ACEOF
31749 /* confdefs.h.  */
31750 _ACEOF
31751 cat confdefs.h >>conftest.$ac_ext
31752 cat >>conftest.$ac_ext <<_ACEOF
31753 /* end confdefs.h.  */
31754
31755                             #include <X11/Xlib.h>
31756                             #include <X11/extensions/shape.h>
31757
31758 int
31759 main ()
31760 {
31761
31762                             int dummy1, dummy2;
31763                             XShapeQueryExtension((Display*)NULL,
31764                                                  (int*)NULL, (int*)NULL);
31765
31766   ;
31767   return 0;
31768 }
31769 _ACEOF
31770 rm -f conftest.$ac_objext
31771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31772   (eval $ac_compile) 2>conftest.er1
31773   ac_status=$?
31774   grep -v '^ *+' conftest.er1 >conftest.err
31775   rm -f conftest.er1
31776   cat conftest.err >&5
31777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778   (exit $ac_status); } &&
31779          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31781   (eval $ac_try) 2>&5
31782   ac_status=$?
31783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784   (exit $ac_status); }; } &&
31785          { ac_try='test -s conftest.$ac_objext'
31786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31787   (eval $ac_try) 2>&5
31788   ac_status=$?
31789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31790   (exit $ac_status); }; }; then
31791
31792                             cat >>confdefs.h <<\_ACEOF
31793 #define HAVE_XSHAPE 1
31794 _ACEOF
31795
31796                             echo "$as_me:$LINENO: result: found" >&5
31797 echo "${ECHO_T}found" >&6
31798
31799 else
31800   echo "$as_me: failed program was:" >&5
31801 sed 's/^/| /' conftest.$ac_ext >&5
31802
31803
31804                             echo "$as_me:$LINENO: result: not found" >&5
31805 echo "${ECHO_T}not found" >&6
31806
31807 fi
31808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31809             CFLAGS="$save_CFLAGS"
31810
31811         fi
31812     fi
31813
31814     if test "$wxUSE_MAC" = 1; then
31815         echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31816 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31817         if test "$GCC" = yes; then
31818             echo "$as_me:$LINENO: result: gcc" >&5
31819 echo "${ECHO_T}gcc" >&6
31820             CPPFLAGS_PASCAL="-fpascal-strings"
31821         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31822             echo "$as_me:$LINENO: result: xlc" >&5
31823 echo "${ECHO_T}xlc" >&6
31824             CPPFLAGS_PASCAL="-qmacpstr"
31825         else
31826             echo "$as_me:$LINENO: result: none" >&5
31827 echo "${ECHO_T}none" >&6
31828         fi
31829
31830         if test "x$wxUSE_UNIX" = "xyes"; then
31831             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
31832         else
31833                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
31834         fi
31835
31836         TOOLKIT=MAC
31837                 GUIDIST=MACX_DIST
31838                         WXBASEPORT="_carbon"
31839     fi
31840
31841     if test "$wxUSE_COCOA" = 1; then
31842         TOOLKIT=COCOA
31843         GUIDIST=COCOA_DIST
31844     fi
31845
31846     if test "$wxUSE_PM" = 1; then
31847         TOOLKIT=PM
31848         GUIDIST=PM_DIST
31849         echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31850 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31851 if test "${wx_cv_spbcdata+set}" = set; then
31852   echo $ECHO_N "(cached) $ECHO_C" >&6
31853 else
31854
31855                 cat >conftest.$ac_ext <<_ACEOF
31856 /* confdefs.h.  */
31857 _ACEOF
31858 cat confdefs.h >>conftest.$ac_ext
31859 cat >>conftest.$ac_ext <<_ACEOF
31860 /* end confdefs.h.  */
31861
31862                         #define INCL_PM
31863                         #include <os2.h>
31864
31865 int
31866 main ()
31867 {
31868
31869                         SPBCDATA test;
31870
31871   ;
31872   return 0;
31873 }
31874 _ACEOF
31875 rm -f conftest.$ac_objext
31876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31877   (eval $ac_compile) 2>conftest.er1
31878   ac_status=$?
31879   grep -v '^ *+' conftest.er1 >conftest.err
31880   rm -f conftest.er1
31881   cat conftest.err >&5
31882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31883   (exit $ac_status); } &&
31884          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31886   (eval $ac_try) 2>&5
31887   ac_status=$?
31888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889   (exit $ac_status); }; } &&
31890          { ac_try='test -s conftest.$ac_objext'
31891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31892   (eval $ac_try) 2>&5
31893   ac_status=$?
31894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31895   (exit $ac_status); }; }; then
31896   wx_cv_spbcdata=yes
31897 else
31898   echo "$as_me: failed program was:" >&5
31899 sed 's/^/| /' conftest.$ac_ext >&5
31900
31901 wx_cv_spbcdata=no
31902
31903 fi
31904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31905
31906
31907 fi
31908 echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31909 echo "${ECHO_T}$wx_cv_spbcdata" >&6
31910
31911         if test $wx_cv_spbcdata = "yes"; then
31912             cat >>confdefs.h <<\_ACEOF
31913 #define HAVE_SPBCDATA 1
31914 _ACEOF
31915
31916         fi
31917     fi
31918
31919         if test "$TOOLKIT" = "PM" ; then
31920         TOOLKIT_DIR="os2"
31921     else
31922         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31923     fi
31924
31925     if test "$wxUSE_UNIVERSAL" = "yes"; then
31926         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31927         WIDGET_SET=univ
31928     fi
31929
31930         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31931     DISTDIR="wx\$(TOOLKIT)"
31932 else
31933     USE_GUI=0
31934
31935             TOOLKIT_DIR="base"
31936
31937         if test "$USE_WIN32" = 1 ; then
31938                         TOOLKIT="MSW"
31939     fi
31940
31941         GUIDIST="BASE_DIST"
31942     DISTDIR="wxBase"
31943 fi
31944
31945
31946 if test "$wxUSE_GUI" = "yes"; then
31947     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31948
31949 for ac_header in X11/Xlib.h
31950 do
31951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31953   echo "$as_me:$LINENO: checking for $ac_header" >&5
31954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31956   echo $ECHO_N "(cached) $ECHO_C" >&6
31957 fi
31958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31960 else
31961   # Is the header compilable?
31962 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31964 cat >conftest.$ac_ext <<_ACEOF
31965 /* confdefs.h.  */
31966 _ACEOF
31967 cat confdefs.h >>conftest.$ac_ext
31968 cat >>conftest.$ac_ext <<_ACEOF
31969 /* end confdefs.h.  */
31970 $ac_includes_default
31971 #include <$ac_header>
31972 _ACEOF
31973 rm -f conftest.$ac_objext
31974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31975   (eval $ac_compile) 2>conftest.er1
31976   ac_status=$?
31977   grep -v '^ *+' conftest.er1 >conftest.err
31978   rm -f conftest.er1
31979   cat conftest.err >&5
31980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31981   (exit $ac_status); } &&
31982          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31984   (eval $ac_try) 2>&5
31985   ac_status=$?
31986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987   (exit $ac_status); }; } &&
31988          { ac_try='test -s conftest.$ac_objext'
31989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31990   (eval $ac_try) 2>&5
31991   ac_status=$?
31992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31993   (exit $ac_status); }; }; then
31994   ac_header_compiler=yes
31995 else
31996   echo "$as_me: failed program was:" >&5
31997 sed 's/^/| /' conftest.$ac_ext >&5
31998
31999 ac_header_compiler=no
32000 fi
32001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32003 echo "${ECHO_T}$ac_header_compiler" >&6
32004
32005 # Is the header present?
32006 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32008 cat >conftest.$ac_ext <<_ACEOF
32009 /* confdefs.h.  */
32010 _ACEOF
32011 cat confdefs.h >>conftest.$ac_ext
32012 cat >>conftest.$ac_ext <<_ACEOF
32013 /* end confdefs.h.  */
32014 #include <$ac_header>
32015 _ACEOF
32016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32017   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32018   ac_status=$?
32019   grep -v '^ *+' conftest.er1 >conftest.err
32020   rm -f conftest.er1
32021   cat conftest.err >&5
32022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023   (exit $ac_status); } >/dev/null; then
32024   if test -s conftest.err; then
32025     ac_cpp_err=$ac_c_preproc_warn_flag
32026     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32027   else
32028     ac_cpp_err=
32029   fi
32030 else
32031   ac_cpp_err=yes
32032 fi
32033 if test -z "$ac_cpp_err"; then
32034   ac_header_preproc=yes
32035 else
32036   echo "$as_me: failed program was:" >&5
32037 sed 's/^/| /' conftest.$ac_ext >&5
32038
32039   ac_header_preproc=no
32040 fi
32041 rm -f conftest.err conftest.$ac_ext
32042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32043 echo "${ECHO_T}$ac_header_preproc" >&6
32044
32045 # So?  What about this header?
32046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32047   yes:no: )
32048     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32051 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32052     ac_header_preproc=yes
32053     ;;
32054   no:yes:* )
32055     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32057     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32058 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32059     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32060 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32061     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32062 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32063     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32065     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32066 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32067     (
32068       cat <<\_ASBOX
32069 ## ----------------------------------------- ##
32070 ## Report this to wx-dev@lists.wxwidgets.org ##
32071 ## ----------------------------------------- ##
32072 _ASBOX
32073     ) |
32074       sed "s/^/$as_me: WARNING:     /" >&2
32075     ;;
32076 esac
32077 echo "$as_me:$LINENO: checking for $ac_header" >&5
32078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32080   echo $ECHO_N "(cached) $ECHO_C" >&6
32081 else
32082   eval "$as_ac_Header=\$ac_header_preproc"
32083 fi
32084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32086
32087 fi
32088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32089   cat >>confdefs.h <<_ACEOF
32090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32091 _ACEOF
32092
32093 fi
32094
32095 done
32096
32097
32098 for ac_header in X11/XKBlib.h
32099 do
32100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32101 echo "$as_me:$LINENO: checking for $ac_header" >&5
32102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32104   echo $ECHO_N "(cached) $ECHO_C" >&6
32105 else
32106   cat >conftest.$ac_ext <<_ACEOF
32107 /* confdefs.h.  */
32108 _ACEOF
32109 cat confdefs.h >>conftest.$ac_ext
32110 cat >>conftest.$ac_ext <<_ACEOF
32111 /* end confdefs.h.  */
32112
32113                           #if HAVE_X11_XLIB_H
32114                             #include <X11/Xlib.h>
32115                           #endif
32116
32117
32118 #include <$ac_header>
32119 _ACEOF
32120 rm -f conftest.$ac_objext
32121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32122   (eval $ac_compile) 2>conftest.er1
32123   ac_status=$?
32124   grep -v '^ *+' conftest.er1 >conftest.err
32125   rm -f conftest.er1
32126   cat conftest.err >&5
32127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32128   (exit $ac_status); } &&
32129          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32131   (eval $ac_try) 2>&5
32132   ac_status=$?
32133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134   (exit $ac_status); }; } &&
32135          { ac_try='test -s conftest.$ac_objext'
32136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32137   (eval $ac_try) 2>&5
32138   ac_status=$?
32139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140   (exit $ac_status); }; }; then
32141   eval "$as_ac_Header=yes"
32142 else
32143   echo "$as_me: failed program was:" >&5
32144 sed 's/^/| /' conftest.$ac_ext >&5
32145
32146 eval "$as_ac_Header=no"
32147 fi
32148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32149 fi
32150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32153   cat >>confdefs.h <<_ACEOF
32154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32155 _ACEOF
32156
32157 fi
32158
32159 done
32160
32161     fi
32162 fi
32163
32164
32165
32166 IODBC_C_SRC=""
32167
32168
32169 if test "$TOOLKIT" != "MSW" ; then
32170
32171     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32172
32173         if test "${ac_cv_header_sql_h+set}" = set; then
32174   echo "$as_me:$LINENO: checking for sql.h" >&5
32175 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32176 if test "${ac_cv_header_sql_h+set}" = set; then
32177   echo $ECHO_N "(cached) $ECHO_C" >&6
32178 fi
32179 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32180 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32181 else
32182   # Is the header compilable?
32183 echo "$as_me:$LINENO: checking sql.h usability" >&5
32184 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
32185 cat >conftest.$ac_ext <<_ACEOF
32186 /* confdefs.h.  */
32187 _ACEOF
32188 cat confdefs.h >>conftest.$ac_ext
32189 cat >>conftest.$ac_ext <<_ACEOF
32190 /* end confdefs.h.  */
32191 $ac_includes_default
32192 #include <sql.h>
32193 _ACEOF
32194 rm -f conftest.$ac_objext
32195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32196   (eval $ac_compile) 2>conftest.er1
32197   ac_status=$?
32198   grep -v '^ *+' conftest.er1 >conftest.err
32199   rm -f conftest.er1
32200   cat conftest.err >&5
32201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32202   (exit $ac_status); } &&
32203          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32205   (eval $ac_try) 2>&5
32206   ac_status=$?
32207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32208   (exit $ac_status); }; } &&
32209          { ac_try='test -s conftest.$ac_objext'
32210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32211   (eval $ac_try) 2>&5
32212   ac_status=$?
32213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214   (exit $ac_status); }; }; then
32215   ac_header_compiler=yes
32216 else
32217   echo "$as_me: failed program was:" >&5
32218 sed 's/^/| /' conftest.$ac_ext >&5
32219
32220 ac_header_compiler=no
32221 fi
32222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32223 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32224 echo "${ECHO_T}$ac_header_compiler" >&6
32225
32226 # Is the header present?
32227 echo "$as_me:$LINENO: checking sql.h presence" >&5
32228 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
32229 cat >conftest.$ac_ext <<_ACEOF
32230 /* confdefs.h.  */
32231 _ACEOF
32232 cat confdefs.h >>conftest.$ac_ext
32233 cat >>conftest.$ac_ext <<_ACEOF
32234 /* end confdefs.h.  */
32235 #include <sql.h>
32236 _ACEOF
32237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32238   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32239   ac_status=$?
32240   grep -v '^ *+' conftest.er1 >conftest.err
32241   rm -f conftest.er1
32242   cat conftest.err >&5
32243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244   (exit $ac_status); } >/dev/null; then
32245   if test -s conftest.err; then
32246     ac_cpp_err=$ac_c_preproc_warn_flag
32247     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32248   else
32249     ac_cpp_err=
32250   fi
32251 else
32252   ac_cpp_err=yes
32253 fi
32254 if test -z "$ac_cpp_err"; then
32255   ac_header_preproc=yes
32256 else
32257   echo "$as_me: failed program was:" >&5
32258 sed 's/^/| /' conftest.$ac_ext >&5
32259
32260   ac_header_preproc=no
32261 fi
32262 rm -f conftest.err conftest.$ac_ext
32263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32264 echo "${ECHO_T}$ac_header_preproc" >&6
32265
32266 # So?  What about this header?
32267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32268   yes:no: )
32269     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32270 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32271     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32272 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32273     ac_header_preproc=yes
32274     ;;
32275   no:yes:* )
32276     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
32277 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
32278     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
32279 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
32280     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
32281 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
32282     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
32283 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32284     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
32285 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
32286     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
32287 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
32288     (
32289       cat <<\_ASBOX
32290 ## ----------------------------------------- ##
32291 ## Report this to wx-dev@lists.wxwidgets.org ##
32292 ## ----------------------------------------- ##
32293 _ASBOX
32294     ) |
32295       sed "s/^/$as_me: WARNING:     /" >&2
32296     ;;
32297 esac
32298 echo "$as_me:$LINENO: checking for sql.h" >&5
32299 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32300 if test "${ac_cv_header_sql_h+set}" = set; then
32301   echo $ECHO_N "(cached) $ECHO_C" >&6
32302 else
32303   ac_cv_header_sql_h=$ac_header_preproc
32304 fi
32305 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32306 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32307
32308 fi
32309 if test $ac_cv_header_sql_h = yes; then
32310   found_sql_h=1
32311 fi
32312
32313
32314         if test "x$found_sql_h" = "x1" ; then
32315             echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32316 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
32317 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32318   echo $ECHO_N "(cached) $ECHO_C" >&6
32319 else
32320   ac_check_lib_save_LIBS=$LIBS
32321 LIBS="-liodbc  $LIBS"
32322 cat >conftest.$ac_ext <<_ACEOF
32323 /* confdefs.h.  */
32324 _ACEOF
32325 cat confdefs.h >>conftest.$ac_ext
32326 cat >>conftest.$ac_ext <<_ACEOF
32327 /* end confdefs.h.  */
32328
32329 /* Override any gcc2 internal prototype to avoid an error.  */
32330 #ifdef __cplusplus
32331 extern "C"
32332 #endif
32333 /* We use char because int might match the return type of a gcc2
32334    builtin and then its argument prototype would still apply.  */
32335 char SQLAllocEnv ();
32336 int
32337 main ()
32338 {
32339 SQLAllocEnv ();
32340   ;
32341   return 0;
32342 }
32343 _ACEOF
32344 rm -f conftest.$ac_objext conftest$ac_exeext
32345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32346   (eval $ac_link) 2>conftest.er1
32347   ac_status=$?
32348   grep -v '^ *+' conftest.er1 >conftest.err
32349   rm -f conftest.er1
32350   cat conftest.err >&5
32351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352   (exit $ac_status); } &&
32353          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32355   (eval $ac_try) 2>&5
32356   ac_status=$?
32357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32358   (exit $ac_status); }; } &&
32359          { ac_try='test -s conftest$ac_exeext'
32360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32361   (eval $ac_try) 2>&5
32362   ac_status=$?
32363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32364   (exit $ac_status); }; }; then
32365   ac_cv_lib_iodbc_SQLAllocEnv=yes
32366 else
32367   echo "$as_me: failed program was:" >&5
32368 sed 's/^/| /' conftest.$ac_ext >&5
32369
32370 ac_cv_lib_iodbc_SQLAllocEnv=no
32371 fi
32372 rm -f conftest.err conftest.$ac_objext \
32373       conftest$ac_exeext conftest.$ac_ext
32374 LIBS=$ac_check_lib_save_LIBS
32375 fi
32376 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
32377 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
32378 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
32379   ODBC_LINK=" -liodbc"
32380 else
32381
32382                 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
32383 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
32384 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
32385   echo $ECHO_N "(cached) $ECHO_C" >&6
32386 else
32387   ac_check_lib_save_LIBS=$LIBS
32388 LIBS="-lunixodbc  $LIBS"
32389 cat >conftest.$ac_ext <<_ACEOF
32390 /* confdefs.h.  */
32391 _ACEOF
32392 cat confdefs.h >>conftest.$ac_ext
32393 cat >>conftest.$ac_ext <<_ACEOF
32394 /* end confdefs.h.  */
32395
32396 /* Override any gcc2 internal prototype to avoid an error.  */
32397 #ifdef __cplusplus
32398 extern "C"
32399 #endif
32400 /* We use char because int might match the return type of a gcc2
32401    builtin and then its argument prototype would still apply.  */
32402 char SQLAllocEnv ();
32403 int
32404 main ()
32405 {
32406 SQLAllocEnv ();
32407   ;
32408   return 0;
32409 }
32410 _ACEOF
32411 rm -f conftest.$ac_objext conftest$ac_exeext
32412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32413   (eval $ac_link) 2>conftest.er1
32414   ac_status=$?
32415   grep -v '^ *+' conftest.er1 >conftest.err
32416   rm -f conftest.er1
32417   cat conftest.err >&5
32418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32419   (exit $ac_status); } &&
32420          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32422   (eval $ac_try) 2>&5
32423   ac_status=$?
32424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32425   (exit $ac_status); }; } &&
32426          { ac_try='test -s conftest$ac_exeext'
32427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32428   (eval $ac_try) 2>&5
32429   ac_status=$?
32430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32431   (exit $ac_status); }; }; then
32432   ac_cv_lib_unixodbc_SQLAllocEnv=yes
32433 else
32434   echo "$as_me: failed program was:" >&5
32435 sed 's/^/| /' conftest.$ac_ext >&5
32436
32437 ac_cv_lib_unixodbc_SQLAllocEnv=no
32438 fi
32439 rm -f conftest.err conftest.$ac_objext \
32440       conftest$ac_exeext conftest.$ac_ext
32441 LIBS=$ac_check_lib_save_LIBS
32442 fi
32443 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
32444 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
32445 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
32446   ODBC_LINK=" -lunixodbc"
32447 else
32448
32449                     echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
32450 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
32451 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
32452   echo $ECHO_N "(cached) $ECHO_C" >&6
32453 else
32454   ac_check_lib_save_LIBS=$LIBS
32455 LIBS="-lodbc  $LIBS"
32456 cat >conftest.$ac_ext <<_ACEOF
32457 /* confdefs.h.  */
32458 _ACEOF
32459 cat confdefs.h >>conftest.$ac_ext
32460 cat >>conftest.$ac_ext <<_ACEOF
32461 /* end confdefs.h.  */
32462
32463 /* Override any gcc2 internal prototype to avoid an error.  */
32464 #ifdef __cplusplus
32465 extern "C"
32466 #endif
32467 /* We use char because int might match the return type of a gcc2
32468    builtin and then its argument prototype would still apply.  */
32469 char SQLAllocEnv ();
32470 int
32471 main ()
32472 {
32473 SQLAllocEnv ();
32474   ;
32475   return 0;
32476 }
32477 _ACEOF
32478 rm -f conftest.$ac_objext conftest$ac_exeext
32479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32480   (eval $ac_link) 2>conftest.er1
32481   ac_status=$?
32482   grep -v '^ *+' conftest.er1 >conftest.err
32483   rm -f conftest.er1
32484   cat conftest.err >&5
32485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32486   (exit $ac_status); } &&
32487          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32489   (eval $ac_try) 2>&5
32490   ac_status=$?
32491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32492   (exit $ac_status); }; } &&
32493          { ac_try='test -s conftest$ac_exeext'
32494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32495   (eval $ac_try) 2>&5
32496   ac_status=$?
32497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32498   (exit $ac_status); }; }; then
32499   ac_cv_lib_odbc_SQLAllocEnv=yes
32500 else
32501   echo "$as_me: failed program was:" >&5
32502 sed 's/^/| /' conftest.$ac_ext >&5
32503
32504 ac_cv_lib_odbc_SQLAllocEnv=no
32505 fi
32506 rm -f conftest.err conftest.$ac_objext \
32507       conftest$ac_exeext conftest.$ac_ext
32508 LIBS=$ac_check_lib_save_LIBS
32509 fi
32510 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32511 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32512 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32513   ODBC_LINK=" -lodbc"
32514 fi
32515
32516
32517 fi
32518
32519
32520 fi
32521
32522         fi
32523         if test "x$ODBC_LINK" = "x" ; then
32524             if test "$wxUSE_ODBC" = "sys" ; then
32525                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32526 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32527    { (exit 1); exit 1; }; }
32528             else
32529                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32530 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32531                 wxUSE_ODBC=builtin
32532             fi
32533         else
32534                         wxUSE_ODBC=sys
32535         fi
32536     fi
32537
32538     if test "$wxUSE_ODBC" = "builtin" ; then
32539         cat >>confdefs.h <<\_ACEOF
32540 #define wxUSE_BUILTIN_IODBC 1
32541 _ACEOF
32542
32543     fi
32544 fi
32545
32546 if test "$wxUSE_ODBC" != "no" ; then
32547     cat >>confdefs.h <<\_ACEOF
32548 #define wxUSE_ODBC 1
32549 _ACEOF
32550
32551     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32552
32553         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
32554 fi
32555
32556
32557 if test "$wxUSE_DISPLAY" = "yes"; then
32558     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32559         echo "$as_me:$LINENO: checking for Xinerama" >&5
32560 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32561
32562   ac_find_libraries=
32563   for ac_dir in $SEARCH_LIB;
32564   do
32565     for ac_extension in a so sl dylib dll.a; do
32566       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32567         ac_find_libraries=$ac_dir
32568         break 2
32569       fi
32570     done
32571   done
32572
32573         if test "$ac_find_libraries" != "" ; then
32574
32575     if test "$ac_find_libraries" = "default location"; then
32576     ac_path_to_link=""
32577   else
32578     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32579     result=$?
32580     if test $result = 0; then
32581       ac_path_to_link=""
32582     else
32583       ac_path_to_link=" -L$ac_find_libraries"
32584     fi
32585   fi
32586
32587             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32588                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32589             fi
32590             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32591             echo "$as_me:$LINENO: result: yes" >&5
32592 echo "${ECHO_T}yes" >&6
32593
32594             echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32595 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32596
32597   ac_find_libraries=
32598   for ac_dir in $SEARCH_LIB;
32599   do
32600     for ac_extension in a so sl dylib dll.a; do
32601       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32602         ac_find_libraries=$ac_dir
32603         break 2
32604       fi
32605     done
32606   done
32607
32608             if test "$ac_find_libraries" != "" ; then
32609                 echo "$as_me:$LINENO: result: yes" >&5
32610 echo "${ECHO_T}yes" >&6
32611
32612 for ac_header in X11/extensions/xf86vmode.h
32613 do
32614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32615 echo "$as_me:$LINENO: checking for $ac_header" >&5
32616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32618   echo $ECHO_N "(cached) $ECHO_C" >&6
32619 else
32620   cat >conftest.$ac_ext <<_ACEOF
32621 /* confdefs.h.  */
32622 _ACEOF
32623 cat confdefs.h >>conftest.$ac_ext
32624 cat >>conftest.$ac_ext <<_ACEOF
32625 /* end confdefs.h.  */
32626
32627                                       #if HAVE_X11_XLIB_H
32628                                         #include <X11/Xlib.h>
32629                                       #endif
32630
32631
32632 #include <$ac_header>
32633 _ACEOF
32634 rm -f conftest.$ac_objext
32635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32636   (eval $ac_compile) 2>conftest.er1
32637   ac_status=$?
32638   grep -v '^ *+' conftest.er1 >conftest.err
32639   rm -f conftest.er1
32640   cat conftest.err >&5
32641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642   (exit $ac_status); } &&
32643          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32645   (eval $ac_try) 2>&5
32646   ac_status=$?
32647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648   (exit $ac_status); }; } &&
32649          { ac_try='test -s conftest.$ac_objext'
32650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32651   (eval $ac_try) 2>&5
32652   ac_status=$?
32653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654   (exit $ac_status); }; }; then
32655   eval "$as_ac_Header=yes"
32656 else
32657   echo "$as_me: failed program was:" >&5
32658 sed 's/^/| /' conftest.$ac_ext >&5
32659
32660 eval "$as_ac_Header=no"
32661 fi
32662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32663 fi
32664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32667   cat >>confdefs.h <<_ACEOF
32668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32669 _ACEOF
32670
32671                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32672
32673 fi
32674
32675 done
32676
32677             else
32678                 echo "$as_me:$LINENO: result: no" >&5
32679 echo "${ECHO_T}no" >&6
32680             fi
32681
32682         else
32683             echo "$as_me:$LINENO: result: no" >&5
32684 echo "${ECHO_T}no" >&6
32685             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32686 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
32687             wxUSE_DISPLAY="no"
32688         fi
32689     elif test "$wxUSE_MSW" = 1; then
32690
32691 for ac_header in ddraw.h
32692 do
32693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32694 echo "$as_me:$LINENO: checking for $ac_header" >&5
32695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32697   echo $ECHO_N "(cached) $ECHO_C" >&6
32698 else
32699   cat >conftest.$ac_ext <<_ACEOF
32700 /* confdefs.h.  */
32701 _ACEOF
32702 cat confdefs.h >>conftest.$ac_ext
32703 cat >>conftest.$ac_ext <<_ACEOF
32704 /* end confdefs.h.  */
32705 #include <windows.h>
32706
32707 #include <$ac_header>
32708 _ACEOF
32709 rm -f conftest.$ac_objext
32710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32711   (eval $ac_compile) 2>conftest.er1
32712   ac_status=$?
32713   grep -v '^ *+' conftest.er1 >conftest.err
32714   rm -f conftest.er1
32715   cat conftest.err >&5
32716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717   (exit $ac_status); } &&
32718          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32720   (eval $ac_try) 2>&5
32721   ac_status=$?
32722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723   (exit $ac_status); }; } &&
32724          { ac_try='test -s conftest.$ac_objext'
32725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32726   (eval $ac_try) 2>&5
32727   ac_status=$?
32728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729   (exit $ac_status); }; }; then
32730   eval "$as_ac_Header=yes"
32731 else
32732   echo "$as_me: failed program was:" >&5
32733 sed 's/^/| /' conftest.$ac_ext >&5
32734
32735 eval "$as_ac_Header=no"
32736 fi
32737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32738 fi
32739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32742   cat >>confdefs.h <<_ACEOF
32743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32744 _ACEOF
32745
32746 fi
32747
32748 done
32749
32750     fi
32751 fi
32752
32753 if test "$wxUSE_DETECT_SM" = "yes"; then
32754     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32755         echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
32756 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6
32757
32758   ac_find_libraries=
32759   for ac_dir in $SEARCH_LIB;
32760   do
32761     for ac_extension in a so sl dylib dll.a; do
32762       if test -f "$ac_dir/libSM.$ac_extension"; then
32763         ac_find_libraries=$ac_dir
32764         break 2
32765       fi
32766     done
32767   done
32768
32769         if test "$ac_find_libraries" != "" ; then
32770
32771     if test "$ac_find_libraries" = "default location"; then
32772     ac_path_to_link=""
32773   else
32774     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32775     result=$?
32776     if test $result = 0; then
32777       ac_path_to_link=""
32778     else
32779       ac_path_to_link=" -L$ac_find_libraries"
32780     fi
32781   fi
32782
32783             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32784                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32785             fi
32786             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
32787             echo "$as_me:$LINENO: result: yes" >&5
32788 echo "${ECHO_T}yes" >&6
32789         else
32790             echo "$as_me:$LINENO: result: no" >&5
32791 echo "${ECHO_T}no" >&6
32792             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
32793 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
32794             wxUSE_DETECT_SM="no"
32795         fi
32796     else
32797         wxUSE_DETECT_SM="no"
32798     fi
32799 fi
32800
32801
32802
32803 USE_OPENGL=0
32804 if test "$wxUSE_OPENGL" = "yes"; then
32805     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
32806         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
32807 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
32808         wxUSE_OPENGL="no"
32809     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32810         OPENGL_LIBS="-framework OpenGL -framework AGL"
32811     elif test "$wxUSE_MSW" = 1; then
32812         OPENGL_LIBS="-lopengl32 -lglu32"
32813     else
32814                         echo "$as_me:$LINENO: checking for OpenGL headers" >&5
32815 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6
32816
32817 ac_find_includes=
32818 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
32819   do
32820     if test -f "$ac_dir/GL/gl.h"; then
32821       ac_find_includes=$ac_dir
32822       break
32823     fi
32824   done
32825
32826         if test "$ac_find_includes" != "" ; then
32827             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32828 echo "${ECHO_T}found in $ac_find_includes" >&6
32829
32830     if test "x$ac_find_includes" = "x/usr/include"; then
32831     ac_path_to_include=""
32832   else
32833     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32834     result=$?
32835     if test $result = 0; then
32836       ac_path_to_include=""
32837     else
32838       ac_path_to_include=" -I$ac_find_includes"
32839     fi
32840   fi
32841
32842             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
32843         else
32844             echo "$as_me:$LINENO: result: not found" >&5
32845 echo "${ECHO_T}not found" >&6
32846         fi
32847
32848         if test "${ac_cv_header_GL_gl_h+set}" = set; then
32849   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32850 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32851 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32852   echo $ECHO_N "(cached) $ECHO_C" >&6
32853 fi
32854 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32855 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32856 else
32857   # Is the header compilable?
32858 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32859 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32860 cat >conftest.$ac_ext <<_ACEOF
32861 /* confdefs.h.  */
32862 _ACEOF
32863 cat confdefs.h >>conftest.$ac_ext
32864 cat >>conftest.$ac_ext <<_ACEOF
32865 /* end confdefs.h.  */
32866 $ac_includes_default
32867 #include <GL/gl.h>
32868 _ACEOF
32869 rm -f conftest.$ac_objext
32870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32871   (eval $ac_compile) 2>conftest.er1
32872   ac_status=$?
32873   grep -v '^ *+' conftest.er1 >conftest.err
32874   rm -f conftest.er1
32875   cat conftest.err >&5
32876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32877   (exit $ac_status); } &&
32878          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32880   (eval $ac_try) 2>&5
32881   ac_status=$?
32882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883   (exit $ac_status); }; } &&
32884          { ac_try='test -s conftest.$ac_objext'
32885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32886   (eval $ac_try) 2>&5
32887   ac_status=$?
32888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889   (exit $ac_status); }; }; then
32890   ac_header_compiler=yes
32891 else
32892   echo "$as_me: failed program was:" >&5
32893 sed 's/^/| /' conftest.$ac_ext >&5
32894
32895 ac_header_compiler=no
32896 fi
32897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32898 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32899 echo "${ECHO_T}$ac_header_compiler" >&6
32900
32901 # Is the header present?
32902 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32903 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32904 cat >conftest.$ac_ext <<_ACEOF
32905 /* confdefs.h.  */
32906 _ACEOF
32907 cat confdefs.h >>conftest.$ac_ext
32908 cat >>conftest.$ac_ext <<_ACEOF
32909 /* end confdefs.h.  */
32910 #include <GL/gl.h>
32911 _ACEOF
32912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32913   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32914   ac_status=$?
32915   grep -v '^ *+' conftest.er1 >conftest.err
32916   rm -f conftest.er1
32917   cat conftest.err >&5
32918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32919   (exit $ac_status); } >/dev/null; then
32920   if test -s conftest.err; then
32921     ac_cpp_err=$ac_c_preproc_warn_flag
32922     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32923   else
32924     ac_cpp_err=
32925   fi
32926 else
32927   ac_cpp_err=yes
32928 fi
32929 if test -z "$ac_cpp_err"; then
32930   ac_header_preproc=yes
32931 else
32932   echo "$as_me: failed program was:" >&5
32933 sed 's/^/| /' conftest.$ac_ext >&5
32934
32935   ac_header_preproc=no
32936 fi
32937 rm -f conftest.err conftest.$ac_ext
32938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32939 echo "${ECHO_T}$ac_header_preproc" >&6
32940
32941 # So?  What about this header?
32942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32943   yes:no: )
32944     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32945 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32946     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32947 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32948     ac_header_preproc=yes
32949     ;;
32950   no:yes:* )
32951     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32952 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
32953     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
32954 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
32955     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32956 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32957     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
32958 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32959     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32960 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
32961     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32962 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
32963     (
32964       cat <<\_ASBOX
32965 ## ----------------------------------------- ##
32966 ## Report this to wx-dev@lists.wxwidgets.org ##
32967 ## ----------------------------------------- ##
32968 _ASBOX
32969     ) |
32970       sed "s/^/$as_me: WARNING:     /" >&2
32971     ;;
32972 esac
32973 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32974 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32975 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32976   echo $ECHO_N "(cached) $ECHO_C" >&6
32977 else
32978   ac_cv_header_GL_gl_h=$ac_header_preproc
32979 fi
32980 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32981 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32982
32983 fi
32984 if test $ac_cv_header_GL_gl_h = yes; then
32985
32986             if test "${ac_cv_header_GL_glu_h+set}" = set; then
32987   echo "$as_me:$LINENO: checking for GL/glu.h" >&5
32988 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6
32989 if test "${ac_cv_header_GL_glu_h+set}" = set; then
32990   echo $ECHO_N "(cached) $ECHO_C" >&6
32991 fi
32992 echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
32993 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6
32994 else
32995   # Is the header compilable?
32996 echo "$as_me:$LINENO: checking GL/glu.h usability" >&5
32997 echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6
32998 cat >conftest.$ac_ext <<_ACEOF
32999 /* confdefs.h.  */
33000 _ACEOF
33001 cat confdefs.h >>conftest.$ac_ext
33002 cat >>conftest.$ac_ext <<_ACEOF
33003 /* end confdefs.h.  */
33004 $ac_includes_default
33005 #include <GL/glu.h>
33006 _ACEOF
33007 rm -f conftest.$ac_objext
33008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33009   (eval $ac_compile) 2>conftest.er1
33010   ac_status=$?
33011   grep -v '^ *+' conftest.er1 >conftest.err
33012   rm -f conftest.er1
33013   cat conftest.err >&5
33014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33015   (exit $ac_status); } &&
33016          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33018   (eval $ac_try) 2>&5
33019   ac_status=$?
33020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33021   (exit $ac_status); }; } &&
33022          { ac_try='test -s conftest.$ac_objext'
33023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33024   (eval $ac_try) 2>&5
33025   ac_status=$?
33026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33027   (exit $ac_status); }; }; then
33028   ac_header_compiler=yes
33029 else
33030   echo "$as_me: failed program was:" >&5
33031 sed 's/^/| /' conftest.$ac_ext >&5
33032
33033 ac_header_compiler=no
33034 fi
33035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33037 echo "${ECHO_T}$ac_header_compiler" >&6
33038
33039 # Is the header present?
33040 echo "$as_me:$LINENO: checking GL/glu.h presence" >&5
33041 echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6
33042 cat >conftest.$ac_ext <<_ACEOF
33043 /* confdefs.h.  */
33044 _ACEOF
33045 cat confdefs.h >>conftest.$ac_ext
33046 cat >>conftest.$ac_ext <<_ACEOF
33047 /* end confdefs.h.  */
33048 #include <GL/glu.h>
33049 _ACEOF
33050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33051   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33052   ac_status=$?
33053   grep -v '^ *+' conftest.er1 >conftest.err
33054   rm -f conftest.er1
33055   cat conftest.err >&5
33056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057   (exit $ac_status); } >/dev/null; then
33058   if test -s conftest.err; then
33059     ac_cpp_err=$ac_c_preproc_warn_flag
33060     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33061   else
33062     ac_cpp_err=
33063   fi
33064 else
33065   ac_cpp_err=yes
33066 fi
33067 if test -z "$ac_cpp_err"; then
33068   ac_header_preproc=yes
33069 else
33070   echo "$as_me: failed program was:" >&5
33071 sed 's/^/| /' conftest.$ac_ext >&5
33072
33073   ac_header_preproc=no
33074 fi
33075 rm -f conftest.err conftest.$ac_ext
33076 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33077 echo "${ECHO_T}$ac_header_preproc" >&6
33078
33079 # So?  What about this header?
33080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33081   yes:no: )
33082     { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5
33083 echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33084     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5
33085 echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;}
33086     ac_header_preproc=yes
33087     ;;
33088   no:yes:* )
33089     { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5
33090 echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;}
33091     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&5
33092 echo "$as_me: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&2;}
33093     { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5
33094 echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;}
33095     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&5
33096 echo "$as_me: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33097     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5
33098 echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;}
33099     { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5
33100 echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;}
33101     (
33102       cat <<\_ASBOX
33103 ## ----------------------------------------- ##
33104 ## Report this to wx-dev@lists.wxwidgets.org ##
33105 ## ----------------------------------------- ##
33106 _ASBOX
33107     ) |
33108       sed "s/^/$as_me: WARNING:     /" >&2
33109     ;;
33110 esac
33111 echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33112 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6
33113 if test "${ac_cv_header_GL_glu_h+set}" = set; then
33114   echo $ECHO_N "(cached) $ECHO_C" >&6
33115 else
33116   ac_cv_header_GL_glu_h=$ac_header_preproc
33117 fi
33118 echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33119 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6
33120
33121 fi
33122 if test $ac_cv_header_GL_glu_h = yes; then
33123
33124                 found_gl=0
33125
33126                 echo "$as_me:$LINENO: checking for -lGL" >&5
33127 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
33128
33129   ac_find_libraries=
33130   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
33131   do
33132     for ac_extension in a so sl dylib dll.a; do
33133       if test -f "$ac_dir/libGL.$ac_extension"; then
33134         ac_find_libraries=$ac_dir
33135         break 2
33136       fi
33137     done
33138   done
33139
33140                 if test "$ac_find_libraries" != "" ; then
33141                     echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33142 echo "${ECHO_T}found in $ac_find_libraries" >&6
33143
33144
33145     if test "$ac_find_libraries" = "default location"; then
33146     ac_path_to_link=""
33147   else
33148     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33149     result=$?
33150     if test $result = 0; then
33151       ac_path_to_link=""
33152     else
33153       ac_path_to_link=" -L$ac_find_libraries"
33154     fi
33155   fi
33156
33157                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
33158                         LDFLAGS_GL="$ac_path_to_link"
33159                     fi
33160
33161                                                                                 echo "$as_me:$LINENO: checking for -lGLU" >&5
33162 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
33163
33164   ac_find_libraries=
33165   for ac_dir in $SEARCH_LIB;
33166   do
33167     for ac_extension in a so sl dylib dll.a; do
33168       if test -f "$ac_dir/libGLU.$ac_extension"; then
33169         ac_find_libraries=$ac_dir
33170         break 2
33171       fi
33172     done
33173   done
33174
33175                     if test "$ac_find_libraries" != "" ; then
33176
33177     if test "$ac_find_libraries" = "default location"; then
33178     ac_path_to_link=""
33179   else
33180     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33181     result=$?
33182     if test $result = 0; then
33183       ac_path_to_link=""
33184     else
33185       ac_path_to_link=" -L$ac_find_libraries"
33186     fi
33187   fi
33188
33189                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
33190                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
33191                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33192                         fi
33193
33194                         found_gl=1
33195                         OPENGL_LIBS="-lGL -lGLU"
33196                         echo "$as_me:$LINENO: result: yes" >&5
33197 echo "${ECHO_T}yes" >&6
33198                     else
33199                         echo "$as_me:$LINENO: result: no" >&5
33200 echo "${ECHO_T}no" >&6
33201                     fi
33202                 else
33203                     echo "$as_me:$LINENO: result: no" >&5
33204 echo "${ECHO_T}no" >&6
33205                 fi
33206
33207                 if test "$found_gl" != 1; then
33208                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33209 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
33210
33211   ac_find_libraries=
33212   for ac_dir in $SEARCH_LIB;
33213   do
33214     for ac_extension in a so sl dylib dll.a; do
33215       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33216         ac_find_libraries=$ac_dir
33217         break 2
33218       fi
33219     done
33220   done
33221
33222                     if test "$ac_find_libraries" != "" ; then
33223
33224     if test "$ac_find_libraries" = "default location"; then
33225     ac_path_to_link=""
33226   else
33227     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33228     result=$?
33229     if test $result = 0; then
33230       ac_path_to_link=""
33231     else
33232       ac_path_to_link=" -L$ac_find_libraries"
33233     fi
33234   fi
33235
33236                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33237                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
33238                         echo "$as_me:$LINENO: result: yes" >&5
33239 echo "${ECHO_T}yes" >&6
33240                     else
33241                         echo "$as_me:$LINENO: result: no" >&5
33242 echo "${ECHO_T}no" >&6
33243                     fi
33244                 fi
33245
33246 fi
33247
33248
33249
33250 fi
33251
33252
33253
33254         if test "x$OPENGL_LIBS" = "x"; then
33255                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33256 echo "$as_me: error: OpenGL libraries not available" >&2;}
33257    { (exit 1); exit 1; }; }
33258         fi
33259     fi
33260
33261     if test "$wxUSE_OPENGL" = "yes"; then
33262         USE_OPENGL=1
33263         cat >>confdefs.h <<\_ACEOF
33264 #define wxUSE_OPENGL 1
33265 _ACEOF
33266
33267         cat >>confdefs.h <<\_ACEOF
33268 #define wxUSE_GLCANVAS 1
33269 _ACEOF
33270
33271         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33272     fi
33273 fi
33274
33275
33276 if test -n "$TOOLKIT" ; then
33277     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33278 fi
33279
33280
33281
33282 if test "$wxUSE_SHARED" = "yes"; then
33283     case "${host}" in
33284       *-pc-msdosdjgpp )
33285                 wxUSE_SHARED=no
33286         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33287 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33288       ;;
33289     esac
33290 fi
33291
33292 if test "$wxUSE_SHARED" = "yes"; then
33293
33294
33295     case "${host}" in
33296         *-*-cygwin* | *-*-mingw* )
33297                                                                                                 wx_cv_version_script=no
33298             ;;
33299
33300         *)
33301             echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33302 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
33303 if test "${wx_cv_version_script+set}" = set; then
33304   echo $ECHO_N "(cached) $ECHO_C" >&6
33305 else
33306
33307                 echo "VER_1 { *; };" >conftest.sym
33308                 echo "int main() { return 0; }" >conftest.cpp
33309
33310                 if { ac_try='
33311                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33312                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33314   (eval $ac_try) 2>&5
33315   ac_status=$?
33316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33317   (exit $ac_status); }; } ; then
33318                   if test -s conftest.stderr ; then
33319                       wx_cv_version_script=no
33320                   else
33321                       wx_cv_version_script=yes
33322                   fi
33323                 else
33324                   wx_cv_version_script=no
33325                 fi
33326
33327                                                                                                                                                                                                 if test $wx_cv_version_script = yes
33328                 then
33329                   echo "struct B { virtual ~B() { } }; \
33330                         struct D : public B { }; \
33331                         void F() { D d; }" > conftest.cpp
33332
33333                   if { ac_try='
33334                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33335                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33337   (eval $ac_try) 2>&5
33338   ac_status=$?
33339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33340   (exit $ac_status); }; } &&
33341                      { ac_try='
33342                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33343                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33345   (eval $ac_try) 2>&5
33346   ac_status=$?
33347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33348   (exit $ac_status); }; }
33349                   then
33350                     if { ac_try='
33351                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33352                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33354   (eval $ac_try) 2>&5
33355   ac_status=$?
33356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33357   (exit $ac_status); }; }
33358                     then
33359                       wx_cv_version_script=yes
33360                     else
33361                       wx_cv_version_script=no
33362                     fi
33363                   fi
33364                 fi
33365
33366                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33367                 rm -f conftest1.output conftest2.output conftest3.output
33368
33369 fi
33370 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33371 echo "${ECHO_T}$wx_cv_version_script" >&6
33372
33373             if test $wx_cv_version_script = yes ; then
33374                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33375             fi
33376             ;;
33377     esac
33378
33379
33380     case "${host}" in
33381       *-*-linux* | *-*-gnu* )
33382         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33383         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33384         ;;
33385
33386       *-*-solaris2* )
33387         if test "$GCC" = yes ; then
33388                                     CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33389
33390                                     saveLdflags="$LDFLAGS"
33391             LDFLAGS="$saveLdflags -Wl,-rpath,/"
33392             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33393 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
33394             cat >conftest.$ac_ext <<_ACEOF
33395 /* confdefs.h.  */
33396 _ACEOF
33397 cat confdefs.h >>conftest.$ac_ext
33398 cat >>conftest.$ac_ext <<_ACEOF
33399 /* end confdefs.h.  */
33400
33401 int
33402 main ()
33403 {
33404
33405   ;
33406   return 0;
33407 }
33408 _ACEOF
33409 rm -f conftest.$ac_objext conftest$ac_exeext
33410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33411   (eval $ac_link) 2>conftest.er1
33412   ac_status=$?
33413   grep -v '^ *+' conftest.er1 >conftest.err
33414   rm -f conftest.er1
33415   cat conftest.err >&5
33416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33417   (exit $ac_status); } &&
33418          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33420   (eval $ac_try) 2>&5
33421   ac_status=$?
33422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33423   (exit $ac_status); }; } &&
33424          { ac_try='test -s conftest$ac_exeext'
33425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33426   (eval $ac_try) 2>&5
33427   ac_status=$?
33428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33429   (exit $ac_status); }; }; then
33430
33431                     echo "$as_me:$LINENO: result: yes" >&5
33432 echo "${ECHO_T}yes" >&6
33433                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33434                     WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33435
33436 else
33437   echo "$as_me: failed program was:" >&5
33438 sed 's/^/| /' conftest.$ac_ext >&5
33439
33440
33441                     echo "$as_me:$LINENO: result: no" >&5
33442 echo "${ECHO_T}no" >&6
33443                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33444 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
33445                     LDFLAGS="$saveLdflags -Wl,-R,/"
33446                     cat >conftest.$ac_ext <<_ACEOF
33447 /* confdefs.h.  */
33448 _ACEOF
33449 cat confdefs.h >>conftest.$ac_ext
33450 cat >>conftest.$ac_ext <<_ACEOF
33451 /* end confdefs.h.  */
33452
33453 int
33454 main ()
33455 {
33456
33457   ;
33458   return 0;
33459 }
33460 _ACEOF
33461 rm -f conftest.$ac_objext conftest$ac_exeext
33462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33463   (eval $ac_link) 2>conftest.er1
33464   ac_status=$?
33465   grep -v '^ *+' conftest.er1 >conftest.err
33466   rm -f conftest.er1
33467   cat conftest.err >&5
33468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33469   (exit $ac_status); } &&
33470          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33472   (eval $ac_try) 2>&5
33473   ac_status=$?
33474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33475   (exit $ac_status); }; } &&
33476          { ac_try='test -s conftest$ac_exeext'
33477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33478   (eval $ac_try) 2>&5
33479   ac_status=$?
33480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33481   (exit $ac_status); }; }; then
33482
33483                             echo "$as_me:$LINENO: result: yes" >&5
33484 echo "${ECHO_T}yes" >&6
33485                             SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
33486                             WXCONFIG_RPATH="-Wl,-R,\$libdir"
33487
33488 else
33489   echo "$as_me: failed program was:" >&5
33490 sed 's/^/| /' conftest.$ac_ext >&5
33491
33492
33493                             echo "$as_me:$LINENO: result: no" >&5
33494 echo "${ECHO_T}no" >&6
33495
33496 fi
33497 rm -f conftest.err conftest.$ac_objext \
33498       conftest$ac_exeext conftest.$ac_ext
33499
33500 fi
33501 rm -f conftest.err conftest.$ac_objext \
33502       conftest$ac_exeext conftest.$ac_ext
33503             LDFLAGS="$saveLdflags"
33504         else
33505             SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
33506             WXCONFIG_RPATH="-R\$libdir"
33507         fi
33508       ;;
33509
33510       *-*-darwin* )
33511         install_name_tool=`which install_name_tool`
33512         if test "$install_name_tool" -a -x "$install_name_tool"; then
33513             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33514             cat <<EOF >change-install-names
33515 #!/bin/sh
33516 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33517 inst_cmd="install_name_tool "
33518 for i in \${libnames} ; do
33519     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33520 done
33521 \${inst_cmd} \${3}
33522 EOF
33523             chmod +x change-install-names
33524         fi
33525       ;;
33526
33527       *-*-cygwin* | *-*-mingw32* )
33528                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33529         ;;
33530
33531       *-*-hpux* )
33532         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
33533         WXCONFIG_RPATH="-Wl,+b,\$libdir"
33534         ;;
33535
33536     esac
33537
33538     if test $wxUSE_RPATH = "no"; then
33539         SAMPLES_RPATH_FLAG=''
33540         SAMPLES_RPATH_POSTLINK=''
33541         WXCONFIG_RPATH=''
33542     fi
33543
33544     SHARED=1
33545
33546 else
33547
33548     config_linkage_component="-static"
33549     SHARED=0
33550
33551 fi
33552
33553
33554 UNICODE=0
33555 lib_unicode_suffix=
33556 WX_CHARTYPE="ansi"
33557 if test "$wxUSE_UNICODE" = "yes"; then
33558     lib_unicode_suffix=u
33559     WX_CHARTYPE="unicode"
33560     UNICODE=1
33561 fi
33562
33563 lib_debug_suffix=
33564 WX_DEBUGTYPE="release"
33565 DEBUG_FLAG=0
33566 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33567     lib_debug_suffix=d
33568     WX_DEBUGTYPE="debug"
33569     DEBUG_FLAG=1
33570 fi
33571
33572 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33573 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
33574
33575 DEBUG_INFO=0
33576 if test "$wxUSE_DEBUG_INFO" = "yes"; then
33577     DEBUG_INFO=1
33578 fi
33579
33580 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
33581
33582 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
33583
33584 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
33585
33586 if test "$cross_compiling" = "yes"; then
33587     HOST_SUFFIX="-$host_alias"
33588     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33589     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
33590 fi
33591
33592 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33593 if test "${TOOLKIT_DIR}" = "os2"; then
33594     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33595 else
33596     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33597 fi
33598
33599
33600
33601 if test "$wxUSE_COCOA" = 1; then
33602
33603
33604     ac_ext=c
33605 ac_cpp='$CPP $CPPFLAGS'
33606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33609
33610 ac_ext=m
33611
33612     echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33613 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
33614     cat >conftest.$ac_ext <<_ACEOF
33615 /* confdefs.h.  */
33616 _ACEOF
33617 cat confdefs.h >>conftest.$ac_ext
33618 cat >>conftest.$ac_ext <<_ACEOF
33619 /* end confdefs.h.  */
33620 #include <AppKit/NSEvent.h>
33621 #include <CoreFoundation/CoreFoundation.h>
33622
33623 int
33624 main ()
33625 {
33626
33627   ;
33628   return 0;
33629 }
33630 _ACEOF
33631 rm -f conftest.$ac_objext
33632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33633   (eval $ac_compile) 2>conftest.er1
33634   ac_status=$?
33635   grep -v '^ *+' conftest.er1 >conftest.err
33636   rm -f conftest.er1
33637   cat conftest.err >&5
33638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639   (exit $ac_status); } &&
33640          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33642   (eval $ac_try) 2>&5
33643   ac_status=$?
33644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33645   (exit $ac_status); }; } &&
33646          { ac_try='test -s conftest.$ac_objext'
33647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33648   (eval $ac_try) 2>&5
33649   ac_status=$?
33650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33651   (exit $ac_status); }; }; then
33652   echo "$as_me:$LINENO: result: no" >&5
33653 echo "${ECHO_T}no" >&6
33654 else
33655   echo "$as_me: failed program was:" >&5
33656 sed 's/^/| /' conftest.$ac_ext >&5
33657
33658 echo "$as_me:$LINENO: result: yes" >&5
33659 echo "${ECHO_T}yes" >&6
33660         echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33661 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
33662         cat >conftest.$ac_ext <<_ACEOF
33663 /* confdefs.h.  */
33664 _ACEOF
33665 cat confdefs.h >>conftest.$ac_ext
33666 cat >>conftest.$ac_ext <<_ACEOF
33667 /* end confdefs.h.  */
33668 #define __Point__ 1
33669 #include <AppKit/NSEvent.h>
33670 #include <CoreFoundation/CoreFoundation.h>
33671
33672 int
33673 main ()
33674 {
33675
33676   ;
33677   return 0;
33678 }
33679 _ACEOF
33680 rm -f conftest.$ac_objext
33681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33682   (eval $ac_compile) 2>conftest.er1
33683   ac_status=$?
33684   grep -v '^ *+' conftest.er1 >conftest.err
33685   rm -f conftest.er1
33686   cat conftest.err >&5
33687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33688   (exit $ac_status); } &&
33689          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33691   (eval $ac_try) 2>&5
33692   ac_status=$?
33693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33694   (exit $ac_status); }; } &&
33695          { ac_try='test -s conftest.$ac_objext'
33696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33697   (eval $ac_try) 2>&5
33698   ac_status=$?
33699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33700   (exit $ac_status); }; }; then
33701   echo "$as_me:$LINENO: result: yes" >&5
33702 echo "${ECHO_T}yes" >&6
33703             cat >>confdefs.h <<\_ACEOF
33704 #define __Point__ 1
33705 _ACEOF
33706
33707
33708 else
33709   echo "$as_me: failed program was:" >&5
33710 sed 's/^/| /' conftest.$ac_ext >&5
33711
33712 { { echo "$as_me:$LINENO: error: no
33713 See \`config.log' for more details." >&5
33714 echo "$as_me: error: no
33715 See \`config.log' for more details." >&2;}
33716    { (exit 1); exit 1; }; }
33717
33718 fi
33719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33720
33721 fi
33722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33723     ac_ext=c
33724 ac_cpp='$CPP $CPPFLAGS'
33725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33728
33729 fi
33730
33731 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
33732             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33733     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
33734
33735         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
33736
33737     # Extract the first word of "Rez", so it can be a program name with args.
33738 set dummy Rez; ac_word=$2
33739 echo "$as_me:$LINENO: checking for $ac_word" >&5
33740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33741 if test "${ac_cv_prog_REZ+set}" = set; then
33742   echo $ECHO_N "(cached) $ECHO_C" >&6
33743 else
33744   if test -n "$REZ"; then
33745   ac_cv_prog_REZ="$REZ" # Let the user override the test.
33746 else
33747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33748 for as_dir in $PATH
33749 do
33750   IFS=$as_save_IFS
33751   test -z "$as_dir" && as_dir=.
33752   for ac_exec_ext in '' $ac_executable_extensions; do
33753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33754     ac_cv_prog_REZ="Rez"
33755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33756     break 2
33757   fi
33758 done
33759 done
33760
33761   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
33762 fi
33763 fi
33764 REZ=$ac_cv_prog_REZ
33765 if test -n "$REZ"; then
33766   echo "$as_me:$LINENO: result: $REZ" >&5
33767 echo "${ECHO_T}$REZ" >&6
33768 else
33769   echo "$as_me:$LINENO: result: no" >&5
33770 echo "${ECHO_T}no" >&6
33771 fi
33772
33773     # Extract the first word of "DeRez", so it can be a program name with args.
33774 set dummy DeRez; ac_word=$2
33775 echo "$as_me:$LINENO: checking for $ac_word" >&5
33776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33777 if test "${ac_cv_prog_DEREZ+set}" = set; then
33778   echo $ECHO_N "(cached) $ECHO_C" >&6
33779 else
33780   if test -n "$DEREZ"; then
33781   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33782 else
33783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33784 for as_dir in $PATH
33785 do
33786   IFS=$as_save_IFS
33787   test -z "$as_dir" && as_dir=.
33788   for ac_exec_ext in '' $ac_executable_extensions; do
33789   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33790     ac_cv_prog_DEREZ="DeRez"
33791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33792     break 2
33793   fi
33794 done
33795 done
33796
33797   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33798 fi
33799 fi
33800 DEREZ=$ac_cv_prog_DEREZ
33801 if test -n "$DEREZ"; then
33802   echo "$as_me:$LINENO: result: $DEREZ" >&5
33803 echo "${ECHO_T}$DEREZ" >&6
33804 else
33805   echo "$as_me:$LINENO: result: no" >&5
33806 echo "${ECHO_T}no" >&6
33807 fi
33808
33809     # Extract the first word of "SetFile", so it can be a program name with args.
33810 set dummy SetFile; ac_word=$2
33811 echo "$as_me:$LINENO: checking for $ac_word" >&5
33812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33813 if test "${ac_cv_prog_SETFILE+set}" = set; then
33814   echo $ECHO_N "(cached) $ECHO_C" >&6
33815 else
33816   if test -n "$SETFILE"; then
33817   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33818 else
33819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33820 for as_dir in $PATH
33821 do
33822   IFS=$as_save_IFS
33823   test -z "$as_dir" && as_dir=.
33824   for ac_exec_ext in '' $ac_executable_extensions; do
33825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33826     ac_cv_prog_SETFILE="SetFile"
33827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33828     break 2
33829   fi
33830 done
33831 done
33832
33833   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33834 fi
33835 fi
33836 SETFILE=$ac_cv_prog_SETFILE
33837 if test -n "$SETFILE"; then
33838   echo "$as_me:$LINENO: result: $SETFILE" >&5
33839 echo "${ECHO_T}$SETFILE" >&6
33840 else
33841   echo "$as_me:$LINENO: result: no" >&5
33842 echo "${ECHO_T}no" >&6
33843 fi
33844
33845
33846     MACSETFILE="\$(SETFILE)"
33847
33848             if test "$wxUSE_MAC" = 1; then
33849         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
33850         RESCOMP="$REZ"
33851         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
33852     else
33853         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33854         RESCOMP="echo -n \| $REZ"
33855         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
33856     fi
33857
33858 else
33859         MACSETFILE="@true"
33860
33861     if test "$wxUSE_PM" = 1; then
33862         RESCOMP="emxbind"
33863         WXCONFIG_RESFLAGS="-ep"
33864
33865                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
33866     else
33867         POSTLINK_COMMAND="@true"
33868     fi
33869
33870 fi
33871
33872
33873
33874 echo "$as_me:$LINENO: checking for mode_t" >&5
33875 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33876 if test "${ac_cv_type_mode_t+set}" = set; then
33877   echo $ECHO_N "(cached) $ECHO_C" >&6
33878 else
33879   cat >conftest.$ac_ext <<_ACEOF
33880 /* confdefs.h.  */
33881 _ACEOF
33882 cat confdefs.h >>conftest.$ac_ext
33883 cat >>conftest.$ac_ext <<_ACEOF
33884 /* end confdefs.h.  */
33885 $ac_includes_default
33886 int
33887 main ()
33888 {
33889 if ((mode_t *) 0)
33890   return 0;
33891 if (sizeof (mode_t))
33892   return 0;
33893   ;
33894   return 0;
33895 }
33896 _ACEOF
33897 rm -f conftest.$ac_objext
33898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33899   (eval $ac_compile) 2>conftest.er1
33900   ac_status=$?
33901   grep -v '^ *+' conftest.er1 >conftest.err
33902   rm -f conftest.er1
33903   cat conftest.err >&5
33904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905   (exit $ac_status); } &&
33906          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33908   (eval $ac_try) 2>&5
33909   ac_status=$?
33910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911   (exit $ac_status); }; } &&
33912          { ac_try='test -s conftest.$ac_objext'
33913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33914   (eval $ac_try) 2>&5
33915   ac_status=$?
33916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33917   (exit $ac_status); }; }; then
33918   ac_cv_type_mode_t=yes
33919 else
33920   echo "$as_me: failed program was:" >&5
33921 sed 's/^/| /' conftest.$ac_ext >&5
33922
33923 ac_cv_type_mode_t=no
33924 fi
33925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33926 fi
33927 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33928 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33929 if test $ac_cv_type_mode_t = yes; then
33930   :
33931 else
33932
33933 cat >>confdefs.h <<_ACEOF
33934 #define mode_t int
33935 _ACEOF
33936
33937 fi
33938
33939 echo "$as_me:$LINENO: checking for off_t" >&5
33940 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33941 if test "${ac_cv_type_off_t+set}" = set; then
33942   echo $ECHO_N "(cached) $ECHO_C" >&6
33943 else
33944   cat >conftest.$ac_ext <<_ACEOF
33945 /* confdefs.h.  */
33946 _ACEOF
33947 cat confdefs.h >>conftest.$ac_ext
33948 cat >>conftest.$ac_ext <<_ACEOF
33949 /* end confdefs.h.  */
33950 $ac_includes_default
33951 int
33952 main ()
33953 {
33954 if ((off_t *) 0)
33955   return 0;
33956 if (sizeof (off_t))
33957   return 0;
33958   ;
33959   return 0;
33960 }
33961 _ACEOF
33962 rm -f conftest.$ac_objext
33963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33964   (eval $ac_compile) 2>conftest.er1
33965   ac_status=$?
33966   grep -v '^ *+' conftest.er1 >conftest.err
33967   rm -f conftest.er1
33968   cat conftest.err >&5
33969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33970   (exit $ac_status); } &&
33971          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33973   (eval $ac_try) 2>&5
33974   ac_status=$?
33975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976   (exit $ac_status); }; } &&
33977          { ac_try='test -s conftest.$ac_objext'
33978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33979   (eval $ac_try) 2>&5
33980   ac_status=$?
33981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982   (exit $ac_status); }; }; then
33983   ac_cv_type_off_t=yes
33984 else
33985   echo "$as_me: failed program was:" >&5
33986 sed 's/^/| /' conftest.$ac_ext >&5
33987
33988 ac_cv_type_off_t=no
33989 fi
33990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33991 fi
33992 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33993 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33994 if test $ac_cv_type_off_t = yes; then
33995   :
33996 else
33997
33998 cat >>confdefs.h <<_ACEOF
33999 #define off_t long
34000 _ACEOF
34001
34002 fi
34003
34004 echo "$as_me:$LINENO: checking for pid_t" >&5
34005 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
34006 if test "${ac_cv_type_pid_t+set}" = set; then
34007   echo $ECHO_N "(cached) $ECHO_C" >&6
34008 else
34009   cat >conftest.$ac_ext <<_ACEOF
34010 /* confdefs.h.  */
34011 _ACEOF
34012 cat confdefs.h >>conftest.$ac_ext
34013 cat >>conftest.$ac_ext <<_ACEOF
34014 /* end confdefs.h.  */
34015 $ac_includes_default
34016 int
34017 main ()
34018 {
34019 if ((pid_t *) 0)
34020   return 0;
34021 if (sizeof (pid_t))
34022   return 0;
34023   ;
34024   return 0;
34025 }
34026 _ACEOF
34027 rm -f conftest.$ac_objext
34028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34029   (eval $ac_compile) 2>conftest.er1
34030   ac_status=$?
34031   grep -v '^ *+' conftest.er1 >conftest.err
34032   rm -f conftest.er1
34033   cat conftest.err >&5
34034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035   (exit $ac_status); } &&
34036          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34038   (eval $ac_try) 2>&5
34039   ac_status=$?
34040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34041   (exit $ac_status); }; } &&
34042          { ac_try='test -s conftest.$ac_objext'
34043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34044   (eval $ac_try) 2>&5
34045   ac_status=$?
34046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34047   (exit $ac_status); }; }; then
34048   ac_cv_type_pid_t=yes
34049 else
34050   echo "$as_me: failed program was:" >&5
34051 sed 's/^/| /' conftest.$ac_ext >&5
34052
34053 ac_cv_type_pid_t=no
34054 fi
34055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34056 fi
34057 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34058 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
34059 if test $ac_cv_type_pid_t = yes; then
34060   :
34061 else
34062
34063 cat >>confdefs.h <<_ACEOF
34064 #define pid_t int
34065 _ACEOF
34066
34067 fi
34068
34069 echo "$as_me:$LINENO: checking for size_t" >&5
34070 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34071 if test "${ac_cv_type_size_t+set}" = set; then
34072   echo $ECHO_N "(cached) $ECHO_C" >&6
34073 else
34074   cat >conftest.$ac_ext <<_ACEOF
34075 /* confdefs.h.  */
34076 _ACEOF
34077 cat confdefs.h >>conftest.$ac_ext
34078 cat >>conftest.$ac_ext <<_ACEOF
34079 /* end confdefs.h.  */
34080 $ac_includes_default
34081 int
34082 main ()
34083 {
34084 if ((size_t *) 0)
34085   return 0;
34086 if (sizeof (size_t))
34087   return 0;
34088   ;
34089   return 0;
34090 }
34091 _ACEOF
34092 rm -f conftest.$ac_objext
34093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34094   (eval $ac_compile) 2>conftest.er1
34095   ac_status=$?
34096   grep -v '^ *+' conftest.er1 >conftest.err
34097   rm -f conftest.er1
34098   cat conftest.err >&5
34099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34100   (exit $ac_status); } &&
34101          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34103   (eval $ac_try) 2>&5
34104   ac_status=$?
34105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106   (exit $ac_status); }; } &&
34107          { ac_try='test -s conftest.$ac_objext'
34108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34109   (eval $ac_try) 2>&5
34110   ac_status=$?
34111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34112   (exit $ac_status); }; }; then
34113   ac_cv_type_size_t=yes
34114 else
34115   echo "$as_me: failed program was:" >&5
34116 sed 's/^/| /' conftest.$ac_ext >&5
34117
34118 ac_cv_type_size_t=no
34119 fi
34120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34121 fi
34122 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34123 echo "${ECHO_T}$ac_cv_type_size_t" >&6
34124 if test $ac_cv_type_size_t = yes; then
34125   :
34126 else
34127
34128 cat >>confdefs.h <<_ACEOF
34129 #define size_t unsigned
34130 _ACEOF
34131
34132 fi
34133
34134 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34135 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34136 if test "${ac_cv_type_uid_t+set}" = set; then
34137   echo $ECHO_N "(cached) $ECHO_C" >&6
34138 else
34139   cat >conftest.$ac_ext <<_ACEOF
34140 /* confdefs.h.  */
34141 _ACEOF
34142 cat confdefs.h >>conftest.$ac_ext
34143 cat >>conftest.$ac_ext <<_ACEOF
34144 /* end confdefs.h.  */
34145 #include <sys/types.h>
34146
34147 _ACEOF
34148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34149   $EGREP "uid_t" >/dev/null 2>&1; then
34150   ac_cv_type_uid_t=yes
34151 else
34152   ac_cv_type_uid_t=no
34153 fi
34154 rm -f conftest*
34155
34156 fi
34157 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34158 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34159 if test $ac_cv_type_uid_t = no; then
34160
34161 cat >>confdefs.h <<\_ACEOF
34162 #define uid_t int
34163 _ACEOF
34164
34165
34166 cat >>confdefs.h <<\_ACEOF
34167 #define gid_t int
34168 _ACEOF
34169
34170 fi
34171
34172
34173 echo "$as_me:$LINENO: checking for ssize_t" >&5
34174 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
34175 if test "${ac_cv_type_ssize_t+set}" = set; then
34176   echo $ECHO_N "(cached) $ECHO_C" >&6
34177 else
34178   cat >conftest.$ac_ext <<_ACEOF
34179 /* confdefs.h.  */
34180 _ACEOF
34181 cat confdefs.h >>conftest.$ac_ext
34182 cat >>conftest.$ac_ext <<_ACEOF
34183 /* end confdefs.h.  */
34184 $ac_includes_default
34185 int
34186 main ()
34187 {
34188 if ((ssize_t *) 0)
34189   return 0;
34190 if (sizeof (ssize_t))
34191   return 0;
34192   ;
34193   return 0;
34194 }
34195 _ACEOF
34196 rm -f conftest.$ac_objext
34197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34198   (eval $ac_compile) 2>conftest.er1
34199   ac_status=$?
34200   grep -v '^ *+' conftest.er1 >conftest.err
34201   rm -f conftest.er1
34202   cat conftest.err >&5
34203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204   (exit $ac_status); } &&
34205          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34207   (eval $ac_try) 2>&5
34208   ac_status=$?
34209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34210   (exit $ac_status); }; } &&
34211          { ac_try='test -s conftest.$ac_objext'
34212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34213   (eval $ac_try) 2>&5
34214   ac_status=$?
34215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34216   (exit $ac_status); }; }; then
34217   ac_cv_type_ssize_t=yes
34218 else
34219   echo "$as_me: failed program was:" >&5
34220 sed 's/^/| /' conftest.$ac_ext >&5
34221
34222 ac_cv_type_ssize_t=no
34223 fi
34224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34225 fi
34226 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34227 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34228 if test $ac_cv_type_ssize_t = yes; then
34229
34230 cat >>confdefs.h <<_ACEOF
34231 #define HAVE_SSIZE_T 1
34232 _ACEOF
34233
34234
34235 fi
34236
34237
34238 ac_ext=cc
34239 ac_cpp='$CXXCPP $CPPFLAGS'
34240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34243  echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34244 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
34245 if test "${wx_cv_size_t_is_uint+set}" = set; then
34246   echo $ECHO_N "(cached) $ECHO_C" >&6
34247 else
34248
34249                             cat >conftest.$ac_ext <<_ACEOF
34250 /* confdefs.h.  */
34251 _ACEOF
34252 cat confdefs.h >>conftest.$ac_ext
34253 cat >>conftest.$ac_ext <<_ACEOF
34254 /* end confdefs.h.  */
34255 #include <stddef.h>
34256 int
34257 main ()
34258 {
34259
34260             return 0; }
34261
34262             struct Foo { void foo(size_t); void foo(unsigned int); };
34263
34264             int bar() {
34265
34266   ;
34267   return 0;
34268 }
34269 _ACEOF
34270 rm -f conftest.$ac_objext
34271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34272   (eval $ac_compile) 2>conftest.er1
34273   ac_status=$?
34274   grep -v '^ *+' conftest.er1 >conftest.err
34275   rm -f conftest.er1
34276   cat conftest.err >&5
34277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34278   (exit $ac_status); } &&
34279          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34281   (eval $ac_try) 2>&5
34282   ac_status=$?
34283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34284   (exit $ac_status); }; } &&
34285          { ac_try='test -s conftest.$ac_objext'
34286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34287   (eval $ac_try) 2>&5
34288   ac_status=$?
34289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34290   (exit $ac_status); }; }; then
34291   wx_cv_size_t_is_uint=no
34292 else
34293   echo "$as_me: failed program was:" >&5
34294 sed 's/^/| /' conftest.$ac_ext >&5
34295
34296 wx_cv_size_t_is_uint=yes
34297
34298 fi
34299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34300
34301
34302 fi
34303 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34304 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
34305
34306 if test "$wx_cv_size_t_is_uint" = "yes"; then
34307     cat >>confdefs.h <<\_ACEOF
34308 #define wxSIZE_T_IS_UINT 1
34309 _ACEOF
34310
34311 else
34312     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34313 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
34314 if test "${wx_cv_size_t_is_ulong+set}" = set; then
34315   echo $ECHO_N "(cached) $ECHO_C" >&6
34316 else
34317   cat >conftest.$ac_ext <<_ACEOF
34318 /* confdefs.h.  */
34319 _ACEOF
34320 cat confdefs.h >>conftest.$ac_ext
34321 cat >>conftest.$ac_ext <<_ACEOF
34322 /* end confdefs.h.  */
34323 #include <stddef.h>
34324 int
34325 main ()
34326 {
34327
34328                 return 0; }
34329
34330                 struct Foo { void foo(size_t); void foo(unsigned long); };
34331
34332                 int bar() {
34333
34334   ;
34335   return 0;
34336 }
34337 _ACEOF
34338 rm -f conftest.$ac_objext
34339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34340   (eval $ac_compile) 2>conftest.er1
34341   ac_status=$?
34342   grep -v '^ *+' conftest.er1 >conftest.err
34343   rm -f conftest.er1
34344   cat conftest.err >&5
34345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34346   (exit $ac_status); } &&
34347          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
34348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34349   (eval $ac_try) 2>&5
34350   ac_status=$?
34351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34352   (exit $ac_status); }; } &&
34353          { ac_try='test -s conftest.$ac_objext'
34354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34355   (eval $ac_try) 2>&5
34356   ac_status=$?
34357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34358   (exit $ac_status); }; }; then
34359   wx_cv_size_t_is_ulong=no
34360 else
34361   echo "$as_me: failed program was:" >&5
34362 sed 's/^/| /' conftest.$ac_ext >&5
34363
34364 wx_cv_size_t_is_ulong=yes
34365
34366 fi
34367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34368
34369 fi
34370 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34371 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
34372
34373     if test "$wx_cv_size_t_is_ulong" = "yes"; then
34374         cat >>confdefs.h <<\_ACEOF
34375 #define wxSIZE_T_IS_ULONG 1
34376 _ACEOF
34377
34378     fi
34379 fi
34380
34381 ac_ext=c
34382 ac_cpp='$CPP $CPPFLAGS'
34383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34386
34387
34388 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34389 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
34390 if test "${wx_cv_struct_pw_gecos+set}" = set; then
34391   echo $ECHO_N "(cached) $ECHO_C" >&6
34392 else
34393
34394         cat >conftest.$ac_ext <<_ACEOF
34395 /* confdefs.h.  */
34396 _ACEOF
34397 cat confdefs.h >>conftest.$ac_ext
34398 cat >>conftest.$ac_ext <<_ACEOF
34399 /* end confdefs.h.  */
34400 #include <pwd.h>
34401 int
34402 main ()
34403 {
34404
34405                 char *p;
34406                 struct passwd *pw;
34407                 p = pw->pw_gecos;
34408
34409   ;
34410   return 0;
34411 }
34412 _ACEOF
34413 rm -f conftest.$ac_objext
34414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34415   (eval $ac_compile) 2>conftest.er1
34416   ac_status=$?
34417   grep -v '^ *+' conftest.er1 >conftest.err
34418   rm -f conftest.er1
34419   cat conftest.err >&5
34420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34421   (exit $ac_status); } &&
34422          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34424   (eval $ac_try) 2>&5
34425   ac_status=$?
34426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34427   (exit $ac_status); }; } &&
34428          { ac_try='test -s conftest.$ac_objext'
34429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34430   (eval $ac_try) 2>&5
34431   ac_status=$?
34432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34433   (exit $ac_status); }; }; then
34434
34435                 wx_cv_struct_pw_gecos=yes
34436
34437 else
34438   echo "$as_me: failed program was:" >&5
34439 sed 's/^/| /' conftest.$ac_ext >&5
34440
34441
34442                 wx_cv_struct_pw_gecos=no
34443
34444
34445 fi
34446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34447
34448
34449 fi
34450 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34451 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
34452
34453 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34454     cat >>confdefs.h <<\_ACEOF
34455 #define HAVE_PW_GECOS 1
34456 _ACEOF
34457
34458 fi
34459
34460
34461 if test "$wxUSE_WCHAR_T" = "yes"; then
34462     cat >>confdefs.h <<\_ACEOF
34463 #define wxUSE_WCHAR_T 1
34464 _ACEOF
34465
34466
34467         WCSLEN_FOUND=0
34468     WCHAR_LINK=
34469
34470 for ac_func in wcslen
34471 do
34472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34473 echo "$as_me:$LINENO: checking for $ac_func" >&5
34474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34475 if eval "test \"\${$as_ac_var+set}\" = set"; then
34476   echo $ECHO_N "(cached) $ECHO_C" >&6
34477 else
34478   cat >conftest.$ac_ext <<_ACEOF
34479 /* confdefs.h.  */
34480 _ACEOF
34481 cat confdefs.h >>conftest.$ac_ext
34482 cat >>conftest.$ac_ext <<_ACEOF
34483 /* end confdefs.h.  */
34484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34486 #define $ac_func innocuous_$ac_func
34487
34488 /* System header to define __stub macros and hopefully few prototypes,
34489     which can conflict with char $ac_func (); below.
34490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34491     <limits.h> exists even on freestanding compilers.  */
34492
34493 #ifdef __STDC__
34494 # include <limits.h>
34495 #else
34496 # include <assert.h>
34497 #endif
34498
34499 #undef $ac_func
34500
34501 /* Override any gcc2 internal prototype to avoid an error.  */
34502 #ifdef __cplusplus
34503 extern "C"
34504 {
34505 #endif
34506 /* We use char because int might match the return type of a gcc2
34507    builtin and then its argument prototype would still apply.  */
34508 char $ac_func ();
34509 /* The GNU C library defines this for functions which it implements
34510     to always fail with ENOSYS.  Some functions are actually named
34511     something starting with __ and the normal name is an alias.  */
34512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34513 choke me
34514 #else
34515 char (*f) () = $ac_func;
34516 #endif
34517 #ifdef __cplusplus
34518 }
34519 #endif
34520
34521 int
34522 main ()
34523 {
34524 return f != $ac_func;
34525   ;
34526   return 0;
34527 }
34528 _ACEOF
34529 rm -f conftest.$ac_objext conftest$ac_exeext
34530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34531   (eval $ac_link) 2>conftest.er1
34532   ac_status=$?
34533   grep -v '^ *+' conftest.er1 >conftest.err
34534   rm -f conftest.er1
34535   cat conftest.err >&5
34536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537   (exit $ac_status); } &&
34538          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34540   (eval $ac_try) 2>&5
34541   ac_status=$?
34542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34543   (exit $ac_status); }; } &&
34544          { ac_try='test -s conftest$ac_exeext'
34545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34546   (eval $ac_try) 2>&5
34547   ac_status=$?
34548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34549   (exit $ac_status); }; }; then
34550   eval "$as_ac_var=yes"
34551 else
34552   echo "$as_me: failed program was:" >&5
34553 sed 's/^/| /' conftest.$ac_ext >&5
34554
34555 eval "$as_ac_var=no"
34556 fi
34557 rm -f conftest.err conftest.$ac_objext \
34558       conftest$ac_exeext conftest.$ac_ext
34559 fi
34560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34562 if test `eval echo '${'$as_ac_var'}'` = yes; then
34563   cat >>confdefs.h <<_ACEOF
34564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34565 _ACEOF
34566  WCSLEN_FOUND=1
34567 fi
34568 done
34569
34570
34571     if test "$WCSLEN_FOUND" = 0; then
34572         if test "$TOOLKIT" = "MSW"; then
34573             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34574 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
34575 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34576   echo $ECHO_N "(cached) $ECHO_C" >&6
34577 else
34578   ac_check_lib_save_LIBS=$LIBS
34579 LIBS="-lmsvcrt  $LIBS"
34580 cat >conftest.$ac_ext <<_ACEOF
34581 /* confdefs.h.  */
34582 _ACEOF
34583 cat confdefs.h >>conftest.$ac_ext
34584 cat >>conftest.$ac_ext <<_ACEOF
34585 /* end confdefs.h.  */
34586
34587 /* Override any gcc2 internal prototype to avoid an error.  */
34588 #ifdef __cplusplus
34589 extern "C"
34590 #endif
34591 /* We use char because int might match the return type of a gcc2
34592    builtin and then its argument prototype would still apply.  */
34593 char wcslen ();
34594 int
34595 main ()
34596 {
34597 wcslen ();
34598   ;
34599   return 0;
34600 }
34601 _ACEOF
34602 rm -f conftest.$ac_objext conftest$ac_exeext
34603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34604   (eval $ac_link) 2>conftest.er1
34605   ac_status=$?
34606   grep -v '^ *+' conftest.er1 >conftest.err
34607   rm -f conftest.er1
34608   cat conftest.err >&5
34609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34610   (exit $ac_status); } &&
34611          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34613   (eval $ac_try) 2>&5
34614   ac_status=$?
34615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34616   (exit $ac_status); }; } &&
34617          { ac_try='test -s conftest$ac_exeext'
34618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34619   (eval $ac_try) 2>&5
34620   ac_status=$?
34621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34622   (exit $ac_status); }; }; then
34623   ac_cv_lib_msvcrt_wcslen=yes
34624 else
34625   echo "$as_me: failed program was:" >&5
34626 sed 's/^/| /' conftest.$ac_ext >&5
34627
34628 ac_cv_lib_msvcrt_wcslen=no
34629 fi
34630 rm -f conftest.err conftest.$ac_objext \
34631       conftest$ac_exeext conftest.$ac_ext
34632 LIBS=$ac_check_lib_save_LIBS
34633 fi
34634 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34635 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
34636 if test $ac_cv_lib_msvcrt_wcslen = yes; then
34637   WCHAR_OK=1
34638 fi
34639
34640         else
34641             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34642 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
34643 if test "${ac_cv_lib_w_wcslen+set}" = set; then
34644   echo $ECHO_N "(cached) $ECHO_C" >&6
34645 else
34646   ac_check_lib_save_LIBS=$LIBS
34647 LIBS="-lw  $LIBS"
34648 cat >conftest.$ac_ext <<_ACEOF
34649 /* confdefs.h.  */
34650 _ACEOF
34651 cat confdefs.h >>conftest.$ac_ext
34652 cat >>conftest.$ac_ext <<_ACEOF
34653 /* end confdefs.h.  */
34654
34655 /* Override any gcc2 internal prototype to avoid an error.  */
34656 #ifdef __cplusplus
34657 extern "C"
34658 #endif
34659 /* We use char because int might match the return type of a gcc2
34660    builtin and then its argument prototype would still apply.  */
34661 char wcslen ();
34662 int
34663 main ()
34664 {
34665 wcslen ();
34666   ;
34667   return 0;
34668 }
34669 _ACEOF
34670 rm -f conftest.$ac_objext conftest$ac_exeext
34671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34672   (eval $ac_link) 2>conftest.er1
34673   ac_status=$?
34674   grep -v '^ *+' conftest.er1 >conftest.err
34675   rm -f conftest.er1
34676   cat conftest.err >&5
34677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34678   (exit $ac_status); } &&
34679          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34681   (eval $ac_try) 2>&5
34682   ac_status=$?
34683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34684   (exit $ac_status); }; } &&
34685          { ac_try='test -s conftest$ac_exeext'
34686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34687   (eval $ac_try) 2>&5
34688   ac_status=$?
34689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34690   (exit $ac_status); }; }; then
34691   ac_cv_lib_w_wcslen=yes
34692 else
34693   echo "$as_me: failed program was:" >&5
34694 sed 's/^/| /' conftest.$ac_ext >&5
34695
34696 ac_cv_lib_w_wcslen=no
34697 fi
34698 rm -f conftest.err conftest.$ac_objext \
34699       conftest$ac_exeext conftest.$ac_ext
34700 LIBS=$ac_check_lib_save_LIBS
34701 fi
34702 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34703 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
34704 if test $ac_cv_lib_w_wcslen = yes; then
34705
34706                             WCHAR_LINK=" -lw"
34707                             WCSLEN_FOUND=1
34708
34709 fi
34710
34711         fi
34712     fi
34713
34714     if test "$WCSLEN_FOUND" = 1; then
34715         cat >>confdefs.h <<\_ACEOF
34716 #define HAVE_WCSLEN 1
34717 _ACEOF
34718
34719     fi
34720
34721                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
34722         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
34723     fi
34724
34725                 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34726 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34727 if test "${ac_cv_type_mbstate_t+set}" = set; then
34728   echo $ECHO_N "(cached) $ECHO_C" >&6
34729 else
34730   cat >conftest.$ac_ext <<_ACEOF
34731 /* confdefs.h.  */
34732 _ACEOF
34733 cat confdefs.h >>conftest.$ac_ext
34734 cat >>conftest.$ac_ext <<_ACEOF
34735 /* end confdefs.h.  */
34736 #include <wchar.h>
34737
34738 int
34739 main ()
34740 {
34741 if ((mbstate_t *) 0)
34742   return 0;
34743 if (sizeof (mbstate_t))
34744   return 0;
34745   ;
34746   return 0;
34747 }
34748 _ACEOF
34749 rm -f conftest.$ac_objext
34750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34751   (eval $ac_compile) 2>conftest.er1
34752   ac_status=$?
34753   grep -v '^ *+' conftest.er1 >conftest.err
34754   rm -f conftest.er1
34755   cat conftest.err >&5
34756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34757   (exit $ac_status); } &&
34758          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34760   (eval $ac_try) 2>&5
34761   ac_status=$?
34762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763   (exit $ac_status); }; } &&
34764          { ac_try='test -s conftest.$ac_objext'
34765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34766   (eval $ac_try) 2>&5
34767   ac_status=$?
34768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769   (exit $ac_status); }; }; then
34770   ac_cv_type_mbstate_t=yes
34771 else
34772   echo "$as_me: failed program was:" >&5
34773 sed 's/^/| /' conftest.$ac_ext >&5
34774
34775 ac_cv_type_mbstate_t=no
34776 fi
34777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34778 fi
34779 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34780 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34781 if test $ac_cv_type_mbstate_t = yes; then
34782
34783 cat >>confdefs.h <<_ACEOF
34784 #define HAVE_MBSTATE_T 1
34785 _ACEOF
34786
34787
34788 for ac_func in wcsrtombs
34789 do
34790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34791 echo "$as_me:$LINENO: checking for $ac_func" >&5
34792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34793 if eval "test \"\${$as_ac_var+set}\" = set"; then
34794   echo $ECHO_N "(cached) $ECHO_C" >&6
34795 else
34796   cat >conftest.$ac_ext <<_ACEOF
34797 /* confdefs.h.  */
34798 _ACEOF
34799 cat confdefs.h >>conftest.$ac_ext
34800 cat >>conftest.$ac_ext <<_ACEOF
34801 /* end confdefs.h.  */
34802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34804 #define $ac_func innocuous_$ac_func
34805
34806 /* System header to define __stub macros and hopefully few prototypes,
34807     which can conflict with char $ac_func (); below.
34808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34809     <limits.h> exists even on freestanding compilers.  */
34810
34811 #ifdef __STDC__
34812 # include <limits.h>
34813 #else
34814 # include <assert.h>
34815 #endif
34816
34817 #undef $ac_func
34818
34819 /* Override any gcc2 internal prototype to avoid an error.  */
34820 #ifdef __cplusplus
34821 extern "C"
34822 {
34823 #endif
34824 /* We use char because int might match the return type of a gcc2
34825    builtin and then its argument prototype would still apply.  */
34826 char $ac_func ();
34827 /* The GNU C library defines this for functions which it implements
34828     to always fail with ENOSYS.  Some functions are actually named
34829     something starting with __ and the normal name is an alias.  */
34830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34831 choke me
34832 #else
34833 char (*f) () = $ac_func;
34834 #endif
34835 #ifdef __cplusplus
34836 }
34837 #endif
34838
34839 int
34840 main ()
34841 {
34842 return f != $ac_func;
34843   ;
34844   return 0;
34845 }
34846 _ACEOF
34847 rm -f conftest.$ac_objext conftest$ac_exeext
34848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34849   (eval $ac_link) 2>conftest.er1
34850   ac_status=$?
34851   grep -v '^ *+' conftest.er1 >conftest.err
34852   rm -f conftest.er1
34853   cat conftest.err >&5
34854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34855   (exit $ac_status); } &&
34856          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34858   (eval $ac_try) 2>&5
34859   ac_status=$?
34860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34861   (exit $ac_status); }; } &&
34862          { ac_try='test -s conftest$ac_exeext'
34863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34864   (eval $ac_try) 2>&5
34865   ac_status=$?
34866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34867   (exit $ac_status); }; }; then
34868   eval "$as_ac_var=yes"
34869 else
34870   echo "$as_me: failed program was:" >&5
34871 sed 's/^/| /' conftest.$ac_ext >&5
34872
34873 eval "$as_ac_var=no"
34874 fi
34875 rm -f conftest.err conftest.$ac_objext \
34876       conftest$ac_exeext conftest.$ac_ext
34877 fi
34878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34879 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34880 if test `eval echo '${'$as_ac_var'}'` = yes; then
34881   cat >>confdefs.h <<_ACEOF
34882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34883 _ACEOF
34884
34885 fi
34886 done
34887
34888 fi
34889
34890 else
34891     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34892 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34893 fi
34894
34895
34896
34897 for ac_func in snprintf vsnprintf
34898 do
34899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34900 echo "$as_me:$LINENO: checking for $ac_func" >&5
34901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34902 if eval "test \"\${$as_ac_var+set}\" = set"; then
34903   echo $ECHO_N "(cached) $ECHO_C" >&6
34904 else
34905   cat >conftest.$ac_ext <<_ACEOF
34906 /* confdefs.h.  */
34907 _ACEOF
34908 cat confdefs.h >>conftest.$ac_ext
34909 cat >>conftest.$ac_ext <<_ACEOF
34910 /* end confdefs.h.  */
34911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34913 #define $ac_func innocuous_$ac_func
34914
34915 /* System header to define __stub macros and hopefully few prototypes,
34916     which can conflict with char $ac_func (); below.
34917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34918     <limits.h> exists even on freestanding compilers.  */
34919
34920 #ifdef __STDC__
34921 # include <limits.h>
34922 #else
34923 # include <assert.h>
34924 #endif
34925
34926 #undef $ac_func
34927
34928 /* Override any gcc2 internal prototype to avoid an error.  */
34929 #ifdef __cplusplus
34930 extern "C"
34931 {
34932 #endif
34933 /* We use char because int might match the return type of a gcc2
34934    builtin and then its argument prototype would still apply.  */
34935 char $ac_func ();
34936 /* The GNU C library defines this for functions which it implements
34937     to always fail with ENOSYS.  Some functions are actually named
34938     something starting with __ and the normal name is an alias.  */
34939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34940 choke me
34941 #else
34942 char (*f) () = $ac_func;
34943 #endif
34944 #ifdef __cplusplus
34945 }
34946 #endif
34947
34948 int
34949 main ()
34950 {
34951 return f != $ac_func;
34952   ;
34953   return 0;
34954 }
34955 _ACEOF
34956 rm -f conftest.$ac_objext conftest$ac_exeext
34957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34958   (eval $ac_link) 2>conftest.er1
34959   ac_status=$?
34960   grep -v '^ *+' conftest.er1 >conftest.err
34961   rm -f conftest.er1
34962   cat conftest.err >&5
34963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34964   (exit $ac_status); } &&
34965          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34967   (eval $ac_try) 2>&5
34968   ac_status=$?
34969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34970   (exit $ac_status); }; } &&
34971          { ac_try='test -s conftest$ac_exeext'
34972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34973   (eval $ac_try) 2>&5
34974   ac_status=$?
34975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34976   (exit $ac_status); }; }; then
34977   eval "$as_ac_var=yes"
34978 else
34979   echo "$as_me: failed program was:" >&5
34980 sed 's/^/| /' conftest.$ac_ext >&5
34981
34982 eval "$as_ac_var=no"
34983 fi
34984 rm -f conftest.err conftest.$ac_objext \
34985       conftest$ac_exeext conftest.$ac_ext
34986 fi
34987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34988 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34989 if test `eval echo '${'$as_ac_var'}'` = yes; then
34990   cat >>confdefs.h <<_ACEOF
34991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34992 _ACEOF
34993
34994 fi
34995 done
34996
34997
34998 if test "$ac_cv_func_vsnprintf" = "yes"; then
34999         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35000 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
35001 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35002   echo $ECHO_N "(cached) $ECHO_C" >&6
35003 else
35004
35005                                                             cat >conftest.$ac_ext <<_ACEOF
35006 /* confdefs.h.  */
35007 _ACEOF
35008 cat confdefs.h >>conftest.$ac_ext
35009 cat >>conftest.$ac_ext <<_ACEOF
35010 /* end confdefs.h.  */
35011
35012                     #include <stdio.h>
35013                     #include <stdarg.h>
35014                     #ifdef __MSL__
35015                     #if __MSL__ >= 0x6000
35016                     namespace std {}
35017                     using namespace std;
35018                     #endif
35019                     #endif
35020
35021 int
35022 main ()
35023 {
35024
35025                     char *buf;
35026                     va_list ap;
35027                     vsnprintf(buf, 10u, "%s", ap);
35028
35029   ;
35030   return 0;
35031 }
35032 _ACEOF
35033 rm -f conftest.$ac_objext
35034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35035   (eval $ac_compile) 2>conftest.er1
35036   ac_status=$?
35037   grep -v '^ *+' conftest.er1 >conftest.err
35038   rm -f conftest.er1
35039   cat conftest.err >&5
35040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35041   (exit $ac_status); } &&
35042          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35044   (eval $ac_try) 2>&5
35045   ac_status=$?
35046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35047   (exit $ac_status); }; } &&
35048          { ac_try='test -s conftest.$ac_objext'
35049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35050   (eval $ac_try) 2>&5
35051   ac_status=$?
35052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35053   (exit $ac_status); }; }; then
35054   wx_cv_func_vsnprintf_decl=yes
35055 else
35056   echo "$as_me: failed program was:" >&5
35057 sed 's/^/| /' conftest.$ac_ext >&5
35058
35059 wx_cv_func_vsnprintf_decl=no
35060
35061 fi
35062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35063
35064
35065 fi
35066 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35067 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
35068
35069     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35070         cat >>confdefs.h <<\_ACEOF
35071 #define HAVE_VSNPRINTF_DECL 1
35072 _ACEOF
35073
35074
35075                         echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35076 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
35077 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35078   echo $ECHO_N "(cached) $ECHO_C" >&6
35079 else
35080
35081                 cat >conftest.$ac_ext <<_ACEOF
35082 /* confdefs.h.  */
35083 _ACEOF
35084 cat confdefs.h >>conftest.$ac_ext
35085 cat >>conftest.$ac_ext <<_ACEOF
35086 /* end confdefs.h.  */
35087
35088                         #include <stdio.h>
35089                         #include <stdarg.h>
35090                         #ifdef __MSL__
35091                         #if __MSL__ >= 0x6000
35092                         namespace std {}
35093                         using namespace std;
35094                         #endif
35095                         #endif
35096
35097 int
35098 main ()
35099 {
35100
35101                         char *buf;
35102                         va_list ap;
35103                         const char *fmt = "%s";
35104                         vsnprintf(buf, 10u, fmt, ap);
35105
35106   ;
35107   return 0;
35108 }
35109 _ACEOF
35110 rm -f conftest.$ac_objext
35111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35112   (eval $ac_compile) 2>conftest.er1
35113   ac_status=$?
35114   grep -v '^ *+' conftest.er1 >conftest.err
35115   rm -f conftest.er1
35116   cat conftest.err >&5
35117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35118   (exit $ac_status); } &&
35119          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35121   (eval $ac_try) 2>&5
35122   ac_status=$?
35123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35124   (exit $ac_status); }; } &&
35125          { ac_try='test -s conftest.$ac_objext'
35126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35127   (eval $ac_try) 2>&5
35128   ac_status=$?
35129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130   (exit $ac_status); }; }; then
35131   wx_cv_func_broken_vsnprintf_decl=no
35132 else
35133   echo "$as_me: failed program was:" >&5
35134 sed 's/^/| /' conftest.$ac_ext >&5
35135
35136 wx_cv_func_broken_vsnprintf_decl=yes
35137
35138 fi
35139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35140
35141
35142 fi
35143 echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35144 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
35145
35146         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35147             cat >>confdefs.h <<\_ACEOF
35148 #define HAVE_BROKEN_VSNPRINTF_DECL 1
35149 _ACEOF
35150
35151         fi
35152     fi
35153 fi
35154
35155 if test "$ac_cv_func_snprintf" = "yes"; then
35156     echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35157 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
35158 if test "${wx_cv_func_snprintf_decl+set}" = set; then
35159   echo $ECHO_N "(cached) $ECHO_C" >&6
35160 else
35161
35162             cat >conftest.$ac_ext <<_ACEOF
35163 /* confdefs.h.  */
35164 _ACEOF
35165 cat confdefs.h >>conftest.$ac_ext
35166 cat >>conftest.$ac_ext <<_ACEOF
35167 /* end confdefs.h.  */
35168
35169                     #include <stdio.h>
35170                     #include <stdarg.h>
35171                     #ifdef __MSL__
35172                     #if __MSL__ >= 0x6000
35173                     namespace std {}
35174                     using namespace std;
35175                     #endif
35176                     #endif
35177
35178 int
35179 main ()
35180 {
35181
35182                     char *buf;
35183                     snprintf(buf, 10u, "%s", "wx");
35184
35185   ;
35186   return 0;
35187 }
35188 _ACEOF
35189 rm -f conftest.$ac_objext
35190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35191   (eval $ac_compile) 2>conftest.er1
35192   ac_status=$?
35193   grep -v '^ *+' conftest.er1 >conftest.err
35194   rm -f conftest.er1
35195   cat conftest.err >&5
35196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35197   (exit $ac_status); } &&
35198          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35200   (eval $ac_try) 2>&5
35201   ac_status=$?
35202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35203   (exit $ac_status); }; } &&
35204          { ac_try='test -s conftest.$ac_objext'
35205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35206   (eval $ac_try) 2>&5
35207   ac_status=$?
35208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35209   (exit $ac_status); }; }; then
35210   wx_cv_func_snprintf_decl=yes
35211 else
35212   echo "$as_me: failed program was:" >&5
35213 sed 's/^/| /' conftest.$ac_ext >&5
35214
35215 wx_cv_func_snprintf_decl=no
35216
35217 fi
35218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35219
35220
35221 fi
35222 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35223 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
35224
35225     if test "$wx_cv_func_snprintf_decl" = "yes"; then
35226         cat >>confdefs.h <<\_ACEOF
35227 #define HAVE_SNPRINTF_DECL 1
35228 _ACEOF
35229
35230
35231                         echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
35232 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
35233 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
35234   echo $ECHO_N "(cached) $ECHO_C" >&6
35235 else
35236
35237                 cat >conftest.$ac_ext <<_ACEOF
35238 /* confdefs.h.  */
35239 _ACEOF
35240 cat confdefs.h >>conftest.$ac_ext
35241 cat >>conftest.$ac_ext <<_ACEOF
35242 /* end confdefs.h.  */
35243
35244                         #include <stdio.h>
35245                         #include <stdarg.h>
35246                         #ifdef __MSL__
35247                         #if __MSL__ >= 0x6000
35248                         namespace std {}
35249                         using namespace std;
35250                         #endif
35251                         #endif
35252
35253 int
35254 main ()
35255 {
35256
35257                         char *buf;
35258                         const char *fmt = "%s";
35259                         snprintf(buf, 10u, fmt, "wx");
35260
35261   ;
35262   return 0;
35263 }
35264 _ACEOF
35265 rm -f conftest.$ac_objext
35266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35267   (eval $ac_compile) 2>conftest.er1
35268   ac_status=$?
35269   grep -v '^ *+' conftest.er1 >conftest.err
35270   rm -f conftest.er1
35271   cat conftest.err >&5
35272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35273   (exit $ac_status); } &&
35274          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35276   (eval $ac_try) 2>&5
35277   ac_status=$?
35278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35279   (exit $ac_status); }; } &&
35280          { ac_try='test -s conftest.$ac_objext'
35281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35282   (eval $ac_try) 2>&5
35283   ac_status=$?
35284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35285   (exit $ac_status); }; }; then
35286   wx_cv_func_broken_snprintf_decl=no
35287 else
35288   echo "$as_me: failed program was:" >&5
35289 sed 's/^/| /' conftest.$ac_ext >&5
35290
35291 wx_cv_func_broken_snprintf_decl=yes
35292
35293 fi
35294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35295
35296
35297 fi
35298 echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35299 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
35300
35301         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35302             cat >>confdefs.h <<\_ACEOF
35303 #define HAVE_BROKEN_SNPRINTF_DECL 1
35304 _ACEOF
35305
35306         fi
35307     fi
35308
35309     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35310
35311                                         echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35312 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
35313 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35314   echo $ECHO_N "(cached) $ECHO_C" >&6
35315 else
35316
35317                 if test "$cross_compiling" = yes; then
35318
35319                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35320 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35321 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35322 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35323                         wx_cv_func_snprintf_pos_params=no
35324
35325
35326 else
35327   cat >conftest.$ac_ext <<_ACEOF
35328 /* confdefs.h.  */
35329 _ACEOF
35330 cat confdefs.h >>conftest.$ac_ext
35331 cat >>conftest.$ac_ext <<_ACEOF
35332 /* end confdefs.h.  */
35333
35334                         #include <stdio.h>
35335
35336                         int main (void)
35337                         {
35338                             char buffer[128];
35339                             snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
35340                             if (strcmp ("2 3 1", buffer) == 0)
35341                                 exit (0);
35342                             exit (1);
35343                         }
35344
35345 _ACEOF
35346 rm -f conftest$ac_exeext
35347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35348   (eval $ac_link) 2>&5
35349   ac_status=$?
35350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35353   (eval $ac_try) 2>&5
35354   ac_status=$?
35355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356   (exit $ac_status); }; }; then
35357   wx_cv_func_snprintf_pos_params=no
35358 else
35359   echo "$as_me: program exited with status $ac_status" >&5
35360 echo "$as_me: failed program was:" >&5
35361 sed 's/^/| /' conftest.$ac_ext >&5
35362
35363 ( exit $ac_status )
35364 wx_cv_func_snprintf_pos_params=yes
35365 fi
35366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35367 fi
35368
35369
35370 fi
35371 echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35372 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
35373
35374         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35375             cat >>confdefs.h <<\_ACEOF
35376 #define HAVE_UNIX98_PRINTF 1
35377 _ACEOF
35378
35379         fi
35380     fi
35381 fi
35382
35383 if test "$wxUSE_UNICODE" = yes; then
35384
35385
35386 for ac_func in swprintf
35387 do
35388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35389 echo "$as_me:$LINENO: checking for $ac_func" >&5
35390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35391 if eval "test \"\${$as_ac_var+set}\" = set"; then
35392   echo $ECHO_N "(cached) $ECHO_C" >&6
35393 else
35394   cat >conftest.$ac_ext <<_ACEOF
35395 /* confdefs.h.  */
35396 _ACEOF
35397 cat confdefs.h >>conftest.$ac_ext
35398 cat >>conftest.$ac_ext <<_ACEOF
35399 /* end confdefs.h.  */
35400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35401    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35402 #define $ac_func innocuous_$ac_func
35403
35404 /* System header to define __stub macros and hopefully few prototypes,
35405     which can conflict with char $ac_func (); below.
35406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35407     <limits.h> exists even on freestanding compilers.  */
35408
35409 #ifdef __STDC__
35410 # include <limits.h>
35411 #else
35412 # include <assert.h>
35413 #endif
35414
35415 #undef $ac_func
35416
35417 /* Override any gcc2 internal prototype to avoid an error.  */
35418 #ifdef __cplusplus
35419 extern "C"
35420 {
35421 #endif
35422 /* We use char because int might match the return type of a gcc2
35423    builtin and then its argument prototype would still apply.  */
35424 char $ac_func ();
35425 /* The GNU C library defines this for functions which it implements
35426     to always fail with ENOSYS.  Some functions are actually named
35427     something starting with __ and the normal name is an alias.  */
35428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35429 choke me
35430 #else
35431 char (*f) () = $ac_func;
35432 #endif
35433 #ifdef __cplusplus
35434 }
35435 #endif
35436
35437 int
35438 main ()
35439 {
35440 return f != $ac_func;
35441   ;
35442   return 0;
35443 }
35444 _ACEOF
35445 rm -f conftest.$ac_objext conftest$ac_exeext
35446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35447   (eval $ac_link) 2>conftest.er1
35448   ac_status=$?
35449   grep -v '^ *+' conftest.er1 >conftest.err
35450   rm -f conftest.er1
35451   cat conftest.err >&5
35452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35453   (exit $ac_status); } &&
35454          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35456   (eval $ac_try) 2>&5
35457   ac_status=$?
35458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35459   (exit $ac_status); }; } &&
35460          { ac_try='test -s conftest$ac_exeext'
35461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35462   (eval $ac_try) 2>&5
35463   ac_status=$?
35464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35465   (exit $ac_status); }; }; then
35466   eval "$as_ac_var=yes"
35467 else
35468   echo "$as_me: failed program was:" >&5
35469 sed 's/^/| /' conftest.$ac_ext >&5
35470
35471 eval "$as_ac_var=no"
35472 fi
35473 rm -f conftest.err conftest.$ac_objext \
35474       conftest$ac_exeext conftest.$ac_ext
35475 fi
35476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35478 if test `eval echo '${'$as_ac_var'}'` = yes; then
35479   cat >>confdefs.h <<_ACEOF
35480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35481 _ACEOF
35482
35483 fi
35484 done
35485
35486
35487     if test "$ac_cv_func_swprintf" = "yes"; then
35488         echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
35489 echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
35490 if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
35491   echo $ECHO_N "(cached) $ECHO_C" >&6
35492 else
35493
35494                 cat >conftest.$ac_ext <<_ACEOF
35495 /* confdefs.h.  */
35496 _ACEOF
35497 cat confdefs.h >>conftest.$ac_ext
35498 cat >>conftest.$ac_ext <<_ACEOF
35499 /* end confdefs.h.  */
35500
35501                         #include <stdio.h>
35502                         #include <stdarg.h>
35503                         #include <wchar.h>
35504
35505 int
35506 main ()
35507 {
35508
35509                         wchar_t *buf;
35510                         const wchar_t *fmt = L"test";
35511                         swprintf(buf, 10u, fmt);
35512
35513   ;
35514   return 0;
35515 }
35516 _ACEOF
35517 rm -f conftest.$ac_objext
35518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35519   (eval $ac_compile) 2>conftest.er1
35520   ac_status=$?
35521   grep -v '^ *+' conftest.er1 >conftest.err
35522   rm -f conftest.er1
35523   cat conftest.err >&5
35524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35525   (exit $ac_status); } &&
35526          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35528   (eval $ac_try) 2>&5
35529   ac_status=$?
35530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35531   (exit $ac_status); }; } &&
35532          { ac_try='test -s conftest.$ac_objext'
35533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35534   (eval $ac_try) 2>&5
35535   ac_status=$?
35536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35537   (exit $ac_status); }; }; then
35538   wx_cv_func_broken_swprintf_decl=no
35539 else
35540   echo "$as_me: failed program was:" >&5
35541 sed 's/^/| /' conftest.$ac_ext >&5
35542
35543 wx_cv_func_broken_swprintf_decl=yes
35544
35545 fi
35546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35547
35548
35549 fi
35550 echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
35551 echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
35552
35553         if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
35554             cat >>confdefs.h <<\_ACEOF
35555 #define HAVE_BROKEN_SWPRINTF_DECL 1
35556 _ACEOF
35557
35558         fi
35559     fi
35560
35561             wchar_headers="#include <stdio.h>
35562 #include <wchar.h>"
35563     case "${host}" in
35564         *-*-solaris2* )
35565
35566 for ac_header in widec.h
35567 do
35568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35570   echo "$as_me:$LINENO: checking for $ac_header" >&5
35571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35573   echo $ECHO_N "(cached) $ECHO_C" >&6
35574 fi
35575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35577 else
35578   # Is the header compilable?
35579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35581 cat >conftest.$ac_ext <<_ACEOF
35582 /* confdefs.h.  */
35583 _ACEOF
35584 cat confdefs.h >>conftest.$ac_ext
35585 cat >>conftest.$ac_ext <<_ACEOF
35586 /* end confdefs.h.  */
35587 $ac_includes_default
35588 #include <$ac_header>
35589 _ACEOF
35590 rm -f conftest.$ac_objext
35591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35592   (eval $ac_compile) 2>conftest.er1
35593   ac_status=$?
35594   grep -v '^ *+' conftest.er1 >conftest.err
35595   rm -f conftest.er1
35596   cat conftest.err >&5
35597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35598   (exit $ac_status); } &&
35599          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35601   (eval $ac_try) 2>&5
35602   ac_status=$?
35603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35604   (exit $ac_status); }; } &&
35605          { ac_try='test -s conftest.$ac_objext'
35606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35607   (eval $ac_try) 2>&5
35608   ac_status=$?
35609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35610   (exit $ac_status); }; }; then
35611   ac_header_compiler=yes
35612 else
35613   echo "$as_me: failed program was:" >&5
35614 sed 's/^/| /' conftest.$ac_ext >&5
35615
35616 ac_header_compiler=no
35617 fi
35618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35620 echo "${ECHO_T}$ac_header_compiler" >&6
35621
35622 # Is the header present?
35623 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35625 cat >conftest.$ac_ext <<_ACEOF
35626 /* confdefs.h.  */
35627 _ACEOF
35628 cat confdefs.h >>conftest.$ac_ext
35629 cat >>conftest.$ac_ext <<_ACEOF
35630 /* end confdefs.h.  */
35631 #include <$ac_header>
35632 _ACEOF
35633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35634   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35635   ac_status=$?
35636   grep -v '^ *+' conftest.er1 >conftest.err
35637   rm -f conftest.er1
35638   cat conftest.err >&5
35639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35640   (exit $ac_status); } >/dev/null; then
35641   if test -s conftest.err; then
35642     ac_cpp_err=$ac_c_preproc_warn_flag
35643     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35644   else
35645     ac_cpp_err=
35646   fi
35647 else
35648   ac_cpp_err=yes
35649 fi
35650 if test -z "$ac_cpp_err"; then
35651   ac_header_preproc=yes
35652 else
35653   echo "$as_me: failed program was:" >&5
35654 sed 's/^/| /' conftest.$ac_ext >&5
35655
35656   ac_header_preproc=no
35657 fi
35658 rm -f conftest.err conftest.$ac_ext
35659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35660 echo "${ECHO_T}$ac_header_preproc" >&6
35661
35662 # So?  What about this header?
35663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35664   yes:no: )
35665     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35667     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35669     ac_header_preproc=yes
35670     ;;
35671   no:yes:* )
35672     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35674     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35675 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35676     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35678     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35679 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35682     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35684     (
35685       cat <<\_ASBOX
35686 ## ----------------------------------------- ##
35687 ## Report this to wx-dev@lists.wxwidgets.org ##
35688 ## ----------------------------------------- ##
35689 _ASBOX
35690     ) |
35691       sed "s/^/$as_me: WARNING:     /" >&2
35692     ;;
35693 esac
35694 echo "$as_me:$LINENO: checking for $ac_header" >&5
35695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35697   echo $ECHO_N "(cached) $ECHO_C" >&6
35698 else
35699   eval "$as_ac_Header=\$ac_header_preproc"
35700 fi
35701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35703
35704 fi
35705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35706   cat >>confdefs.h <<_ACEOF
35707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35708 _ACEOF
35709
35710 fi
35711
35712 done
35713
35714             if test "$ac_cv_header_widec_h" = "yes"; then
35715                 wchar_headers="$wchar_headers
35716 #include <widec.h>"
35717             fi
35718     esac
35719
35720
35721   for wx_func in wputc wputchar putws fputws wprintf vswprintf
35722   do
35723     echo "$as_me:$LINENO: checking for $wx_func" >&5
35724 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
35725 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
35726   echo $ECHO_N "(cached) $ECHO_C" >&6
35727 else
35728
35729         cat >conftest.$ac_ext <<_ACEOF
35730
35731             /* confdefs.h.  */
35732 _ACEOF
35733 cat confdefs.h >>conftest.$ac_ext
35734 cat >>conftest.$ac_ext <<_ACEOF
35735 /* end confdefs.h.  */
35736
35737                 $wchar_headers
35738                 $ac_includes_default
35739
35740 int
35741 main ()
35742 {
35743
35744                 #ifndef $wx_func
35745                   &$wx_func;
35746                 #endif
35747
35748
35749   ;
35750   return 0;
35751 }
35752
35753 _ACEOF
35754 rm -f conftest.$ac_objext conftest$ac_exeext
35755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35756   (eval $ac_link) 2>conftest.er1
35757   ac_status=$?
35758   grep -v '^ *+' conftest.er1 >conftest.err
35759   rm -f conftest.er1
35760   cat conftest.err >&5
35761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35762   (exit $ac_status); } &&
35763          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35765   (eval $ac_try) 2>&5
35766   ac_status=$?
35767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35768   (exit $ac_status); }; } &&
35769          { ac_try='test -s conftest$ac_exeext'
35770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35771   (eval $ac_try) 2>&5
35772   ac_status=$?
35773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35774   (exit $ac_status); }; }; then
35775   eval wx_cv_func_$wx_func=yes
35776 else
35777   echo "$as_me: failed program was:" >&5
35778 sed 's/^/| /' conftest.$ac_ext >&5
35779
35780 eval wx_cv_func_$wx_func=no
35781 fi
35782 rm -f conftest.err conftest.$ac_objext \
35783       conftest$ac_exeext conftest.$ac_ext
35784
35785 fi
35786 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
35787 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
35788
35789     if eval test \$wx_cv_func_$wx_func = yes
35790     then
35791       cat >>confdefs.h <<_ACEOF
35792 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
35793 _ACEOF
35794
35795
35796     else
35797       :
35798
35799     fi
35800   done
35801
35802
35803                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35804 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
35805     cat >conftest.$ac_ext <<_ACEOF
35806 /* confdefs.h.  */
35807 _ACEOF
35808 cat confdefs.h >>conftest.$ac_ext
35809 cat >>conftest.$ac_ext <<_ACEOF
35810 /* end confdefs.h.  */
35811 #include <wchar.h>
35812 int
35813 main ()
35814 {
35815 &_vsnwprintf;
35816   ;
35817   return 0;
35818 }
35819 _ACEOF
35820 rm -f conftest.$ac_objext
35821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35822   (eval $ac_compile) 2>conftest.er1
35823   ac_status=$?
35824   grep -v '^ *+' conftest.er1 >conftest.err
35825   rm -f conftest.er1
35826   cat conftest.err >&5
35827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35828   (exit $ac_status); } &&
35829          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35831   (eval $ac_try) 2>&5
35832   ac_status=$?
35833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35834   (exit $ac_status); }; } &&
35835          { ac_try='test -s conftest.$ac_objext'
35836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35837   (eval $ac_try) 2>&5
35838   ac_status=$?
35839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35840   (exit $ac_status); }; }; then
35841   echo "$as_me:$LINENO: result: yes" >&5
35842 echo "${ECHO_T}yes" >&6
35843                     cat >>confdefs.h <<\_ACEOF
35844 #define HAVE__VSNWPRINTF 1
35845 _ACEOF
35846
35847 else
35848   echo "$as_me: failed program was:" >&5
35849 sed 's/^/| /' conftest.$ac_ext >&5
35850
35851 echo "$as_me:$LINENO: result: no" >&5
35852 echo "${ECHO_T}no" >&6
35853 fi
35854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
35855 fi
35856
35857 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
35858
35859   for wx_func in fnmatch
35860   do
35861     echo "$as_me:$LINENO: checking for $wx_func" >&5
35862 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
35863 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
35864   echo $ECHO_N "(cached) $ECHO_C" >&6
35865 else
35866
35867         cat >conftest.$ac_ext <<_ACEOF
35868
35869             /* confdefs.h.  */
35870 _ACEOF
35871 cat confdefs.h >>conftest.$ac_ext
35872 cat >>conftest.$ac_ext <<_ACEOF
35873 /* end confdefs.h.  */
35874
35875                 #include <fnmatch.h>
35876                 $ac_includes_default
35877
35878 int
35879 main ()
35880 {
35881
35882                 #ifndef $wx_func
35883                   &$wx_func;
35884                 #endif
35885
35886
35887   ;
35888   return 0;
35889 }
35890
35891 _ACEOF
35892 rm -f conftest.$ac_objext conftest$ac_exeext
35893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35894   (eval $ac_link) 2>conftest.er1
35895   ac_status=$?
35896   grep -v '^ *+' conftest.er1 >conftest.err
35897   rm -f conftest.er1
35898   cat conftest.err >&5
35899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35900   (exit $ac_status); } &&
35901          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35903   (eval $ac_try) 2>&5
35904   ac_status=$?
35905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35906   (exit $ac_status); }; } &&
35907          { ac_try='test -s conftest$ac_exeext'
35908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35909   (eval $ac_try) 2>&5
35910   ac_status=$?
35911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35912   (exit $ac_status); }; }; then
35913   eval wx_cv_func_$wx_func=yes
35914 else
35915   echo "$as_me: failed program was:" >&5
35916 sed 's/^/| /' conftest.$ac_ext >&5
35917
35918 eval wx_cv_func_$wx_func=no
35919 fi
35920 rm -f conftest.err conftest.$ac_objext \
35921       conftest$ac_exeext conftest.$ac_ext
35922
35923 fi
35924 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
35925 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
35926
35927     if eval test \$wx_cv_func_$wx_func = yes
35928     then
35929       cat >>confdefs.h <<_ACEOF
35930 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
35931 _ACEOF
35932
35933
35934     else
35935       :
35936
35937     fi
35938   done
35939
35940 fi
35941
35942 if test "$wxUSE_FILE" = "yes"; then
35943
35944   for wx_func in fsync
35945   do
35946     echo "$as_me:$LINENO: checking for $wx_func" >&5
35947 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
35948 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
35949   echo $ECHO_N "(cached) $ECHO_C" >&6
35950 else
35951
35952         cat >conftest.$ac_ext <<_ACEOF
35953
35954             /* confdefs.h.  */
35955 _ACEOF
35956 cat confdefs.h >>conftest.$ac_ext
35957 cat >>conftest.$ac_ext <<_ACEOF
35958 /* end confdefs.h.  */
35959
35960
35961                 $ac_includes_default
35962
35963 int
35964 main ()
35965 {
35966
35967                 #ifndef $wx_func
35968                   &$wx_func;
35969                 #endif
35970
35971
35972   ;
35973   return 0;
35974 }
35975
35976 _ACEOF
35977 rm -f conftest.$ac_objext conftest$ac_exeext
35978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35979   (eval $ac_link) 2>conftest.er1
35980   ac_status=$?
35981   grep -v '^ *+' conftest.er1 >conftest.err
35982   rm -f conftest.er1
35983   cat conftest.err >&5
35984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35985   (exit $ac_status); } &&
35986          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35988   (eval $ac_try) 2>&5
35989   ac_status=$?
35990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35991   (exit $ac_status); }; } &&
35992          { ac_try='test -s conftest$ac_exeext'
35993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35994   (eval $ac_try) 2>&5
35995   ac_status=$?
35996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35997   (exit $ac_status); }; }; then
35998   eval wx_cv_func_$wx_func=yes
35999 else
36000   echo "$as_me: failed program was:" >&5
36001 sed 's/^/| /' conftest.$ac_ext >&5
36002
36003 eval wx_cv_func_$wx_func=no
36004 fi
36005 rm -f conftest.err conftest.$ac_objext \
36006       conftest$ac_exeext conftest.$ac_ext
36007
36008 fi
36009 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
36010 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
36011
36012     if eval test \$wx_cv_func_$wx_func = yes
36013     then
36014       cat >>confdefs.h <<_ACEOF
36015 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
36016 _ACEOF
36017
36018
36019     else
36020       :
36021
36022     fi
36023   done
36024
36025 fi
36026
36027
36028   for wx_func in round
36029   do
36030     echo "$as_me:$LINENO: checking for $wx_func" >&5
36031 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
36032 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
36033   echo $ECHO_N "(cached) $ECHO_C" >&6
36034 else
36035
36036         cat >conftest.$ac_ext <<_ACEOF
36037
36038             /* confdefs.h.  */
36039 _ACEOF
36040 cat confdefs.h >>conftest.$ac_ext
36041 cat >>conftest.$ac_ext <<_ACEOF
36042 /* end confdefs.h.  */
36043
36044                 #include <math.h>
36045                 $ac_includes_default
36046
36047 int
36048 main ()
36049 {
36050
36051                 #ifndef $wx_func
36052                   &$wx_func;
36053                 #endif
36054
36055
36056   ;
36057   return 0;
36058 }
36059
36060 _ACEOF
36061 rm -f conftest.$ac_objext conftest$ac_exeext
36062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36063   (eval $ac_link) 2>conftest.er1
36064   ac_status=$?
36065   grep -v '^ *+' conftest.er1 >conftest.err
36066   rm -f conftest.er1
36067   cat conftest.err >&5
36068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36069   (exit $ac_status); } &&
36070          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36072   (eval $ac_try) 2>&5
36073   ac_status=$?
36074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36075   (exit $ac_status); }; } &&
36076          { ac_try='test -s conftest$ac_exeext'
36077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36078   (eval $ac_try) 2>&5
36079   ac_status=$?
36080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36081   (exit $ac_status); }; }; then
36082   eval wx_cv_func_$wx_func=yes
36083 else
36084   echo "$as_me: failed program was:" >&5
36085 sed 's/^/| /' conftest.$ac_ext >&5
36086
36087 eval wx_cv_func_$wx_func=no
36088 fi
36089 rm -f conftest.err conftest.$ac_objext \
36090       conftest$ac_exeext conftest.$ac_ext
36091
36092 fi
36093 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
36094 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
36095
36096     if eval test \$wx_cv_func_$wx_func = yes
36097     then
36098       cat >>confdefs.h <<_ACEOF
36099 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
36100 _ACEOF
36101
36102
36103     else
36104       :
36105
36106     fi
36107   done
36108
36109
36110 if test "$TOOLKIT" != "MSW"; then
36111
36112
36113
36114
36115
36116 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36117 if test "${with_libiconv_prefix+set}" = set; then
36118   withval="$with_libiconv_prefix"
36119
36120     for dir in `echo "$withval" | tr : ' '`; do
36121       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36122       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36123     done
36124
36125 fi;
36126
36127   echo "$as_me:$LINENO: checking for iconv" >&5
36128 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
36129 if test "${am_cv_func_iconv+set}" = set; then
36130   echo $ECHO_N "(cached) $ECHO_C" >&6
36131 else
36132
36133     am_cv_func_iconv="no, consider installing GNU libiconv"
36134     am_cv_lib_iconv=no
36135     cat >conftest.$ac_ext <<_ACEOF
36136 /* confdefs.h.  */
36137 _ACEOF
36138 cat confdefs.h >>conftest.$ac_ext
36139 cat >>conftest.$ac_ext <<_ACEOF
36140 /* end confdefs.h.  */
36141 #include <stdlib.h>
36142 #include <iconv.h>
36143 int
36144 main ()
36145 {
36146 iconv_t cd = iconv_open("","");
36147        iconv(cd,NULL,NULL,NULL,NULL);
36148        iconv_close(cd);
36149   ;
36150   return 0;
36151 }
36152 _ACEOF
36153 rm -f conftest.$ac_objext conftest$ac_exeext
36154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36155   (eval $ac_link) 2>conftest.er1
36156   ac_status=$?
36157   grep -v '^ *+' conftest.er1 >conftest.err
36158   rm -f conftest.er1
36159   cat conftest.err >&5
36160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36161   (exit $ac_status); } &&
36162          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36164   (eval $ac_try) 2>&5
36165   ac_status=$?
36166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36167   (exit $ac_status); }; } &&
36168          { ac_try='test -s conftest$ac_exeext'
36169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36170   (eval $ac_try) 2>&5
36171   ac_status=$?
36172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36173   (exit $ac_status); }; }; then
36174   am_cv_func_iconv=yes
36175 else
36176   echo "$as_me: failed program was:" >&5
36177 sed 's/^/| /' conftest.$ac_ext >&5
36178
36179 fi
36180 rm -f conftest.err conftest.$ac_objext \
36181       conftest$ac_exeext conftest.$ac_ext
36182     if test "$am_cv_func_iconv" != yes; then
36183       am_save_LIBS="$LIBS"
36184       LIBS="$LIBS -liconv"
36185       cat >conftest.$ac_ext <<_ACEOF
36186 /* confdefs.h.  */
36187 _ACEOF
36188 cat confdefs.h >>conftest.$ac_ext
36189 cat >>conftest.$ac_ext <<_ACEOF
36190 /* end confdefs.h.  */
36191 #include <stdlib.h>
36192 #include <iconv.h>
36193 int
36194 main ()
36195 {
36196 iconv_t cd = iconv_open("","");
36197          iconv(cd,NULL,NULL,NULL,NULL);
36198          iconv_close(cd);
36199   ;
36200   return 0;
36201 }
36202 _ACEOF
36203 rm -f conftest.$ac_objext conftest$ac_exeext
36204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36205   (eval $ac_link) 2>conftest.er1
36206   ac_status=$?
36207   grep -v '^ *+' conftest.er1 >conftest.err
36208   rm -f conftest.er1
36209   cat conftest.err >&5
36210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211   (exit $ac_status); } &&
36212          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36214   (eval $ac_try) 2>&5
36215   ac_status=$?
36216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36217   (exit $ac_status); }; } &&
36218          { ac_try='test -s conftest$ac_exeext'
36219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36220   (eval $ac_try) 2>&5
36221   ac_status=$?
36222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36223   (exit $ac_status); }; }; then
36224   am_cv_lib_iconv=yes
36225         am_cv_func_iconv=yes
36226 else
36227   echo "$as_me: failed program was:" >&5
36228 sed 's/^/| /' conftest.$ac_ext >&5
36229
36230 fi
36231 rm -f conftest.err conftest.$ac_objext \
36232       conftest$ac_exeext conftest.$ac_ext
36233       LIBS="$am_save_LIBS"
36234     fi
36235
36236 fi
36237 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36238 echo "${ECHO_T}$am_cv_func_iconv" >&6
36239   if test "$am_cv_func_iconv" = yes; then
36240
36241 cat >>confdefs.h <<\_ACEOF
36242 #define HAVE_ICONV 1
36243 _ACEOF
36244
36245     echo "$as_me:$LINENO: checking if iconv needs const" >&5
36246 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
36247 if test "${wx_cv_func_iconv_const+set}" = set; then
36248   echo $ECHO_N "(cached) $ECHO_C" >&6
36249 else
36250   cat >conftest.$ac_ext <<_ACEOF
36251 /* confdefs.h.  */
36252 _ACEOF
36253 cat confdefs.h >>conftest.$ac_ext
36254 cat >>conftest.$ac_ext <<_ACEOF
36255 /* end confdefs.h.  */
36256
36257 #include <stdlib.h>
36258 #include <iconv.h>
36259 extern
36260 #ifdef __cplusplus
36261 "C"
36262 #endif
36263 #if defined(__STDC__) || defined(__cplusplus)
36264 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36265 #else
36266 size_t iconv();
36267 #endif
36268
36269 int
36270 main ()
36271 {
36272
36273   ;
36274   return 0;
36275 }
36276 _ACEOF
36277 rm -f conftest.$ac_objext
36278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36279   (eval $ac_compile) 2>conftest.er1
36280   ac_status=$?
36281   grep -v '^ *+' conftest.er1 >conftest.err
36282   rm -f conftest.er1
36283   cat conftest.err >&5
36284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36285   (exit $ac_status); } &&
36286          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36288   (eval $ac_try) 2>&5
36289   ac_status=$?
36290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36291   (exit $ac_status); }; } &&
36292          { ac_try='test -s conftest.$ac_objext'
36293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36294   (eval $ac_try) 2>&5
36295   ac_status=$?
36296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36297   (exit $ac_status); }; }; then
36298   wx_cv_func_iconv_const="no"
36299 else
36300   echo "$as_me: failed program was:" >&5
36301 sed 's/^/| /' conftest.$ac_ext >&5
36302
36303 wx_cv_func_iconv_const="yes"
36304
36305 fi
36306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36307
36308 fi
36309 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36310 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
36311
36312     iconv_const=
36313     if test "x$wx_cv_func_iconv_const" = "xyes"; then
36314         iconv_const="const"
36315     fi
36316
36317
36318 cat >>confdefs.h <<_ACEOF
36319 #define ICONV_CONST $iconv_const
36320 _ACEOF
36321
36322   fi
36323   LIBICONV=
36324   if test "$am_cv_lib_iconv" = yes; then
36325     LIBICONV="-liconv"
36326   fi
36327
36328
36329 LIBS="$LIBICONV $LIBS"
36330
36331 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36332
36333 for ac_func in sigaction
36334 do
36335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36336 echo "$as_me:$LINENO: checking for $ac_func" >&5
36337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36338 if eval "test \"\${$as_ac_var+set}\" = set"; then
36339   echo $ECHO_N "(cached) $ECHO_C" >&6
36340 else
36341   cat >conftest.$ac_ext <<_ACEOF
36342 /* confdefs.h.  */
36343 _ACEOF
36344 cat confdefs.h >>conftest.$ac_ext
36345 cat >>conftest.$ac_ext <<_ACEOF
36346 /* end confdefs.h.  */
36347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36349 #define $ac_func innocuous_$ac_func
36350
36351 /* System header to define __stub macros and hopefully few prototypes,
36352     which can conflict with char $ac_func (); below.
36353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36354     <limits.h> exists even on freestanding compilers.  */
36355
36356 #ifdef __STDC__
36357 # include <limits.h>
36358 #else
36359 # include <assert.h>
36360 #endif
36361
36362 #undef $ac_func
36363
36364 /* Override any gcc2 internal prototype to avoid an error.  */
36365 #ifdef __cplusplus
36366 extern "C"
36367 {
36368 #endif
36369 /* We use char because int might match the return type of a gcc2
36370    builtin and then its argument prototype would still apply.  */
36371 char $ac_func ();
36372 /* The GNU C library defines this for functions which it implements
36373     to always fail with ENOSYS.  Some functions are actually named
36374     something starting with __ and the normal name is an alias.  */
36375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36376 choke me
36377 #else
36378 char (*f) () = $ac_func;
36379 #endif
36380 #ifdef __cplusplus
36381 }
36382 #endif
36383
36384 int
36385 main ()
36386 {
36387 return f != $ac_func;
36388   ;
36389   return 0;
36390 }
36391 _ACEOF
36392 rm -f conftest.$ac_objext conftest$ac_exeext
36393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36394   (eval $ac_link) 2>conftest.er1
36395   ac_status=$?
36396   grep -v '^ *+' conftest.er1 >conftest.err
36397   rm -f conftest.er1
36398   cat conftest.err >&5
36399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36400   (exit $ac_status); } &&
36401          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36403   (eval $ac_try) 2>&5
36404   ac_status=$?
36405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36406   (exit $ac_status); }; } &&
36407          { ac_try='test -s conftest$ac_exeext'
36408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36409   (eval $ac_try) 2>&5
36410   ac_status=$?
36411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36412   (exit $ac_status); }; }; then
36413   eval "$as_ac_var=yes"
36414 else
36415   echo "$as_me: failed program was:" >&5
36416 sed 's/^/| /' conftest.$ac_ext >&5
36417
36418 eval "$as_ac_var=no"
36419 fi
36420 rm -f conftest.err conftest.$ac_objext \
36421       conftest$ac_exeext conftest.$ac_ext
36422 fi
36423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36425 if test `eval echo '${'$as_ac_var'}'` = yes; then
36426   cat >>confdefs.h <<_ACEOF
36427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36428 _ACEOF
36429
36430 fi
36431 done
36432
36433
36434     if test "$ac_cv_func_sigaction" = "no"; then
36435         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36436 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36437         wxUSE_ON_FATAL_EXCEPTION=no
36438     fi
36439
36440     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36441       echo "$as_me:$LINENO: checking for sa_handler type" >&5
36442 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
36443 if test "${wx_cv_type_sa_handler+set}" = set; then
36444   echo $ECHO_N "(cached) $ECHO_C" >&6
36445 else
36446
36447                 ac_ext=cc
36448 ac_cpp='$CXXCPP $CPPFLAGS'
36449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36452
36453         cat >conftest.$ac_ext <<_ACEOF
36454 /* confdefs.h.  */
36455 _ACEOF
36456 cat confdefs.h >>conftest.$ac_ext
36457 cat >>conftest.$ac_ext <<_ACEOF
36458 /* end confdefs.h.  */
36459 #include <signal.h>
36460 int
36461 main ()
36462 {
36463
36464                         extern void testSigHandler(int);
36465
36466                         struct sigaction sa;
36467                         sa.sa_handler = testSigHandler;
36468
36469   ;
36470   return 0;
36471 }
36472 _ACEOF
36473 rm -f conftest.$ac_objext
36474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36475   (eval $ac_compile) 2>conftest.er1
36476   ac_status=$?
36477   grep -v '^ *+' conftest.er1 >conftest.err
36478   rm -f conftest.er1
36479   cat conftest.err >&5
36480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36481   (exit $ac_status); } &&
36482          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36484   (eval $ac_try) 2>&5
36485   ac_status=$?
36486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36487   (exit $ac_status); }; } &&
36488          { ac_try='test -s conftest.$ac_objext'
36489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36490   (eval $ac_try) 2>&5
36491   ac_status=$?
36492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36493   (exit $ac_status); }; }; then
36494
36495                         wx_cv_type_sa_handler=int
36496
36497 else
36498   echo "$as_me: failed program was:" >&5
36499 sed 's/^/| /' conftest.$ac_ext >&5
36500
36501
36502                         wx_cv_type_sa_handler=void
36503
36504 fi
36505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36506         ac_ext=c
36507 ac_cpp='$CPP $CPPFLAGS'
36508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36511
36512
36513 fi
36514 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36515 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
36516
36517       cat >>confdefs.h <<_ACEOF
36518 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36519 _ACEOF
36520
36521     fi
36522 fi
36523
36524 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36525     echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36526 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
36527 if test "${wx_cv_func_backtrace+set}" = set; then
36528   echo $ECHO_N "(cached) $ECHO_C" >&6
36529 else
36530
36531             ac_ext=cc
36532 ac_cpp='$CXXCPP $CPPFLAGS'
36533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36536
36537             cat >conftest.$ac_ext <<_ACEOF
36538 /* confdefs.h.  */
36539 _ACEOF
36540 cat confdefs.h >>conftest.$ac_ext
36541 cat >>conftest.$ac_ext <<_ACEOF
36542 /* end confdefs.h.  */
36543 #include <execinfo.h>
36544 int
36545 main ()
36546 {
36547
36548                     void *trace[1];
36549                     char **messages;
36550
36551                     backtrace(trace, 1);
36552                     messages = backtrace_symbols(trace, 1);
36553
36554   ;
36555   return 0;
36556 }
36557 _ACEOF
36558 rm -f conftest.$ac_objext
36559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36560   (eval $ac_compile) 2>conftest.er1
36561   ac_status=$?
36562   grep -v '^ *+' conftest.er1 >conftest.err
36563   rm -f conftest.er1
36564   cat conftest.err >&5
36565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36566   (exit $ac_status); } &&
36567          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36569   (eval $ac_try) 2>&5
36570   ac_status=$?
36571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36572   (exit $ac_status); }; } &&
36573          { ac_try='test -s conftest.$ac_objext'
36574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36575   (eval $ac_try) 2>&5
36576   ac_status=$?
36577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36578   (exit $ac_status); }; }; then
36579   wx_cv_func_backtrace=yes
36580 else
36581   echo "$as_me: failed program was:" >&5
36582 sed 's/^/| /' conftest.$ac_ext >&5
36583
36584 wx_cv_func_backtrace=no
36585
36586 fi
36587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36588             ac_ext=c
36589 ac_cpp='$CPP $CPPFLAGS'
36590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36593
36594
36595
36596 fi
36597 echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36598 echo "${ECHO_T}$wx_cv_func_backtrace" >&6
36599
36600
36601     if test "$wx_cv_func_backtrace" = "no"; then
36602         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36603 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36604         wxUSE_STACKWALKER=no
36605     else
36606         echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36607 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
36608 if test "${wx_cv_func_cxa_demangle+set}" = set; then
36609   echo $ECHO_N "(cached) $ECHO_C" >&6
36610 else
36611
36612                 ac_ext=cc
36613 ac_cpp='$CXXCPP $CPPFLAGS'
36614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36617
36618                 cat >conftest.$ac_ext <<_ACEOF
36619 /* confdefs.h.  */
36620 _ACEOF
36621 cat confdefs.h >>conftest.$ac_ext
36622 cat >>conftest.$ac_ext <<_ACEOF
36623 /* end confdefs.h.  */
36624 #include <cxxabi.h>
36625 int
36626 main ()
36627 {
36628
36629                         int rc;
36630                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36631
36632   ;
36633   return 0;
36634 }
36635 _ACEOF
36636 rm -f conftest.$ac_objext conftest$ac_exeext
36637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36638   (eval $ac_link) 2>conftest.er1
36639   ac_status=$?
36640   grep -v '^ *+' conftest.er1 >conftest.err
36641   rm -f conftest.er1
36642   cat conftest.err >&5
36643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36644   (exit $ac_status); } &&
36645          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36647   (eval $ac_try) 2>&5
36648   ac_status=$?
36649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36650   (exit $ac_status); }; } &&
36651          { ac_try='test -s conftest$ac_exeext'
36652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36653   (eval $ac_try) 2>&5
36654   ac_status=$?
36655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656   (exit $ac_status); }; }; then
36657   wx_cv_func_cxa_demangle=yes
36658 else
36659   echo "$as_me: failed program was:" >&5
36660 sed 's/^/| /' conftest.$ac_ext >&5
36661
36662 wx_cv_func_cxa_demangle=no
36663
36664 fi
36665 rm -f conftest.err conftest.$ac_objext \
36666       conftest$ac_exeext conftest.$ac_ext
36667                 ac_ext=c
36668 ac_cpp='$CPP $CPPFLAGS'
36669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36672
36673
36674
36675 fi
36676 echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36677 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
36678
36679         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36680             cat >>confdefs.h <<\_ACEOF
36681 #define HAVE_CXA_DEMANGLE 1
36682 _ACEOF
36683
36684         fi
36685     fi
36686 fi
36687
36688 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
36689     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36690 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36691     wxUSE_STACKWALKER=no
36692 fi
36693
36694
36695
36696
36697 for ac_func in mkstemp mktemp
36698 do
36699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36700 echo "$as_me:$LINENO: checking for $ac_func" >&5
36701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36702 if eval "test \"\${$as_ac_var+set}\" = set"; then
36703   echo $ECHO_N "(cached) $ECHO_C" >&6
36704 else
36705   cat >conftest.$ac_ext <<_ACEOF
36706 /* confdefs.h.  */
36707 _ACEOF
36708 cat confdefs.h >>conftest.$ac_ext
36709 cat >>conftest.$ac_ext <<_ACEOF
36710 /* end confdefs.h.  */
36711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36713 #define $ac_func innocuous_$ac_func
36714
36715 /* System header to define __stub macros and hopefully few prototypes,
36716     which can conflict with char $ac_func (); below.
36717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36718     <limits.h> exists even on freestanding compilers.  */
36719
36720 #ifdef __STDC__
36721 # include <limits.h>
36722 #else
36723 # include <assert.h>
36724 #endif
36725
36726 #undef $ac_func
36727
36728 /* Override any gcc2 internal prototype to avoid an error.  */
36729 #ifdef __cplusplus
36730 extern "C"
36731 {
36732 #endif
36733 /* We use char because int might match the return type of a gcc2
36734    builtin and then its argument prototype would still apply.  */
36735 char $ac_func ();
36736 /* The GNU C library defines this for functions which it implements
36737     to always fail with ENOSYS.  Some functions are actually named
36738     something starting with __ and the normal name is an alias.  */
36739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36740 choke me
36741 #else
36742 char (*f) () = $ac_func;
36743 #endif
36744 #ifdef __cplusplus
36745 }
36746 #endif
36747
36748 int
36749 main ()
36750 {
36751 return f != $ac_func;
36752   ;
36753   return 0;
36754 }
36755 _ACEOF
36756 rm -f conftest.$ac_objext conftest$ac_exeext
36757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36758   (eval $ac_link) 2>conftest.er1
36759   ac_status=$?
36760   grep -v '^ *+' conftest.er1 >conftest.err
36761   rm -f conftest.er1
36762   cat conftest.err >&5
36763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36764   (exit $ac_status); } &&
36765          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36767   (eval $ac_try) 2>&5
36768   ac_status=$?
36769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36770   (exit $ac_status); }; } &&
36771          { ac_try='test -s conftest$ac_exeext'
36772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36773   (eval $ac_try) 2>&5
36774   ac_status=$?
36775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36776   (exit $ac_status); }; }; then
36777   eval "$as_ac_var=yes"
36778 else
36779   echo "$as_me: failed program was:" >&5
36780 sed 's/^/| /' conftest.$ac_ext >&5
36781
36782 eval "$as_ac_var=no"
36783 fi
36784 rm -f conftest.err conftest.$ac_objext \
36785       conftest$ac_exeext conftest.$ac_ext
36786 fi
36787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36789 if test `eval echo '${'$as_ac_var'}'` = yes; then
36790   cat >>confdefs.h <<_ACEOF
36791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36792 _ACEOF
36793  break
36794 fi
36795 done
36796
36797
36798 echo "$as_me:$LINENO: checking for statfs" >&5
36799 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
36800 if test "${wx_cv_func_statfs+set}" = set; then
36801   echo $ECHO_N "(cached) $ECHO_C" >&6
36802 else
36803   cat >conftest.$ac_ext <<_ACEOF
36804 /* confdefs.h.  */
36805 _ACEOF
36806 cat confdefs.h >>conftest.$ac_ext
36807 cat >>conftest.$ac_ext <<_ACEOF
36808 /* end confdefs.h.  */
36809
36810              #if defined(__BSD__)
36811              #include <sys/param.h>
36812              #include <sys/mount.h>
36813              #else
36814              #include <sys/vfs.h>
36815              #endif
36816
36817 int
36818 main ()
36819 {
36820
36821              long l;
36822              struct statfs fs;
36823              statfs("/", &fs);
36824              l = fs.f_bsize;
36825              l += fs.f_blocks;
36826              l += fs.f_bavail;
36827
36828   ;
36829   return 0;
36830 }
36831 _ACEOF
36832 rm -f conftest.$ac_objext
36833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36834   (eval $ac_compile) 2>conftest.er1
36835   ac_status=$?
36836   grep -v '^ *+' conftest.er1 >conftest.err
36837   rm -f conftest.er1
36838   cat conftest.err >&5
36839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36840   (exit $ac_status); } &&
36841          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36843   (eval $ac_try) 2>&5
36844   ac_status=$?
36845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36846   (exit $ac_status); }; } &&
36847          { ac_try='test -s conftest.$ac_objext'
36848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36849   (eval $ac_try) 2>&5
36850   ac_status=$?
36851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36852   (exit $ac_status); }; }; then
36853   wx_cv_func_statfs=yes
36854 else
36855   echo "$as_me: failed program was:" >&5
36856 sed 's/^/| /' conftest.$ac_ext >&5
36857
36858 wx_cv_func_statfs=no
36859
36860 fi
36861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36862
36863 fi
36864 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36865 echo "${ECHO_T}$wx_cv_func_statfs" >&6
36866
36867 if test "$wx_cv_func_statfs" = "yes"; then
36868         echo "$as_me:$LINENO: checking for statfs declaration" >&5
36869 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
36870 if test "${wx_cv_func_statfs_decl+set}" = set; then
36871   echo $ECHO_N "(cached) $ECHO_C" >&6
36872 else
36873   ac_ext=cc
36874 ac_cpp='$CXXCPP $CPPFLAGS'
36875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36878
36879         cat >conftest.$ac_ext <<_ACEOF
36880 /* confdefs.h.  */
36881 _ACEOF
36882 cat confdefs.h >>conftest.$ac_ext
36883 cat >>conftest.$ac_ext <<_ACEOF
36884 /* end confdefs.h.  */
36885
36886                  #if defined(__BSD__)
36887                  #include <sys/param.h>
36888                  #include <sys/mount.h>
36889                  #else
36890                  #include <sys/vfs.h>
36891                  #endif
36892
36893 int
36894 main ()
36895 {
36896
36897                 struct statfs fs;
36898                 statfs("", &fs);
36899
36900   ;
36901   return 0;
36902 }
36903 _ACEOF
36904 rm -f conftest.$ac_objext
36905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36906   (eval $ac_compile) 2>conftest.er1
36907   ac_status=$?
36908   grep -v '^ *+' conftest.er1 >conftest.err
36909   rm -f conftest.er1
36910   cat conftest.err >&5
36911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36912   (exit $ac_status); } &&
36913          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36915   (eval $ac_try) 2>&5
36916   ac_status=$?
36917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36918   (exit $ac_status); }; } &&
36919          { ac_try='test -s conftest.$ac_objext'
36920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36921   (eval $ac_try) 2>&5
36922   ac_status=$?
36923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36924   (exit $ac_status); }; }; then
36925   wx_cv_func_statfs_decl=yes
36926 else
36927   echo "$as_me: failed program was:" >&5
36928 sed 's/^/| /' conftest.$ac_ext >&5
36929
36930 wx_cv_func_statfs_decl=no
36931
36932 fi
36933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36934         ac_ext=c
36935 ac_cpp='$CPP $CPPFLAGS'
36936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36939
36940
36941 fi
36942 echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36943 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
36944
36945     if test "$wx_cv_func_statfs_decl" = "yes"; then
36946         cat >>confdefs.h <<\_ACEOF
36947 #define HAVE_STATFS_DECL 1
36948 _ACEOF
36949
36950     fi
36951
36952     wx_cv_type_statvfs_t="struct statfs"
36953     cat >>confdefs.h <<\_ACEOF
36954 #define HAVE_STATFS 1
36955 _ACEOF
36956
36957 else
36958     echo "$as_me:$LINENO: checking for statvfs" >&5
36959 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
36960 if test "${wx_cv_func_statvfs+set}" = set; then
36961   echo $ECHO_N "(cached) $ECHO_C" >&6
36962 else
36963   cat >conftest.$ac_ext <<_ACEOF
36964 /* confdefs.h.  */
36965 _ACEOF
36966 cat confdefs.h >>conftest.$ac_ext
36967 cat >>conftest.$ac_ext <<_ACEOF
36968 /* end confdefs.h.  */
36969
36970                 #include <stddef.h>
36971                 #include <sys/statvfs.h>
36972
36973 int
36974 main ()
36975 {
36976
36977                 statvfs("/", NULL);
36978
36979   ;
36980   return 0;
36981 }
36982 _ACEOF
36983 rm -f conftest.$ac_objext
36984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36985   (eval $ac_compile) 2>conftest.er1
36986   ac_status=$?
36987   grep -v '^ *+' conftest.er1 >conftest.err
36988   rm -f conftest.er1
36989   cat conftest.err >&5
36990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36991   (exit $ac_status); } &&
36992          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36994   (eval $ac_try) 2>&5
36995   ac_status=$?
36996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36997   (exit $ac_status); }; } &&
36998          { ac_try='test -s conftest.$ac_objext'
36999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37000   (eval $ac_try) 2>&5
37001   ac_status=$?
37002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37003   (exit $ac_status); }; }; then
37004   wx_cv_func_statvfs=yes
37005 else
37006   echo "$as_me: failed program was:" >&5
37007 sed 's/^/| /' conftest.$ac_ext >&5
37008
37009 wx_cv_func_statvfs=no
37010
37011 fi
37012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37013
37014 fi
37015 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37016 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
37017
37018     if test "$wx_cv_func_statvfs" = "yes"; then
37019                                                                 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
37020 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
37021 if test "${wx_cv_type_statvfs_t+set}" = set; then
37022   echo $ECHO_N "(cached) $ECHO_C" >&6
37023 else
37024   ac_ext=cc
37025 ac_cpp='$CXXCPP $CPPFLAGS'
37026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37029
37030             cat >conftest.$ac_ext <<_ACEOF
37031 /* confdefs.h.  */
37032 _ACEOF
37033 cat confdefs.h >>conftest.$ac_ext
37034 cat >>conftest.$ac_ext <<_ACEOF
37035 /* end confdefs.h.  */
37036
37037                     #include <sys/statvfs.h>
37038
37039 int
37040 main ()
37041 {
37042
37043                     long l;
37044                     statvfs_t fs;
37045                     statvfs("/", &fs);
37046                     l = fs.f_bsize;
37047                     l += fs.f_blocks;
37048                     l += fs.f_bavail;
37049
37050   ;
37051   return 0;
37052 }
37053 _ACEOF
37054 rm -f conftest.$ac_objext
37055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37056   (eval $ac_compile) 2>conftest.er1
37057   ac_status=$?
37058   grep -v '^ *+' conftest.er1 >conftest.err
37059   rm -f conftest.er1
37060   cat conftest.err >&5
37061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37062   (exit $ac_status); } &&
37063          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37065   (eval $ac_try) 2>&5
37066   ac_status=$?
37067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37068   (exit $ac_status); }; } &&
37069          { ac_try='test -s conftest.$ac_objext'
37070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37071   (eval $ac_try) 2>&5
37072   ac_status=$?
37073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37074   (exit $ac_status); }; }; then
37075   wx_cv_type_statvfs_t=statvfs_t
37076 else
37077   echo "$as_me: failed program was:" >&5
37078 sed 's/^/| /' conftest.$ac_ext >&5
37079
37080
37081                     cat >conftest.$ac_ext <<_ACEOF
37082 /* confdefs.h.  */
37083 _ACEOF
37084 cat confdefs.h >>conftest.$ac_ext
37085 cat >>conftest.$ac_ext <<_ACEOF
37086 /* end confdefs.h.  */
37087
37088                             #include <sys/statvfs.h>
37089
37090 int
37091 main ()
37092 {
37093
37094                             long l;
37095                             struct statvfs fs;
37096                             statvfs("/", &fs);
37097                             l = fs.f_bsize;
37098                             l += fs.f_blocks;
37099                             l += fs.f_bavail;
37100
37101   ;
37102   return 0;
37103 }
37104 _ACEOF
37105 rm -f conftest.$ac_objext
37106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37107   (eval $ac_compile) 2>conftest.er1
37108   ac_status=$?
37109   grep -v '^ *+' conftest.er1 >conftest.err
37110   rm -f conftest.er1
37111   cat conftest.err >&5
37112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37113   (exit $ac_status); } &&
37114          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37116   (eval $ac_try) 2>&5
37117   ac_status=$?
37118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37119   (exit $ac_status); }; } &&
37120          { ac_try='test -s conftest.$ac_objext'
37121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37122   (eval $ac_try) 2>&5
37123   ac_status=$?
37124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37125   (exit $ac_status); }; }; then
37126   wx_cv_type_statvfs_t="struct statvfs"
37127 else
37128   echo "$as_me: failed program was:" >&5
37129 sed 's/^/| /' conftest.$ac_ext >&5
37130
37131 wx_cv_type_statvfs_t="unknown"
37132
37133 fi
37134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37135
37136
37137 fi
37138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37139             ac_ext=c
37140 ac_cpp='$CPP $CPPFLAGS'
37141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37144
37145
37146 fi
37147 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37148 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
37149
37150         if test "$wx_cv_type_statvfs_t" != "unknown"; then
37151             cat >>confdefs.h <<\_ACEOF
37152 #define HAVE_STATVFS 1
37153 _ACEOF
37154
37155         fi
37156     else
37157                 wx_cv_type_statvfs_t="unknown"
37158     fi
37159 fi
37160
37161 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37162     cat >>confdefs.h <<_ACEOF
37163 #define WX_STATFS_T $wx_cv_type_statvfs_t
37164 _ACEOF
37165
37166 else
37167     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37168 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37169 fi
37170
37171 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37172
37173
37174 for ac_func in fcntl flock
37175 do
37176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37177 echo "$as_me:$LINENO: checking for $ac_func" >&5
37178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37179 if eval "test \"\${$as_ac_var+set}\" = set"; then
37180   echo $ECHO_N "(cached) $ECHO_C" >&6
37181 else
37182   cat >conftest.$ac_ext <<_ACEOF
37183 /* confdefs.h.  */
37184 _ACEOF
37185 cat confdefs.h >>conftest.$ac_ext
37186 cat >>conftest.$ac_ext <<_ACEOF
37187 /* end confdefs.h.  */
37188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37190 #define $ac_func innocuous_$ac_func
37191
37192 /* System header to define __stub macros and hopefully few prototypes,
37193     which can conflict with char $ac_func (); below.
37194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37195     <limits.h> exists even on freestanding compilers.  */
37196
37197 #ifdef __STDC__
37198 # include <limits.h>
37199 #else
37200 # include <assert.h>
37201 #endif
37202
37203 #undef $ac_func
37204
37205 /* Override any gcc2 internal prototype to avoid an error.  */
37206 #ifdef __cplusplus
37207 extern "C"
37208 {
37209 #endif
37210 /* We use char because int might match the return type of a gcc2
37211    builtin and then its argument prototype would still apply.  */
37212 char $ac_func ();
37213 /* The GNU C library defines this for functions which it implements
37214     to always fail with ENOSYS.  Some functions are actually named
37215     something starting with __ and the normal name is an alias.  */
37216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37217 choke me
37218 #else
37219 char (*f) () = $ac_func;
37220 #endif
37221 #ifdef __cplusplus
37222 }
37223 #endif
37224
37225 int
37226 main ()
37227 {
37228 return f != $ac_func;
37229   ;
37230   return 0;
37231 }
37232 _ACEOF
37233 rm -f conftest.$ac_objext conftest$ac_exeext
37234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37235   (eval $ac_link) 2>conftest.er1
37236   ac_status=$?
37237   grep -v '^ *+' conftest.er1 >conftest.err
37238   rm -f conftest.er1
37239   cat conftest.err >&5
37240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37241   (exit $ac_status); } &&
37242          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37244   (eval $ac_try) 2>&5
37245   ac_status=$?
37246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37247   (exit $ac_status); }; } &&
37248          { ac_try='test -s conftest$ac_exeext'
37249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37250   (eval $ac_try) 2>&5
37251   ac_status=$?
37252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37253   (exit $ac_status); }; }; then
37254   eval "$as_ac_var=yes"
37255 else
37256   echo "$as_me: failed program was:" >&5
37257 sed 's/^/| /' conftest.$ac_ext >&5
37258
37259 eval "$as_ac_var=no"
37260 fi
37261 rm -f conftest.err conftest.$ac_objext \
37262       conftest$ac_exeext conftest.$ac_ext
37263 fi
37264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37266 if test `eval echo '${'$as_ac_var'}'` = yes; then
37267   cat >>confdefs.h <<_ACEOF
37268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37269 _ACEOF
37270  break
37271 fi
37272 done
37273
37274
37275     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37276         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37277 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37278         wxUSE_SNGLINST_CHECKER=no
37279     fi
37280 fi
37281
37282
37283 for ac_func in timegm
37284 do
37285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37286 echo "$as_me:$LINENO: checking for $ac_func" >&5
37287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37288 if eval "test \"\${$as_ac_var+set}\" = set"; then
37289   echo $ECHO_N "(cached) $ECHO_C" >&6
37290 else
37291   cat >conftest.$ac_ext <<_ACEOF
37292 /* confdefs.h.  */
37293 _ACEOF
37294 cat confdefs.h >>conftest.$ac_ext
37295 cat >>conftest.$ac_ext <<_ACEOF
37296 /* end confdefs.h.  */
37297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37298    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37299 #define $ac_func innocuous_$ac_func
37300
37301 /* System header to define __stub macros and hopefully few prototypes,
37302     which can conflict with char $ac_func (); below.
37303     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37304     <limits.h> exists even on freestanding compilers.  */
37305
37306 #ifdef __STDC__
37307 # include <limits.h>
37308 #else
37309 # include <assert.h>
37310 #endif
37311
37312 #undef $ac_func
37313
37314 /* Override any gcc2 internal prototype to avoid an error.  */
37315 #ifdef __cplusplus
37316 extern "C"
37317 {
37318 #endif
37319 /* We use char because int might match the return type of a gcc2
37320    builtin and then its argument prototype would still apply.  */
37321 char $ac_func ();
37322 /* The GNU C library defines this for functions which it implements
37323     to always fail with ENOSYS.  Some functions are actually named
37324     something starting with __ and the normal name is an alias.  */
37325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37326 choke me
37327 #else
37328 char (*f) () = $ac_func;
37329 #endif
37330 #ifdef __cplusplus
37331 }
37332 #endif
37333
37334 int
37335 main ()
37336 {
37337 return f != $ac_func;
37338   ;
37339   return 0;
37340 }
37341 _ACEOF
37342 rm -f conftest.$ac_objext conftest$ac_exeext
37343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37344   (eval $ac_link) 2>conftest.er1
37345   ac_status=$?
37346   grep -v '^ *+' conftest.er1 >conftest.err
37347   rm -f conftest.er1
37348   cat conftest.err >&5
37349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37350   (exit $ac_status); } &&
37351          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37353   (eval $ac_try) 2>&5
37354   ac_status=$?
37355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37356   (exit $ac_status); }; } &&
37357          { ac_try='test -s conftest$ac_exeext'
37358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37359   (eval $ac_try) 2>&5
37360   ac_status=$?
37361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37362   (exit $ac_status); }; }; then
37363   eval "$as_ac_var=yes"
37364 else
37365   echo "$as_me: failed program was:" >&5
37366 sed 's/^/| /' conftest.$ac_ext >&5
37367
37368 eval "$as_ac_var=no"
37369 fi
37370 rm -f conftest.err conftest.$ac_objext \
37371       conftest$ac_exeext conftest.$ac_ext
37372 fi
37373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37375 if test `eval echo '${'$as_ac_var'}'` = yes; then
37376   cat >>confdefs.h <<_ACEOF
37377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37378 _ACEOF
37379
37380 fi
37381 done
37382
37383
37384
37385
37386 for ac_func in putenv setenv
37387 do
37388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37389 echo "$as_me:$LINENO: checking for $ac_func" >&5
37390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37391 if eval "test \"\${$as_ac_var+set}\" = set"; then
37392   echo $ECHO_N "(cached) $ECHO_C" >&6
37393 else
37394   cat >conftest.$ac_ext <<_ACEOF
37395 /* confdefs.h.  */
37396 _ACEOF
37397 cat confdefs.h >>conftest.$ac_ext
37398 cat >>conftest.$ac_ext <<_ACEOF
37399 /* end confdefs.h.  */
37400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37401    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37402 #define $ac_func innocuous_$ac_func
37403
37404 /* System header to define __stub macros and hopefully few prototypes,
37405     which can conflict with char $ac_func (); below.
37406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37407     <limits.h> exists even on freestanding compilers.  */
37408
37409 #ifdef __STDC__
37410 # include <limits.h>
37411 #else
37412 # include <assert.h>
37413 #endif
37414
37415 #undef $ac_func
37416
37417 /* Override any gcc2 internal prototype to avoid an error.  */
37418 #ifdef __cplusplus
37419 extern "C"
37420 {
37421 #endif
37422 /* We use char because int might match the return type of a gcc2
37423    builtin and then its argument prototype would still apply.  */
37424 char $ac_func ();
37425 /* The GNU C library defines this for functions which it implements
37426     to always fail with ENOSYS.  Some functions are actually named
37427     something starting with __ and the normal name is an alias.  */
37428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37429 choke me
37430 #else
37431 char (*f) () = $ac_func;
37432 #endif
37433 #ifdef __cplusplus
37434 }
37435 #endif
37436
37437 int
37438 main ()
37439 {
37440 return f != $ac_func;
37441   ;
37442   return 0;
37443 }
37444 _ACEOF
37445 rm -f conftest.$ac_objext conftest$ac_exeext
37446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37447   (eval $ac_link) 2>conftest.er1
37448   ac_status=$?
37449   grep -v '^ *+' conftest.er1 >conftest.err
37450   rm -f conftest.er1
37451   cat conftest.err >&5
37452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453   (exit $ac_status); } &&
37454          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37456   (eval $ac_try) 2>&5
37457   ac_status=$?
37458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459   (exit $ac_status); }; } &&
37460          { ac_try='test -s conftest$ac_exeext'
37461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37462   (eval $ac_try) 2>&5
37463   ac_status=$?
37464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37465   (exit $ac_status); }; }; then
37466   eval "$as_ac_var=yes"
37467 else
37468   echo "$as_me: failed program was:" >&5
37469 sed 's/^/| /' conftest.$ac_ext >&5
37470
37471 eval "$as_ac_var=no"
37472 fi
37473 rm -f conftest.err conftest.$ac_objext \
37474       conftest$ac_exeext conftest.$ac_ext
37475 fi
37476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37478 if test `eval echo '${'$as_ac_var'}'` = yes; then
37479   cat >>confdefs.h <<_ACEOF
37480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37481 _ACEOF
37482  break
37483 fi
37484 done
37485
37486
37487 HAVE_SOME_SLEEP_FUNC=0
37488 if test "$USE_BEOS" = 1; then
37489             cat >>confdefs.h <<\_ACEOF
37490 #define HAVE_SLEEP 1
37491 _ACEOF
37492
37493     HAVE_SOME_SLEEP_FUNC=1
37494 fi
37495
37496 if test "$USE_DARWIN" = 1; then
37497             cat >>confdefs.h <<\_ACEOF
37498 #define HAVE_USLEEP 1
37499 _ACEOF
37500
37501     HAVE_SOME_SLEEP_FUNC=1
37502 fi
37503
37504 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37505         POSIX4_LINK=
37506
37507 for ac_func in nanosleep
37508 do
37509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37510 echo "$as_me:$LINENO: checking for $ac_func" >&5
37511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37512 if eval "test \"\${$as_ac_var+set}\" = set"; then
37513   echo $ECHO_N "(cached) $ECHO_C" >&6
37514 else
37515   cat >conftest.$ac_ext <<_ACEOF
37516 /* confdefs.h.  */
37517 _ACEOF
37518 cat confdefs.h >>conftest.$ac_ext
37519 cat >>conftest.$ac_ext <<_ACEOF
37520 /* end confdefs.h.  */
37521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37523 #define $ac_func innocuous_$ac_func
37524
37525 /* System header to define __stub macros and hopefully few prototypes,
37526     which can conflict with char $ac_func (); below.
37527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37528     <limits.h> exists even on freestanding compilers.  */
37529
37530 #ifdef __STDC__
37531 # include <limits.h>
37532 #else
37533 # include <assert.h>
37534 #endif
37535
37536 #undef $ac_func
37537
37538 /* Override any gcc2 internal prototype to avoid an error.  */
37539 #ifdef __cplusplus
37540 extern "C"
37541 {
37542 #endif
37543 /* We use char because int might match the return type of a gcc2
37544    builtin and then its argument prototype would still apply.  */
37545 char $ac_func ();
37546 /* The GNU C library defines this for functions which it implements
37547     to always fail with ENOSYS.  Some functions are actually named
37548     something starting with __ and the normal name is an alias.  */
37549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37550 choke me
37551 #else
37552 char (*f) () = $ac_func;
37553 #endif
37554 #ifdef __cplusplus
37555 }
37556 #endif
37557
37558 int
37559 main ()
37560 {
37561 return f != $ac_func;
37562   ;
37563   return 0;
37564 }
37565 _ACEOF
37566 rm -f conftest.$ac_objext conftest$ac_exeext
37567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37568   (eval $ac_link) 2>conftest.er1
37569   ac_status=$?
37570   grep -v '^ *+' conftest.er1 >conftest.err
37571   rm -f conftest.er1
37572   cat conftest.err >&5
37573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37574   (exit $ac_status); } &&
37575          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37577   (eval $ac_try) 2>&5
37578   ac_status=$?
37579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37580   (exit $ac_status); }; } &&
37581          { ac_try='test -s conftest$ac_exeext'
37582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37583   (eval $ac_try) 2>&5
37584   ac_status=$?
37585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37586   (exit $ac_status); }; }; then
37587   eval "$as_ac_var=yes"
37588 else
37589   echo "$as_me: failed program was:" >&5
37590 sed 's/^/| /' conftest.$ac_ext >&5
37591
37592 eval "$as_ac_var=no"
37593 fi
37594 rm -f conftest.err conftest.$ac_objext \
37595       conftest$ac_exeext conftest.$ac_ext
37596 fi
37597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37599 if test `eval echo '${'$as_ac_var'}'` = yes; then
37600   cat >>confdefs.h <<_ACEOF
37601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37602 _ACEOF
37603  cat >>confdefs.h <<\_ACEOF
37604 #define HAVE_NANOSLEEP 1
37605 _ACEOF
37606
37607 else
37608
37609             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37610 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
37611 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37612   echo $ECHO_N "(cached) $ECHO_C" >&6
37613 else
37614   ac_check_lib_save_LIBS=$LIBS
37615 LIBS="-lposix4  $LIBS"
37616 cat >conftest.$ac_ext <<_ACEOF
37617 /* confdefs.h.  */
37618 _ACEOF
37619 cat confdefs.h >>conftest.$ac_ext
37620 cat >>conftest.$ac_ext <<_ACEOF
37621 /* end confdefs.h.  */
37622
37623 /* Override any gcc2 internal prototype to avoid an error.  */
37624 #ifdef __cplusplus
37625 extern "C"
37626 #endif
37627 /* We use char because int might match the return type of a gcc2
37628    builtin and then its argument prototype would still apply.  */
37629 char nanosleep ();
37630 int
37631 main ()
37632 {
37633 nanosleep ();
37634   ;
37635   return 0;
37636 }
37637 _ACEOF
37638 rm -f conftest.$ac_objext conftest$ac_exeext
37639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37649   (eval $ac_try) 2>&5
37650   ac_status=$?
37651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37652   (exit $ac_status); }; } &&
37653          { ac_try='test -s conftest$ac_exeext'
37654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37655   (eval $ac_try) 2>&5
37656   ac_status=$?
37657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37658   (exit $ac_status); }; }; then
37659   ac_cv_lib_posix4_nanosleep=yes
37660 else
37661   echo "$as_me: failed program was:" >&5
37662 sed 's/^/| /' conftest.$ac_ext >&5
37663
37664 ac_cv_lib_posix4_nanosleep=no
37665 fi
37666 rm -f conftest.err conftest.$ac_objext \
37667       conftest$ac_exeext conftest.$ac_ext
37668 LIBS=$ac_check_lib_save_LIBS
37669 fi
37670 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37671 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
37672 if test $ac_cv_lib_posix4_nanosleep = yes; then
37673
37674                     cat >>confdefs.h <<\_ACEOF
37675 #define HAVE_NANOSLEEP 1
37676 _ACEOF
37677
37678                     POSIX4_LINK=" -lposix4"
37679
37680 else
37681
37682
37683   for wx_func in usleep
37684   do
37685     echo "$as_me:$LINENO: checking for $wx_func" >&5
37686 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37687 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
37688   echo $ECHO_N "(cached) $ECHO_C" >&6
37689 else
37690
37691         cat >conftest.$ac_ext <<_ACEOF
37692
37693             /* confdefs.h.  */
37694 _ACEOF
37695 cat confdefs.h >>conftest.$ac_ext
37696 cat >>conftest.$ac_ext <<_ACEOF
37697 /* end confdefs.h.  */
37698
37699
37700                 $ac_includes_default
37701
37702 int
37703 main ()
37704 {
37705
37706                 #ifndef $wx_func
37707                   &$wx_func;
37708                 #endif
37709
37710
37711   ;
37712   return 0;
37713 }
37714
37715 _ACEOF
37716 rm -f conftest.$ac_objext conftest$ac_exeext
37717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37718   (eval $ac_link) 2>conftest.er1
37719   ac_status=$?
37720   grep -v '^ *+' conftest.er1 >conftest.err
37721   rm -f conftest.er1
37722   cat conftest.err >&5
37723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37724   (exit $ac_status); } &&
37725          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37727   (eval $ac_try) 2>&5
37728   ac_status=$?
37729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37730   (exit $ac_status); }; } &&
37731          { ac_try='test -s conftest$ac_exeext'
37732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37733   (eval $ac_try) 2>&5
37734   ac_status=$?
37735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37736   (exit $ac_status); }; }; then
37737   eval wx_cv_func_$wx_func=yes
37738 else
37739   echo "$as_me: failed program was:" >&5
37740 sed 's/^/| /' conftest.$ac_ext >&5
37741
37742 eval wx_cv_func_$wx_func=no
37743 fi
37744 rm -f conftest.err conftest.$ac_objext \
37745       conftest$ac_exeext conftest.$ac_ext
37746
37747 fi
37748 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
37749 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
37750
37751     if eval test \$wx_cv_func_$wx_func = yes
37752     then
37753       cat >>confdefs.h <<_ACEOF
37754 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
37755 _ACEOF
37756
37757
37758     else
37759       :
37760       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37761 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37762
37763     fi
37764   done
37765
37766
37767
37768 fi
37769
37770
37771
37772 fi
37773 done
37774
37775 fi
37776
37777
37778   for wx_func in uname
37779   do
37780     echo "$as_me:$LINENO: checking for $wx_func" >&5
37781 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37782 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
37783   echo $ECHO_N "(cached) $ECHO_C" >&6
37784 else
37785
37786         cat >conftest.$ac_ext <<_ACEOF
37787
37788             /* confdefs.h.  */
37789 _ACEOF
37790 cat confdefs.h >>conftest.$ac_ext
37791 cat >>conftest.$ac_ext <<_ACEOF
37792 /* end confdefs.h.  */
37793
37794                 #include <sys/utsname.h>
37795                 $ac_includes_default
37796
37797 int
37798 main ()
37799 {
37800
37801                 #ifndef $wx_func
37802                   &$wx_func;
37803                 #endif
37804
37805
37806   ;
37807   return 0;
37808 }
37809
37810 _ACEOF
37811 rm -f conftest.$ac_objext conftest$ac_exeext
37812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37813   (eval $ac_link) 2>conftest.er1
37814   ac_status=$?
37815   grep -v '^ *+' conftest.er1 >conftest.err
37816   rm -f conftest.er1
37817   cat conftest.err >&5
37818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37819   (exit $ac_status); } &&
37820          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37822   (eval $ac_try) 2>&5
37823   ac_status=$?
37824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37825   (exit $ac_status); }; } &&
37826          { ac_try='test -s conftest$ac_exeext'
37827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37828   (eval $ac_try) 2>&5
37829   ac_status=$?
37830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37831   (exit $ac_status); }; }; then
37832   eval wx_cv_func_$wx_func=yes
37833 else
37834   echo "$as_me: failed program was:" >&5
37835 sed 's/^/| /' conftest.$ac_ext >&5
37836
37837 eval wx_cv_func_$wx_func=no
37838 fi
37839 rm -f conftest.err conftest.$ac_objext \
37840       conftest$ac_exeext conftest.$ac_ext
37841
37842 fi
37843 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
37844 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
37845
37846     if eval test \$wx_cv_func_$wx_func = yes
37847     then
37848       cat >>confdefs.h <<_ACEOF
37849 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
37850 _ACEOF
37851
37852
37853     else
37854       :
37855
37856     fi
37857   done
37858
37859 if test "$wx_cv_func_uname" != yes; then
37860
37861   for wx_func in gethostname
37862   do
37863     echo "$as_me:$LINENO: checking for $wx_func" >&5
37864 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37865 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
37866   echo $ECHO_N "(cached) $ECHO_C" >&6
37867 else
37868
37869         cat >conftest.$ac_ext <<_ACEOF
37870
37871             /* confdefs.h.  */
37872 _ACEOF
37873 cat confdefs.h >>conftest.$ac_ext
37874 cat >>conftest.$ac_ext <<_ACEOF
37875 /* end confdefs.h.  */
37876
37877
37878                 $ac_includes_default
37879
37880 int
37881 main ()
37882 {
37883
37884                 #ifndef $wx_func
37885                   &$wx_func;
37886                 #endif
37887
37888
37889   ;
37890   return 0;
37891 }
37892
37893 _ACEOF
37894 rm -f conftest.$ac_objext conftest$ac_exeext
37895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37896   (eval $ac_link) 2>conftest.er1
37897   ac_status=$?
37898   grep -v '^ *+' conftest.er1 >conftest.err
37899   rm -f conftest.er1
37900   cat conftest.err >&5
37901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37902   (exit $ac_status); } &&
37903          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37905   (eval $ac_try) 2>&5
37906   ac_status=$?
37907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37908   (exit $ac_status); }; } &&
37909          { ac_try='test -s conftest$ac_exeext'
37910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37911   (eval $ac_try) 2>&5
37912   ac_status=$?
37913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37914   (exit $ac_status); }; }; then
37915   eval wx_cv_func_$wx_func=yes
37916 else
37917   echo "$as_me: failed program was:" >&5
37918 sed 's/^/| /' conftest.$ac_ext >&5
37919
37920 eval wx_cv_func_$wx_func=no
37921 fi
37922 rm -f conftest.err conftest.$ac_objext \
37923       conftest$ac_exeext conftest.$ac_ext
37924
37925 fi
37926 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
37927 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
37928
37929     if eval test \$wx_cv_func_$wx_func = yes
37930     then
37931       cat >>confdefs.h <<_ACEOF
37932 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
37933 _ACEOF
37934
37935
37936     else
37937       :
37938
37939     fi
37940   done
37941
37942 fi
37943
37944
37945   for wx_func in strtok_r
37946   do
37947     echo "$as_me:$LINENO: checking for $wx_func" >&5
37948 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37949 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
37950   echo $ECHO_N "(cached) $ECHO_C" >&6
37951 else
37952
37953         cat >conftest.$ac_ext <<_ACEOF
37954
37955             /* confdefs.h.  */
37956 _ACEOF
37957 cat confdefs.h >>conftest.$ac_ext
37958 cat >>conftest.$ac_ext <<_ACEOF
37959 /* end confdefs.h.  */
37960
37961                 #define _REENTRANT
37962                 $ac_includes_default
37963
37964 int
37965 main ()
37966 {
37967
37968                 #ifndef $wx_func
37969                   &$wx_func;
37970                 #endif
37971
37972
37973   ;
37974   return 0;
37975 }
37976
37977 _ACEOF
37978 rm -f conftest.$ac_objext conftest$ac_exeext
37979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37980   (eval $ac_link) 2>conftest.er1
37981   ac_status=$?
37982   grep -v '^ *+' conftest.er1 >conftest.err
37983   rm -f conftest.er1
37984   cat conftest.err >&5
37985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37986   (exit $ac_status); } &&
37987          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37989   (eval $ac_try) 2>&5
37990   ac_status=$?
37991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37992   (exit $ac_status); }; } &&
37993          { ac_try='test -s conftest$ac_exeext'
37994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37995   (eval $ac_try) 2>&5
37996   ac_status=$?
37997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37998   (exit $ac_status); }; }; then
37999   eval wx_cv_func_$wx_func=yes
38000 else
38001   echo "$as_me: failed program was:" >&5
38002 sed 's/^/| /' conftest.$ac_ext >&5
38003
38004 eval wx_cv_func_$wx_func=no
38005 fi
38006 rm -f conftest.err conftest.$ac_objext \
38007       conftest$ac_exeext conftest.$ac_ext
38008
38009 fi
38010 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38011 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
38012
38013     if eval test \$wx_cv_func_$wx_func = yes
38014     then
38015       cat >>confdefs.h <<_ACEOF
38016 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38017 _ACEOF
38018
38019
38020     else
38021       :
38022
38023     fi
38024   done
38025
38026
38027 INET_LINK=
38028
38029 for ac_func in inet_addr
38030 do
38031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38032 echo "$as_me:$LINENO: checking for $ac_func" >&5
38033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38034 if eval "test \"\${$as_ac_var+set}\" = set"; then
38035   echo $ECHO_N "(cached) $ECHO_C" >&6
38036 else
38037   cat >conftest.$ac_ext <<_ACEOF
38038 /* confdefs.h.  */
38039 _ACEOF
38040 cat confdefs.h >>conftest.$ac_ext
38041 cat >>conftest.$ac_ext <<_ACEOF
38042 /* end confdefs.h.  */
38043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38044    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38045 #define $ac_func innocuous_$ac_func
38046
38047 /* System header to define __stub macros and hopefully few prototypes,
38048     which can conflict with char $ac_func (); below.
38049     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38050     <limits.h> exists even on freestanding compilers.  */
38051
38052 #ifdef __STDC__
38053 # include <limits.h>
38054 #else
38055 # include <assert.h>
38056 #endif
38057
38058 #undef $ac_func
38059
38060 /* Override any gcc2 internal prototype to avoid an error.  */
38061 #ifdef __cplusplus
38062 extern "C"
38063 {
38064 #endif
38065 /* We use char because int might match the return type of a gcc2
38066    builtin and then its argument prototype would still apply.  */
38067 char $ac_func ();
38068 /* The GNU C library defines this for functions which it implements
38069     to always fail with ENOSYS.  Some functions are actually named
38070     something starting with __ and the normal name is an alias.  */
38071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38072 choke me
38073 #else
38074 char (*f) () = $ac_func;
38075 #endif
38076 #ifdef __cplusplus
38077 }
38078 #endif
38079
38080 int
38081 main ()
38082 {
38083 return f != $ac_func;
38084   ;
38085   return 0;
38086 }
38087 _ACEOF
38088 rm -f conftest.$ac_objext conftest$ac_exeext
38089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38090   (eval $ac_link) 2>conftest.er1
38091   ac_status=$?
38092   grep -v '^ *+' conftest.er1 >conftest.err
38093   rm -f conftest.er1
38094   cat conftest.err >&5
38095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38096   (exit $ac_status); } &&
38097          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38099   (eval $ac_try) 2>&5
38100   ac_status=$?
38101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38102   (exit $ac_status); }; } &&
38103          { ac_try='test -s conftest$ac_exeext'
38104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38105   (eval $ac_try) 2>&5
38106   ac_status=$?
38107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38108   (exit $ac_status); }; }; then
38109   eval "$as_ac_var=yes"
38110 else
38111   echo "$as_me: failed program was:" >&5
38112 sed 's/^/| /' conftest.$ac_ext >&5
38113
38114 eval "$as_ac_var=no"
38115 fi
38116 rm -f conftest.err conftest.$ac_objext \
38117       conftest$ac_exeext conftest.$ac_ext
38118 fi
38119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38121 if test `eval echo '${'$as_ac_var'}'` = yes; then
38122   cat >>confdefs.h <<_ACEOF
38123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38124 _ACEOF
38125  cat >>confdefs.h <<\_ACEOF
38126 #define HAVE_INET_ADDR 1
38127 _ACEOF
38128
38129 else
38130
38131         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38132 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
38133 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38134   echo $ECHO_N "(cached) $ECHO_C" >&6
38135 else
38136   ac_check_lib_save_LIBS=$LIBS
38137 LIBS="-lnsl  $LIBS"
38138 cat >conftest.$ac_ext <<_ACEOF
38139 /* confdefs.h.  */
38140 _ACEOF
38141 cat confdefs.h >>conftest.$ac_ext
38142 cat >>conftest.$ac_ext <<_ACEOF
38143 /* end confdefs.h.  */
38144
38145 /* Override any gcc2 internal prototype to avoid an error.  */
38146 #ifdef __cplusplus
38147 extern "C"
38148 #endif
38149 /* We use char because int might match the return type of a gcc2
38150    builtin and then its argument prototype would still apply.  */
38151 char inet_addr ();
38152 int
38153 main ()
38154 {
38155 inet_addr ();
38156   ;
38157   return 0;
38158 }
38159 _ACEOF
38160 rm -f conftest.$ac_objext conftest$ac_exeext
38161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38162   (eval $ac_link) 2>conftest.er1
38163   ac_status=$?
38164   grep -v '^ *+' conftest.er1 >conftest.err
38165   rm -f conftest.er1
38166   cat conftest.err >&5
38167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38168   (exit $ac_status); } &&
38169          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38171   (eval $ac_try) 2>&5
38172   ac_status=$?
38173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38174   (exit $ac_status); }; } &&
38175          { ac_try='test -s conftest$ac_exeext'
38176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38177   (eval $ac_try) 2>&5
38178   ac_status=$?
38179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38180   (exit $ac_status); }; }; then
38181   ac_cv_lib_nsl_inet_addr=yes
38182 else
38183   echo "$as_me: failed program was:" >&5
38184 sed 's/^/| /' conftest.$ac_ext >&5
38185
38186 ac_cv_lib_nsl_inet_addr=no
38187 fi
38188 rm -f conftest.err conftest.$ac_objext \
38189       conftest$ac_exeext conftest.$ac_ext
38190 LIBS=$ac_check_lib_save_LIBS
38191 fi
38192 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38193 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
38194 if test $ac_cv_lib_nsl_inet_addr = yes; then
38195   INET_LINK="nsl"
38196 else
38197
38198                 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38199 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
38200 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38201   echo $ECHO_N "(cached) $ECHO_C" >&6
38202 else
38203   ac_check_lib_save_LIBS=$LIBS
38204 LIBS="-lresolv  $LIBS"
38205 cat >conftest.$ac_ext <<_ACEOF
38206 /* confdefs.h.  */
38207 _ACEOF
38208 cat confdefs.h >>conftest.$ac_ext
38209 cat >>conftest.$ac_ext <<_ACEOF
38210 /* end confdefs.h.  */
38211
38212 /* Override any gcc2 internal prototype to avoid an error.  */
38213 #ifdef __cplusplus
38214 extern "C"
38215 #endif
38216 /* We use char because int might match the return type of a gcc2
38217    builtin and then its argument prototype would still apply.  */
38218 char inet_addr ();
38219 int
38220 main ()
38221 {
38222 inet_addr ();
38223   ;
38224   return 0;
38225 }
38226 _ACEOF
38227 rm -f conftest.$ac_objext conftest$ac_exeext
38228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38229   (eval $ac_link) 2>conftest.er1
38230   ac_status=$?
38231   grep -v '^ *+' conftest.er1 >conftest.err
38232   rm -f conftest.er1
38233   cat conftest.err >&5
38234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38235   (exit $ac_status); } &&
38236          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38238   (eval $ac_try) 2>&5
38239   ac_status=$?
38240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38241   (exit $ac_status); }; } &&
38242          { ac_try='test -s conftest$ac_exeext'
38243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38244   (eval $ac_try) 2>&5
38245   ac_status=$?
38246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38247   (exit $ac_status); }; }; then
38248   ac_cv_lib_resolv_inet_addr=yes
38249 else
38250   echo "$as_me: failed program was:" >&5
38251 sed 's/^/| /' conftest.$ac_ext >&5
38252
38253 ac_cv_lib_resolv_inet_addr=no
38254 fi
38255 rm -f conftest.err conftest.$ac_objext \
38256       conftest$ac_exeext conftest.$ac_ext
38257 LIBS=$ac_check_lib_save_LIBS
38258 fi
38259 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38260 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
38261 if test $ac_cv_lib_resolv_inet_addr = yes; then
38262   INET_LINK="resolv"
38263 else
38264
38265                         echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38266 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
38267 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38268   echo $ECHO_N "(cached) $ECHO_C" >&6
38269 else
38270   ac_check_lib_save_LIBS=$LIBS
38271 LIBS="-lsocket  $LIBS"
38272 cat >conftest.$ac_ext <<_ACEOF
38273 /* confdefs.h.  */
38274 _ACEOF
38275 cat confdefs.h >>conftest.$ac_ext
38276 cat >>conftest.$ac_ext <<_ACEOF
38277 /* end confdefs.h.  */
38278
38279 /* Override any gcc2 internal prototype to avoid an error.  */
38280 #ifdef __cplusplus
38281 extern "C"
38282 #endif
38283 /* We use char because int might match the return type of a gcc2
38284    builtin and then its argument prototype would still apply.  */
38285 char inet_addr ();
38286 int
38287 main ()
38288 {
38289 inet_addr ();
38290   ;
38291   return 0;
38292 }
38293 _ACEOF
38294 rm -f conftest.$ac_objext conftest$ac_exeext
38295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38296   (eval $ac_link) 2>conftest.er1
38297   ac_status=$?
38298   grep -v '^ *+' conftest.er1 >conftest.err
38299   rm -f conftest.er1
38300   cat conftest.err >&5
38301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38302   (exit $ac_status); } &&
38303          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38305   (eval $ac_try) 2>&5
38306   ac_status=$?
38307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38308   (exit $ac_status); }; } &&
38309          { ac_try='test -s conftest$ac_exeext'
38310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38311   (eval $ac_try) 2>&5
38312   ac_status=$?
38313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38314   (exit $ac_status); }; }; then
38315   ac_cv_lib_socket_inet_addr=yes
38316 else
38317   echo "$as_me: failed program was:" >&5
38318 sed 's/^/| /' conftest.$ac_ext >&5
38319
38320 ac_cv_lib_socket_inet_addr=no
38321 fi
38322 rm -f conftest.err conftest.$ac_objext \
38323       conftest$ac_exeext conftest.$ac_ext
38324 LIBS=$ac_check_lib_save_LIBS
38325 fi
38326 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38327 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
38328 if test $ac_cv_lib_socket_inet_addr = yes; then
38329   INET_LINK="socket"
38330
38331 fi
38332
38333
38334
38335 fi
38336
38337
38338
38339 fi
38340
38341
38342
38343 fi
38344 done
38345
38346
38347
38348 for ac_func in inet_aton
38349 do
38350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38351 echo "$as_me:$LINENO: checking for $ac_func" >&5
38352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38353 if eval "test \"\${$as_ac_var+set}\" = set"; then
38354   echo $ECHO_N "(cached) $ECHO_C" >&6
38355 else
38356   cat >conftest.$ac_ext <<_ACEOF
38357 /* confdefs.h.  */
38358 _ACEOF
38359 cat confdefs.h >>conftest.$ac_ext
38360 cat >>conftest.$ac_ext <<_ACEOF
38361 /* end confdefs.h.  */
38362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38363    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38364 #define $ac_func innocuous_$ac_func
38365
38366 /* System header to define __stub macros and hopefully few prototypes,
38367     which can conflict with char $ac_func (); below.
38368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38369     <limits.h> exists even on freestanding compilers.  */
38370
38371 #ifdef __STDC__
38372 # include <limits.h>
38373 #else
38374 # include <assert.h>
38375 #endif
38376
38377 #undef $ac_func
38378
38379 /* Override any gcc2 internal prototype to avoid an error.  */
38380 #ifdef __cplusplus
38381 extern "C"
38382 {
38383 #endif
38384 /* We use char because int might match the return type of a gcc2
38385    builtin and then its argument prototype would still apply.  */
38386 char $ac_func ();
38387 /* The GNU C library defines this for functions which it implements
38388     to always fail with ENOSYS.  Some functions are actually named
38389     something starting with __ and the normal name is an alias.  */
38390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38391 choke me
38392 #else
38393 char (*f) () = $ac_func;
38394 #endif
38395 #ifdef __cplusplus
38396 }
38397 #endif
38398
38399 int
38400 main ()
38401 {
38402 return f != $ac_func;
38403   ;
38404   return 0;
38405 }
38406 _ACEOF
38407 rm -f conftest.$ac_objext conftest$ac_exeext
38408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38409   (eval $ac_link) 2>conftest.er1
38410   ac_status=$?
38411   grep -v '^ *+' conftest.er1 >conftest.err
38412   rm -f conftest.er1
38413   cat conftest.err >&5
38414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38415   (exit $ac_status); } &&
38416          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38418   (eval $ac_try) 2>&5
38419   ac_status=$?
38420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38421   (exit $ac_status); }; } &&
38422          { ac_try='test -s conftest$ac_exeext'
38423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38424   (eval $ac_try) 2>&5
38425   ac_status=$?
38426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38427   (exit $ac_status); }; }; then
38428   eval "$as_ac_var=yes"
38429 else
38430   echo "$as_me: failed program was:" >&5
38431 sed 's/^/| /' conftest.$ac_ext >&5
38432
38433 eval "$as_ac_var=no"
38434 fi
38435 rm -f conftest.err conftest.$ac_objext \
38436       conftest$ac_exeext conftest.$ac_ext
38437 fi
38438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38440 if test `eval echo '${'$as_ac_var'}'` = yes; then
38441   cat >>confdefs.h <<_ACEOF
38442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38443 _ACEOF
38444  cat >>confdefs.h <<\_ACEOF
38445 #define HAVE_INET_ATON 1
38446 _ACEOF
38447
38448 else
38449
38450                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38451 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38452 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
38453 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
38454   echo $ECHO_N "(cached) $ECHO_C" >&6
38455 else
38456   ac_check_lib_save_LIBS=$LIBS
38457 LIBS="-l$INET_LINK  $LIBS"
38458 cat >conftest.$ac_ext <<_ACEOF
38459 /* confdefs.h.  */
38460 _ACEOF
38461 cat confdefs.h >>conftest.$ac_ext
38462 cat >>conftest.$ac_ext <<_ACEOF
38463 /* end confdefs.h.  */
38464
38465 /* Override any gcc2 internal prototype to avoid an error.  */
38466 #ifdef __cplusplus
38467 extern "C"
38468 #endif
38469 /* We use char because int might match the return type of a gcc2
38470    builtin and then its argument prototype would still apply.  */
38471 char inet_aton ();
38472 int
38473 main ()
38474 {
38475 inet_aton ();
38476   ;
38477   return 0;
38478 }
38479 _ACEOF
38480 rm -f conftest.$ac_objext conftest$ac_exeext
38481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38482   (eval $ac_link) 2>conftest.er1
38483   ac_status=$?
38484   grep -v '^ *+' conftest.er1 >conftest.err
38485   rm -f conftest.er1
38486   cat conftest.err >&5
38487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38488   (exit $ac_status); } &&
38489          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38491   (eval $ac_try) 2>&5
38492   ac_status=$?
38493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38494   (exit $ac_status); }; } &&
38495          { ac_try='test -s conftest$ac_exeext'
38496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38497   (eval $ac_try) 2>&5
38498   ac_status=$?
38499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38500   (exit $ac_status); }; }; then
38501   eval "$as_ac_Lib=yes"
38502 else
38503   echo "$as_me: failed program was:" >&5
38504 sed 's/^/| /' conftest.$ac_ext >&5
38505
38506 eval "$as_ac_Lib=no"
38507 fi
38508 rm -f conftest.err conftest.$ac_objext \
38509       conftest$ac_exeext conftest.$ac_ext
38510 LIBS=$ac_check_lib_save_LIBS
38511 fi
38512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
38513 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
38514 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38515   cat >>confdefs.h <<\_ACEOF
38516 #define HAVE_INET_ATON 1
38517 _ACEOF
38518
38519 fi
38520
38521
38522 fi
38523 done
38524
38525
38526 if test "x$INET_LINK" != "x"; then
38527     cat >>confdefs.h <<\_ACEOF
38528 #define HAVE_INET_ADDR 1
38529 _ACEOF
38530
38531     INET_LINK=" -l$INET_LINK"
38532 fi
38533
38534
38535   for wx_func in fdopen
38536   do
38537     echo "$as_me:$LINENO: checking for $wx_func" >&5
38538 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38539 if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
38540   echo $ECHO_N "(cached) $ECHO_C" >&6
38541 else
38542
38543         cat >conftest.$ac_ext <<_ACEOF
38544
38545             /* confdefs.h.  */
38546 _ACEOF
38547 cat confdefs.h >>conftest.$ac_ext
38548 cat >>conftest.$ac_ext <<_ACEOF
38549 /* end confdefs.h.  */
38550
38551
38552                 $ac_includes_default
38553
38554 int
38555 main ()
38556 {
38557
38558                 #ifndef $wx_func
38559                   &$wx_func;
38560                 #endif
38561
38562
38563   ;
38564   return 0;
38565 }
38566
38567 _ACEOF
38568 rm -f conftest.$ac_objext conftest$ac_exeext
38569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38570   (eval $ac_link) 2>conftest.er1
38571   ac_status=$?
38572   grep -v '^ *+' conftest.er1 >conftest.err
38573   rm -f conftest.er1
38574   cat conftest.err >&5
38575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38576   (exit $ac_status); } &&
38577          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38579   (eval $ac_try) 2>&5
38580   ac_status=$?
38581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38582   (exit $ac_status); }; } &&
38583          { ac_try='test -s conftest$ac_exeext'
38584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38585   (eval $ac_try) 2>&5
38586   ac_status=$?
38587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38588   (exit $ac_status); }; }; then
38589   eval wx_cv_func_$wx_func=yes
38590 else
38591   echo "$as_me: failed program was:" >&5
38592 sed 's/^/| /' conftest.$ac_ext >&5
38593
38594 eval wx_cv_func_$wx_func=no
38595 fi
38596 rm -f conftest.err conftest.$ac_objext \
38597       conftest$ac_exeext conftest.$ac_ext
38598
38599 fi
38600 echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38601 echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
38602
38603     if eval test \$wx_cv_func_$wx_func = yes
38604     then
38605       cat >>confdefs.h <<_ACEOF
38606 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38607 _ACEOF
38608
38609
38610     else
38611       :
38612
38613     fi
38614   done
38615
38616
38617 fi
38618
38619
38620
38621
38622 EXTRALIBS_ESD=
38623 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
38624 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
38625 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
38626   echo $ECHO_N "(cached) $ECHO_C" >&6
38627 else
38628   ac_check_lib_save_LIBS=$LIBS
38629 LIBS="-lesd  $LIBS"
38630 cat >conftest.$ac_ext <<_ACEOF
38631 /* confdefs.h.  */
38632 _ACEOF
38633 cat confdefs.h >>conftest.$ac_ext
38634 cat >>conftest.$ac_ext <<_ACEOF
38635 /* end confdefs.h.  */
38636
38637 /* Override any gcc2 internal prototype to avoid an error.  */
38638 #ifdef __cplusplus
38639 extern "C"
38640 #endif
38641 /* We use char because int might match the return type of a gcc2
38642    builtin and then its argument prototype would still apply.  */
38643 char esd_close ();
38644 int
38645 main ()
38646 {
38647 esd_close ();
38648   ;
38649   return 0;
38650 }
38651 _ACEOF
38652 rm -f conftest.$ac_objext conftest$ac_exeext
38653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38654   (eval $ac_link) 2>conftest.er1
38655   ac_status=$?
38656   grep -v '^ *+' conftest.er1 >conftest.err
38657   rm -f conftest.er1
38658   cat conftest.err >&5
38659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38660   (exit $ac_status); } &&
38661          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38663   (eval $ac_try) 2>&5
38664   ac_status=$?
38665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38666   (exit $ac_status); }; } &&
38667          { ac_try='test -s conftest$ac_exeext'
38668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38669   (eval $ac_try) 2>&5
38670   ac_status=$?
38671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38672   (exit $ac_status); }; }; then
38673   ac_cv_lib_esd_esd_close=yes
38674 else
38675   echo "$as_me: failed program was:" >&5
38676 sed 's/^/| /' conftest.$ac_ext >&5
38677
38678 ac_cv_lib_esd_esd_close=no
38679 fi
38680 rm -f conftest.err conftest.$ac_objext \
38681       conftest$ac_exeext conftest.$ac_ext
38682 LIBS=$ac_check_lib_save_LIBS
38683 fi
38684 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
38685 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
38686 if test $ac_cv_lib_esd_esd_close = yes; then
38687
38688
38689 for ac_header in esd.h
38690 do
38691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38693   echo "$as_me:$LINENO: checking for $ac_header" >&5
38694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38696   echo $ECHO_N "(cached) $ECHO_C" >&6
38697 fi
38698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38700 else
38701   # Is the header compilable?
38702 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38704 cat >conftest.$ac_ext <<_ACEOF
38705 /* confdefs.h.  */
38706 _ACEOF
38707 cat confdefs.h >>conftest.$ac_ext
38708 cat >>conftest.$ac_ext <<_ACEOF
38709 /* end confdefs.h.  */
38710 $ac_includes_default
38711 #include <$ac_header>
38712 _ACEOF
38713 rm -f conftest.$ac_objext
38714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38715   (eval $ac_compile) 2>conftest.er1
38716   ac_status=$?
38717   grep -v '^ *+' conftest.er1 >conftest.err
38718   rm -f conftest.er1
38719   cat conftest.err >&5
38720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38721   (exit $ac_status); } &&
38722          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38724   (eval $ac_try) 2>&5
38725   ac_status=$?
38726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38727   (exit $ac_status); }; } &&
38728          { ac_try='test -s conftest.$ac_objext'
38729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38730   (eval $ac_try) 2>&5
38731   ac_status=$?
38732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38733   (exit $ac_status); }; }; then
38734   ac_header_compiler=yes
38735 else
38736   echo "$as_me: failed program was:" >&5
38737 sed 's/^/| /' conftest.$ac_ext >&5
38738
38739 ac_header_compiler=no
38740 fi
38741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38742 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38743 echo "${ECHO_T}$ac_header_compiler" >&6
38744
38745 # Is the header present?
38746 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38748 cat >conftest.$ac_ext <<_ACEOF
38749 /* confdefs.h.  */
38750 _ACEOF
38751 cat confdefs.h >>conftest.$ac_ext
38752 cat >>conftest.$ac_ext <<_ACEOF
38753 /* end confdefs.h.  */
38754 #include <$ac_header>
38755 _ACEOF
38756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38757   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38758   ac_status=$?
38759   grep -v '^ *+' conftest.er1 >conftest.err
38760   rm -f conftest.er1
38761   cat conftest.err >&5
38762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38763   (exit $ac_status); } >/dev/null; then
38764   if test -s conftest.err; then
38765     ac_cpp_err=$ac_c_preproc_warn_flag
38766     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38767   else
38768     ac_cpp_err=
38769   fi
38770 else
38771   ac_cpp_err=yes
38772 fi
38773 if test -z "$ac_cpp_err"; then
38774   ac_header_preproc=yes
38775 else
38776   echo "$as_me: failed program was:" >&5
38777 sed 's/^/| /' conftest.$ac_ext >&5
38778
38779   ac_header_preproc=no
38780 fi
38781 rm -f conftest.err conftest.$ac_ext
38782 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38783 echo "${ECHO_T}$ac_header_preproc" >&6
38784
38785 # So?  What about this header?
38786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38787   yes:no: )
38788     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38792     ac_header_preproc=yes
38793     ;;
38794   no:yes:* )
38795     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38797     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38798 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38799     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38801     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38802 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38805     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38807     (
38808       cat <<\_ASBOX
38809 ## ----------------------------------------- ##
38810 ## Report this to wx-dev@lists.wxwidgets.org ##
38811 ## ----------------------------------------- ##
38812 _ASBOX
38813     ) |
38814       sed "s/^/$as_me: WARNING:     /" >&2
38815     ;;
38816 esac
38817 echo "$as_me:$LINENO: checking for $ac_header" >&5
38818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38820   echo $ECHO_N "(cached) $ECHO_C" >&6
38821 else
38822   eval "$as_ac_Header=\$ac_header_preproc"
38823 fi
38824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38826
38827 fi
38828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38829   cat >>confdefs.h <<_ACEOF
38830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38831 _ACEOF
38832
38833     EXTRALIBS_ESD="-lesd"
38834
38835 fi
38836
38837 done
38838
38839
38840 fi
38841
38842
38843
38844 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
38845 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
38846 cat >conftest.$ac_ext <<_ACEOF
38847 /* confdefs.h.  */
38848 _ACEOF
38849 cat confdefs.h >>conftest.$ac_ext
38850 cat >>conftest.$ac_ext <<_ACEOF
38851 /* end confdefs.h.  */
38852 #ifdef __linux__
38853                 #include <linux/cdrom.h>
38854                 #else
38855                 /* For Solaris */
38856                 #include <sys/cdio.h>
38857                 #endif
38858
38859 int
38860 main ()
38861 {
38862 struct cdrom_tocentry entry, old_entry;
38863   ;
38864   return 0;
38865 }
38866 _ACEOF
38867 rm -f conftest.$ac_objext
38868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38869   (eval $ac_compile) 2>conftest.er1
38870   ac_status=$?
38871   grep -v '^ *+' conftest.er1 >conftest.err
38872   rm -f conftest.er1
38873   cat conftest.err >&5
38874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38875   (exit $ac_status); } &&
38876          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38878   (eval $ac_try) 2>&5
38879   ac_status=$?
38880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38881   (exit $ac_status); }; } &&
38882          { ac_try='test -s conftest.$ac_objext'
38883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38884   (eval $ac_try) 2>&5
38885   ac_status=$?
38886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38887   (exit $ac_status); }; }; then
38888   echo "$as_me:$LINENO: result: yes" >&5
38889 echo "${ECHO_T}yes" >&6
38890                 cat >>confdefs.h <<\_ACEOF
38891 #define HAVE_KNOWN_CDROM_INTERFACE 1
38892 _ACEOF
38893
38894 else
38895   echo "$as_me: failed program was:" >&5
38896 sed 's/^/| /' conftest.$ac_ext >&5
38897
38898 echo "$as_me:$LINENO: result: no" >&5
38899 echo "${ECHO_T}no" >&6
38900 fi
38901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38902
38903
38904 cat >confcache <<\_ACEOF
38905 # This file is a shell script that caches the results of configure
38906 # tests run on this system so they can be shared between configure
38907 # scripts and configure runs, see configure's option --config-cache.
38908 # It is not useful on other systems.  If it contains results you don't
38909 # want to keep, you may remove or edit it.
38910 #
38911 # config.status only pays attention to the cache file if you give it
38912 # the --recheck option to rerun configure.
38913 #
38914 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38915 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38916 # following values.
38917
38918 _ACEOF
38919
38920 # The following way of writing the cache mishandles newlines in values,
38921 # but we know of no workaround that is simple, portable, and efficient.
38922 # So, don't put newlines in cache variables' values.
38923 # Ultrix sh set writes to stderr and can't be redirected directly,
38924 # and sets the high bit in the cache file unless we assign to the vars.
38925 {
38926   (set) 2>&1 |
38927     case `(ac_space=' '; set | grep ac_space) 2>&1` in
38928     *ac_space=\ *)
38929       # `set' does not quote correctly, so add quotes (double-quote
38930       # substitution turns \\\\ into \\, and sed turns \\ into \).
38931       sed -n \
38932         "s/'/'\\\\''/g;
38933           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38934       ;;
38935     *)
38936       # `set' quotes correctly as required by POSIX, so do not add quotes.
38937       sed -n \
38938         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
38939       ;;
38940     esac;
38941 } |
38942   sed '
38943      t clear
38944      : clear
38945      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38946      t end
38947      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38948      : end' >>confcache
38949 if diff $cache_file confcache >/dev/null 2>&1; then :; else
38950   if test -w $cache_file; then
38951     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38952     cat confcache >$cache_file
38953   else
38954     echo "not updating unwritable cache $cache_file"
38955   fi
38956 fi
38957 rm -f confcache
38958
38959
38960 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38961
38962
38963     THREADS_LINK=
38964     THREADS_CFLAGS=
38965
38966     if test "$wxUSE_THREADS" = "yes" ; then
38967         if test "$USE_BEOS" = 1; then
38968             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38969 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38970             wxUSE_THREADS="no"
38971         fi
38972     fi
38973
38974     if test "$wxUSE_THREADS" = "yes" ; then
38975
38976
38977                                 THREAD_OPTS="-pthread"
38978         case "${host}" in
38979           *-*-solaris2* | *-*-sunos4* )
38980                 if test "x$GCC" = "xyes"; then
38981                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
38982                 else
38983                     THREAD_OPTS="-mt $THREAD_OPTS"
38984                 fi
38985                 ;;
38986           *-*-freebsd*)
38987                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38988                 ;;
38989           *-*-darwin* | *-*-cygwin* )
38990                                                 THREAD_OPTS=""
38991                 ;;
38992           *-*-aix*)
38993                                 THREAD_OPTS="pthreads"
38994                 ;;
38995           *-hp-hpux* )
38996                 if test "x$GCC" = "xyes"; then
38997                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38998                         THREAD_OPTS=""
38999                 else
39000                                                             THREAD_OPTS="-mt"
39001                 fi
39002                 ;;
39003
39004           *-*-irix* )
39005                                                                 if test "x$GCC" = "xyes"; then
39006                     THREAD_OPTS=""
39007                 fi
39008                 ;;
39009
39010           *-*-*UnixWare*)
39011                                 if test "x$GCC" != "xyes"; then
39012                     THREAD_OPTS="-Ethread"
39013                 fi
39014                 ;;
39015         esac
39016
39017                                 THREAD_OPTS="$THREAD_OPTS pthread none"
39018
39019                 THREADS_OK=no
39020         for flag in $THREAD_OPTS; do
39021             case $flag in
39022                 none)
39023                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
39024 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
39025                     ;;
39026
39027                 -*)
39028                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39029 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
39030                     THREADS_CFLAGS="$flag"
39031                     ;;
39032
39033                 *)
39034                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39035 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
39036                     THREADS_LINK="-l$flag"
39037                     ;;
39038               esac
39039
39040               save_LIBS="$LIBS"
39041               save_CFLAGS="$CFLAGS"
39042               LIBS="$THREADS_LINK $LIBS"
39043               CFLAGS="$THREADS_CFLAGS $CFLAGS"
39044
39045               cat >conftest.$ac_ext <<_ACEOF
39046 /* confdefs.h.  */
39047 _ACEOF
39048 cat confdefs.h >>conftest.$ac_ext
39049 cat >>conftest.$ac_ext <<_ACEOF
39050 /* end confdefs.h.  */
39051 #include <pthread.h>
39052 int
39053 main ()
39054 {
39055 pthread_create(0,0,0,0);
39056   ;
39057   return 0;
39058 }
39059 _ACEOF
39060 rm -f conftest.$ac_objext conftest$ac_exeext
39061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39062   (eval $ac_link) 2>conftest.er1
39063   ac_status=$?
39064   grep -v '^ *+' conftest.er1 >conftest.err
39065   rm -f conftest.er1
39066   cat conftest.err >&5
39067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39068   (exit $ac_status); } &&
39069          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39071   (eval $ac_try) 2>&5
39072   ac_status=$?
39073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39074   (exit $ac_status); }; } &&
39075          { ac_try='test -s conftest$ac_exeext'
39076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39077   (eval $ac_try) 2>&5
39078   ac_status=$?
39079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39080   (exit $ac_status); }; }; then
39081   THREADS_OK=yes
39082 else
39083   echo "$as_me: failed program was:" >&5
39084 sed 's/^/| /' conftest.$ac_ext >&5
39085
39086 fi
39087 rm -f conftest.err conftest.$ac_objext \
39088       conftest$ac_exeext conftest.$ac_ext
39089
39090               LIBS="$save_LIBS"
39091               CFLAGS="$save_CFLAGS"
39092
39093               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39094 echo "${ECHO_T}$THREADS_OK" >&6
39095               if test "x$THREADS_OK" = "xyes"; then
39096                       break;
39097               fi
39098
39099               THREADS_LINK=""
39100               THREADS_CFLAGS=""
39101       done
39102
39103       if test "x$THREADS_OK" != "xyes"; then
39104           wxUSE_THREADS=no
39105           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39106 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39107       else
39108                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
39109           LIBS="$THREADS_LINK $LIBS"
39110
39111           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39112 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
39113           flag=no
39114           case "${host}" in
39115             *-aix*)
39116                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39117                 flag="-D_THREAD_SAFE"
39118                 ;;
39119             *-freebsd*)
39120                 flag="-D_THREAD_SAFE"
39121                 ;;
39122             *-hp-hpux* )
39123                 flag="-D_REENTRANT"
39124                 if test "x$GCC" != "xyes"; then
39125                                         flag="$flag -D_RWSTD_MULTI_THREAD"
39126                 fi
39127                 ;;
39128             *solaris* | alpha*-osf*)
39129                 flag="-D_REENTRANT"
39130                 ;;
39131           esac
39132           echo "$as_me:$LINENO: result: ${flag}" >&5
39133 echo "${ECHO_T}${flag}" >&6
39134           if test "x$flag" != xno; then
39135               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
39136           fi
39137
39138                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
39139       fi
39140     fi
39141
39142         if test "$wxUSE_THREADS" = "yes" ; then
39143
39144 for ac_func in thr_setconcurrency
39145 do
39146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39147 echo "$as_me:$LINENO: checking for $ac_func" >&5
39148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39149 if eval "test \"\${$as_ac_var+set}\" = set"; then
39150   echo $ECHO_N "(cached) $ECHO_C" >&6
39151 else
39152   cat >conftest.$ac_ext <<_ACEOF
39153 /* confdefs.h.  */
39154 _ACEOF
39155 cat confdefs.h >>conftest.$ac_ext
39156 cat >>conftest.$ac_ext <<_ACEOF
39157 /* end confdefs.h.  */
39158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39160 #define $ac_func innocuous_$ac_func
39161
39162 /* System header to define __stub macros and hopefully few prototypes,
39163     which can conflict with char $ac_func (); below.
39164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39165     <limits.h> exists even on freestanding compilers.  */
39166
39167 #ifdef __STDC__
39168 # include <limits.h>
39169 #else
39170 # include <assert.h>
39171 #endif
39172
39173 #undef $ac_func
39174
39175 /* Override any gcc2 internal prototype to avoid an error.  */
39176 #ifdef __cplusplus
39177 extern "C"
39178 {
39179 #endif
39180 /* We use char because int might match the return type of a gcc2
39181    builtin and then its argument prototype would still apply.  */
39182 char $ac_func ();
39183 /* The GNU C library defines this for functions which it implements
39184     to always fail with ENOSYS.  Some functions are actually named
39185     something starting with __ and the normal name is an alias.  */
39186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39187 choke me
39188 #else
39189 char (*f) () = $ac_func;
39190 #endif
39191 #ifdef __cplusplus
39192 }
39193 #endif
39194
39195 int
39196 main ()
39197 {
39198 return f != $ac_func;
39199   ;
39200   return 0;
39201 }
39202 _ACEOF
39203 rm -f conftest.$ac_objext conftest$ac_exeext
39204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39205   (eval $ac_link) 2>conftest.er1
39206   ac_status=$?
39207   grep -v '^ *+' conftest.er1 >conftest.err
39208   rm -f conftest.er1
39209   cat conftest.err >&5
39210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39211   (exit $ac_status); } &&
39212          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39214   (eval $ac_try) 2>&5
39215   ac_status=$?
39216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39217   (exit $ac_status); }; } &&
39218          { ac_try='test -s conftest$ac_exeext'
39219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39220   (eval $ac_try) 2>&5
39221   ac_status=$?
39222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39223   (exit $ac_status); }; }; then
39224   eval "$as_ac_var=yes"
39225 else
39226   echo "$as_me: failed program was:" >&5
39227 sed 's/^/| /' conftest.$ac_ext >&5
39228
39229 eval "$as_ac_var=no"
39230 fi
39231 rm -f conftest.err conftest.$ac_objext \
39232       conftest$ac_exeext conftest.$ac_ext
39233 fi
39234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39236 if test `eval echo '${'$as_ac_var'}'` = yes; then
39237   cat >>confdefs.h <<_ACEOF
39238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39239 _ACEOF
39240
39241 fi
39242 done
39243
39244
39245                   echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39246 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
39247 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39248   echo $ECHO_N "(cached) $ECHO_C" >&6
39249 else
39250
39251         cat >conftest.$ac_ext <<_ACEOF
39252 /* confdefs.h.  */
39253 _ACEOF
39254 cat confdefs.h >>conftest.$ac_ext
39255 cat >>conftest.$ac_ext <<_ACEOF
39256 /* end confdefs.h.  */
39257 #include <pthread.h>
39258                void ThreadCleanupFunc(void *p);
39259
39260 int
39261 main ()
39262 {
39263
39264                 void *p;
39265                 pthread_cleanup_push(ThreadCleanupFunc, p);
39266                 pthread_cleanup_pop(0);
39267
39268   ;
39269   return 0;
39270 }
39271 _ACEOF
39272 rm -f conftest.$ac_objext
39273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39274   (eval $ac_compile) 2>conftest.er1
39275   ac_status=$?
39276   grep -v '^ *+' conftest.er1 >conftest.err
39277   rm -f conftest.er1
39278   cat conftest.err >&5
39279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39280   (exit $ac_status); } &&
39281          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39283   (eval $ac_try) 2>&5
39284   ac_status=$?
39285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39286   (exit $ac_status); }; } &&
39287          { ac_try='test -s conftest.$ac_objext'
39288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39289   (eval $ac_try) 2>&5
39290   ac_status=$?
39291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39292   (exit $ac_status); }; }; then
39293
39294                wx_cv_func_pthread_cleanup=yes
39295
39296 else
39297   echo "$as_me: failed program was:" >&5
39298 sed 's/^/| /' conftest.$ac_ext >&5
39299
39300
39301                wx_cv_func_pthread_cleanup=no
39302
39303
39304 fi
39305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39306
39307 fi
39308 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39309 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
39310       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39311         cat >>confdefs.h <<\_ACEOF
39312 #define wxHAVE_PTHREAD_CLEANUP 1
39313 _ACEOF
39314
39315       fi
39316
39317
39318 for ac_header in sched.h
39319 do
39320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39322   echo "$as_me:$LINENO: checking for $ac_header" >&5
39323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39325   echo $ECHO_N "(cached) $ECHO_C" >&6
39326 fi
39327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39329 else
39330   # Is the header compilable?
39331 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39333 cat >conftest.$ac_ext <<_ACEOF
39334 /* confdefs.h.  */
39335 _ACEOF
39336 cat confdefs.h >>conftest.$ac_ext
39337 cat >>conftest.$ac_ext <<_ACEOF
39338 /* end confdefs.h.  */
39339 $ac_includes_default
39340 #include <$ac_header>
39341 _ACEOF
39342 rm -f conftest.$ac_objext
39343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39344   (eval $ac_compile) 2>conftest.er1
39345   ac_status=$?
39346   grep -v '^ *+' conftest.er1 >conftest.err
39347   rm -f conftest.er1
39348   cat conftest.err >&5
39349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39350   (exit $ac_status); } &&
39351          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39353   (eval $ac_try) 2>&5
39354   ac_status=$?
39355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39356   (exit $ac_status); }; } &&
39357          { ac_try='test -s conftest.$ac_objext'
39358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39359   (eval $ac_try) 2>&5
39360   ac_status=$?
39361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39362   (exit $ac_status); }; }; then
39363   ac_header_compiler=yes
39364 else
39365   echo "$as_me: failed program was:" >&5
39366 sed 's/^/| /' conftest.$ac_ext >&5
39367
39368 ac_header_compiler=no
39369 fi
39370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39372 echo "${ECHO_T}$ac_header_compiler" >&6
39373
39374 # Is the header present?
39375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39377 cat >conftest.$ac_ext <<_ACEOF
39378 /* confdefs.h.  */
39379 _ACEOF
39380 cat confdefs.h >>conftest.$ac_ext
39381 cat >>conftest.$ac_ext <<_ACEOF
39382 /* end confdefs.h.  */
39383 #include <$ac_header>
39384 _ACEOF
39385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39386   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39387   ac_status=$?
39388   grep -v '^ *+' conftest.er1 >conftest.err
39389   rm -f conftest.er1
39390   cat conftest.err >&5
39391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39392   (exit $ac_status); } >/dev/null; then
39393   if test -s conftest.err; then
39394     ac_cpp_err=$ac_c_preproc_warn_flag
39395     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39396   else
39397     ac_cpp_err=
39398   fi
39399 else
39400   ac_cpp_err=yes
39401 fi
39402 if test -z "$ac_cpp_err"; then
39403   ac_header_preproc=yes
39404 else
39405   echo "$as_me: failed program was:" >&5
39406 sed 's/^/| /' conftest.$ac_ext >&5
39407
39408   ac_header_preproc=no
39409 fi
39410 rm -f conftest.err conftest.$ac_ext
39411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39412 echo "${ECHO_T}$ac_header_preproc" >&6
39413
39414 # So?  What about this header?
39415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39416   yes:no: )
39417     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39421     ac_header_preproc=yes
39422     ;;
39423   no:yes:* )
39424     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39426     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39427 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39428     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39430     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39431 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39434     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39436     (
39437       cat <<\_ASBOX
39438 ## ----------------------------------------- ##
39439 ## Report this to wx-dev@lists.wxwidgets.org ##
39440 ## ----------------------------------------- ##
39441 _ASBOX
39442     ) |
39443       sed "s/^/$as_me: WARNING:     /" >&2
39444     ;;
39445 esac
39446 echo "$as_me:$LINENO: checking for $ac_header" >&5
39447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39449   echo $ECHO_N "(cached) $ECHO_C" >&6
39450 else
39451   eval "$as_ac_Header=\$ac_header_preproc"
39452 fi
39453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39455
39456 fi
39457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39458   cat >>confdefs.h <<_ACEOF
39459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39460 _ACEOF
39461
39462 fi
39463
39464 done
39465
39466       if test "$ac_cv_header_sched_h" = "yes"; then
39467           echo "$as_me:$LINENO: checking for sched_yield" >&5
39468 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
39469 if test "${ac_cv_func_sched_yield+set}" = set; then
39470   echo $ECHO_N "(cached) $ECHO_C" >&6
39471 else
39472   cat >conftest.$ac_ext <<_ACEOF
39473 /* confdefs.h.  */
39474 _ACEOF
39475 cat confdefs.h >>conftest.$ac_ext
39476 cat >>conftest.$ac_ext <<_ACEOF
39477 /* end confdefs.h.  */
39478 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39480 #define sched_yield innocuous_sched_yield
39481
39482 /* System header to define __stub macros and hopefully few prototypes,
39483     which can conflict with char sched_yield (); below.
39484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39485     <limits.h> exists even on freestanding compilers.  */
39486
39487 #ifdef __STDC__
39488 # include <limits.h>
39489 #else
39490 # include <assert.h>
39491 #endif
39492
39493 #undef sched_yield
39494
39495 /* Override any gcc2 internal prototype to avoid an error.  */
39496 #ifdef __cplusplus
39497 extern "C"
39498 {
39499 #endif
39500 /* We use char because int might match the return type of a gcc2
39501    builtin and then its argument prototype would still apply.  */
39502 char sched_yield ();
39503 /* The GNU C library defines this for functions which it implements
39504     to always fail with ENOSYS.  Some functions are actually named
39505     something starting with __ and the normal name is an alias.  */
39506 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
39507 choke me
39508 #else
39509 char (*f) () = sched_yield;
39510 #endif
39511 #ifdef __cplusplus
39512 }
39513 #endif
39514
39515 int
39516 main ()
39517 {
39518 return f != sched_yield;
39519   ;
39520   return 0;
39521 }
39522 _ACEOF
39523 rm -f conftest.$ac_objext conftest$ac_exeext
39524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39525   (eval $ac_link) 2>conftest.er1
39526   ac_status=$?
39527   grep -v '^ *+' conftest.er1 >conftest.err
39528   rm -f conftest.er1
39529   cat conftest.err >&5
39530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39531   (exit $ac_status); } &&
39532          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39534   (eval $ac_try) 2>&5
39535   ac_status=$?
39536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39537   (exit $ac_status); }; } &&
39538          { ac_try='test -s conftest$ac_exeext'
39539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39540   (eval $ac_try) 2>&5
39541   ac_status=$?
39542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39543   (exit $ac_status); }; }; then
39544   ac_cv_func_sched_yield=yes
39545 else
39546   echo "$as_me: failed program was:" >&5
39547 sed 's/^/| /' conftest.$ac_ext >&5
39548
39549 ac_cv_func_sched_yield=no
39550 fi
39551 rm -f conftest.err conftest.$ac_objext \
39552       conftest$ac_exeext conftest.$ac_ext
39553 fi
39554 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39555 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
39556 if test $ac_cv_func_sched_yield = yes; then
39557   cat >>confdefs.h <<\_ACEOF
39558 #define HAVE_SCHED_YIELD 1
39559 _ACEOF
39560
39561 else
39562
39563                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39564 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
39565 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39566   echo $ECHO_N "(cached) $ECHO_C" >&6
39567 else
39568   ac_check_lib_save_LIBS=$LIBS
39569 LIBS="-lposix4  $LIBS"
39570 cat >conftest.$ac_ext <<_ACEOF
39571 /* confdefs.h.  */
39572 _ACEOF
39573 cat confdefs.h >>conftest.$ac_ext
39574 cat >>conftest.$ac_ext <<_ACEOF
39575 /* end confdefs.h.  */
39576
39577 /* Override any gcc2 internal prototype to avoid an error.  */
39578 #ifdef __cplusplus
39579 extern "C"
39580 #endif
39581 /* We use char because int might match the return type of a gcc2
39582    builtin and then its argument prototype would still apply.  */
39583 char sched_yield ();
39584 int
39585 main ()
39586 {
39587 sched_yield ();
39588   ;
39589   return 0;
39590 }
39591 _ACEOF
39592 rm -f conftest.$ac_objext conftest$ac_exeext
39593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39594   (eval $ac_link) 2>conftest.er1
39595   ac_status=$?
39596   grep -v '^ *+' conftest.er1 >conftest.err
39597   rm -f conftest.er1
39598   cat conftest.err >&5
39599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39600   (exit $ac_status); } &&
39601          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39603   (eval $ac_try) 2>&5
39604   ac_status=$?
39605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39606   (exit $ac_status); }; } &&
39607          { ac_try='test -s conftest$ac_exeext'
39608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39609   (eval $ac_try) 2>&5
39610   ac_status=$?
39611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39612   (exit $ac_status); }; }; then
39613   ac_cv_lib_posix4_sched_yield=yes
39614 else
39615   echo "$as_me: failed program was:" >&5
39616 sed 's/^/| /' conftest.$ac_ext >&5
39617
39618 ac_cv_lib_posix4_sched_yield=no
39619 fi
39620 rm -f conftest.err conftest.$ac_objext \
39621       conftest$ac_exeext conftest.$ac_ext
39622 LIBS=$ac_check_lib_save_LIBS
39623 fi
39624 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39625 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
39626 if test $ac_cv_lib_posix4_sched_yield = yes; then
39627   cat >>confdefs.h <<\_ACEOF
39628 #define HAVE_SCHED_YIELD 1
39629 _ACEOF
39630  POSIX4_LINK=" -lposix4"
39631 else
39632   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39633 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39634
39635 fi
39636
39637
39638
39639 fi
39640
39641       fi
39642
39643                                           HAVE_PRIOR_FUNCS=0
39644       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39645 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
39646 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39647   echo $ECHO_N "(cached) $ECHO_C" >&6
39648 else
39649   cat >conftest.$ac_ext <<_ACEOF
39650 /* confdefs.h.  */
39651 _ACEOF
39652 cat confdefs.h >>conftest.$ac_ext
39653 cat >>conftest.$ac_ext <<_ACEOF
39654 /* end confdefs.h.  */
39655 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39657 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39658
39659 /* System header to define __stub macros and hopefully few prototypes,
39660     which can conflict with char pthread_attr_getschedpolicy (); below.
39661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39662     <limits.h> exists even on freestanding compilers.  */
39663
39664 #ifdef __STDC__
39665 # include <limits.h>
39666 #else
39667 # include <assert.h>
39668 #endif
39669
39670 #undef pthread_attr_getschedpolicy
39671
39672 /* Override any gcc2 internal prototype to avoid an error.  */
39673 #ifdef __cplusplus
39674 extern "C"
39675 {
39676 #endif
39677 /* We use char because int might match the return type of a gcc2
39678    builtin and then its argument prototype would still apply.  */
39679 char pthread_attr_getschedpolicy ();
39680 /* The GNU C library defines this for functions which it implements
39681     to always fail with ENOSYS.  Some functions are actually named
39682     something starting with __ and the normal name is an alias.  */
39683 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
39684 choke me
39685 #else
39686 char (*f) () = pthread_attr_getschedpolicy;
39687 #endif
39688 #ifdef __cplusplus
39689 }
39690 #endif
39691
39692 int
39693 main ()
39694 {
39695 return f != pthread_attr_getschedpolicy;
39696   ;
39697   return 0;
39698 }
39699 _ACEOF
39700 rm -f conftest.$ac_objext conftest$ac_exeext
39701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39702   (eval $ac_link) 2>conftest.er1
39703   ac_status=$?
39704   grep -v '^ *+' conftest.er1 >conftest.err
39705   rm -f conftest.er1
39706   cat conftest.err >&5
39707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39708   (exit $ac_status); } &&
39709          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39711   (eval $ac_try) 2>&5
39712   ac_status=$?
39713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39714   (exit $ac_status); }; } &&
39715          { ac_try='test -s conftest$ac_exeext'
39716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39717   (eval $ac_try) 2>&5
39718   ac_status=$?
39719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39720   (exit $ac_status); }; }; then
39721   ac_cv_func_pthread_attr_getschedpolicy=yes
39722 else
39723   echo "$as_me: failed program was:" >&5
39724 sed 's/^/| /' conftest.$ac_ext >&5
39725
39726 ac_cv_func_pthread_attr_getschedpolicy=no
39727 fi
39728 rm -f conftest.err conftest.$ac_objext \
39729       conftest$ac_exeext conftest.$ac_ext
39730 fi
39731 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39732 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
39733 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39734   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39735 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
39736 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39737   echo $ECHO_N "(cached) $ECHO_C" >&6
39738 else
39739   cat >conftest.$ac_ext <<_ACEOF
39740 /* confdefs.h.  */
39741 _ACEOF
39742 cat confdefs.h >>conftest.$ac_ext
39743 cat >>conftest.$ac_ext <<_ACEOF
39744 /* end confdefs.h.  */
39745 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39746    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39747 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39748
39749 /* System header to define __stub macros and hopefully few prototypes,
39750     which can conflict with char pthread_attr_setschedparam (); below.
39751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39752     <limits.h> exists even on freestanding compilers.  */
39753
39754 #ifdef __STDC__
39755 # include <limits.h>
39756 #else
39757 # include <assert.h>
39758 #endif
39759
39760 #undef pthread_attr_setschedparam
39761
39762 /* Override any gcc2 internal prototype to avoid an error.  */
39763 #ifdef __cplusplus
39764 extern "C"
39765 {
39766 #endif
39767 /* We use char because int might match the return type of a gcc2
39768    builtin and then its argument prototype would still apply.  */
39769 char pthread_attr_setschedparam ();
39770 /* The GNU C library defines this for functions which it implements
39771     to always fail with ENOSYS.  Some functions are actually named
39772     something starting with __ and the normal name is an alias.  */
39773 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
39774 choke me
39775 #else
39776 char (*f) () = pthread_attr_setschedparam;
39777 #endif
39778 #ifdef __cplusplus
39779 }
39780 #endif
39781
39782 int
39783 main ()
39784 {
39785 return f != pthread_attr_setschedparam;
39786   ;
39787   return 0;
39788 }
39789 _ACEOF
39790 rm -f conftest.$ac_objext conftest$ac_exeext
39791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39792   (eval $ac_link) 2>conftest.er1
39793   ac_status=$?
39794   grep -v '^ *+' conftest.er1 >conftest.err
39795   rm -f conftest.er1
39796   cat conftest.err >&5
39797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39798   (exit $ac_status); } &&
39799          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39801   (eval $ac_try) 2>&5
39802   ac_status=$?
39803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39804   (exit $ac_status); }; } &&
39805          { ac_try='test -s conftest$ac_exeext'
39806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39807   (eval $ac_try) 2>&5
39808   ac_status=$?
39809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39810   (exit $ac_status); }; }; then
39811   ac_cv_func_pthread_attr_setschedparam=yes
39812 else
39813   echo "$as_me: failed program was:" >&5
39814 sed 's/^/| /' conftest.$ac_ext >&5
39815
39816 ac_cv_func_pthread_attr_setschedparam=no
39817 fi
39818 rm -f conftest.err conftest.$ac_objext \
39819       conftest$ac_exeext conftest.$ac_ext
39820 fi
39821 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39822 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
39823 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39824   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39825 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
39826 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39827   echo $ECHO_N "(cached) $ECHO_C" >&6
39828 else
39829   cat >conftest.$ac_ext <<_ACEOF
39830 /* confdefs.h.  */
39831 _ACEOF
39832 cat confdefs.h >>conftest.$ac_ext
39833 cat >>conftest.$ac_ext <<_ACEOF
39834 /* end confdefs.h.  */
39835 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39836    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39837 #define sched_get_priority_max innocuous_sched_get_priority_max
39838
39839 /* System header to define __stub macros and hopefully few prototypes,
39840     which can conflict with char sched_get_priority_max (); below.
39841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39842     <limits.h> exists even on freestanding compilers.  */
39843
39844 #ifdef __STDC__
39845 # include <limits.h>
39846 #else
39847 # include <assert.h>
39848 #endif
39849
39850 #undef sched_get_priority_max
39851
39852 /* Override any gcc2 internal prototype to avoid an error.  */
39853 #ifdef __cplusplus
39854 extern "C"
39855 {
39856 #endif
39857 /* We use char because int might match the return type of a gcc2
39858    builtin and then its argument prototype would still apply.  */
39859 char sched_get_priority_max ();
39860 /* The GNU C library defines this for functions which it implements
39861     to always fail with ENOSYS.  Some functions are actually named
39862     something starting with __ and the normal name is an alias.  */
39863 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
39864 choke me
39865 #else
39866 char (*f) () = sched_get_priority_max;
39867 #endif
39868 #ifdef __cplusplus
39869 }
39870 #endif
39871
39872 int
39873 main ()
39874 {
39875 return f != sched_get_priority_max;
39876   ;
39877   return 0;
39878 }
39879 _ACEOF
39880 rm -f conftest.$ac_objext conftest$ac_exeext
39881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39882   (eval $ac_link) 2>conftest.er1
39883   ac_status=$?
39884   grep -v '^ *+' conftest.er1 >conftest.err
39885   rm -f conftest.er1
39886   cat conftest.err >&5
39887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39888   (exit $ac_status); } &&
39889          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39891   (eval $ac_try) 2>&5
39892   ac_status=$?
39893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39894   (exit $ac_status); }; } &&
39895          { ac_try='test -s conftest$ac_exeext'
39896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39897   (eval $ac_try) 2>&5
39898   ac_status=$?
39899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39900   (exit $ac_status); }; }; then
39901   ac_cv_func_sched_get_priority_max=yes
39902 else
39903   echo "$as_me: failed program was:" >&5
39904 sed 's/^/| /' conftest.$ac_ext >&5
39905
39906 ac_cv_func_sched_get_priority_max=no
39907 fi
39908 rm -f conftest.err conftest.$ac_objext \
39909       conftest$ac_exeext conftest.$ac_ext
39910 fi
39911 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39912 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
39913 if test $ac_cv_func_sched_get_priority_max = yes; then
39914   HAVE_PRIOR_FUNCS=1
39915 else
39916   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39917 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
39918 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39919   echo $ECHO_N "(cached) $ECHO_C" >&6
39920 else
39921   ac_check_lib_save_LIBS=$LIBS
39922 LIBS="-lposix4  $LIBS"
39923 cat >conftest.$ac_ext <<_ACEOF
39924 /* confdefs.h.  */
39925 _ACEOF
39926 cat confdefs.h >>conftest.$ac_ext
39927 cat >>conftest.$ac_ext <<_ACEOF
39928 /* end confdefs.h.  */
39929
39930 /* Override any gcc2 internal prototype to avoid an error.  */
39931 #ifdef __cplusplus
39932 extern "C"
39933 #endif
39934 /* We use char because int might match the return type of a gcc2
39935    builtin and then its argument prototype would still apply.  */
39936 char sched_get_priority_max ();
39937 int
39938 main ()
39939 {
39940 sched_get_priority_max ();
39941   ;
39942   return 0;
39943 }
39944 _ACEOF
39945 rm -f conftest.$ac_objext conftest$ac_exeext
39946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39947   (eval $ac_link) 2>conftest.er1
39948   ac_status=$?
39949   grep -v '^ *+' conftest.er1 >conftest.err
39950   rm -f conftest.er1
39951   cat conftest.err >&5
39952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39953   (exit $ac_status); } &&
39954          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39956   (eval $ac_try) 2>&5
39957   ac_status=$?
39958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39959   (exit $ac_status); }; } &&
39960          { ac_try='test -s conftest$ac_exeext'
39961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39962   (eval $ac_try) 2>&5
39963   ac_status=$?
39964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39965   (exit $ac_status); }; }; then
39966   ac_cv_lib_posix4_sched_get_priority_max=yes
39967 else
39968   echo "$as_me: failed program was:" >&5
39969 sed 's/^/| /' conftest.$ac_ext >&5
39970
39971 ac_cv_lib_posix4_sched_get_priority_max=no
39972 fi
39973 rm -f conftest.err conftest.$ac_objext \
39974       conftest$ac_exeext conftest.$ac_ext
39975 LIBS=$ac_check_lib_save_LIBS
39976 fi
39977 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39978 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
39979 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39980
39981                                 HAVE_PRIOR_FUNCS=1
39982                                 POSIX4_LINK=" -lposix4"
39983
39984 fi
39985
39986
39987 fi
39988
39989
39990 fi
39991
39992
39993 fi
39994
39995
39996       if test "$HAVE_PRIOR_FUNCS" = 1; then
39997         cat >>confdefs.h <<\_ACEOF
39998 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39999 _ACEOF
40000
40001       else
40002         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
40003 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
40004       fi
40005
40006       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
40007 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
40008 if test "${ac_cv_func_pthread_cancel+set}" = set; then
40009   echo $ECHO_N "(cached) $ECHO_C" >&6
40010 else
40011   cat >conftest.$ac_ext <<_ACEOF
40012 /* confdefs.h.  */
40013 _ACEOF
40014 cat confdefs.h >>conftest.$ac_ext
40015 cat >>conftest.$ac_ext <<_ACEOF
40016 /* end confdefs.h.  */
40017 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
40018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40019 #define pthread_cancel innocuous_pthread_cancel
40020
40021 /* System header to define __stub macros and hopefully few prototypes,
40022     which can conflict with char pthread_cancel (); below.
40023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40024     <limits.h> exists even on freestanding compilers.  */
40025
40026 #ifdef __STDC__
40027 # include <limits.h>
40028 #else
40029 # include <assert.h>
40030 #endif
40031
40032 #undef pthread_cancel
40033
40034 /* Override any gcc2 internal prototype to avoid an error.  */
40035 #ifdef __cplusplus
40036 extern "C"
40037 {
40038 #endif
40039 /* We use char because int might match the return type of a gcc2
40040    builtin and then its argument prototype would still apply.  */
40041 char pthread_cancel ();
40042 /* The GNU C library defines this for functions which it implements
40043     to always fail with ENOSYS.  Some functions are actually named
40044     something starting with __ and the normal name is an alias.  */
40045 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
40046 choke me
40047 #else
40048 char (*f) () = pthread_cancel;
40049 #endif
40050 #ifdef __cplusplus
40051 }
40052 #endif
40053
40054 int
40055 main ()
40056 {
40057 return f != pthread_cancel;
40058   ;
40059   return 0;
40060 }
40061 _ACEOF
40062 rm -f conftest.$ac_objext conftest$ac_exeext
40063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40064   (eval $ac_link) 2>conftest.er1
40065   ac_status=$?
40066   grep -v '^ *+' conftest.er1 >conftest.err
40067   rm -f conftest.er1
40068   cat conftest.err >&5
40069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40070   (exit $ac_status); } &&
40071          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40073   (eval $ac_try) 2>&5
40074   ac_status=$?
40075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40076   (exit $ac_status); }; } &&
40077          { ac_try='test -s conftest$ac_exeext'
40078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40079   (eval $ac_try) 2>&5
40080   ac_status=$?
40081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40082   (exit $ac_status); }; }; then
40083   ac_cv_func_pthread_cancel=yes
40084 else
40085   echo "$as_me: failed program was:" >&5
40086 sed 's/^/| /' conftest.$ac_ext >&5
40087
40088 ac_cv_func_pthread_cancel=no
40089 fi
40090 rm -f conftest.err conftest.$ac_objext \
40091       conftest$ac_exeext conftest.$ac_ext
40092 fi
40093 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
40094 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
40095 if test $ac_cv_func_pthread_cancel = yes; then
40096   cat >>confdefs.h <<\_ACEOF
40097 #define HAVE_PTHREAD_CANCEL 1
40098 _ACEOF
40099
40100 else
40101   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
40102 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
40103 fi
40104
40105
40106       echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40107 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
40108 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
40109   echo $ECHO_N "(cached) $ECHO_C" >&6
40110 else
40111   cat >conftest.$ac_ext <<_ACEOF
40112 /* confdefs.h.  */
40113 _ACEOF
40114 cat confdefs.h >>conftest.$ac_ext
40115 cat >>conftest.$ac_ext <<_ACEOF
40116 /* end confdefs.h.  */
40117 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40119 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40120
40121 /* System header to define __stub macros and hopefully few prototypes,
40122     which can conflict with char pthread_attr_setstacksize (); below.
40123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40124     <limits.h> exists even on freestanding compilers.  */
40125
40126 #ifdef __STDC__
40127 # include <limits.h>
40128 #else
40129 # include <assert.h>
40130 #endif
40131
40132 #undef pthread_attr_setstacksize
40133
40134 /* Override any gcc2 internal prototype to avoid an error.  */
40135 #ifdef __cplusplus
40136 extern "C"
40137 {
40138 #endif
40139 /* We use char because int might match the return type of a gcc2
40140    builtin and then its argument prototype would still apply.  */
40141 char pthread_attr_setstacksize ();
40142 /* The GNU C library defines this for functions which it implements
40143     to always fail with ENOSYS.  Some functions are actually named
40144     something starting with __ and the normal name is an alias.  */
40145 #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
40146 choke me
40147 #else
40148 char (*f) () = pthread_attr_setstacksize;
40149 #endif
40150 #ifdef __cplusplus
40151 }
40152 #endif
40153
40154 int
40155 main ()
40156 {
40157 return f != pthread_attr_setstacksize;
40158   ;
40159   return 0;
40160 }
40161 _ACEOF
40162 rm -f conftest.$ac_objext conftest$ac_exeext
40163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40164   (eval $ac_link) 2>conftest.er1
40165   ac_status=$?
40166   grep -v '^ *+' conftest.er1 >conftest.err
40167   rm -f conftest.er1
40168   cat conftest.err >&5
40169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40170   (exit $ac_status); } &&
40171          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40173   (eval $ac_try) 2>&5
40174   ac_status=$?
40175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40176   (exit $ac_status); }; } &&
40177          { ac_try='test -s conftest$ac_exeext'
40178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40179   (eval $ac_try) 2>&5
40180   ac_status=$?
40181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40182   (exit $ac_status); }; }; then
40183   ac_cv_func_pthread_attr_setstacksize=yes
40184 else
40185   echo "$as_me: failed program was:" >&5
40186 sed 's/^/| /' conftest.$ac_ext >&5
40187
40188 ac_cv_func_pthread_attr_setstacksize=no
40189 fi
40190 rm -f conftest.err conftest.$ac_objext \
40191       conftest$ac_exeext conftest.$ac_ext
40192 fi
40193 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40194 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
40195 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40196   cat >>confdefs.h <<\_ACEOF
40197 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40198 _ACEOF
40199
40200 fi
40201
40202
40203
40204       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40205 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
40206 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40207   echo $ECHO_N "(cached) $ECHO_C" >&6
40208 else
40209
40210         cat >conftest.$ac_ext <<_ACEOF
40211 /* confdefs.h.  */
40212 _ACEOF
40213 cat confdefs.h >>conftest.$ac_ext
40214 cat >>conftest.$ac_ext <<_ACEOF
40215 /* end confdefs.h.  */
40216 #include <pthread.h>
40217 int
40218 main ()
40219 {
40220
40221                pthread_mutexattr_t attr;
40222                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40223
40224   ;
40225   return 0;
40226 }
40227 _ACEOF
40228 rm -f conftest.$ac_objext
40229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40230   (eval $ac_compile) 2>conftest.er1
40231   ac_status=$?
40232   grep -v '^ *+' conftest.er1 >conftest.err
40233   rm -f conftest.er1
40234   cat conftest.err >&5
40235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40236   (exit $ac_status); } &&
40237          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40239   (eval $ac_try) 2>&5
40240   ac_status=$?
40241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40242   (exit $ac_status); }; } &&
40243          { ac_try='test -s conftest.$ac_objext'
40244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40245   (eval $ac_try) 2>&5
40246   ac_status=$?
40247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40248   (exit $ac_status); }; }; then
40249   wx_cv_type_pthread_mutexattr_t=yes
40250 else
40251   echo "$as_me: failed program was:" >&5
40252 sed 's/^/| /' conftest.$ac_ext >&5
40253
40254 wx_cv_type_pthread_mutexattr_t=no
40255
40256 fi
40257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40258
40259 fi
40260 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40261 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
40262
40263       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40264         cat >>confdefs.h <<\_ACEOF
40265 #define HAVE_PTHREAD_MUTEXATTR_T 1
40266 _ACEOF
40267
40268
40269                         echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40270 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
40271 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40272   echo $ECHO_N "(cached) $ECHO_C" >&6
40273 else
40274
40275                        cat >conftest.$ac_ext <<_ACEOF
40276 /* confdefs.h.  */
40277 _ACEOF
40278 cat confdefs.h >>conftest.$ac_ext
40279 cat >>conftest.$ac_ext <<_ACEOF
40280 /* end confdefs.h.  */
40281 #include <pthread.h>
40282 int
40283 main ()
40284 {
40285
40286                                pthread_mutexattr_t attr;
40287                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40288
40289   ;
40290   return 0;
40291 }
40292 _ACEOF
40293 rm -f conftest.$ac_objext
40294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40295   (eval $ac_compile) 2>conftest.er1
40296   ac_status=$?
40297   grep -v '^ *+' conftest.er1 >conftest.err
40298   rm -f conftest.er1
40299   cat conftest.err >&5
40300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40301   (exit $ac_status); } &&
40302          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40304   (eval $ac_try) 2>&5
40305   ac_status=$?
40306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40307   (exit $ac_status); }; } &&
40308          { ac_try='test -s conftest.$ac_objext'
40309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40310   (eval $ac_try) 2>&5
40311   ac_status=$?
40312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40313   (exit $ac_status); }; }; then
40314   wx_cv_func_pthread_mutexattr_settype_decl=yes
40315 else
40316   echo "$as_me: failed program was:" >&5
40317 sed 's/^/| /' conftest.$ac_ext >&5
40318
40319 wx_cv_func_pthread_mutexattr_settype_decl=no
40320
40321 fi
40322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40323
40324 fi
40325 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40326 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
40327         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40328             cat >>confdefs.h <<\_ACEOF
40329 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40330 _ACEOF
40331
40332         fi
40333       else
40334                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40335 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
40336 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40337   echo $ECHO_N "(cached) $ECHO_C" >&6
40338 else
40339
40340             cat >conftest.$ac_ext <<_ACEOF
40341 /* confdefs.h.  */
40342 _ACEOF
40343 cat confdefs.h >>conftest.$ac_ext
40344 cat >>conftest.$ac_ext <<_ACEOF
40345 /* end confdefs.h.  */
40346 #include <pthread.h>
40347 int
40348 main ()
40349 {
40350
40351                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40352
40353   ;
40354   return 0;
40355 }
40356 _ACEOF
40357 rm -f conftest.$ac_objext
40358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40359   (eval $ac_compile) 2>conftest.er1
40360   ac_status=$?
40361   grep -v '^ *+' conftest.er1 >conftest.err
40362   rm -f conftest.er1
40363   cat conftest.err >&5
40364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40365   (exit $ac_status); } &&
40366          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40368   (eval $ac_try) 2>&5
40369   ac_status=$?
40370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40371   (exit $ac_status); }; } &&
40372          { ac_try='test -s conftest.$ac_objext'
40373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40374   (eval $ac_try) 2>&5
40375   ac_status=$?
40376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40377   (exit $ac_status); }; }; then
40378
40379                     wx_cv_type_pthread_rec_mutex_init=yes
40380
40381 else
40382   echo "$as_me: failed program was:" >&5
40383 sed 's/^/| /' conftest.$ac_ext >&5
40384
40385
40386                     wx_cv_type_pthread_rec_mutex_init=no
40387
40388
40389 fi
40390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40391
40392 fi
40393 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40394 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
40395         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40396           cat >>confdefs.h <<\_ACEOF
40397 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40398 _ACEOF
40399
40400         else
40401                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40402 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40403         fi
40404       fi
40405     fi
40406
40407 else
40408     if test "$wxUSE_THREADS" = "yes" ; then
40409       case "${host}" in
40410         *-*-mingw32* )
40411                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40412 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
40413 if test "${wx_cv_cflags_mthread+set}" = set; then
40414   echo $ECHO_N "(cached) $ECHO_C" >&6
40415 else
40416
40417                     CFLAGS_OLD="$CFLAGS"
40418                     CFLAGS="-mthreads $CFLAGS"
40419                     cat >conftest.$ac_ext <<_ACEOF
40420 /* confdefs.h.  */
40421 _ACEOF
40422 cat confdefs.h >>conftest.$ac_ext
40423 cat >>conftest.$ac_ext <<_ACEOF
40424 /* end confdefs.h.  */
40425
40426 int
40427 main ()
40428 {
40429
40430   ;
40431   return 0;
40432 }
40433 _ACEOF
40434 rm -f conftest.$ac_objext
40435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40436   (eval $ac_compile) 2>conftest.er1
40437   ac_status=$?
40438   grep -v '^ *+' conftest.er1 >conftest.err
40439   rm -f conftest.er1
40440   cat conftest.err >&5
40441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40442   (exit $ac_status); } &&
40443          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40445   (eval $ac_try) 2>&5
40446   ac_status=$?
40447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40448   (exit $ac_status); }; } &&
40449          { ac_try='test -s conftest.$ac_objext'
40450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40451   (eval $ac_try) 2>&5
40452   ac_status=$?
40453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40454   (exit $ac_status); }; }; then
40455   wx_cv_cflags_mthread=yes
40456 else
40457   echo "$as_me: failed program was:" >&5
40458 sed 's/^/| /' conftest.$ac_ext >&5
40459
40460 wx_cv_cflags_mthread=no
40461
40462 fi
40463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40464
40465
40466 fi
40467 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40468 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
40469
40470             if test "$wx_cv_cflags_mthread" = "yes"; then
40471                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
40472                 LDFLAGS="$LDFLAGS -mthreads"
40473             else
40474                                 CFLAGS="$CFLAGS_OLD"
40475             fi
40476         ;;
40477         *-pc-os2*emx )
40478             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40479             LDFLAGS="$LDFLAGS -Zmt"
40480         ;;
40481       esac
40482     fi
40483 fi
40484
40485 echo "$as_me:$LINENO: checking for localtime_r" >&5
40486 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
40487 if test "${ac_cv_func_localtime_r+set}" = set; then
40488   echo $ECHO_N "(cached) $ECHO_C" >&6
40489 else
40490   cat >conftest.$ac_ext <<_ACEOF
40491 /* confdefs.h.  */
40492 _ACEOF
40493 cat confdefs.h >>conftest.$ac_ext
40494 cat >>conftest.$ac_ext <<_ACEOF
40495 /* end confdefs.h.  */
40496 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
40497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40498 #define localtime_r innocuous_localtime_r
40499
40500 /* System header to define __stub macros and hopefully few prototypes,
40501     which can conflict with char localtime_r (); below.
40502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40503     <limits.h> exists even on freestanding compilers.  */
40504
40505 #ifdef __STDC__
40506 # include <limits.h>
40507 #else
40508 # include <assert.h>
40509 #endif
40510
40511 #undef localtime_r
40512
40513 /* Override any gcc2 internal prototype to avoid an error.  */
40514 #ifdef __cplusplus
40515 extern "C"
40516 {
40517 #endif
40518 /* We use char because int might match the return type of a gcc2
40519    builtin and then its argument prototype would still apply.  */
40520 char localtime_r ();
40521 /* The GNU C library defines this for functions which it implements
40522     to always fail with ENOSYS.  Some functions are actually named
40523     something starting with __ and the normal name is an alias.  */
40524 #if defined (__stub_localtime_r) || defined (__stub___localtime_r)
40525 choke me
40526 #else
40527 char (*f) () = localtime_r;
40528 #endif
40529 #ifdef __cplusplus
40530 }
40531 #endif
40532
40533 int
40534 main ()
40535 {
40536 return f != localtime_r;
40537   ;
40538   return 0;
40539 }
40540 _ACEOF
40541 rm -f conftest.$ac_objext conftest$ac_exeext
40542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40543   (eval $ac_link) 2>conftest.er1
40544   ac_status=$?
40545   grep -v '^ *+' conftest.er1 >conftest.err
40546   rm -f conftest.er1
40547   cat conftest.err >&5
40548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40549   (exit $ac_status); } &&
40550          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40552   (eval $ac_try) 2>&5
40553   ac_status=$?
40554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40555   (exit $ac_status); }; } &&
40556          { ac_try='test -s conftest$ac_exeext'
40557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40558   (eval $ac_try) 2>&5
40559   ac_status=$?
40560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40561   (exit $ac_status); }; }; then
40562   ac_cv_func_localtime_r=yes
40563 else
40564   echo "$as_me: failed program was:" >&5
40565 sed 's/^/| /' conftest.$ac_ext >&5
40566
40567 ac_cv_func_localtime_r=no
40568 fi
40569 rm -f conftest.err conftest.$ac_objext \
40570       conftest$ac_exeext conftest.$ac_ext
40571 fi
40572 echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40573 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
40574 if test $ac_cv_func_localtime_r = yes; then
40575    cat >>confdefs.h <<\_ACEOF
40576 #define HAVE_LOCALTIME_R 1
40577 _ACEOF
40578
40579 fi
40580
40581 echo "$as_me:$LINENO: checking for gmtime_r" >&5
40582 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
40583 if test "${ac_cv_func_gmtime_r+set}" = set; then
40584   echo $ECHO_N "(cached) $ECHO_C" >&6
40585 else
40586   cat >conftest.$ac_ext <<_ACEOF
40587 /* confdefs.h.  */
40588 _ACEOF
40589 cat confdefs.h >>conftest.$ac_ext
40590 cat >>conftest.$ac_ext <<_ACEOF
40591 /* end confdefs.h.  */
40592 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40594 #define gmtime_r innocuous_gmtime_r
40595
40596 /* System header to define __stub macros and hopefully few prototypes,
40597     which can conflict with char gmtime_r (); below.
40598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40599     <limits.h> exists even on freestanding compilers.  */
40600
40601 #ifdef __STDC__
40602 # include <limits.h>
40603 #else
40604 # include <assert.h>
40605 #endif
40606
40607 #undef gmtime_r
40608
40609 /* Override any gcc2 internal prototype to avoid an error.  */
40610 #ifdef __cplusplus
40611 extern "C"
40612 {
40613 #endif
40614 /* We use char because int might match the return type of a gcc2
40615    builtin and then its argument prototype would still apply.  */
40616 char gmtime_r ();
40617 /* The GNU C library defines this for functions which it implements
40618     to always fail with ENOSYS.  Some functions are actually named
40619     something starting with __ and the normal name is an alias.  */
40620 #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
40621 choke me
40622 #else
40623 char (*f) () = gmtime_r;
40624 #endif
40625 #ifdef __cplusplus
40626 }
40627 #endif
40628
40629 int
40630 main ()
40631 {
40632 return f != gmtime_r;
40633   ;
40634   return 0;
40635 }
40636 _ACEOF
40637 rm -f conftest.$ac_objext conftest$ac_exeext
40638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40639   (eval $ac_link) 2>conftest.er1
40640   ac_status=$?
40641   grep -v '^ *+' conftest.er1 >conftest.err
40642   rm -f conftest.er1
40643   cat conftest.err >&5
40644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40645   (exit $ac_status); } &&
40646          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40648   (eval $ac_try) 2>&5
40649   ac_status=$?
40650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40651   (exit $ac_status); }; } &&
40652          { ac_try='test -s conftest$ac_exeext'
40653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40654   (eval $ac_try) 2>&5
40655   ac_status=$?
40656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40657   (exit $ac_status); }; }; then
40658   ac_cv_func_gmtime_r=yes
40659 else
40660   echo "$as_me: failed program was:" >&5
40661 sed 's/^/| /' conftest.$ac_ext >&5
40662
40663 ac_cv_func_gmtime_r=no
40664 fi
40665 rm -f conftest.err conftest.$ac_objext \
40666       conftest$ac_exeext conftest.$ac_ext
40667 fi
40668 echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40669 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
40670 if test $ac_cv_func_gmtime_r = yes; then
40671    cat >>confdefs.h <<\_ACEOF
40672 #define HAVE_GMTIME_R 1
40673 _ACEOF
40674
40675 fi
40676
40677 echo "$as_me:$LINENO: checking for readdir_r" >&5
40678 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
40679 if test "${ac_cv_func_readdir_r+set}" = set; then
40680   echo $ECHO_N "(cached) $ECHO_C" >&6
40681 else
40682   cat >conftest.$ac_ext <<_ACEOF
40683 /* confdefs.h.  */
40684 _ACEOF
40685 cat confdefs.h >>conftest.$ac_ext
40686 cat >>conftest.$ac_ext <<_ACEOF
40687 /* end confdefs.h.  */
40688 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
40689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40690 #define readdir_r innocuous_readdir_r
40691
40692 /* System header to define __stub macros and hopefully few prototypes,
40693     which can conflict with char readdir_r (); below.
40694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40695     <limits.h> exists even on freestanding compilers.  */
40696
40697 #ifdef __STDC__
40698 # include <limits.h>
40699 #else
40700 # include <assert.h>
40701 #endif
40702
40703 #undef readdir_r
40704
40705 /* Override any gcc2 internal prototype to avoid an error.  */
40706 #ifdef __cplusplus
40707 extern "C"
40708 {
40709 #endif
40710 /* We use char because int might match the return type of a gcc2
40711    builtin and then its argument prototype would still apply.  */
40712 char readdir_r ();
40713 /* The GNU C library defines this for functions which it implements
40714     to always fail with ENOSYS.  Some functions are actually named
40715     something starting with __ and the normal name is an alias.  */
40716 #if defined (__stub_readdir_r) || defined (__stub___readdir_r)
40717 choke me
40718 #else
40719 char (*f) () = readdir_r;
40720 #endif
40721 #ifdef __cplusplus
40722 }
40723 #endif
40724
40725 int
40726 main ()
40727 {
40728 return f != readdir_r;
40729   ;
40730   return 0;
40731 }
40732 _ACEOF
40733 rm -f conftest.$ac_objext conftest$ac_exeext
40734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40735   (eval $ac_link) 2>conftest.er1
40736   ac_status=$?
40737   grep -v '^ *+' conftest.er1 >conftest.err
40738   rm -f conftest.er1
40739   cat conftest.err >&5
40740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40741   (exit $ac_status); } &&
40742          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40744   (eval $ac_try) 2>&5
40745   ac_status=$?
40746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40747   (exit $ac_status); }; } &&
40748          { ac_try='test -s conftest$ac_exeext'
40749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40750   (eval $ac_try) 2>&5
40751   ac_status=$?
40752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40753   (exit $ac_status); }; }; then
40754   ac_cv_func_readdir_r=yes
40755 else
40756   echo "$as_me: failed program was:" >&5
40757 sed 's/^/| /' conftest.$ac_ext >&5
40758
40759 ac_cv_func_readdir_r=no
40760 fi
40761 rm -f conftest.err conftest.$ac_objext \
40762       conftest$ac_exeext conftest.$ac_ext
40763 fi
40764 echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
40765 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
40766 if test $ac_cv_func_readdir_r = yes; then
40767    cat >>confdefs.h <<\_ACEOF
40768 #define HAVE_READDIR_R 1
40769 _ACEOF
40770
40771 fi
40772
40773
40774
40775
40776     ac_ext=c
40777 ac_cpp='$CPP $CPPFLAGS'
40778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40781
40782     echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40783 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
40784
40785     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40786   echo $ECHO_N "(cached) $ECHO_C" >&6
40787 else
40788
40789
40790 ################################################################
40791
40792 ac_cv_func_which_gethostbyname_r=unknown
40793
40794 #
40795 # ONE ARGUMENT (sanity check)
40796 #
40797
40798 # This should fail, as there is no variant of gethostbyname_r() that takes
40799 # a single argument. If it actually compiles, then we can assume that
40800 # netdb.h is not declaring the function, and the compiler is thereby
40801 # assuming an implicit prototype. In which case, we're out of luck.
40802 #
40803 cat >conftest.$ac_ext <<_ACEOF
40804 /* confdefs.h.  */
40805 _ACEOF
40806 cat confdefs.h >>conftest.$ac_ext
40807 cat >>conftest.$ac_ext <<_ACEOF
40808 /* end confdefs.h.  */
40809 #include <netdb.h>
40810 int
40811 main ()
40812 {
40813
40814             char *name = "www.gnu.org";
40815             (void)gethostbyname_r(name) /* ; */
40816
40817   ;
40818   return 0;
40819 }
40820 _ACEOF
40821 rm -f conftest.$ac_objext
40822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40823   (eval $ac_compile) 2>conftest.er1
40824   ac_status=$?
40825   grep -v '^ *+' conftest.er1 >conftest.err
40826   rm -f conftest.er1
40827   cat conftest.err >&5
40828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40829   (exit $ac_status); } &&
40830          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40832   (eval $ac_try) 2>&5
40833   ac_status=$?
40834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40835   (exit $ac_status); }; } &&
40836          { ac_try='test -s conftest.$ac_objext'
40837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40838   (eval $ac_try) 2>&5
40839   ac_status=$?
40840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40841   (exit $ac_status); }; }; then
40842   ac_cv_func_which_gethostbyname_r=no
40843 else
40844   echo "$as_me: failed program was:" >&5
40845 sed 's/^/| /' conftest.$ac_ext >&5
40846
40847 fi
40848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40849
40850 #
40851 # SIX ARGUMENTS
40852 # (e.g. Linux)
40853 #
40854
40855 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40856
40857 cat >conftest.$ac_ext <<_ACEOF
40858 /* confdefs.h.  */
40859 _ACEOF
40860 cat confdefs.h >>conftest.$ac_ext
40861 cat >>conftest.$ac_ext <<_ACEOF
40862 /* end confdefs.h.  */
40863 #include <netdb.h>
40864 int
40865 main ()
40866 {
40867
40868             char *name = "www.gnu.org";
40869             struct hostent ret, *retp;
40870             char buf[1024];
40871             int buflen = 1024;
40872             int my_h_errno;
40873             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40874
40875   ;
40876   return 0;
40877 }
40878 _ACEOF
40879 rm -f conftest.$ac_objext
40880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40881   (eval $ac_compile) 2>conftest.er1
40882   ac_status=$?
40883   grep -v '^ *+' conftest.er1 >conftest.err
40884   rm -f conftest.er1
40885   cat conftest.err >&5
40886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40887   (exit $ac_status); } &&
40888          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40890   (eval $ac_try) 2>&5
40891   ac_status=$?
40892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40893   (exit $ac_status); }; } &&
40894          { ac_try='test -s conftest.$ac_objext'
40895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40896   (eval $ac_try) 2>&5
40897   ac_status=$?
40898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40899   (exit $ac_status); }; }; then
40900   ac_cv_func_which_gethostbyname_r=six
40901 else
40902   echo "$as_me: failed program was:" >&5
40903 sed 's/^/| /' conftest.$ac_ext >&5
40904
40905 fi
40906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40907
40908 fi
40909
40910 #
40911 # FIVE ARGUMENTS
40912 # (e.g. Solaris)
40913 #
40914
40915 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40916
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 #include <netdb.h>
40924 int
40925 main ()
40926 {
40927
40928             char *name = "www.gnu.org";
40929             struct hostent ret;
40930             char buf[1024];
40931             int buflen = 1024;
40932             int my_h_errno;
40933             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40934
40935   ;
40936   return 0;
40937 }
40938 _ACEOF
40939 rm -f conftest.$ac_objext
40940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40941   (eval $ac_compile) 2>conftest.er1
40942   ac_status=$?
40943   grep -v '^ *+' conftest.er1 >conftest.err
40944   rm -f conftest.er1
40945   cat conftest.err >&5
40946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40947   (exit $ac_status); } &&
40948          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40950   (eval $ac_try) 2>&5
40951   ac_status=$?
40952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40953   (exit $ac_status); }; } &&
40954          { ac_try='test -s conftest.$ac_objext'
40955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40956   (eval $ac_try) 2>&5
40957   ac_status=$?
40958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40959   (exit $ac_status); }; }; then
40960   ac_cv_func_which_gethostbyname_r=five
40961 else
40962   echo "$as_me: failed program was:" >&5
40963 sed 's/^/| /' conftest.$ac_ext >&5
40964
40965 fi
40966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40967
40968 fi
40969
40970 #
40971 # THREE ARGUMENTS
40972 # (e.g. AIX, HP-UX, Tru64)
40973 #
40974
40975 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40976
40977 cat >conftest.$ac_ext <<_ACEOF
40978 /* confdefs.h.  */
40979 _ACEOF
40980 cat confdefs.h >>conftest.$ac_ext
40981 cat >>conftest.$ac_ext <<_ACEOF
40982 /* end confdefs.h.  */
40983 #include <netdb.h>
40984 int
40985 main ()
40986 {
40987
40988             char *name = "www.gnu.org";
40989             struct hostent ret;
40990             struct hostent_data data;
40991             (void)gethostbyname_r(name, &ret, &data) /* ; */
40992
40993   ;
40994   return 0;
40995 }
40996 _ACEOF
40997 rm -f conftest.$ac_objext
40998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40999   (eval $ac_compile) 2>conftest.er1
41000   ac_status=$?
41001   grep -v '^ *+' conftest.er1 >conftest.err
41002   rm -f conftest.er1
41003   cat conftest.err >&5
41004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41005   (exit $ac_status); } &&
41006          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41008   (eval $ac_try) 2>&5
41009   ac_status=$?
41010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41011   (exit $ac_status); }; } &&
41012          { ac_try='test -s conftest.$ac_objext'
41013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41014   (eval $ac_try) 2>&5
41015   ac_status=$?
41016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41017   (exit $ac_status); }; }; then
41018   ac_cv_func_which_gethostbyname_r=three
41019 else
41020   echo "$as_me: failed program was:" >&5
41021 sed 's/^/| /' conftest.$ac_ext >&5
41022
41023 fi
41024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41025
41026 fi
41027
41028 ################################################################
41029
41030
41031 fi
41032
41033 case "$ac_cv_func_which_gethostbyname_r" in
41034     three)
41035     echo "$as_me:$LINENO: result: three" >&5
41036 echo "${ECHO_T}three" >&6
41037     cat >>confdefs.h <<\_ACEOF
41038 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
41039 _ACEOF
41040
41041     ;;
41042
41043     five)
41044     echo "$as_me:$LINENO: result: five" >&5
41045 echo "${ECHO_T}five" >&6
41046     cat >>confdefs.h <<\_ACEOF
41047 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
41048 _ACEOF
41049
41050     ;;
41051
41052     six)
41053     echo "$as_me:$LINENO: result: six" >&5
41054 echo "${ECHO_T}six" >&6
41055     cat >>confdefs.h <<\_ACEOF
41056 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
41057 _ACEOF
41058
41059     ;;
41060
41061     no)
41062     echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
41063 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
41064     ;;
41065
41066     unknown)
41067     echo "$as_me:$LINENO: result: can't tell" >&5
41068 echo "${ECHO_T}can't tell" >&6
41069     ;;
41070
41071     *)
41072     { { echo "$as_me:$LINENO: error: internal error" >&5
41073 echo "$as_me: error: internal error" >&2;}
41074    { (exit 1); exit 1; }; }
41075     ;;
41076 esac
41077
41078 ac_ext=c
41079 ac_cpp='$CPP $CPPFLAGS'
41080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41083
41084
41085
41086       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
41087               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
41088           echo "$as_me:$LINENO: checking for gethostbyname" >&5
41089 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
41090 if test "${ac_cv_func_gethostbyname+set}" = set; then
41091   echo $ECHO_N "(cached) $ECHO_C" >&6
41092 else
41093   cat >conftest.$ac_ext <<_ACEOF
41094 /* confdefs.h.  */
41095 _ACEOF
41096 cat confdefs.h >>conftest.$ac_ext
41097 cat >>conftest.$ac_ext <<_ACEOF
41098 /* end confdefs.h.  */
41099 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41100    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41101 #define gethostbyname innocuous_gethostbyname
41102
41103 /* System header to define __stub macros and hopefully few prototypes,
41104     which can conflict with char gethostbyname (); below.
41105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41106     <limits.h> exists even on freestanding compilers.  */
41107
41108 #ifdef __STDC__
41109 # include <limits.h>
41110 #else
41111 # include <assert.h>
41112 #endif
41113
41114 #undef gethostbyname
41115
41116 /* Override any gcc2 internal prototype to avoid an error.  */
41117 #ifdef __cplusplus
41118 extern "C"
41119 {
41120 #endif
41121 /* We use char because int might match the return type of a gcc2
41122    builtin and then its argument prototype would still apply.  */
41123 char gethostbyname ();
41124 /* The GNU C library defines this for functions which it implements
41125     to always fail with ENOSYS.  Some functions are actually named
41126     something starting with __ and the normal name is an alias.  */
41127 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
41128 choke me
41129 #else
41130 char (*f) () = gethostbyname;
41131 #endif
41132 #ifdef __cplusplus
41133 }
41134 #endif
41135
41136 int
41137 main ()
41138 {
41139 return f != gethostbyname;
41140   ;
41141   return 0;
41142 }
41143 _ACEOF
41144 rm -f conftest.$ac_objext conftest$ac_exeext
41145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41146   (eval $ac_link) 2>conftest.er1
41147   ac_status=$?
41148   grep -v '^ *+' conftest.er1 >conftest.err
41149   rm -f conftest.er1
41150   cat conftest.err >&5
41151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41152   (exit $ac_status); } &&
41153          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41155   (eval $ac_try) 2>&5
41156   ac_status=$?
41157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41158   (exit $ac_status); }; } &&
41159          { ac_try='test -s conftest$ac_exeext'
41160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41161   (eval $ac_try) 2>&5
41162   ac_status=$?
41163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41164   (exit $ac_status); }; }; then
41165   ac_cv_func_gethostbyname=yes
41166 else
41167   echo "$as_me: failed program was:" >&5
41168 sed 's/^/| /' conftest.$ac_ext >&5
41169
41170 ac_cv_func_gethostbyname=no
41171 fi
41172 rm -f conftest.err conftest.$ac_objext \
41173       conftest$ac_exeext conftest.$ac_ext
41174 fi
41175 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41176 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
41177 if test $ac_cv_func_gethostbyname = yes; then
41178    cat >>confdefs.h <<\_ACEOF
41179 #define HAVE_GETHOSTBYNAME 1
41180 _ACEOF
41181
41182 fi
41183
41184       fi
41185
41186 echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41187 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6
41188 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
41189   echo $ECHO_N "(cached) $ECHO_C" >&6
41190 else
41191
41192                 ac_ext=cc
41193 ac_cpp='$CXXCPP $CPPFLAGS'
41194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41197
41198
41199         cat >conftest.$ac_ext <<_ACEOF
41200 /* confdefs.h.  */
41201 _ACEOF
41202 cat confdefs.h >>conftest.$ac_ext
41203 cat >>conftest.$ac_ext <<_ACEOF
41204 /* end confdefs.h.  */
41205 #include <netdb.h>
41206 int
41207 main ()
41208 {
41209
41210                 char *name;
41211                 char *proto;
41212                 struct servent *se, *res;
41213                 char buffer[2048];
41214                 int buflen = 2048;
41215                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
41216
41217   ;
41218   return 0;
41219 }
41220 _ACEOF
41221 rm -f conftest.$ac_objext
41222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41223   (eval $ac_compile) 2>conftest.er1
41224   ac_status=$?
41225   grep -v '^ *+' conftest.er1 >conftest.err
41226   rm -f conftest.er1
41227   cat conftest.err >&5
41228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41229   (exit $ac_status); } &&
41230          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41232   (eval $ac_try) 2>&5
41233   ac_status=$?
41234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41235   (exit $ac_status); }; } &&
41236          { ac_try='test -s conftest.$ac_objext'
41237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41238   (eval $ac_try) 2>&5
41239   ac_status=$?
41240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41241   (exit $ac_status); }; }; then
41242   ac_cv_func_which_getservbyname_r=six
41243 else
41244   echo "$as_me: failed program was:" >&5
41245 sed 's/^/| /' conftest.$ac_ext >&5
41246
41247
41248                 cat >conftest.$ac_ext <<_ACEOF
41249 /* confdefs.h.  */
41250 _ACEOF
41251 cat confdefs.h >>conftest.$ac_ext
41252 cat >>conftest.$ac_ext <<_ACEOF
41253 /* end confdefs.h.  */
41254 #include <netdb.h>
41255 int
41256 main ()
41257 {
41258
41259                         char *name;
41260                         char *proto;
41261                         struct servent *se;
41262                         char buffer[2048];
41263                         int buflen = 2048;
41264                         (void) getservbyname_r(name, proto, se, buffer, buflen)
41265
41266   ;
41267   return 0;
41268 }
41269 _ACEOF
41270 rm -f conftest.$ac_objext
41271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41272   (eval $ac_compile) 2>conftest.er1
41273   ac_status=$?
41274   grep -v '^ *+' conftest.er1 >conftest.err
41275   rm -f conftest.er1
41276   cat conftest.err >&5
41277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41278   (exit $ac_status); } &&
41279          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41281   (eval $ac_try) 2>&5
41282   ac_status=$?
41283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41284   (exit $ac_status); }; } &&
41285          { ac_try='test -s conftest.$ac_objext'
41286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41287   (eval $ac_try) 2>&5
41288   ac_status=$?
41289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41290   (exit $ac_status); }; }; then
41291   ac_cv_func_which_getservbyname_r=five
41292 else
41293   echo "$as_me: failed program was:" >&5
41294 sed 's/^/| /' conftest.$ac_ext >&5
41295
41296
41297                         cat >conftest.$ac_ext <<_ACEOF
41298 /* confdefs.h.  */
41299 _ACEOF
41300 cat confdefs.h >>conftest.$ac_ext
41301 cat >>conftest.$ac_ext <<_ACEOF
41302 /* end confdefs.h.  */
41303 #include <netdb.h>
41304 int
41305 main ()
41306 {
41307
41308                                 char *name;
41309                                 char *proto;
41310                                 struct servent *se;
41311                                 struct servent_data data;
41312                                 (void) getservbyname_r(name, proto, se, &data);
41313
41314   ;
41315   return 0;
41316 }
41317 _ACEOF
41318 rm -f conftest.$ac_objext
41319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41320   (eval $ac_compile) 2>conftest.er1
41321   ac_status=$?
41322   grep -v '^ *+' conftest.er1 >conftest.err
41323   rm -f conftest.er1
41324   cat conftest.err >&5
41325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41326   (exit $ac_status); } &&
41327          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
41328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41329   (eval $ac_try) 2>&5
41330   ac_status=$?
41331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41332   (exit $ac_status); }; } &&
41333          { ac_try='test -s conftest.$ac_objext'
41334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41335   (eval $ac_try) 2>&5
41336   ac_status=$?
41337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41338   (exit $ac_status); }; }; then
41339   ac_cv_func_which_getservbyname_r=four
41340 else
41341   echo "$as_me: failed program was:" >&5
41342 sed 's/^/| /' conftest.$ac_ext >&5
41343
41344 ac_cv_func_which_getservbyname_r=no
41345
41346 fi
41347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41348
41349
41350 fi
41351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41352
41353
41354 fi
41355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41356         ac_ext=c
41357 ac_cpp='$CPP $CPPFLAGS'
41358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41361
41362
41363
41364 fi
41365 echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41366 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
41367
41368 if test $ac_cv_func_which_getservbyname_r = six; then
41369   cat >>confdefs.h <<\_ACEOF
41370 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
41371 _ACEOF
41372
41373 elif test $ac_cv_func_which_getservbyname_r = five; then
41374   cat >>confdefs.h <<\_ACEOF
41375 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
41376 _ACEOF
41377
41378 elif test $ac_cv_func_which_getservbyname_r = four; then
41379   cat >>confdefs.h <<\_ACEOF
41380 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
41381 _ACEOF
41382
41383 fi
41384
41385
41386       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41387               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41388
41389 for ac_func in getservbyname
41390 do
41391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41392 echo "$as_me:$LINENO: checking for $ac_func" >&5
41393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41394 if eval "test \"\${$as_ac_var+set}\" = set"; then
41395   echo $ECHO_N "(cached) $ECHO_C" >&6
41396 else
41397   cat >conftest.$ac_ext <<_ACEOF
41398 /* confdefs.h.  */
41399 _ACEOF
41400 cat confdefs.h >>conftest.$ac_ext
41401 cat >>conftest.$ac_ext <<_ACEOF
41402 /* end confdefs.h.  */
41403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41405 #define $ac_func innocuous_$ac_func
41406
41407 /* System header to define __stub macros and hopefully few prototypes,
41408     which can conflict with char $ac_func (); below.
41409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41410     <limits.h> exists even on freestanding compilers.  */
41411
41412 #ifdef __STDC__
41413 # include <limits.h>
41414 #else
41415 # include <assert.h>
41416 #endif
41417
41418 #undef $ac_func
41419
41420 /* Override any gcc2 internal prototype to avoid an error.  */
41421 #ifdef __cplusplus
41422 extern "C"
41423 {
41424 #endif
41425 /* We use char because int might match the return type of a gcc2
41426    builtin and then its argument prototype would still apply.  */
41427 char $ac_func ();
41428 /* The GNU C library defines this for functions which it implements
41429     to always fail with ENOSYS.  Some functions are actually named
41430     something starting with __ and the normal name is an alias.  */
41431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41432 choke me
41433 #else
41434 char (*f) () = $ac_func;
41435 #endif
41436 #ifdef __cplusplus
41437 }
41438 #endif
41439
41440 int
41441 main ()
41442 {
41443 return f != $ac_func;
41444   ;
41445   return 0;
41446 }
41447 _ACEOF
41448 rm -f conftest.$ac_objext conftest$ac_exeext
41449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41450   (eval $ac_link) 2>conftest.er1
41451   ac_status=$?
41452   grep -v '^ *+' conftest.er1 >conftest.err
41453   rm -f conftest.er1
41454   cat conftest.err >&5
41455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41456   (exit $ac_status); } &&
41457          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41459   (eval $ac_try) 2>&5
41460   ac_status=$?
41461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41462   (exit $ac_status); }; } &&
41463          { ac_try='test -s conftest$ac_exeext'
41464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41465   (eval $ac_try) 2>&5
41466   ac_status=$?
41467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41468   (exit $ac_status); }; }; then
41469   eval "$as_ac_var=yes"
41470 else
41471   echo "$as_me: failed program was:" >&5
41472 sed 's/^/| /' conftest.$ac_ext >&5
41473
41474 eval "$as_ac_var=no"
41475 fi
41476 rm -f conftest.err conftest.$ac_objext \
41477       conftest$ac_exeext conftest.$ac_ext
41478 fi
41479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41481 if test `eval echo '${'$as_ac_var'}'` = yes; then
41482   cat >>confdefs.h <<_ACEOF
41483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41484 _ACEOF
41485   cat >>confdefs.h <<\_ACEOF
41486 #define HAVE_GETSERVBYNAME 1
41487 _ACEOF
41488
41489 fi
41490 done
41491
41492       fi
41493
41494 if test "$wxUSE_THREADS" = "yes"; then
41495   cat >>confdefs.h <<\_ACEOF
41496 #define wxUSE_THREADS 1
41497 _ACEOF
41498
41499
41500   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41501 else
41502       if test "$wx_cv_func_strtok_r" = "yes"; then
41503     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41504 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
41505     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41506         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41507         echo "$as_me:$LINENO: result: yes" >&5
41508 echo "${ECHO_T}yes" >&6
41509     else
41510         echo "$as_me:$LINENO: result: no" >&5
41511 echo "${ECHO_T}no" >&6
41512     fi
41513   fi
41514 fi
41515
41516 if test "$WXGTK20" = 1 ; then
41517   cat >>confdefs.h <<_ACEOF
41518 #define __WXGTK20__ $WXGTK20
41519 _ACEOF
41520
41521   WXGTK12=1
41522 fi
41523
41524 if test "$WXGTK12" = 1 ; then
41525   cat >>confdefs.h <<_ACEOF
41526 #define __WXGTK12__ $WXGTK12
41527 _ACEOF
41528
41529 fi
41530
41531 if test "$WXGTK127" = 1 ; then
41532   cat >>confdefs.h <<_ACEOF
41533 #define __WXGTK127__ $WXGTK127
41534 _ACEOF
41535
41536 fi
41537
41538 if test "$WXGPE" = 1 ; then
41539   cat >>confdefs.h <<_ACEOF
41540 #define __WXGPE__ $WXGPE
41541 _ACEOF
41542
41543 fi
41544
41545 DEBUG_CFLAGS=
41546 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41547     DEBUG_CFLAGS="-g"
41548     wxUSE_OPTIMISE=no
41549 fi
41550
41551 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41552     wxUSE_DEBUG_INFO=yes
41553     if test "$GCC" = yes; then
41554         DEBUG_CFLAGS="-ggdb"
41555     fi
41556 fi
41557
41558 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41559     cat >>confdefs.h <<\_ACEOF
41560 #define WXDEBUG 1
41561 _ACEOF
41562
41563     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41564 else
41565     if test "$wxUSE_GTK" = 1 ; then
41566         if test "x$wxGTK_VERSION" = "x1" ; then
41567             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41568         fi
41569     fi
41570 fi
41571
41572 if test "$wxUSE_MEM_TRACING" = "yes" ; then
41573     cat >>confdefs.h <<\_ACEOF
41574 #define wxUSE_MEMORY_TRACING 1
41575 _ACEOF
41576
41577     cat >>confdefs.h <<\_ACEOF
41578 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41579 _ACEOF
41580
41581     cat >>confdefs.h <<\_ACEOF
41582 #define wxUSE_DEBUG_NEW_ALWAYS 1
41583 _ACEOF
41584
41585     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41586 fi
41587
41588 if test "$wxUSE_DMALLOC" = "yes" ; then
41589     DMALLOC_LIBS="-ldmallocthcxx"
41590 fi
41591
41592 PROFILE_FLAGS=
41593 if test "$wxUSE_PROFILE" = "yes" ; then
41594     PROFILE_FLAGS=" -pg"
41595 fi
41596
41597 if test "$GCC" = "yes" ; then
41598     if test "$wxUSE_NO_RTTI" = "yes" ; then
41599         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41600     fi
41601     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41602         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41603     fi
41604     if test "$wxUSE_PERMISSIVE" = "yes" ; then
41605         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41606     fi
41607
41608                                                 case "${host}" in
41609       powerpc*-*-aix* )
41610         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41611         ;;
41612       *-hppa* )
41613         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41614         ;;
41615     esac
41616 fi
41617
41618 OPTIMISE_CFLAGS=
41619 if test "$wxUSE_OPTIMISE" = "no" ; then
41620     if test "$GCC" = yes ; then
41621                         OPTIMISE_CFLAGS="-O0"
41622     fi
41623 else
41624     if test "$GCC" = yes ; then
41625         case "${host}" in
41626             *-pc-os2_emx | *-pc-os2-emx )
41627                                                 OPTIMISE_CFLAGS="-O2"
41628             ;;
41629             *)
41630                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41631             ;;
41632         esac
41633     else
41634         OPTIMISE_CFLAGS="-O"
41635     fi
41636 fi
41637
41638
41639 if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
41640     cat >>confdefs.h <<\_ACEOF
41641 #define WXWIN_COMPATIBILITY_2_4 1
41642 _ACEOF
41643
41644
41645     WXWIN_COMPATIBILITY_2_6="yes"
41646 fi
41647
41648 if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
41649     cat >>confdefs.h <<\_ACEOF
41650 #define WXWIN_COMPATIBILITY_2_6 1
41651 _ACEOF
41652
41653 fi
41654
41655
41656 if test "$wxUSE_GUI" = "yes"; then
41657     cat >>confdefs.h <<\_ACEOF
41658 #define wxUSE_GUI 1
41659 _ACEOF
41660
41661
41662                                             fi
41663
41664
41665 if test "$wxUSE_UNIX" = "yes"; then
41666   cat >>confdefs.h <<\_ACEOF
41667 #define wxUSE_UNIX 1
41668 _ACEOF
41669
41670 fi
41671
41672
41673 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41674
41675     HAVE_DL_FUNCS=0
41676     HAVE_SHL_FUNCS=0
41677     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41678         if test "$USE_DARWIN" = 1; then
41679                         HAVE_DL_FUNCS=1
41680         elif test "$USE_DOS" = 1; then
41681             HAVE_DL_FUNCS=0
41682         else
41683
41684 for ac_func in dlopen
41685 do
41686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41687 echo "$as_me:$LINENO: checking for $ac_func" >&5
41688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41689 if eval "test \"\${$as_ac_var+set}\" = set"; then
41690   echo $ECHO_N "(cached) $ECHO_C" >&6
41691 else
41692   cat >conftest.$ac_ext <<_ACEOF
41693 /* confdefs.h.  */
41694 _ACEOF
41695 cat confdefs.h >>conftest.$ac_ext
41696 cat >>conftest.$ac_ext <<_ACEOF
41697 /* end confdefs.h.  */
41698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41700 #define $ac_func innocuous_$ac_func
41701
41702 /* System header to define __stub macros and hopefully few prototypes,
41703     which can conflict with char $ac_func (); below.
41704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41705     <limits.h> exists even on freestanding compilers.  */
41706
41707 #ifdef __STDC__
41708 # include <limits.h>
41709 #else
41710 # include <assert.h>
41711 #endif
41712
41713 #undef $ac_func
41714
41715 /* Override any gcc2 internal prototype to avoid an error.  */
41716 #ifdef __cplusplus
41717 extern "C"
41718 {
41719 #endif
41720 /* We use char because int might match the return type of a gcc2
41721    builtin and then its argument prototype would still apply.  */
41722 char $ac_func ();
41723 /* The GNU C library defines this for functions which it implements
41724     to always fail with ENOSYS.  Some functions are actually named
41725     something starting with __ and the normal name is an alias.  */
41726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41727 choke me
41728 #else
41729 char (*f) () = $ac_func;
41730 #endif
41731 #ifdef __cplusplus
41732 }
41733 #endif
41734
41735 int
41736 main ()
41737 {
41738 return f != $ac_func;
41739   ;
41740   return 0;
41741 }
41742 _ACEOF
41743 rm -f conftest.$ac_objext conftest$ac_exeext
41744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41745   (eval $ac_link) 2>conftest.er1
41746   ac_status=$?
41747   grep -v '^ *+' conftest.er1 >conftest.err
41748   rm -f conftest.er1
41749   cat conftest.err >&5
41750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41751   (exit $ac_status); } &&
41752          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41754   (eval $ac_try) 2>&5
41755   ac_status=$?
41756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41757   (exit $ac_status); }; } &&
41758          { ac_try='test -s conftest$ac_exeext'
41759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41760   (eval $ac_try) 2>&5
41761   ac_status=$?
41762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41763   (exit $ac_status); }; }; then
41764   eval "$as_ac_var=yes"
41765 else
41766   echo "$as_me: failed program was:" >&5
41767 sed 's/^/| /' conftest.$ac_ext >&5
41768
41769 eval "$as_ac_var=no"
41770 fi
41771 rm -f conftest.err conftest.$ac_objext \
41772       conftest$ac_exeext conftest.$ac_ext
41773 fi
41774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41776 if test `eval echo '${'$as_ac_var'}'` = yes; then
41777   cat >>confdefs.h <<_ACEOF
41778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41779 _ACEOF
41780
41781                 cat >>confdefs.h <<\_ACEOF
41782 #define HAVE_DLOPEN 1
41783 _ACEOF
41784
41785                 HAVE_DL_FUNCS=1
41786
41787 else
41788
41789                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41790 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
41791 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41792   echo $ECHO_N "(cached) $ECHO_C" >&6
41793 else
41794   ac_check_lib_save_LIBS=$LIBS
41795 LIBS="-ldl  $LIBS"
41796 cat >conftest.$ac_ext <<_ACEOF
41797 /* confdefs.h.  */
41798 _ACEOF
41799 cat confdefs.h >>conftest.$ac_ext
41800 cat >>conftest.$ac_ext <<_ACEOF
41801 /* end confdefs.h.  */
41802
41803 /* Override any gcc2 internal prototype to avoid an error.  */
41804 #ifdef __cplusplus
41805 extern "C"
41806 #endif
41807 /* We use char because int might match the return type of a gcc2
41808    builtin and then its argument prototype would still apply.  */
41809 char dlopen ();
41810 int
41811 main ()
41812 {
41813 dlopen ();
41814   ;
41815   return 0;
41816 }
41817 _ACEOF
41818 rm -f conftest.$ac_objext conftest$ac_exeext
41819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41820   (eval $ac_link) 2>conftest.er1
41821   ac_status=$?
41822   grep -v '^ *+' conftest.er1 >conftest.err
41823   rm -f conftest.er1
41824   cat conftest.err >&5
41825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41826   (exit $ac_status); } &&
41827          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41829   (eval $ac_try) 2>&5
41830   ac_status=$?
41831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41832   (exit $ac_status); }; } &&
41833          { ac_try='test -s conftest$ac_exeext'
41834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41835   (eval $ac_try) 2>&5
41836   ac_status=$?
41837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41838   (exit $ac_status); }; }; then
41839   ac_cv_lib_dl_dlopen=yes
41840 else
41841   echo "$as_me: failed program was:" >&5
41842 sed 's/^/| /' conftest.$ac_ext >&5
41843
41844 ac_cv_lib_dl_dlopen=no
41845 fi
41846 rm -f conftest.err conftest.$ac_objext \
41847       conftest$ac_exeext conftest.$ac_ext
41848 LIBS=$ac_check_lib_save_LIBS
41849 fi
41850 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41851 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
41852 if test $ac_cv_lib_dl_dlopen = yes; then
41853
41854                                 cat >>confdefs.h <<\_ACEOF
41855 #define HAVE_DLOPEN 1
41856 _ACEOF
41857
41858                                 HAVE_DL_FUNCS=1
41859                                 DL_LINK=" -ldl$DL_LINK"
41860
41861 else
41862
41863
41864 for ac_func in shl_load
41865 do
41866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41867 echo "$as_me:$LINENO: checking for $ac_func" >&5
41868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41869 if eval "test \"\${$as_ac_var+set}\" = set"; then
41870   echo $ECHO_N "(cached) $ECHO_C" >&6
41871 else
41872   cat >conftest.$ac_ext <<_ACEOF
41873 /* confdefs.h.  */
41874 _ACEOF
41875 cat confdefs.h >>conftest.$ac_ext
41876 cat >>conftest.$ac_ext <<_ACEOF
41877 /* end confdefs.h.  */
41878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41879    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41880 #define $ac_func innocuous_$ac_func
41881
41882 /* System header to define __stub macros and hopefully few prototypes,
41883     which can conflict with char $ac_func (); below.
41884     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41885     <limits.h> exists even on freestanding compilers.  */
41886
41887 #ifdef __STDC__
41888 # include <limits.h>
41889 #else
41890 # include <assert.h>
41891 #endif
41892
41893 #undef $ac_func
41894
41895 /* Override any gcc2 internal prototype to avoid an error.  */
41896 #ifdef __cplusplus
41897 extern "C"
41898 {
41899 #endif
41900 /* We use char because int might match the return type of a gcc2
41901    builtin and then its argument prototype would still apply.  */
41902 char $ac_func ();
41903 /* The GNU C library defines this for functions which it implements
41904     to always fail with ENOSYS.  Some functions are actually named
41905     something starting with __ and the normal name is an alias.  */
41906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41907 choke me
41908 #else
41909 char (*f) () = $ac_func;
41910 #endif
41911 #ifdef __cplusplus
41912 }
41913 #endif
41914
41915 int
41916 main ()
41917 {
41918 return f != $ac_func;
41919   ;
41920   return 0;
41921 }
41922 _ACEOF
41923 rm -f conftest.$ac_objext conftest$ac_exeext
41924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41925   (eval $ac_link) 2>conftest.er1
41926   ac_status=$?
41927   grep -v '^ *+' conftest.er1 >conftest.err
41928   rm -f conftest.er1
41929   cat conftest.err >&5
41930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41931   (exit $ac_status); } &&
41932          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41934   (eval $ac_try) 2>&5
41935   ac_status=$?
41936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41937   (exit $ac_status); }; } &&
41938          { ac_try='test -s conftest$ac_exeext'
41939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41940   (eval $ac_try) 2>&5
41941   ac_status=$?
41942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41943   (exit $ac_status); }; }; then
41944   eval "$as_ac_var=yes"
41945 else
41946   echo "$as_me: failed program was:" >&5
41947 sed 's/^/| /' conftest.$ac_ext >&5
41948
41949 eval "$as_ac_var=no"
41950 fi
41951 rm -f conftest.err conftest.$ac_objext \
41952       conftest$ac_exeext conftest.$ac_ext
41953 fi
41954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41956 if test `eval echo '${'$as_ac_var'}'` = yes; then
41957   cat >>confdefs.h <<_ACEOF
41958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41959 _ACEOF
41960
41961                                                 cat >>confdefs.h <<\_ACEOF
41962 #define HAVE_SHL_LOAD 1
41963 _ACEOF
41964
41965                                                 HAVE_SHL_FUNCS=1
41966
41967 else
41968
41969                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41970 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
41971 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41972   echo $ECHO_N "(cached) $ECHO_C" >&6
41973 else
41974   ac_check_lib_save_LIBS=$LIBS
41975 LIBS="-lshl_load  $LIBS"
41976 cat >conftest.$ac_ext <<_ACEOF
41977 /* confdefs.h.  */
41978 _ACEOF
41979 cat confdefs.h >>conftest.$ac_ext
41980 cat >>conftest.$ac_ext <<_ACEOF
41981 /* end confdefs.h.  */
41982
41983 /* Override any gcc2 internal prototype to avoid an error.  */
41984 #ifdef __cplusplus
41985 extern "C"
41986 #endif
41987 /* We use char because int might match the return type of a gcc2
41988    builtin and then its argument prototype would still apply.  */
41989 char dld ();
41990 int
41991 main ()
41992 {
41993 dld ();
41994   ;
41995   return 0;
41996 }
41997 _ACEOF
41998 rm -f conftest.$ac_objext conftest$ac_exeext
41999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42000   (eval $ac_link) 2>conftest.er1
42001   ac_status=$?
42002   grep -v '^ *+' conftest.er1 >conftest.err
42003   rm -f conftest.er1
42004   cat conftest.err >&5
42005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42006   (exit $ac_status); } &&
42007          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42009   (eval $ac_try) 2>&5
42010   ac_status=$?
42011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42012   (exit $ac_status); }; } &&
42013          { ac_try='test -s conftest$ac_exeext'
42014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42015   (eval $ac_try) 2>&5
42016   ac_status=$?
42017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42018   (exit $ac_status); }; }; then
42019   ac_cv_lib_shl_load_dld=yes
42020 else
42021   echo "$as_me: failed program was:" >&5
42022 sed 's/^/| /' conftest.$ac_ext >&5
42023
42024 ac_cv_lib_shl_load_dld=no
42025 fi
42026 rm -f conftest.err conftest.$ac_objext \
42027       conftest$ac_exeext conftest.$ac_ext
42028 LIBS=$ac_check_lib_save_LIBS
42029 fi
42030 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
42031 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
42032 if test $ac_cv_lib_shl_load_dld = yes; then
42033
42034                                                                 HAVE_SHL_FUNCS=1
42035                                                                 DL_LINK=" -ldld$DL_LINK"
42036
42037 fi
42038
42039
42040 fi
42041 done
42042
42043
42044 fi
42045
42046
42047 fi
42048 done
42049
42050
42051                 if test "$HAVE_DL_FUNCS" = 1; then
42052
42053 for ac_func in dlerror
42054 do
42055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42056 echo "$as_me:$LINENO: checking for $ac_func" >&5
42057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42058 if eval "test \"\${$as_ac_var+set}\" = set"; then
42059   echo $ECHO_N "(cached) $ECHO_C" >&6
42060 else
42061   cat >conftest.$ac_ext <<_ACEOF
42062 /* confdefs.h.  */
42063 _ACEOF
42064 cat confdefs.h >>conftest.$ac_ext
42065 cat >>conftest.$ac_ext <<_ACEOF
42066 /* end confdefs.h.  */
42067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42069 #define $ac_func innocuous_$ac_func
42070
42071 /* System header to define __stub macros and hopefully few prototypes,
42072     which can conflict with char $ac_func (); below.
42073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42074     <limits.h> exists even on freestanding compilers.  */
42075
42076 #ifdef __STDC__
42077 # include <limits.h>
42078 #else
42079 # include <assert.h>
42080 #endif
42081
42082 #undef $ac_func
42083
42084 /* Override any gcc2 internal prototype to avoid an error.  */
42085 #ifdef __cplusplus
42086 extern "C"
42087 {
42088 #endif
42089 /* We use char because int might match the return type of a gcc2
42090    builtin and then its argument prototype would still apply.  */
42091 char $ac_func ();
42092 /* The GNU C library defines this for functions which it implements
42093     to always fail with ENOSYS.  Some functions are actually named
42094     something starting with __ and the normal name is an alias.  */
42095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42096 choke me
42097 #else
42098 char (*f) () = $ac_func;
42099 #endif
42100 #ifdef __cplusplus
42101 }
42102 #endif
42103
42104 int
42105 main ()
42106 {
42107 return f != $ac_func;
42108   ;
42109   return 0;
42110 }
42111 _ACEOF
42112 rm -f conftest.$ac_objext conftest$ac_exeext
42113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42114   (eval $ac_link) 2>conftest.er1
42115   ac_status=$?
42116   grep -v '^ *+' conftest.er1 >conftest.err
42117   rm -f conftest.er1
42118   cat conftest.err >&5
42119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42120   (exit $ac_status); } &&
42121          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42123   (eval $ac_try) 2>&5
42124   ac_status=$?
42125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42126   (exit $ac_status); }; } &&
42127          { ac_try='test -s conftest$ac_exeext'
42128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42129   (eval $ac_try) 2>&5
42130   ac_status=$?
42131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42132   (exit $ac_status); }; }; then
42133   eval "$as_ac_var=yes"
42134 else
42135   echo "$as_me: failed program was:" >&5
42136 sed 's/^/| /' conftest.$ac_ext >&5
42137
42138 eval "$as_ac_var=no"
42139 fi
42140 rm -f conftest.err conftest.$ac_objext \
42141       conftest$ac_exeext conftest.$ac_ext
42142 fi
42143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42145 if test `eval echo '${'$as_ac_var'}'` = yes; then
42146   cat >>confdefs.h <<_ACEOF
42147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42148 _ACEOF
42149  cat >>confdefs.h <<\_ACEOF
42150 #define HAVE_DLERROR 1
42151 _ACEOF
42152
42153 else
42154
42155                     echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42156 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
42157 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42158   echo $ECHO_N "(cached) $ECHO_C" >&6
42159 else
42160   ac_check_lib_save_LIBS=$LIBS
42161 LIBS="-ldl  $LIBS"
42162 cat >conftest.$ac_ext <<_ACEOF
42163 /* confdefs.h.  */
42164 _ACEOF
42165 cat confdefs.h >>conftest.$ac_ext
42166 cat >>conftest.$ac_ext <<_ACEOF
42167 /* end confdefs.h.  */
42168
42169 /* Override any gcc2 internal prototype to avoid an error.  */
42170 #ifdef __cplusplus
42171 extern "C"
42172 #endif
42173 /* We use char because int might match the return type of a gcc2
42174    builtin and then its argument prototype would still apply.  */
42175 char dlerror ();
42176 int
42177 main ()
42178 {
42179 dlerror ();
42180   ;
42181   return 0;
42182 }
42183 _ACEOF
42184 rm -f conftest.$ac_objext conftest$ac_exeext
42185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42186   (eval $ac_link) 2>conftest.er1
42187   ac_status=$?
42188   grep -v '^ *+' conftest.er1 >conftest.err
42189   rm -f conftest.er1
42190   cat conftest.err >&5
42191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42192   (exit $ac_status); } &&
42193          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42195   (eval $ac_try) 2>&5
42196   ac_status=$?
42197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42198   (exit $ac_status); }; } &&
42199          { ac_try='test -s conftest$ac_exeext'
42200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42201   (eval $ac_try) 2>&5
42202   ac_status=$?
42203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42204   (exit $ac_status); }; }; then
42205   ac_cv_lib_dl_dlerror=yes
42206 else
42207   echo "$as_me: failed program was:" >&5
42208 sed 's/^/| /' conftest.$ac_ext >&5
42209
42210 ac_cv_lib_dl_dlerror=no
42211 fi
42212 rm -f conftest.err conftest.$ac_objext \
42213       conftest$ac_exeext conftest.$ac_ext
42214 LIBS=$ac_check_lib_save_LIBS
42215 fi
42216 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42217 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
42218 if test $ac_cv_lib_dl_dlerror = yes; then
42219   cat >>confdefs.h <<\_ACEOF
42220 #define HAVE_DLERROR 1
42221 _ACEOF
42222
42223 fi
42224
42225
42226
42227 fi
42228 done
42229
42230         fi
42231         fi
42232
42233         if test "$HAVE_DL_FUNCS" = 0; then
42234             if test "$HAVE_SHL_FUNCS" = 0; then
42235               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
42236                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42237 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42238                   wxUSE_DYNAMIC_LOADER=no
42239                   wxUSE_DYNLIB_CLASS=no
42240               else
42241                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42242 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42243               fi
42244             fi
42245         fi
42246     fi
42247 fi
42248
42249 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42250     cat >>confdefs.h <<\_ACEOF
42251 #define wxUSE_DYNAMIC_LOADER 1
42252 _ACEOF
42253
42254 fi
42255 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42256     cat >>confdefs.h <<\_ACEOF
42257 #define wxUSE_DYNLIB_CLASS 1
42258 _ACEOF
42259
42260 fi
42261
42262
42263
42264 if test "$wxUSE_PLUGINS" = "yes" ; then
42265     if test "$wxUSE_SHARED" = "no" ; then
42266         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42267 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42268         wxUSE_PLUGINS=no
42269     fi
42270     if test "$wxUSE_MONOLITHIC" = "yes" ; then
42271         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42272 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42273         wxUSE_PLUGINS=no
42274     fi
42275     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42276         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42277 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42278         wxUSE_PLUGINS=no
42279     fi
42280     if test "$wxUSE_PLUGINS" = "yes" ; then
42281         cat >>confdefs.h <<\_ACEOF
42282 #define wxUSE_PLUGINS 1
42283 _ACEOF
42284
42285     fi
42286 fi
42287
42288
42289 if test "$wxUSE_STL" = "yes"; then
42290   cat >>confdefs.h <<\_ACEOF
42291 #define wxUSE_STL 1
42292 _ACEOF
42293
42294 fi
42295
42296 if test "$wxUSE_APPLE_IEEE" = "yes"; then
42297   cat >>confdefs.h <<\_ACEOF
42298 #define wxUSE_APPLE_IEEE 1
42299 _ACEOF
42300
42301 fi
42302
42303 if test "$wxUSE_TIMER" = "yes"; then
42304   cat >>confdefs.h <<\_ACEOF
42305 #define wxUSE_TIMER 1
42306 _ACEOF
42307
42308 fi
42309
42310 if test "$USE_UNIX" = "1" ; then
42311         if test "$wxUSE_MGL" != 1; then
42312                                 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42313 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
42314 if test "${ac_cv_header_sys_soundcard+set}" = set; then
42315   echo $ECHO_N "(cached) $ECHO_C" >&6
42316 else
42317
42318             cat >conftest.$ac_ext <<_ACEOF
42319 /* confdefs.h.  */
42320 _ACEOF
42321 cat confdefs.h >>conftest.$ac_ext
42322 cat >>conftest.$ac_ext <<_ACEOF
42323 /* end confdefs.h.  */
42324
42325                     #include <sys/ioctl.h>
42326                     #include <sys/soundcard.h>
42327
42328 int
42329 main ()
42330 {
42331
42332                     ioctl(0, SNDCTL_DSP_SPEED, 0);
42333
42334   ;
42335   return 0;
42336 }
42337 _ACEOF
42338 rm -f conftest.$ac_objext conftest$ac_exeext
42339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42340   (eval $ac_link) 2>conftest.er1
42341   ac_status=$?
42342   grep -v '^ *+' conftest.er1 >conftest.err
42343   rm -f conftest.er1
42344   cat conftest.err >&5
42345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42346   (exit $ac_status); } &&
42347          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42349   (eval $ac_try) 2>&5
42350   ac_status=$?
42351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42352   (exit $ac_status); }; } &&
42353          { ac_try='test -s conftest$ac_exeext'
42354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42355   (eval $ac_try) 2>&5
42356   ac_status=$?
42357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42358   (exit $ac_status); }; }; then
42359   ac_cv_header_sys_soundcard=yes
42360 else
42361   echo "$as_me: failed program was:" >&5
42362 sed 's/^/| /' conftest.$ac_ext >&5
42363
42364
42365                     saveLibs="$LIBS"
42366                     LIBS="$saveLibs -lossaudio"
42367                     cat >conftest.$ac_ext <<_ACEOF
42368 /* confdefs.h.  */
42369 _ACEOF
42370 cat confdefs.h >>conftest.$ac_ext
42371 cat >>conftest.$ac_ext <<_ACEOF
42372 /* end confdefs.h.  */
42373
42374                             #include <sys/ioctl.h>
42375                             #include <sys/soundcard.h>
42376
42377 int
42378 main ()
42379 {
42380
42381                             ioctl(0, SNDCTL_DSP_SPEED, 0);
42382
42383   ;
42384   return 0;
42385 }
42386 _ACEOF
42387 rm -f conftest.$ac_objext conftest$ac_exeext
42388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42389   (eval $ac_link) 2>conftest.er1
42390   ac_status=$?
42391   grep -v '^ *+' conftest.er1 >conftest.err
42392   rm -f conftest.er1
42393   cat conftest.err >&5
42394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42395   (exit $ac_status); } &&
42396          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42398   (eval $ac_try) 2>&5
42399   ac_status=$?
42400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42401   (exit $ac_status); }; } &&
42402          { ac_try='test -s conftest$ac_exeext'
42403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42404   (eval $ac_try) 2>&5
42405   ac_status=$?
42406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42407   (exit $ac_status); }; }; then
42408   ac_cv_header_sys_soundcard=yes
42409 else
42410   echo "$as_me: failed program was:" >&5
42411 sed 's/^/| /' conftest.$ac_ext >&5
42412
42413
42414                             LIBS="$saveLibs"
42415                             ac_cv_header_sys_soundcard=no
42416
42417
42418 fi
42419 rm -f conftest.err conftest.$ac_objext \
42420       conftest$ac_exeext conftest.$ac_ext
42421
42422
42423 fi
42424 rm -f conftest.err conftest.$ac_objext \
42425       conftest$ac_exeext conftest.$ac_ext
42426
42427 fi
42428 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42429 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
42430     fi
42431
42432     if test "$ac_cv_header_sys_soundcard" = "yes"; then
42433         cat >>confdefs.h <<\_ACEOF
42434 #define HAVE_SYS_SOUNDCARD_H 1
42435 _ACEOF
42436
42437     else
42438         DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
42439     fi
42440 fi
42441
42442 WITH_PLUGIN_SDL=0
42443 if test "$wxUSE_SOUND" = "yes"; then
42444   if test "$USE_UNIX" = "1" ; then
42445     if test "$wxUSE_LIBSDL" != "no"; then
42446
42447 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
42448 if test "${with_sdl_prefix+set}" = set; then
42449   withval="$with_sdl_prefix"
42450   sdl_prefix="$withval"
42451 else
42452   sdl_prefix=""
42453 fi;
42454
42455 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
42456 if test "${with_sdl_exec_prefix+set}" = set; then
42457   withval="$with_sdl_exec_prefix"
42458   sdl_exec_prefix="$withval"
42459 else
42460   sdl_exec_prefix=""
42461 fi;
42462 # Check whether --enable-sdltest or --disable-sdltest was given.
42463 if test "${enable_sdltest+set}" = set; then
42464   enableval="$enable_sdltest"
42465
42466 else
42467   enable_sdltest=yes
42468 fi;
42469
42470   if test x$sdl_exec_prefix != x ; then
42471     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42472     if test x${SDL_CONFIG+set} != xset ; then
42473       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42474     fi
42475   fi
42476   if test x$sdl_prefix != x ; then
42477     sdl_args="$sdl_args --prefix=$sdl_prefix"
42478     if test x${SDL_CONFIG+set} != xset ; then
42479       SDL_CONFIG=$sdl_prefix/bin/sdl-config
42480     fi
42481   fi
42482
42483   if test "x$prefix" != xNONE; then
42484     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42485   fi
42486   # Extract the first word of "sdl-config", so it can be a program name with args.
42487 set dummy sdl-config; ac_word=$2
42488 echo "$as_me:$LINENO: checking for $ac_word" >&5
42489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42490 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42491   echo $ECHO_N "(cached) $ECHO_C" >&6
42492 else
42493   case $SDL_CONFIG in
42494   [\\/]* | ?:[\\/]*)
42495   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42496   ;;
42497   *)
42498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42499 for as_dir in $PATH
42500 do
42501   IFS=$as_save_IFS
42502   test -z "$as_dir" && as_dir=.
42503   for ac_exec_ext in '' $ac_executable_extensions; do
42504   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42505     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42507     break 2
42508   fi
42509 done
42510 done
42511
42512   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42513   ;;
42514 esac
42515 fi
42516 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42517
42518 if test -n "$SDL_CONFIG"; then
42519   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42520 echo "${ECHO_T}$SDL_CONFIG" >&6
42521 else
42522   echo "$as_me:$LINENO: result: no" >&5
42523 echo "${ECHO_T}no" >&6
42524 fi
42525
42526   min_sdl_version=1.2.0
42527   echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42528 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
42529   no_sdl=""
42530   if test "$SDL_CONFIG" = "no" ; then
42531     no_sdl=yes
42532   else
42533     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42534     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42535
42536     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42537            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42538     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42539            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42540     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42541            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42542     if test "x$enable_sdltest" = "xyes" ; then
42543       ac_save_CFLAGS="$CFLAGS"
42544       ac_save_CXXFLAGS="$CXXFLAGS"
42545       ac_save_LIBS="$LIBS"
42546       CFLAGS="$CFLAGS $SDL_CFLAGS"
42547       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42548       LIBS="$LIBS $SDL_LIBS"
42549       rm -f conf.sdltest
42550       if test "$cross_compiling" = yes; then
42551   echo $ac_n "cross compiling; assumed OK... $ac_c"
42552 else
42553   cat >conftest.$ac_ext <<_ACEOF
42554 /* confdefs.h.  */
42555 _ACEOF
42556 cat confdefs.h >>conftest.$ac_ext
42557 cat >>conftest.$ac_ext <<_ACEOF
42558 /* end confdefs.h.  */
42559
42560 #include <stdio.h>
42561 #include <stdlib.h>
42562 #include <string.h>
42563 #include "SDL.h"
42564
42565 char*
42566 my_strdup (char *str)
42567 {
42568   char *new_str;
42569
42570   if (str)
42571     {
42572       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42573       strcpy (new_str, str);
42574     }
42575   else
42576     new_str = NULL;
42577
42578   return new_str;
42579 }
42580
42581 int main (int argc, char *argv[])
42582 {
42583   int major, minor, micro;
42584   char *tmp_version;
42585
42586   /* This hangs on some systems (?)
42587   system ("touch conf.sdltest");
42588   */
42589   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42590
42591   /* HP/UX 9 (%@#!) writes to sscanf strings */
42592   tmp_version = my_strdup("$min_sdl_version");
42593   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42594      printf("%s, bad version string\n", "$min_sdl_version");
42595      exit(1);
42596    }
42597
42598    if (($sdl_major_version > major) ||
42599       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42600       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42601     {
42602       return 0;
42603     }
42604   else
42605     {
42606       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42607       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42608       printf("*** best to upgrade to the required version.\n");
42609       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42610       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42611       printf("*** config.cache before re-running configure\n");
42612       return 1;
42613     }
42614 }
42615
42616
42617 _ACEOF
42618 rm -f conftest$ac_exeext
42619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42620   (eval $ac_link) 2>&5
42621   ac_status=$?
42622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42625   (eval $ac_try) 2>&5
42626   ac_status=$?
42627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42628   (exit $ac_status); }; }; then
42629   :
42630 else
42631   echo "$as_me: program exited with status $ac_status" >&5
42632 echo "$as_me: failed program was:" >&5
42633 sed 's/^/| /' conftest.$ac_ext >&5
42634
42635 ( exit $ac_status )
42636 no_sdl=yes
42637 fi
42638 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42639 fi
42640        CFLAGS="$ac_save_CFLAGS"
42641        CXXFLAGS="$ac_save_CXXFLAGS"
42642        LIBS="$ac_save_LIBS"
42643      fi
42644   fi
42645   if test "x$no_sdl" = x ; then
42646      echo "$as_me:$LINENO: result: yes" >&5
42647 echo "${ECHO_T}yes" >&6
42648
42649                     EXTRALIBS_SDL="$SDL_LIBS"
42650                     CFLAGS="$SDL_CFLAGS $CFLAGS"
42651                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
42652                     cat >>confdefs.h <<\_ACEOF
42653 #define wxUSE_LIBSDL 1
42654 _ACEOF
42655
42656
42657   else
42658      echo "$as_me:$LINENO: result: no" >&5
42659 echo "${ECHO_T}no" >&6
42660      if test "$SDL_CONFIG" = "no" ; then
42661        echo "*** The sdl-config script installed by SDL could not be found"
42662        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42663        echo "*** your path, or set the SDL_CONFIG environment variable to the"
42664        echo "*** full path to sdl-config."
42665      else
42666        if test -f conf.sdltest ; then
42667         :
42668        else
42669           echo "*** Could not run SDL test program, checking why..."
42670           CFLAGS="$CFLAGS $SDL_CFLAGS"
42671           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42672           LIBS="$LIBS $SDL_LIBS"
42673           cat >conftest.$ac_ext <<_ACEOF
42674 /* confdefs.h.  */
42675 _ACEOF
42676 cat confdefs.h >>conftest.$ac_ext
42677 cat >>conftest.$ac_ext <<_ACEOF
42678 /* end confdefs.h.  */
42679
42680 #include <stdio.h>
42681 #include "SDL.h"
42682
42683 int main(int argc, char *argv[])
42684 { return 0; }
42685 #undef  main
42686 #define main K_and_R_C_main
42687
42688 int
42689 main ()
42690 {
42691  return 0;
42692   ;
42693   return 0;
42694 }
42695 _ACEOF
42696 rm -f conftest.$ac_objext conftest$ac_exeext
42697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42698   (eval $ac_link) 2>conftest.er1
42699   ac_status=$?
42700   grep -v '^ *+' conftest.er1 >conftest.err
42701   rm -f conftest.er1
42702   cat conftest.err >&5
42703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42704   (exit $ac_status); } &&
42705          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42707   (eval $ac_try) 2>&5
42708   ac_status=$?
42709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42710   (exit $ac_status); }; } &&
42711          { ac_try='test -s conftest$ac_exeext'
42712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42713   (eval $ac_try) 2>&5
42714   ac_status=$?
42715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42716   (exit $ac_status); }; }; then
42717    echo "*** The test program compiled, but did not run. This usually means"
42718           echo "*** that the run-time linker is not finding SDL or finding the wrong"
42719           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42720           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42721           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
42722           echo "*** is required on your system"
42723           echo "***"
42724           echo "*** If you have an old version installed, it is best to remove it, although"
42725           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42726 else
42727   echo "$as_me: failed program was:" >&5
42728 sed 's/^/| /' conftest.$ac_ext >&5
42729
42730  echo "*** The test program failed to compile or link. See the file config.log for the"
42731           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42732           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42733           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42734 fi
42735 rm -f conftest.err conftest.$ac_objext \
42736       conftest$ac_exeext conftest.$ac_ext
42737           CFLAGS="$ac_save_CFLAGS"
42738           CXXFLAGS="$ac_save_CXXFLAGS"
42739           LIBS="$ac_save_LIBS"
42740        fi
42741      fi
42742      SDL_CFLAGS=""
42743      SDL_LIBS=""
42744      wxUSE_LIBSDL="no"
42745   fi
42746
42747
42748   rm -f conf.sdltest
42749
42750       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42751         WITH_PLUGIN_SDL=1
42752       fi
42753     fi
42754   else
42755         if test "$wxUSE_MGL" = 1; then
42756         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
42757 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
42758         wxUSE_SOUND="no"
42759     fi
42760   fi
42761 fi
42762
42763 if test "$wxUSE_SOUND" = "yes"; then
42764   cat >>confdefs.h <<\_ACEOF
42765 #define wxUSE_SOUND 1
42766 _ACEOF
42767
42768   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42769 fi
42770
42771 if test "$WXGTK20" = 1; then
42772
42773
42774 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
42775         if test -n "$ac_tool_prefix"; then
42776   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
42777 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
42778 echo "$as_me:$LINENO: checking for $ac_word" >&5
42779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42780 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42781   echo $ECHO_N "(cached) $ECHO_C" >&6
42782 else
42783   case $PKG_CONFIG in
42784   [\\/]* | ?:[\\/]*)
42785   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42786   ;;
42787   *)
42788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42789 for as_dir in $PATH
42790 do
42791   IFS=$as_save_IFS
42792   test -z "$as_dir" && as_dir=.
42793   for ac_exec_ext in '' $ac_executable_extensions; do
42794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42795     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42797     break 2
42798   fi
42799 done
42800 done
42801
42802   ;;
42803 esac
42804 fi
42805 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42806
42807 if test -n "$PKG_CONFIG"; then
42808   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42809 echo "${ECHO_T}$PKG_CONFIG" >&6
42810 else
42811   echo "$as_me:$LINENO: result: no" >&5
42812 echo "${ECHO_T}no" >&6
42813 fi
42814
42815 fi
42816 if test -z "$ac_cv_path_PKG_CONFIG"; then
42817   ac_pt_PKG_CONFIG=$PKG_CONFIG
42818   # Extract the first word of "pkg-config", so it can be a program name with args.
42819 set dummy pkg-config; ac_word=$2
42820 echo "$as_me:$LINENO: checking for $ac_word" >&5
42821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42822 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
42823   echo $ECHO_N "(cached) $ECHO_C" >&6
42824 else
42825   case $ac_pt_PKG_CONFIG in
42826   [\\/]* | ?:[\\/]*)
42827   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
42828   ;;
42829   *)
42830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42831 for as_dir in $PATH
42832 do
42833   IFS=$as_save_IFS
42834   test -z "$as_dir" && as_dir=.
42835   for ac_exec_ext in '' $ac_executable_extensions; do
42836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42837     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42839     break 2
42840   fi
42841 done
42842 done
42843
42844   ;;
42845 esac
42846 fi
42847 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
42848
42849 if test -n "$ac_pt_PKG_CONFIG"; then
42850   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
42851 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
42852 else
42853   echo "$as_me:$LINENO: result: no" >&5
42854 echo "${ECHO_T}no" >&6
42855 fi
42856
42857   PKG_CONFIG=$ac_pt_PKG_CONFIG
42858 else
42859   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
42860 fi
42861
42862 fi
42863 if test -n "$PKG_CONFIG"; then
42864         _pkg_min_version=0.9.0
42865         echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
42866 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
42867         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
42868                 echo "$as_me:$LINENO: result: yes" >&5
42869 echo "${ECHO_T}yes" >&6
42870         else
42871                 echo "$as_me:$LINENO: result: no" >&5
42872 echo "${ECHO_T}no" >&6
42873                 PKG_CONFIG=""
42874         fi
42875
42876 fi
42877
42878     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42879         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42880
42881
42882 pkg_failed=no
42883 echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42884 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
42885
42886 if test -n "$PKG_CONFIG"; then
42887     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42888         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42889     else
42890         if test -n "$PKG_CONFIG" && \
42891     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42892   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42893   ac_status=$?
42894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42895   (exit $ac_status); }; then
42896   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42897 else
42898   pkg_failed=yes
42899 fi
42900     fi
42901 else
42902         pkg_failed=untried
42903 fi
42904 if test -n "$PKG_CONFIG"; then
42905     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42906         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42907     else
42908         if test -n "$PKG_CONFIG" && \
42909     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42910   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42911   ac_status=$?
42912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42913   (exit $ac_status); }; then
42914   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42915 else
42916   pkg_failed=yes
42917 fi
42918     fi
42919 else
42920         pkg_failed=untried
42921 fi
42922
42923
42924
42925 if test $pkg_failed = yes; then
42926
42927 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42928         _pkg_short_errors_supported=yes
42929 else
42930         _pkg_short_errors_supported=no
42931 fi
42932         if test $_pkg_short_errors_supported = yes; then
42933                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42934         else
42935                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42936         fi
42937         # Put the nasty error message in config.log where it belongs
42938         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
42939
42940
42941                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42942 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42943                         wxUSE_LIBGNOMEPRINT="no"
42944
42945
42946 elif test $pkg_failed = untried; then
42947
42948                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42949 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42950                         wxUSE_LIBGNOMEPRINT="no"
42951
42952
42953 else
42954         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42955         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42956         echo "$as_me:$LINENO: result: yes" >&5
42957 echo "${ECHO_T}yes" >&6
42958
42959                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
42960                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42961                         cat >>confdefs.h <<\_ACEOF
42962 #define wxUSE_LIBGNOMEPRINT 1
42963 _ACEOF
42964
42965
42966 fi
42967         fi
42968     fi
42969
42970     if test "$wxUSE_MIMETYPE" = "yes" ; then
42971         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42972
42973
42974 pkg_failed=no
42975 echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42976 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
42977
42978 if test -n "$PKG_CONFIG"; then
42979     if test -n "$GNOMEVFS_CFLAGS"; then
42980         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42981     else
42982         if test -n "$PKG_CONFIG" && \
42983     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42984   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42985   ac_status=$?
42986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42987   (exit $ac_status); }; then
42988   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42989 else
42990   pkg_failed=yes
42991 fi
42992     fi
42993 else
42994         pkg_failed=untried
42995 fi
42996 if test -n "$PKG_CONFIG"; then
42997     if test -n "$GNOMEVFS_LIBS"; then
42998         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42999     else
43000         if test -n "$PKG_CONFIG" && \
43001     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43002   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43003   ac_status=$?
43004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43005   (exit $ac_status); }; then
43006   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
43007 else
43008   pkg_failed=yes
43009 fi
43010     fi
43011 else
43012         pkg_failed=untried
43013 fi
43014
43015
43016
43017 if test $pkg_failed = yes; then
43018
43019 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43020         _pkg_short_errors_supported=yes
43021 else
43022         _pkg_short_errors_supported=no
43023 fi
43024         if test $_pkg_short_errors_supported = yes; then
43025                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43026         else
43027                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43028         fi
43029         # Put the nasty error message in config.log where it belongs
43030         echo "$GNOMEVFS_PKG_ERRORS" >&5
43031
43032
43033                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43034 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43035                         wxUSE_LIBGNOMEVFS="no"
43036
43037
43038 elif test $pkg_failed = untried; then
43039
43040                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43041 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43042                         wxUSE_LIBGNOMEVFS="no"
43043
43044
43045 else
43046         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43047         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
43048         echo "$as_me:$LINENO: result: yes" >&5
43049 echo "${ECHO_T}yes" >&6
43050
43051                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
43052                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43053                         cat >>confdefs.h <<\_ACEOF
43054 #define wxUSE_LIBGNOMEVFS 1
43055 _ACEOF
43056
43057
43058 fi
43059         fi
43060     fi
43061
43062     if test "$wxUSE_LIBHILDON" = "yes" ; then
43063
43064 pkg_failed=no
43065 echo "$as_me:$LINENO: checking for HILDON" >&5
43066 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
43067
43068 if test -n "$PKG_CONFIG"; then
43069     if test -n "$HILDON_CFLAGS"; then
43070         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43071     else
43072         if test -n "$PKG_CONFIG" && \
43073     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43074   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43075   ac_status=$?
43076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43077   (exit $ac_status); }; then
43078   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
43079 else
43080   pkg_failed=yes
43081 fi
43082     fi
43083 else
43084         pkg_failed=untried
43085 fi
43086 if test -n "$PKG_CONFIG"; then
43087     if test -n "$HILDON_LIBS"; then
43088         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43089     else
43090         if test -n "$PKG_CONFIG" && \
43091     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43092   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43093   ac_status=$?
43094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43095   (exit $ac_status); }; then
43096   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
43097 else
43098   pkg_failed=yes
43099 fi
43100     fi
43101 else
43102         pkg_failed=untried
43103 fi
43104
43105
43106
43107 if test $pkg_failed = yes; then
43108
43109 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43110         _pkg_short_errors_supported=yes
43111 else
43112         _pkg_short_errors_supported=no
43113 fi
43114         if test $_pkg_short_errors_supported = yes; then
43115                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43116         else
43117                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43118         fi
43119         # Put the nasty error message in config.log where it belongs
43120         echo "$HILDON_PKG_ERRORS" >&5
43121
43122
43123                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43124 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43125                         wxUSE_LIBHILDON="no"
43126
43127
43128 elif test $pkg_failed = untried; then
43129
43130                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43131 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43132                         wxUSE_LIBHILDON="no"
43133
43134
43135 else
43136         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43137         HILDON_LIBS=$pkg_cv_HILDON_LIBS
43138         echo "$as_me:$LINENO: result: yes" >&5
43139 echo "${ECHO_T}yes" >&6
43140
43141                 EXTRALIBS_HILDON="$HILDON_LIBS"
43142                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
43143                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43144                 cat >>confdefs.h <<\_ACEOF
43145 #define wxUSE_LIBHILDON 1
43146 _ACEOF
43147
43148
43149 fi
43150     fi
43151 fi
43152
43153 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
43154   cat >>confdefs.h <<\_ACEOF
43155 #define wxUSE_CMDLINE_PARSER 1
43156 _ACEOF
43157
43158 fi
43159
43160 if test "$wxUSE_STOPWATCH" = "yes"; then
43161   cat >>confdefs.h <<\_ACEOF
43162 #define wxUSE_STOPWATCH 1
43163 _ACEOF
43164
43165 fi
43166
43167 if test "$wxUSE_DATETIME" = "yes"; then
43168   cat >>confdefs.h <<\_ACEOF
43169 #define wxUSE_DATETIME 1
43170 _ACEOF
43171
43172 fi
43173
43174 if test "$wxUSE_FILE" = "yes"; then
43175   cat >>confdefs.h <<\_ACEOF
43176 #define wxUSE_FILE 1
43177 _ACEOF
43178
43179 fi
43180
43181 if test "$wxUSE_FFILE" = "yes"; then
43182   cat >>confdefs.h <<\_ACEOF
43183 #define wxUSE_FFILE 1
43184 _ACEOF
43185
43186 fi
43187
43188 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
43189   if test "$wxUSE_STREAMS" != yes; then
43190     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
43191 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
43192     wxUSE_ARCHIVE_STREAMS=no
43193   else
43194     cat >>confdefs.h <<\_ACEOF
43195 #define wxUSE_ARCHIVE_STREAMS 1
43196 _ACEOF
43197
43198   fi
43199 fi
43200
43201 if test "$wxUSE_ZIPSTREAM" = "yes"; then
43202   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43203     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43204 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43205   elif test "$wxUSE_ZLIB" = "no"; then
43206     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43207 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43208   else
43209     cat >>confdefs.h <<\_ACEOF
43210 #define wxUSE_ZIPSTREAM 1
43211 _ACEOF
43212
43213   fi
43214 fi
43215
43216 if test "$wxUSE_TARSTREAM" = "yes"; then
43217   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43218     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
43219 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
43220   else
43221     cat >>confdefs.h <<\_ACEOF
43222 #define wxUSE_TARSTREAM 1
43223 _ACEOF
43224
43225   fi
43226 fi
43227
43228 if test "$wxUSE_FILESYSTEM" = "yes"; then
43229   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
43230     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
43231 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
43232     wxUSE_FILESYSTEM=no
43233   else
43234     cat >>confdefs.h <<\_ACEOF
43235 #define wxUSE_FILESYSTEM 1
43236 _ACEOF
43237
43238   fi
43239 fi
43240
43241 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
43242   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
43243     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
43244 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
43245   else
43246     cat >>confdefs.h <<\_ACEOF
43247 #define wxUSE_FS_ARCHIVE 1
43248 _ACEOF
43249
43250   fi
43251 fi
43252
43253 if test "$wxUSE_FS_ZIP" = "yes"; then
43254   if test "$wxUSE_FS_ARCHIVE" != yes; then
43255     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
43256 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
43257   else
43258     cat >>confdefs.h <<\_ACEOF
43259 #define wxUSE_FS_ZIP 1
43260 _ACEOF
43261
43262   fi
43263 fi
43264
43265 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43266   if test "$USE_UNIX" != 1; then
43267     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43268 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43269     wxUSE_ON_FATAL_EXCEPTION=no
43270   else
43271     cat >>confdefs.h <<\_ACEOF
43272 #define wxUSE_ON_FATAL_EXCEPTION 1
43273 _ACEOF
43274
43275   fi
43276 fi
43277
43278 if test "$wxUSE_STACKWALKER" = "yes"; then
43279     cat >>confdefs.h <<\_ACEOF
43280 #define wxUSE_STACKWALKER 1
43281 _ACEOF
43282
43283 fi
43284
43285 if test "$wxUSE_DEBUGREPORT" = "yes"; then
43286     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
43287         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43288 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
43289         wxUSE_DEBUGREPORT=no
43290     else
43291         cat >>confdefs.h <<\_ACEOF
43292 #define wxUSE_DEBUGREPORT 1
43293 _ACEOF
43294
43295         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43296             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43297         fi
43298     fi
43299 fi
43300
43301 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43302   cat >>confdefs.h <<\_ACEOF
43303 #define wxUSE_SNGLINST_CHECKER 1
43304 _ACEOF
43305
43306 fi
43307
43308 if test "$wxUSE_BUSYINFO" = "yes"; then
43309   cat >>confdefs.h <<\_ACEOF
43310 #define wxUSE_BUSYINFO 1
43311 _ACEOF
43312
43313 fi
43314
43315 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43316   cat >>confdefs.h <<\_ACEOF
43317 #define wxUSE_STD_IOSTREAM 1
43318 _ACEOF
43319
43320 fi
43321
43322 if test "$wxUSE_STD_STRING" = "yes"; then
43323   cat >>confdefs.h <<\_ACEOF
43324 #define wxUSE_STD_STRING 1
43325 _ACEOF
43326
43327 fi
43328
43329 if test "$wxUSE_STDPATHS" = "yes"; then
43330   cat >>confdefs.h <<\_ACEOF
43331 #define wxUSE_STDPATHS 1
43332 _ACEOF
43333
43334 fi
43335
43336 if test "$wxUSE_TEXTBUFFER" = "yes"; then
43337     cat >>confdefs.h <<\_ACEOF
43338 #define wxUSE_TEXTBUFFER 1
43339 _ACEOF
43340
43341 fi
43342
43343 if test "$wxUSE_TEXTFILE" = "yes"; then
43344   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43345     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43346 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43347   else
43348     cat >>confdefs.h <<\_ACEOF
43349 #define wxUSE_TEXTFILE 1
43350 _ACEOF
43351
43352   fi
43353 fi
43354
43355 if test "$wxUSE_CONFIG" = "yes" ; then
43356   if test "$wxUSE_TEXTFILE" != "yes"; then
43357     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43358 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43359   else
43360     cat >>confdefs.h <<\_ACEOF
43361 #define wxUSE_CONFIG 1
43362 _ACEOF
43363
43364     cat >>confdefs.h <<\_ACEOF
43365 #define wxUSE_CONFIG_NATIVE 1
43366 _ACEOF
43367
43368     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43369   fi
43370 fi
43371
43372 if test "$wxUSE_INTL" = "yes" ; then
43373   if test "$wxUSE_FILE" != "yes"; then
43374     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43375 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43376   else
43377     cat >>confdefs.h <<\_ACEOF
43378 #define wxUSE_INTL 1
43379 _ACEOF
43380
43381     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43382     GUIDIST="$GUIDIST INTL_DIST"
43383   fi
43384 fi
43385
43386 if test "$wxUSE_LOG" = "yes"; then
43387   cat >>confdefs.h <<\_ACEOF
43388 #define wxUSE_LOG 1
43389 _ACEOF
43390
43391
43392     if test "$wxUSE_LOGGUI" = "yes"; then
43393       cat >>confdefs.h <<\_ACEOF
43394 #define wxUSE_LOGGUI 1
43395 _ACEOF
43396
43397     fi
43398
43399     if test "$wxUSE_LOGWINDOW" = "yes"; then
43400       cat >>confdefs.h <<\_ACEOF
43401 #define wxUSE_LOGWINDOW 1
43402 _ACEOF
43403
43404     fi
43405
43406     if test "$wxUSE_LOGDIALOG" = "yes"; then
43407       cat >>confdefs.h <<\_ACEOF
43408 #define wxUSE_LOG_DIALOG 1
43409 _ACEOF
43410
43411     fi
43412
43413         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
43414 fi
43415
43416 if test "$wxUSE_LONGLONG" = "yes"; then
43417   cat >>confdefs.h <<\_ACEOF
43418 #define wxUSE_LONGLONG 1
43419 _ACEOF
43420
43421 fi
43422
43423 if test "$wxUSE_GEOMETRY" = "yes"; then
43424   cat >>confdefs.h <<\_ACEOF
43425 #define wxUSE_GEOMETRY 1
43426 _ACEOF
43427
43428 fi
43429
43430 if test "$wxUSE_STREAMS" = "yes" ; then
43431   cat >>confdefs.h <<\_ACEOF
43432 #define wxUSE_STREAMS 1
43433 _ACEOF
43434
43435 fi
43436
43437 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43438   cat >>confdefs.h <<\_ACEOF
43439 #define wxUSE_PRINTF_POS_PARAMS 1
43440 _ACEOF
43441
43442 fi
43443
43444
43445
43446 if test "$wxUSE_DATETIME" = "yes"; then
43447
43448 for ac_func in strptime
43449 do
43450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43451 echo "$as_me:$LINENO: checking for $ac_func" >&5
43452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43453 if eval "test \"\${$as_ac_var+set}\" = set"; then
43454   echo $ECHO_N "(cached) $ECHO_C" >&6
43455 else
43456   cat >conftest.$ac_ext <<_ACEOF
43457 /* confdefs.h.  */
43458 _ACEOF
43459 cat confdefs.h >>conftest.$ac_ext
43460 cat >>conftest.$ac_ext <<_ACEOF
43461 /* end confdefs.h.  */
43462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43463    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43464 #define $ac_func innocuous_$ac_func
43465
43466 /* System header to define __stub macros and hopefully few prototypes,
43467     which can conflict with char $ac_func (); below.
43468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43469     <limits.h> exists even on freestanding compilers.  */
43470
43471 #ifdef __STDC__
43472 # include <limits.h>
43473 #else
43474 # include <assert.h>
43475 #endif
43476
43477 #undef $ac_func
43478
43479 /* Override any gcc2 internal prototype to avoid an error.  */
43480 #ifdef __cplusplus
43481 extern "C"
43482 {
43483 #endif
43484 /* We use char because int might match the return type of a gcc2
43485    builtin and then its argument prototype would still apply.  */
43486 char $ac_func ();
43487 /* The GNU C library defines this for functions which it implements
43488     to always fail with ENOSYS.  Some functions are actually named
43489     something starting with __ and the normal name is an alias.  */
43490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43491 choke me
43492 #else
43493 char (*f) () = $ac_func;
43494 #endif
43495 #ifdef __cplusplus
43496 }
43497 #endif
43498
43499 int
43500 main ()
43501 {
43502 return f != $ac_func;
43503   ;
43504   return 0;
43505 }
43506 _ACEOF
43507 rm -f conftest.$ac_objext conftest$ac_exeext
43508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43509   (eval $ac_link) 2>conftest.er1
43510   ac_status=$?
43511   grep -v '^ *+' conftest.er1 >conftest.err
43512   rm -f conftest.er1
43513   cat conftest.err >&5
43514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43515   (exit $ac_status); } &&
43516          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43518   (eval $ac_try) 2>&5
43519   ac_status=$?
43520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43521   (exit $ac_status); }; } &&
43522          { ac_try='test -s conftest$ac_exeext'
43523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43524   (eval $ac_try) 2>&5
43525   ac_status=$?
43526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43527   (exit $ac_status); }; }; then
43528   eval "$as_ac_var=yes"
43529 else
43530   echo "$as_me: failed program was:" >&5
43531 sed 's/^/| /' conftest.$ac_ext >&5
43532
43533 eval "$as_ac_var=no"
43534 fi
43535 rm -f conftest.err conftest.$ac_objext \
43536       conftest$ac_exeext conftest.$ac_ext
43537 fi
43538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43540 if test `eval echo '${'$as_ac_var'}'` = yes; then
43541   cat >>confdefs.h <<_ACEOF
43542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43543 _ACEOF
43544
43545 fi
43546 done
43547
43548     if test "$ac_cv_func_strptime" = "yes"; then
43549         echo "$as_me:$LINENO: checking for strptime declaration" >&5
43550 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
43551 if test "${wx_cv_func_strptime_decl+set}" = set; then
43552   echo $ECHO_N "(cached) $ECHO_C" >&6
43553 else
43554
43555                 ac_ext=cc
43556 ac_cpp='$CXXCPP $CPPFLAGS'
43557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43560
43561                 cat >conftest.$ac_ext <<_ACEOF
43562 /* confdefs.h.  */
43563 _ACEOF
43564 cat confdefs.h >>conftest.$ac_ext
43565 cat >>conftest.$ac_ext <<_ACEOF
43566 /* end confdefs.h.  */
43567
43568                         #include <time.h>
43569
43570 int
43571 main ()
43572 {
43573
43574                         struct tm t;
43575                         strptime("foo", "bar", &t);
43576
43577   ;
43578   return 0;
43579 }
43580 _ACEOF
43581 rm -f conftest.$ac_objext
43582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43583   (eval $ac_compile) 2>conftest.er1
43584   ac_status=$?
43585   grep -v '^ *+' conftest.er1 >conftest.err
43586   rm -f conftest.er1
43587   cat conftest.err >&5
43588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43589   (exit $ac_status); } &&
43590          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43592   (eval $ac_try) 2>&5
43593   ac_status=$?
43594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43595   (exit $ac_status); }; } &&
43596          { ac_try='test -s conftest.$ac_objext'
43597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43598   (eval $ac_try) 2>&5
43599   ac_status=$?
43600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43601   (exit $ac_status); }; }; then
43602   wx_cv_func_strptime_decl=yes
43603 else
43604   echo "$as_me: failed program was:" >&5
43605 sed 's/^/| /' conftest.$ac_ext >&5
43606
43607 wx_cv_func_strptime_decl=no
43608
43609 fi
43610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43611                 ac_ext=c
43612 ac_cpp='$CPP $CPPFLAGS'
43613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43616
43617
43618
43619 fi
43620 echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43621 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
43622     fi
43623     if test "$wx_cv_func_strptime_decl" = "yes"; then
43624         cat >>confdefs.h <<\_ACEOF
43625 #define HAVE_STRPTIME_DECL 1
43626 _ACEOF
43627
43628     fi
43629
43630             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43631 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
43632 if test "${wx_cv_var_timezone+set}" = set; then
43633   echo $ECHO_N "(cached) $ECHO_C" >&6
43634 else
43635
43636                         ac_ext=cc
43637 ac_cpp='$CXXCPP $CPPFLAGS'
43638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43641
43642                         cat >conftest.$ac_ext <<_ACEOF
43643 /* confdefs.h.  */
43644 _ACEOF
43645 cat confdefs.h >>conftest.$ac_ext
43646 cat >>conftest.$ac_ext <<_ACEOF
43647 /* end confdefs.h.  */
43648
43649                                 #include <time.h>
43650
43651 int
43652 main ()
43653 {
43654
43655                                 int tz;
43656                                 tz = timezone;
43657
43658   ;
43659   return 0;
43660 }
43661 _ACEOF
43662 rm -f conftest.$ac_objext
43663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43664   (eval $ac_compile) 2>conftest.er1
43665   ac_status=$?
43666   grep -v '^ *+' conftest.er1 >conftest.err
43667   rm -f conftest.er1
43668   cat conftest.err >&5
43669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43670   (exit $ac_status); } &&
43671          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43673   (eval $ac_try) 2>&5
43674   ac_status=$?
43675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43676   (exit $ac_status); }; } &&
43677          { ac_try='test -s conftest.$ac_objext'
43678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43679   (eval $ac_try) 2>&5
43680   ac_status=$?
43681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43682   (exit $ac_status); }; }; then
43683
43684                                 wx_cv_var_timezone=timezone
43685
43686 else
43687   echo "$as_me: failed program was:" >&5
43688 sed 's/^/| /' conftest.$ac_ext >&5
43689
43690
43691                                 cat >conftest.$ac_ext <<_ACEOF
43692 /* confdefs.h.  */
43693 _ACEOF
43694 cat confdefs.h >>conftest.$ac_ext
43695 cat >>conftest.$ac_ext <<_ACEOF
43696 /* end confdefs.h.  */
43697
43698                                         #include <time.h>
43699
43700 int
43701 main ()
43702 {
43703
43704                                         int tz;
43705                                         tz = _timezone;
43706
43707   ;
43708   return 0;
43709 }
43710 _ACEOF
43711 rm -f conftest.$ac_objext
43712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43713   (eval $ac_compile) 2>conftest.er1
43714   ac_status=$?
43715   grep -v '^ *+' conftest.er1 >conftest.err
43716   rm -f conftest.er1
43717   cat conftest.err >&5
43718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43719   (exit $ac_status); } &&
43720          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43722   (eval $ac_try) 2>&5
43723   ac_status=$?
43724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43725   (exit $ac_status); }; } &&
43726          { ac_try='test -s conftest.$ac_objext'
43727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43728   (eval $ac_try) 2>&5
43729   ac_status=$?
43730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43731   (exit $ac_status); }; }; then
43732
43733                                         wx_cv_var_timezone=_timezone
43734
43735 else
43736   echo "$as_me: failed program was:" >&5
43737 sed 's/^/| /' conftest.$ac_ext >&5
43738
43739
43740                                         cat >conftest.$ac_ext <<_ACEOF
43741 /* confdefs.h.  */
43742 _ACEOF
43743 cat confdefs.h >>conftest.$ac_ext
43744 cat >>conftest.$ac_ext <<_ACEOF
43745 /* end confdefs.h.  */
43746
43747                                                 #include <time.h>
43748
43749 int
43750 main ()
43751 {
43752
43753                                                 int tz;
43754                                                 tz = __timezone;
43755
43756   ;
43757   return 0;
43758 }
43759 _ACEOF
43760 rm -f conftest.$ac_objext
43761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43762   (eval $ac_compile) 2>conftest.er1
43763   ac_status=$?
43764   grep -v '^ *+' conftest.er1 >conftest.err
43765   rm -f conftest.er1
43766   cat conftest.err >&5
43767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43768   (exit $ac_status); } &&
43769          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
43770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43771   (eval $ac_try) 2>&5
43772   ac_status=$?
43773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43774   (exit $ac_status); }; } &&
43775          { ac_try='test -s conftest.$ac_objext'
43776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43777   (eval $ac_try) 2>&5
43778   ac_status=$?
43779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43780   (exit $ac_status); }; }; then
43781
43782                                                 wx_cv_var_timezone=__timezone
43783
43784 else
43785   echo "$as_me: failed program was:" >&5
43786 sed 's/^/| /' conftest.$ac_ext >&5
43787
43788
43789                                                 if test "$USE_DOS" = 0 ; then
43790                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43791 echo "$as_me: WARNING: no timezone variable" >&2;}
43792                                                 fi
43793
43794
43795 fi
43796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43797
43798
43799 fi
43800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43801
43802
43803 fi
43804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43805                         ac_ext=c
43806 ac_cpp='$CPP $CPPFLAGS'
43807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43810
43811
43812
43813 fi
43814 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43815 echo "${ECHO_T}$wx_cv_var_timezone" >&6
43816
43817         if test "x$wx_cv_var_timezone" != x ; then
43818         cat >>confdefs.h <<_ACEOF
43819 #define WX_TIMEZONE $wx_cv_var_timezone
43820 _ACEOF
43821
43822     fi
43823
43824
43825 for ac_func in localtime
43826 do
43827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43828 echo "$as_me:$LINENO: checking for $ac_func" >&5
43829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43830 if eval "test \"\${$as_ac_var+set}\" = set"; then
43831   echo $ECHO_N "(cached) $ECHO_C" >&6
43832 else
43833   cat >conftest.$ac_ext <<_ACEOF
43834 /* confdefs.h.  */
43835 _ACEOF
43836 cat confdefs.h >>conftest.$ac_ext
43837 cat >>conftest.$ac_ext <<_ACEOF
43838 /* end confdefs.h.  */
43839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43841 #define $ac_func innocuous_$ac_func
43842
43843 /* System header to define __stub macros and hopefully few prototypes,
43844     which can conflict with char $ac_func (); below.
43845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43846     <limits.h> exists even on freestanding compilers.  */
43847
43848 #ifdef __STDC__
43849 # include <limits.h>
43850 #else
43851 # include <assert.h>
43852 #endif
43853
43854 #undef $ac_func
43855
43856 /* Override any gcc2 internal prototype to avoid an error.  */
43857 #ifdef __cplusplus
43858 extern "C"
43859 {
43860 #endif
43861 /* We use char because int might match the return type of a gcc2
43862    builtin and then its argument prototype would still apply.  */
43863 char $ac_func ();
43864 /* The GNU C library defines this for functions which it implements
43865     to always fail with ENOSYS.  Some functions are actually named
43866     something starting with __ and the normal name is an alias.  */
43867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43868 choke me
43869 #else
43870 char (*f) () = $ac_func;
43871 #endif
43872 #ifdef __cplusplus
43873 }
43874 #endif
43875
43876 int
43877 main ()
43878 {
43879 return f != $ac_func;
43880   ;
43881   return 0;
43882 }
43883 _ACEOF
43884 rm -f conftest.$ac_objext conftest$ac_exeext
43885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43886   (eval $ac_link) 2>conftest.er1
43887   ac_status=$?
43888   grep -v '^ *+' conftest.er1 >conftest.err
43889   rm -f conftest.er1
43890   cat conftest.err >&5
43891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43892   (exit $ac_status); } &&
43893          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43895   (eval $ac_try) 2>&5
43896   ac_status=$?
43897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43898   (exit $ac_status); }; } &&
43899          { ac_try='test -s conftest$ac_exeext'
43900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43901   (eval $ac_try) 2>&5
43902   ac_status=$?
43903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43904   (exit $ac_status); }; }; then
43905   eval "$as_ac_var=yes"
43906 else
43907   echo "$as_me: failed program was:" >&5
43908 sed 's/^/| /' conftest.$ac_ext >&5
43909
43910 eval "$as_ac_var=no"
43911 fi
43912 rm -f conftest.err conftest.$ac_objext \
43913       conftest$ac_exeext conftest.$ac_ext
43914 fi
43915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43917 if test `eval echo '${'$as_ac_var'}'` = yes; then
43918   cat >>confdefs.h <<_ACEOF
43919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43920 _ACEOF
43921
43922 fi
43923 done
43924
43925
43926     if test "$ac_cv_func_localtime" = "yes"; then
43927         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
43928 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
43929 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
43930   echo $ECHO_N "(cached) $ECHO_C" >&6
43931 else
43932
43933             cat >conftest.$ac_ext <<_ACEOF
43934 /* confdefs.h.  */
43935 _ACEOF
43936 cat confdefs.h >>conftest.$ac_ext
43937 cat >>conftest.$ac_ext <<_ACEOF
43938 /* end confdefs.h.  */
43939
43940                     #include <time.h>
43941
43942 int
43943 main ()
43944 {
43945
43946                     struct tm tm;
43947                     tm.tm_gmtoff++;
43948
43949   ;
43950   return 0;
43951 }
43952 _ACEOF
43953 rm -f conftest.$ac_objext
43954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43955   (eval $ac_compile) 2>conftest.er1
43956   ac_status=$?
43957   grep -v '^ *+' conftest.er1 >conftest.err
43958   rm -f conftest.er1
43959   cat conftest.err >&5
43960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43961   (exit $ac_status); } &&
43962          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43964   (eval $ac_try) 2>&5
43965   ac_status=$?
43966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43967   (exit $ac_status); }; } &&
43968          { ac_try='test -s conftest.$ac_objext'
43969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43970   (eval $ac_try) 2>&5
43971   ac_status=$?
43972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43973   (exit $ac_status); }; }; then
43974
43975                     wx_cv_struct_tm_has_gmtoff=yes
43976
43977 else
43978   echo "$as_me: failed program was:" >&5
43979 sed 's/^/| /' conftest.$ac_ext >&5
43980
43981 wx_cv_struct_tm_has_gmtoff=no
43982
43983 fi
43984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43985
43986 fi
43987 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
43988 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
43989     fi
43990
43991     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
43992         cat >>confdefs.h <<\_ACEOF
43993 #define WX_GMTOFF_IN_TM 1
43994 _ACEOF
43995
43996     fi
43997
43998
43999
44000 for ac_func in gettimeofday ftime
44001 do
44002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44003 echo "$as_me:$LINENO: checking for $ac_func" >&5
44004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44005 if eval "test \"\${$as_ac_var+set}\" = set"; then
44006   echo $ECHO_N "(cached) $ECHO_C" >&6
44007 else
44008   cat >conftest.$ac_ext <<_ACEOF
44009 /* confdefs.h.  */
44010 _ACEOF
44011 cat confdefs.h >>conftest.$ac_ext
44012 cat >>conftest.$ac_ext <<_ACEOF
44013 /* end confdefs.h.  */
44014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44016 #define $ac_func innocuous_$ac_func
44017
44018 /* System header to define __stub macros and hopefully few prototypes,
44019     which can conflict with char $ac_func (); below.
44020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44021     <limits.h> exists even on freestanding compilers.  */
44022
44023 #ifdef __STDC__
44024 # include <limits.h>
44025 #else
44026 # include <assert.h>
44027 #endif
44028
44029 #undef $ac_func
44030
44031 /* Override any gcc2 internal prototype to avoid an error.  */
44032 #ifdef __cplusplus
44033 extern "C"
44034 {
44035 #endif
44036 /* We use char because int might match the return type of a gcc2
44037    builtin and then its argument prototype would still apply.  */
44038 char $ac_func ();
44039 /* The GNU C library defines this for functions which it implements
44040     to always fail with ENOSYS.  Some functions are actually named
44041     something starting with __ and the normal name is an alias.  */
44042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44043 choke me
44044 #else
44045 char (*f) () = $ac_func;
44046 #endif
44047 #ifdef __cplusplus
44048 }
44049 #endif
44050
44051 int
44052 main ()
44053 {
44054 return f != $ac_func;
44055   ;
44056   return 0;
44057 }
44058 _ACEOF
44059 rm -f conftest.$ac_objext conftest$ac_exeext
44060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44061   (eval $ac_link) 2>conftest.er1
44062   ac_status=$?
44063   grep -v '^ *+' conftest.er1 >conftest.err
44064   rm -f conftest.er1
44065   cat conftest.err >&5
44066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44067   (exit $ac_status); } &&
44068          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
44069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44070   (eval $ac_try) 2>&5
44071   ac_status=$?
44072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44073   (exit $ac_status); }; } &&
44074          { ac_try='test -s conftest$ac_exeext'
44075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44076   (eval $ac_try) 2>&5
44077   ac_status=$?
44078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44079   (exit $ac_status); }; }; then
44080   eval "$as_ac_var=yes"
44081 else
44082   echo "$as_me: failed program was:" >&5
44083 sed 's/^/| /' conftest.$ac_ext >&5
44084
44085 eval "$as_ac_var=no"
44086 fi
44087 rm -f conftest.err conftest.$ac_objext \
44088       conftest$ac_exeext conftest.$ac_ext
44089 fi
44090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44092 if test `eval echo '${'$as_ac_var'}'` = yes; then
44093   cat >>confdefs.h <<_ACEOF
44094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44095 _ACEOF
44096  break
44097 fi
44098 done
44099
44100
44101     if test "$ac_cv_func_gettimeofday" = "yes"; then
44102         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
44103 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
44104 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
44105   echo $ECHO_N "(cached) $ECHO_C" >&6
44106 else
44107
44108                         cat >conftest.$ac_ext <<_ACEOF
44109 /* confdefs.h.  */
44110 _ACEOF
44111 cat confdefs.h >>conftest.$ac_ext
44112 cat >>conftest.$ac_ext <<_ACEOF
44113 /* end confdefs.h.  */
44114
44115                     #include <sys/time.h>
44116                     #include <unistd.h>
44117
44118 int
44119 main ()
44120 {
44121
44122                     struct timeval tv;
44123                     gettimeofday(&tv, NULL);
44124
44125   ;
44126   return 0;
44127 }
44128 _ACEOF
44129 rm -f conftest.$ac_objext
44130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44131   (eval $ac_compile) 2>conftest.er1
44132   ac_status=$?
44133   grep -v '^ *+' conftest.er1 >conftest.err
44134   rm -f conftest.er1
44135   cat conftest.err >&5
44136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44137   (exit $ac_status); } &&
44138          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
44139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44140   (eval $ac_try) 2>&5
44141   ac_status=$?
44142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44143   (exit $ac_status); }; } &&
44144          { ac_try='test -s conftest.$ac_objext'
44145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44146   (eval $ac_try) 2>&5
44147   ac_status=$?
44148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44149   (exit $ac_status); }; }; then
44150   wx_cv_func_gettimeofday_has_2_args=yes
44151 else
44152   echo "$as_me: failed program was:" >&5
44153 sed 's/^/| /' conftest.$ac_ext >&5
44154
44155 cat >conftest.$ac_ext <<_ACEOF
44156 /* confdefs.h.  */
44157 _ACEOF
44158 cat confdefs.h >>conftest.$ac_ext
44159 cat >>conftest.$ac_ext <<_ACEOF
44160 /* end confdefs.h.  */
44161
44162                         #include <sys/time.h>
44163                         #include <unistd.h>
44164
44165 int
44166 main ()
44167 {
44168
44169                         struct timeval tv;
44170                         gettimeofday(&tv);
44171
44172   ;
44173   return 0;
44174 }
44175 _ACEOF
44176 rm -f conftest.$ac_objext
44177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44178   (eval $ac_compile) 2>conftest.er1
44179   ac_status=$?
44180   grep -v '^ *+' conftest.er1 >conftest.err
44181   rm -f conftest.er1
44182   cat conftest.err >&5
44183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44184   (exit $ac_status); } &&
44185          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
44186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44187   (eval $ac_try) 2>&5
44188   ac_status=$?
44189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44190   (exit $ac_status); }; } &&
44191          { ac_try='test -s conftest.$ac_objext'
44192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44193   (eval $ac_try) 2>&5
44194   ac_status=$?
44195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44196   (exit $ac_status); }; }; then
44197   wx_cv_func_gettimeofday_has_2_args=no
44198 else
44199   echo "$as_me: failed program was:" >&5
44200 sed 's/^/| /' conftest.$ac_ext >&5
44201
44202
44203                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
44204 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
44205                         wx_cv_func_gettimeofday_has_2_args=unknown
44206
44207
44208 fi
44209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44210
44211 fi
44212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44213
44214 fi
44215 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
44216 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
44217
44218         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
44219             cat >>confdefs.h <<\_ACEOF
44220 #define WX_GETTIMEOFDAY_NO_TZ 1
44221 _ACEOF
44222
44223         fi
44224     fi
44225
44226     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44227 fi
44228
44229
44230 if test "$wxUSE_SOCKETS" = "yes"; then
44231     if test "$wxUSE_MGL" = "1"; then
44232         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44233 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44234         wxUSE_SOCKETS="no"
44235     fi
44236 fi
44237
44238 if test "$wxUSE_SOCKETS" = "yes"; then
44239         if test "$TOOLKIT" != "MSW"; then
44240                 echo "$as_me:$LINENO: checking for socket" >&5
44241 echo $ECHO_N "checking for socket... $ECHO_C" >&6
44242 if test "${ac_cv_func_socket+set}" = set; then
44243   echo $ECHO_N "(cached) $ECHO_C" >&6
44244 else
44245   cat >conftest.$ac_ext <<_ACEOF
44246 /* confdefs.h.  */
44247 _ACEOF
44248 cat confdefs.h >>conftest.$ac_ext
44249 cat >>conftest.$ac_ext <<_ACEOF
44250 /* end confdefs.h.  */
44251 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
44252    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44253 #define socket innocuous_socket
44254
44255 /* System header to define __stub macros and hopefully few prototypes,
44256     which can conflict with char socket (); below.
44257     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44258     <limits.h> exists even on freestanding compilers.  */
44259
44260 #ifdef __STDC__
44261 # include <limits.h>
44262 #else
44263 # include <assert.h>
44264 #endif
44265
44266 #undef socket
44267
44268 /* Override any gcc2 internal prototype to avoid an error.  */
44269 #ifdef __cplusplus
44270 extern "C"
44271 {
44272 #endif
44273 /* We use char because int might match the return type of a gcc2
44274    builtin and then its argument prototype would still apply.  */
44275 char socket ();
44276 /* The GNU C library defines this for functions which it implements
44277     to always fail with ENOSYS.  Some functions are actually named
44278     something starting with __ and the normal name is an alias.  */
44279 #if defined (__stub_socket) || defined (__stub___socket)
44280 choke me
44281 #else
44282 char (*f) () = socket;
44283 #endif
44284 #ifdef __cplusplus
44285 }
44286 #endif
44287
44288 int
44289 main ()
44290 {
44291 return f != socket;
44292   ;
44293   return 0;
44294 }
44295 _ACEOF
44296 rm -f conftest.$ac_objext conftest$ac_exeext
44297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44298   (eval $ac_link) 2>conftest.er1
44299   ac_status=$?
44300   grep -v '^ *+' conftest.er1 >conftest.err
44301   rm -f conftest.er1
44302   cat conftest.err >&5
44303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44304   (exit $ac_status); } &&
44305          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
44306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44307   (eval $ac_try) 2>&5
44308   ac_status=$?
44309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44310   (exit $ac_status); }; } &&
44311          { ac_try='test -s conftest$ac_exeext'
44312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44313   (eval $ac_try) 2>&5
44314   ac_status=$?
44315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44316   (exit $ac_status); }; }; then
44317   ac_cv_func_socket=yes
44318 else
44319   echo "$as_me: failed program was:" >&5
44320 sed 's/^/| /' conftest.$ac_ext >&5
44321
44322 ac_cv_func_socket=no
44323 fi
44324 rm -f conftest.err conftest.$ac_objext \
44325       conftest$ac_exeext conftest.$ac_ext
44326 fi
44327 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44328 echo "${ECHO_T}$ac_cv_func_socket" >&6
44329 if test $ac_cv_func_socket = yes; then
44330   :
44331 else
44332
44333                 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44334 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
44335 if test "${ac_cv_lib_socket_socket+set}" = set; then
44336   echo $ECHO_N "(cached) $ECHO_C" >&6
44337 else
44338   ac_check_lib_save_LIBS=$LIBS
44339 LIBS="-lsocket  $LIBS"
44340 cat >conftest.$ac_ext <<_ACEOF
44341 /* confdefs.h.  */
44342 _ACEOF
44343 cat confdefs.h >>conftest.$ac_ext
44344 cat >>conftest.$ac_ext <<_ACEOF
44345 /* end confdefs.h.  */
44346
44347 /* Override any gcc2 internal prototype to avoid an error.  */
44348 #ifdef __cplusplus
44349 extern "C"
44350 #endif
44351 /* We use char because int might match the return type of a gcc2
44352    builtin and then its argument prototype would still apply.  */
44353 char socket ();
44354 int
44355 main ()
44356 {
44357 socket ();
44358   ;
44359   return 0;
44360 }
44361 _ACEOF
44362 rm -f conftest.$ac_objext conftest$ac_exeext
44363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44364   (eval $ac_link) 2>conftest.er1
44365   ac_status=$?
44366   grep -v '^ *+' conftest.er1 >conftest.err
44367   rm -f conftest.er1
44368   cat conftest.err >&5
44369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44370   (exit $ac_status); } &&
44371          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
44372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44373   (eval $ac_try) 2>&5
44374   ac_status=$?
44375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44376   (exit $ac_status); }; } &&
44377          { ac_try='test -s conftest$ac_exeext'
44378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44379   (eval $ac_try) 2>&5
44380   ac_status=$?
44381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44382   (exit $ac_status); }; }; then
44383   ac_cv_lib_socket_socket=yes
44384 else
44385   echo "$as_me: failed program was:" >&5
44386 sed 's/^/| /' conftest.$ac_ext >&5
44387
44388 ac_cv_lib_socket_socket=no
44389 fi
44390 rm -f conftest.err conftest.$ac_objext \
44391       conftest$ac_exeext conftest.$ac_ext
44392 LIBS=$ac_check_lib_save_LIBS
44393 fi
44394 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44395 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
44396 if test $ac_cv_lib_socket_socket = yes; then
44397   if test "$INET_LINK" != " -lsocket"; then
44398                         INET_LINK="$INET_LINK -lsocket"
44399                     fi
44400 else
44401
44402                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44403 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44404                         wxUSE_SOCKETS=no
44405
44406
44407 fi
44408
44409
44410
44411 fi
44412
44413     fi
44414 fi
44415
44416 if test "$wxUSE_SOCKETS" = "yes" ; then
44417                 if test "$TOOLKIT" != "MSW"; then
44418                                         echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
44419 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
44420 if test "${wx_cv_type_getsockname3+set}" = set; then
44421   echo $ECHO_N "(cached) $ECHO_C" >&6
44422 else
44423
44424                 ac_ext=cc
44425 ac_cpp='$CXXCPP $CPPFLAGS'
44426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44429
44430                 cat >conftest.$ac_ext <<_ACEOF
44431 /* confdefs.h.  */
44432 _ACEOF
44433 cat confdefs.h >>conftest.$ac_ext
44434 cat >>conftest.$ac_ext <<_ACEOF
44435 /* end confdefs.h.  */
44436
44437                         #include <sys/types.h>
44438                         #include <sys/socket.h>
44439
44440 int
44441 main ()
44442 {
44443
44444                         socklen_t len;
44445                         getsockname(0, 0, &len);
44446
44447   ;
44448   return 0;
44449 }
44450 _ACEOF
44451 rm -f conftest.$ac_objext
44452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44453   (eval $ac_compile) 2>conftest.er1
44454   ac_status=$?
44455   grep -v '^ *+' conftest.er1 >conftest.err
44456   rm -f conftest.er1
44457   cat conftest.err >&5
44458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44459   (exit $ac_status); } &&
44460          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44462   (eval $ac_try) 2>&5
44463   ac_status=$?
44464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44465   (exit $ac_status); }; } &&
44466          { ac_try='test -s conftest.$ac_objext'
44467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44468   (eval $ac_try) 2>&5
44469   ac_status=$?
44470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44471   (exit $ac_status); }; }; then
44472   wx_cv_type_getsockname3=socklen_t
44473 else
44474   echo "$as_me: failed program was:" >&5
44475 sed 's/^/| /' conftest.$ac_ext >&5
44476
44477
44478                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
44479                         if test "$GCC" = yes ; then
44480                             CFLAGS="-Werror $CFLAGS"
44481                         fi
44482
44483                         cat >conftest.$ac_ext <<_ACEOF
44484 /* confdefs.h.  */
44485 _ACEOF
44486 cat confdefs.h >>conftest.$ac_ext
44487 cat >>conftest.$ac_ext <<_ACEOF
44488 /* end confdefs.h.  */
44489
44490                                 #include <sys/types.h>
44491                                 #include <sys/socket.h>
44492
44493 int
44494 main ()
44495 {
44496
44497                                 size_t len;
44498                                 getsockname(0, 0, &len);
44499
44500   ;
44501   return 0;
44502 }
44503 _ACEOF
44504 rm -f conftest.$ac_objext
44505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44506   (eval $ac_compile) 2>conftest.er1
44507   ac_status=$?
44508   grep -v '^ *+' conftest.er1 >conftest.err
44509   rm -f conftest.er1
44510   cat conftest.err >&5
44511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44512   (exit $ac_status); } &&
44513          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44515   (eval $ac_try) 2>&5
44516   ac_status=$?
44517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44518   (exit $ac_status); }; } &&
44519          { ac_try='test -s conftest.$ac_objext'
44520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44521   (eval $ac_try) 2>&5
44522   ac_status=$?
44523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44524   (exit $ac_status); }; }; then
44525   wx_cv_type_getsockname3=size_t
44526 else
44527   echo "$as_me: failed program was:" >&5
44528 sed 's/^/| /' conftest.$ac_ext >&5
44529
44530 cat >conftest.$ac_ext <<_ACEOF
44531 /* confdefs.h.  */
44532 _ACEOF
44533 cat confdefs.h >>conftest.$ac_ext
44534 cat >>conftest.$ac_ext <<_ACEOF
44535 /* end confdefs.h.  */
44536
44537                                     #include <sys/types.h>
44538                                     #include <sys/socket.h>
44539
44540 int
44541 main ()
44542 {
44543
44544                                     int len;
44545                                     getsockname(0, 0, &len);
44546
44547   ;
44548   return 0;
44549 }
44550 _ACEOF
44551 rm -f conftest.$ac_objext
44552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44553   (eval $ac_compile) 2>conftest.er1
44554   ac_status=$?
44555   grep -v '^ *+' conftest.er1 >conftest.err
44556   rm -f conftest.er1
44557   cat conftest.err >&5
44558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44559   (exit $ac_status); } &&
44560          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44562   (eval $ac_try) 2>&5
44563   ac_status=$?
44564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44565   (exit $ac_status); }; } &&
44566          { ac_try='test -s conftest.$ac_objext'
44567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44568   (eval $ac_try) 2>&5
44569   ac_status=$?
44570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44571   (exit $ac_status); }; }; then
44572   wx_cv_type_getsockname3=int
44573 else
44574   echo "$as_me: failed program was:" >&5
44575 sed 's/^/| /' conftest.$ac_ext >&5
44576
44577 wx_cv_type_getsockname3=unknown
44578
44579 fi
44580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44581
44582 fi
44583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44584
44585                         CFLAGS="$CFLAGS_OLD"
44586
44587
44588 fi
44589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44590                 ac_ext=c
44591 ac_cpp='$CPP $CPPFLAGS'
44592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44595
44596
44597 fi
44598 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44599 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
44600
44601         if test "$wx_cv_type_getsockname3" = "unknown"; then
44602             wxUSE_SOCKETS=no
44603             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44604 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44605         else
44606             cat >>confdefs.h <<_ACEOF
44607 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
44608 _ACEOF
44609
44610         fi
44611                 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44612 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
44613 if test "${wx_cv_type_getsockopt5+set}" = set; then
44614   echo $ECHO_N "(cached) $ECHO_C" >&6
44615 else
44616
44617                 cat >conftest.$ac_ext <<_ACEOF
44618 /* confdefs.h.  */
44619 _ACEOF
44620 cat confdefs.h >>conftest.$ac_ext
44621 cat >>conftest.$ac_ext <<_ACEOF
44622 /* end confdefs.h.  */
44623
44624                         #include <sys/types.h>
44625                         #include <sys/socket.h>
44626
44627 int
44628 main ()
44629 {
44630
44631                         socklen_t len;
44632                         getsockopt(0, 0, 0, 0, &len);
44633
44634   ;
44635   return 0;
44636 }
44637 _ACEOF
44638 rm -f conftest.$ac_objext
44639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44640   (eval $ac_compile) 2>conftest.er1
44641   ac_status=$?
44642   grep -v '^ *+' conftest.er1 >conftest.err
44643   rm -f conftest.er1
44644   cat conftest.err >&5
44645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44646   (exit $ac_status); } &&
44647          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
44648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44649   (eval $ac_try) 2>&5
44650   ac_status=$?
44651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44652   (exit $ac_status); }; } &&
44653          { ac_try='test -s conftest.$ac_objext'
44654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44655   (eval $ac_try) 2>&5
44656   ac_status=$?
44657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44658   (exit $ac_status); }; }; then
44659   wx_cv_type_getsockopt5=socklen_t
44660 else
44661   echo "$as_me: failed program was:" >&5
44662 sed 's/^/| /' conftest.$ac_ext >&5
44663
44664
44665                                                                                                                                                 ac_ext=cc
44666 ac_cpp='$CXXCPP $CPPFLAGS'
44667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44670
44671                         cat >conftest.$ac_ext <<_ACEOF
44672 /* confdefs.h.  */
44673 _ACEOF
44674 cat confdefs.h >>conftest.$ac_ext
44675 cat >>conftest.$ac_ext <<_ACEOF
44676 /* end confdefs.h.  */
44677
44678                                 #include <sys/types.h>
44679                                 #include <sys/socket.h>
44680
44681 int
44682 main ()
44683 {
44684
44685                                 size_t len;
44686                                 getsockopt(0, 0, 0, 0, &len);
44687
44688   ;
44689   return 0;
44690 }
44691 _ACEOF
44692 rm -f conftest.$ac_objext
44693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44694   (eval $ac_compile) 2>conftest.er1
44695   ac_status=$?
44696   grep -v '^ *+' conftest.er1 >conftest.err
44697   rm -f conftest.er1
44698   cat conftest.err >&5
44699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44700   (exit $ac_status); } &&
44701          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44703   (eval $ac_try) 2>&5
44704   ac_status=$?
44705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44706   (exit $ac_status); }; } &&
44707          { ac_try='test -s conftest.$ac_objext'
44708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44709   (eval $ac_try) 2>&5
44710   ac_status=$?
44711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44712   (exit $ac_status); }; }; then
44713   wx_cv_type_getsockopt5=size_t
44714 else
44715   echo "$as_me: failed program was:" >&5
44716 sed 's/^/| /' conftest.$ac_ext >&5
44717
44718 cat >conftest.$ac_ext <<_ACEOF
44719 /* confdefs.h.  */
44720 _ACEOF
44721 cat confdefs.h >>conftest.$ac_ext
44722 cat >>conftest.$ac_ext <<_ACEOF
44723 /* end confdefs.h.  */
44724
44725                                     #include <sys/types.h>
44726                                     #include <sys/socket.h>
44727
44728 int
44729 main ()
44730 {
44731
44732                                     int len;
44733                                     getsockopt(0, 0, 0, 0, &len);
44734
44735   ;
44736   return 0;
44737 }
44738 _ACEOF
44739 rm -f conftest.$ac_objext
44740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44741   (eval $ac_compile) 2>conftest.er1
44742   ac_status=$?
44743   grep -v '^ *+' conftest.er1 >conftest.err
44744   rm -f conftest.er1
44745   cat conftest.err >&5
44746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44747   (exit $ac_status); } &&
44748          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44750   (eval $ac_try) 2>&5
44751   ac_status=$?
44752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44753   (exit $ac_status); }; } &&
44754          { ac_try='test -s conftest.$ac_objext'
44755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44756   (eval $ac_try) 2>&5
44757   ac_status=$?
44758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44759   (exit $ac_status); }; }; then
44760   wx_cv_type_getsockopt5=int
44761 else
44762   echo "$as_me: failed program was:" >&5
44763 sed 's/^/| /' conftest.$ac_ext >&5
44764
44765 wx_cv_type_getsockopt5=unknown
44766
44767 fi
44768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44769
44770 fi
44771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44772                         ac_ext=c
44773 ac_cpp='$CPP $CPPFLAGS'
44774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44777
44778
44779
44780 fi
44781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44782
44783 fi
44784 echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44785 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
44786
44787         if test "$wx_cv_type_getsockopt5" = "unknown"; then
44788             wxUSE_SOCKETS=no
44789             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44790 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44791         else
44792             cat >>confdefs.h <<_ACEOF
44793 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
44794 _ACEOF
44795
44796         fi
44797     fi
44798 fi
44799
44800 if test "$wxUSE_SOCKETS" = "yes" ; then
44801     cat >>confdefs.h <<\_ACEOF
44802 #define wxUSE_SOCKETS 1
44803 _ACEOF
44804
44805     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44806 fi
44807
44808 if test "$wxUSE_PROTOCOL" = "yes"; then
44809     if test "$wxUSE_SOCKETS" != "yes"; then
44810         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44811 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44812         wxUSE_PROTOCOL=no
44813     fi
44814 fi
44815
44816 if test "$wxUSE_PROTOCOL" = "yes"; then
44817     cat >>confdefs.h <<\_ACEOF
44818 #define wxUSE_PROTOCOL 1
44819 _ACEOF
44820
44821
44822     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44823         cat >>confdefs.h <<\_ACEOF
44824 #define wxUSE_PROTOCOL_HTTP 1
44825 _ACEOF
44826
44827     fi
44828     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44829         cat >>confdefs.h <<\_ACEOF
44830 #define wxUSE_PROTOCOL_FTP 1
44831 _ACEOF
44832
44833     fi
44834     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44835         cat >>confdefs.h <<\_ACEOF
44836 #define wxUSE_PROTOCOL_FILE 1
44837 _ACEOF
44838
44839     fi
44840 else
44841     if test "$wxUSE_FS_INET" = "yes"; then
44842         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44843 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44844         wxUSE_FS_INET="no"
44845     fi
44846 fi
44847
44848 if test "$wxUSE_URL" = "yes"; then
44849     if test "$wxUSE_PROTOCOL" != "yes"; then
44850         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44851 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44852         wxUSE_URL=no
44853     fi
44854     if test "$wxUSE_URL" = "yes"; then
44855         cat >>confdefs.h <<\_ACEOF
44856 #define wxUSE_URL 1
44857 _ACEOF
44858
44859     fi
44860 fi
44861
44862 if test "$wxUSE_VARIANT" = "yes"; then
44863     cat >>confdefs.h <<\_ACEOF
44864 #define wxUSE_VARIANT 1
44865 _ACEOF
44866
44867 fi
44868
44869 if test "$wxUSE_FS_INET" = "yes"; then
44870   cat >>confdefs.h <<\_ACEOF
44871 #define wxUSE_FS_INET 1
44872 _ACEOF
44873
44874 fi
44875
44876
44877 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44878     wxUSE_JOYSTICK=no
44879
44880         if test "$TOOLKIT" = "MSW"; then
44881         wxUSE_JOYSTICK=yes
44882
44883         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
44884         if test "$USE_DARWIN" = 1; then
44885                         echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44886 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
44887             ac_ext=cc
44888 ac_cpp='$CXXCPP $CPPFLAGS'
44889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44892
44893             cat >conftest.$ac_ext <<_ACEOF
44894 /* confdefs.h.  */
44895 _ACEOF
44896 cat confdefs.h >>conftest.$ac_ext
44897 cat >>conftest.$ac_ext <<_ACEOF
44898 /* end confdefs.h.  */
44899  #include <IOKit/hid/IOHIDLib.h>
44900 int
44901 main ()
44902 {
44903  IOHIDQueueInterface *qi = NULL;
44904                               IOHIDCallbackFunction cb = NULL;
44905                               qi->setEventCallout(NULL, cb, NULL, NULL);
44906   ;
44907   return 0;
44908 }
44909 _ACEOF
44910 rm -f conftest.$ac_objext
44911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44912   (eval $ac_compile) 2>conftest.er1
44913   ac_status=$?
44914   grep -v '^ *+' conftest.er1 >conftest.err
44915   rm -f conftest.er1
44916   cat conftest.err >&5
44917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44918   (exit $ac_status); } &&
44919          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
44920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44921   (eval $ac_try) 2>&5
44922   ac_status=$?
44923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44924   (exit $ac_status); }; } &&
44925          { ac_try='test -s conftest.$ac_objext'
44926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44927   (eval $ac_try) 2>&5
44928   ac_status=$?
44929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44930   (exit $ac_status); }; }; then
44931    wxUSE_JOYSTICK=yes
44932
44933 else
44934   echo "$as_me: failed program was:" >&5
44935 sed 's/^/| /' conftest.$ac_ext >&5
44936
44937 fi
44938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44939             ac_ext=c
44940 ac_cpp='$CPP $CPPFLAGS'
44941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44944
44945             echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44946 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
44947         fi
44948
44949         else
44950                 if test "$wxUSE_MGL" != "1"; then
44951                                                                                     echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
44952 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6
44953 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
44954   echo $ECHO_N "(cached) $ECHO_C" >&6
44955 else
44956   cat >conftest.$ac_ext <<_ACEOF
44957 /* confdefs.h.  */
44958 _ACEOF
44959 cat confdefs.h >>conftest.$ac_ext
44960 cat >>conftest.$ac_ext <<_ACEOF
44961 /* end confdefs.h.  */
44962 #include <stdio.h>
44963
44964 #include <linux/joystick.h>
44965 _ACEOF
44966 rm -f conftest.$ac_objext
44967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44968   (eval $ac_compile) 2>conftest.er1
44969   ac_status=$?
44970   grep -v '^ *+' conftest.er1 >conftest.err
44971   rm -f conftest.er1
44972   cat conftest.err >&5
44973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44974   (exit $ac_status); } &&
44975          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
44976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44977   (eval $ac_try) 2>&5
44978   ac_status=$?
44979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44980   (exit $ac_status); }; } &&
44981          { ac_try='test -s conftest.$ac_objext'
44982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44983   (eval $ac_try) 2>&5
44984   ac_status=$?
44985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44986   (exit $ac_status); }; }; then
44987   ac_cv_header_linux_joystick_h=yes
44988 else
44989   echo "$as_me: failed program was:" >&5
44990 sed 's/^/| /' conftest.$ac_ext >&5
44991
44992 ac_cv_header_linux_joystick_h=no
44993 fi
44994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44995 fi
44996 echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
44997 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6
44998 if test $ac_cv_header_linux_joystick_h = yes; then
44999   wxUSE_JOYSTICK=yes
45000 fi
45001
45002
45003         fi
45004     fi
45005
45006     if test "$wxUSE_JOYSTICK" = "yes"; then
45007         cat >>confdefs.h <<\_ACEOF
45008 #define wxUSE_JOYSTICK 1
45009 _ACEOF
45010
45011         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45012     else
45013         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45014 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
45015     fi
45016 fi
45017
45018
45019
45020 if test "$wxUSE_FONTMAP" = "yes" ; then
45021   cat >>confdefs.h <<\_ACEOF
45022 #define wxUSE_FONTMAP 1
45023 _ACEOF
45024
45025 fi
45026
45027 if test "$wxUSE_UNICODE" = "yes" ; then
45028   cat >>confdefs.h <<\_ACEOF
45029 #define wxUSE_UNICODE 1
45030 _ACEOF
45031
45032
45033   if test "$USE_WIN32" != 1; then
45034       wxUSE_UNICODE_MSLU=no
45035   fi
45036
45037   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45038         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45039 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
45040 if test "${ac_cv_lib_unicows_main+set}" = set; then
45041   echo $ECHO_N "(cached) $ECHO_C" >&6
45042 else
45043   ac_check_lib_save_LIBS=$LIBS
45044 LIBS="-lunicows  $LIBS"
45045 cat >conftest.$ac_ext <<_ACEOF
45046 /* confdefs.h.  */
45047 _ACEOF
45048 cat confdefs.h >>conftest.$ac_ext
45049 cat >>conftest.$ac_ext <<_ACEOF
45050 /* end confdefs.h.  */
45051
45052
45053 int
45054 main ()
45055 {
45056 main ();
45057   ;
45058   return 0;
45059 }
45060 _ACEOF
45061 rm -f conftest.$ac_objext conftest$ac_exeext
45062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45063   (eval $ac_link) 2>conftest.er1
45064   ac_status=$?
45065   grep -v '^ *+' conftest.er1 >conftest.err
45066   rm -f conftest.er1
45067   cat conftest.err >&5
45068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45069   (exit $ac_status); } &&
45070          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
45071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45072   (eval $ac_try) 2>&5
45073   ac_status=$?
45074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45075   (exit $ac_status); }; } &&
45076          { ac_try='test -s conftest$ac_exeext'
45077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45078   (eval $ac_try) 2>&5
45079   ac_status=$?
45080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45081   (exit $ac_status); }; }; then
45082   ac_cv_lib_unicows_main=yes
45083 else
45084   echo "$as_me: failed program was:" >&5
45085 sed 's/^/| /' conftest.$ac_ext >&5
45086
45087 ac_cv_lib_unicows_main=no
45088 fi
45089 rm -f conftest.err conftest.$ac_objext \
45090       conftest$ac_exeext conftest.$ac_ext
45091 LIBS=$ac_check_lib_save_LIBS
45092 fi
45093 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45094 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
45095 if test $ac_cv_lib_unicows_main = yes; then
45096
45097                 cat >>confdefs.h <<\_ACEOF
45098 #define wxUSE_UNICODE_MSLU 1
45099 _ACEOF
45100
45101
45102 else
45103
45104                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45105                              Applications will only run on Windows NT/2000/XP!" >&5
45106 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45107                              Applications will only run on Windows NT/2000/XP!" >&2;}
45108                 wxUSE_UNICODE_MSLU=no
45109
45110 fi
45111
45112     fi
45113 fi
45114
45115 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
45116   cat >>confdefs.h <<\_ACEOF
45117 #define wxUSE_EXPERIMENTAL_PRINTF 1
45118 _ACEOF
45119
45120 fi
45121
45122
45123 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45124   cat >>confdefs.h <<\_ACEOF
45125 #define wxUSE_POSTSCRIPT 1
45126 _ACEOF
45127
45128 fi
45129
45130 cat >>confdefs.h <<\_ACEOF
45131 #define wxUSE_AFM_FOR_POSTSCRIPT 1
45132 _ACEOF
45133
45134
45135 cat >>confdefs.h <<\_ACEOF
45136 #define wxUSE_NORMALIZED_PS_FONTS 1
45137 _ACEOF
45138
45139
45140
45141 if test "$wxUSE_CONSTRAINTS" = "yes"; then
45142     cat >>confdefs.h <<\_ACEOF
45143 #define wxUSE_CONSTRAINTS 1
45144 _ACEOF
45145
45146     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45147 fi
45148
45149 if test "$wxUSE_MDI" = "yes"; then
45150     cat >>confdefs.h <<\_ACEOF
45151 #define wxUSE_MDI 1
45152 _ACEOF
45153
45154
45155     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45156         cat >>confdefs.h <<\_ACEOF
45157 #define wxUSE_MDI_ARCHITECTURE 1
45158 _ACEOF
45159
45160         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45161     fi
45162 fi
45163
45164 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45165     cat >>confdefs.h <<\_ACEOF
45166 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
45167 _ACEOF
45168
45169     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45170     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45171         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
45172     fi
45173 fi
45174
45175 if test "$wxUSE_HELP" = "yes"; then
45176     cat >>confdefs.h <<\_ACEOF
45177 #define wxUSE_HELP 1
45178 _ACEOF
45179
45180     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45181
45182     if test "$wxUSE_MSW" = 1; then
45183       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45184         cat >>confdefs.h <<\_ACEOF
45185 #define wxUSE_MS_HTML_HELP 1
45186 _ACEOF
45187
45188       fi
45189     fi
45190
45191     if test "$wxUSE_WXHTML_HELP" = "yes"; then
45192       if test "$wxUSE_HTML" = "yes"; then
45193         cat >>confdefs.h <<\_ACEOF
45194 #define wxUSE_WXHTML_HELP 1
45195 _ACEOF
45196
45197       else
45198         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45199 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45200         wxUSE_WXHTML_HELP=no
45201       fi
45202     fi
45203 fi
45204
45205 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45206     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45207         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
45208 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
45209     else
45210         cat >>confdefs.h <<\_ACEOF
45211 #define wxUSE_PRINTING_ARCHITECTURE 1
45212 _ACEOF
45213
45214     fi
45215     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45216 fi
45217
45218 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
45219     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
45220 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
45221    { (exit 1); exit 1; }; }
45222 fi
45223
45224
45225 if test "$wxUSE_METAFILE" = "yes"; then
45226     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45227         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45228 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45229         wxUSE_METAFILE=no
45230     fi
45231 fi
45232
45233
45234 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
45235                           -o "$wxUSE_CLIPBOARD"     = "yes" \
45236                           -o "$wxUSE_OLE"     = "yes" \
45237                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45238
45239 for ac_header in ole2.h
45240 do
45241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45243   echo "$as_me:$LINENO: checking for $ac_header" >&5
45244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45246   echo $ECHO_N "(cached) $ECHO_C" >&6
45247 fi
45248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45250 else
45251   # Is the header compilable?
45252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45254 cat >conftest.$ac_ext <<_ACEOF
45255 /* confdefs.h.  */
45256 _ACEOF
45257 cat confdefs.h >>conftest.$ac_ext
45258 cat >>conftest.$ac_ext <<_ACEOF
45259 /* end confdefs.h.  */
45260 $ac_includes_default
45261 #include <$ac_header>
45262 _ACEOF
45263 rm -f conftest.$ac_objext
45264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45265   (eval $ac_compile) 2>conftest.er1
45266   ac_status=$?
45267   grep -v '^ *+' conftest.er1 >conftest.err
45268   rm -f conftest.er1
45269   cat conftest.err >&5
45270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45271   (exit $ac_status); } &&
45272          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
45273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45274   (eval $ac_try) 2>&5
45275   ac_status=$?
45276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45277   (exit $ac_status); }; } &&
45278          { ac_try='test -s conftest.$ac_objext'
45279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45280   (eval $ac_try) 2>&5
45281   ac_status=$?
45282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45283   (exit $ac_status); }; }; then
45284   ac_header_compiler=yes
45285 else
45286   echo "$as_me: failed program was:" >&5
45287 sed 's/^/| /' conftest.$ac_ext >&5
45288
45289 ac_header_compiler=no
45290 fi
45291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45293 echo "${ECHO_T}$ac_header_compiler" >&6
45294
45295 # Is the header present?
45296 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45298 cat >conftest.$ac_ext <<_ACEOF
45299 /* confdefs.h.  */
45300 _ACEOF
45301 cat confdefs.h >>conftest.$ac_ext
45302 cat >>conftest.$ac_ext <<_ACEOF
45303 /* end confdefs.h.  */
45304 #include <$ac_header>
45305 _ACEOF
45306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45307   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45308   ac_status=$?
45309   grep -v '^ *+' conftest.er1 >conftest.err
45310   rm -f conftest.er1
45311   cat conftest.err >&5
45312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45313   (exit $ac_status); } >/dev/null; then
45314   if test -s conftest.err; then
45315     ac_cpp_err=$ac_c_preproc_warn_flag
45316     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45317   else
45318     ac_cpp_err=
45319   fi
45320 else
45321   ac_cpp_err=yes
45322 fi
45323 if test -z "$ac_cpp_err"; then
45324   ac_header_preproc=yes
45325 else
45326   echo "$as_me: failed program was:" >&5
45327 sed 's/^/| /' conftest.$ac_ext >&5
45328
45329   ac_header_preproc=no
45330 fi
45331 rm -f conftest.err conftest.$ac_ext
45332 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45333 echo "${ECHO_T}$ac_header_preproc" >&6
45334
45335 # So?  What about this header?
45336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45337   yes:no: )
45338     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45339 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45340     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45341 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45342     ac_header_preproc=yes
45343     ;;
45344   no:yes:* )
45345     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45347     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45348 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45349     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45350 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45351     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45352 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45353     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45355     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45356 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45357     (
45358       cat <<\_ASBOX
45359 ## ----------------------------------------- ##
45360 ## Report this to wx-dev@lists.wxwidgets.org ##
45361 ## ----------------------------------------- ##
45362 _ASBOX
45363     ) |
45364       sed "s/^/$as_me: WARNING:     /" >&2
45365     ;;
45366 esac
45367 echo "$as_me:$LINENO: checking for $ac_header" >&5
45368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45370   echo $ECHO_N "(cached) $ECHO_C" >&6
45371 else
45372   eval "$as_ac_Header=\$ac_header_preproc"
45373 fi
45374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45376
45377 fi
45378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45379   cat >>confdefs.h <<_ACEOF
45380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45381 _ACEOF
45382
45383 fi
45384
45385 done
45386
45387
45388     if test "$ac_cv_header_ole2_h" = "yes" ; then
45389         if test "$GCC" = yes ; then
45390             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45391 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
45392             cat >conftest.$ac_ext <<_ACEOF
45393 /* confdefs.h.  */
45394 _ACEOF
45395 cat confdefs.h >>conftest.$ac_ext
45396 cat >>conftest.$ac_ext <<_ACEOF
45397 /* end confdefs.h.  */
45398 #include <windows.h>
45399                             #include <ole2.h>
45400 int
45401 main ()
45402 {
45403
45404   ;
45405   return 0;
45406 }
45407 _ACEOF
45408 rm -f conftest.$ac_objext
45409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45410   (eval $ac_compile) 2>conftest.er1
45411   ac_status=$?
45412   grep -v '^ *+' conftest.er1 >conftest.err
45413   rm -f conftest.er1
45414   cat conftest.err >&5
45415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45416   (exit $ac_status); } &&
45417          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
45418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45419   (eval $ac_try) 2>&5
45420   ac_status=$?
45421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45422   (exit $ac_status); }; } &&
45423          { ac_try='test -s conftest.$ac_objext'
45424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45425   (eval $ac_try) 2>&5
45426   ac_status=$?
45427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45428   (exit $ac_status); }; }; then
45429   echo "$as_me:$LINENO: result: no" >&5
45430 echo "${ECHO_T}no" >&6
45431 else
45432   echo "$as_me: failed program was:" >&5
45433 sed 's/^/| /' conftest.$ac_ext >&5
45434
45435 echo "$as_me:$LINENO: result: yes" >&5
45436 echo "${ECHO_T}yes" >&6
45437                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
45438 fi
45439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45440             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45441             if test "$wxUSE_OLE" = "yes" ; then
45442                 cat >>confdefs.h <<\_ACEOF
45443 #define wxUSE_OLE 1
45444 _ACEOF
45445
45446                 cat >>confdefs.h <<\_ACEOF
45447 #define wxUSE_OLE_AUTOMATION 1
45448 _ACEOF
45449
45450                 cat >>confdefs.h <<\_ACEOF
45451 #define wxUSE_OLE_ACTIVEX 1
45452 _ACEOF
45453
45454                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
45455             fi
45456         fi
45457
45458                 if test "$wxUSE_DATAOBJ" = "yes" ; then
45459             cat >>confdefs.h <<\_ACEOF
45460 #define wxUSE_DATAOBJ 1
45461 _ACEOF
45462
45463         fi
45464     else
45465         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45466 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45467
45468         wxUSE_CLIPBOARD=no
45469         wxUSE_DRAG_AND_DROP=no
45470         wxUSE_DATAOBJ=no
45471         wxUSE_OLE=no
45472     fi
45473
45474     if test "$wxUSE_METAFILE" = "yes"; then
45475         cat >>confdefs.h <<\_ACEOF
45476 #define wxUSE_METAFILE 1
45477 _ACEOF
45478
45479
45480                 cat >>confdefs.h <<\_ACEOF
45481 #define wxUSE_ENH_METAFILE 1
45482 _ACEOF
45483
45484     fi
45485 fi
45486
45487 if test "$wxUSE_IPC" = "yes"; then
45488     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
45489         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45490 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
45491         wxUSE_IPC=no
45492     fi
45493
45494     if test "$wxUSE_IPC" = "yes"; then
45495         cat >>confdefs.h <<\_ACEOF
45496 #define wxUSE_IPC 1
45497 _ACEOF
45498
45499         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45500     fi
45501 fi
45502
45503 if test "$wxUSE_DATAOBJ" = "yes"; then
45504     if test "$wxUSE_MGL" = 1; then
45505         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
45506 echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
45507         wxUSE_DATAOBJ=no
45508     else
45509         cat >>confdefs.h <<\_ACEOF
45510 #define wxUSE_DATAOBJ 1
45511 _ACEOF
45512
45513     fi
45514 else
45515     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45516 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45517     wxUSE_CLIPBOARD=no
45518     wxUSE_DRAG_AND_DROP=no
45519 fi
45520
45521 if test "$wxUSE_CLIPBOARD" = "yes"; then
45522     if test "$wxUSE_MGL" = 1; then
45523         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
45524 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
45525         wxUSE_CLIPBOARD=no
45526     fi
45527
45528     if test "$wxUSE_CLIPBOARD" = "yes"; then
45529         cat >>confdefs.h <<\_ACEOF
45530 #define wxUSE_CLIPBOARD 1
45531 _ACEOF
45532
45533     fi
45534 fi
45535
45536 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45537     if test "$wxUSE_GTK" = 1; then
45538         if test "$WXGTK12" != 1; then
45539             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45540 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45541             wxUSE_DRAG_AND_DROP=no
45542         fi
45543     fi
45544
45545     if test "$wxUSE_MOTIF" = 1; then
45546         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
45547 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
45548         wxUSE_DRAG_AND_DROP=no
45549     fi
45550
45551     if test "$wxUSE_X11" = 1; then
45552         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
45553 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
45554         wxUSE_DRAG_AND_DROP=no
45555     fi
45556
45557     if test "$wxUSE_MGL" = 1; then
45558         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
45559 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
45560         wxUSE_DRAG_AND_DROP=no
45561     fi
45562
45563     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45564         cat >>confdefs.h <<\_ACEOF
45565 #define wxUSE_DRAG_AND_DROP 1
45566 _ACEOF
45567
45568     fi
45569
45570 fi
45571
45572 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45573     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45574 fi
45575
45576 if test "$wxUSE_SPLINES" = "yes" ; then
45577   cat >>confdefs.h <<\_ACEOF
45578 #define wxUSE_SPLINES 1
45579 _ACEOF
45580
45581 fi
45582
45583 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45584   cat >>confdefs.h <<\_ACEOF
45585 #define wxUSE_MOUSEWHEEL 1
45586 _ACEOF
45587
45588 fi
45589
45590
45591 USES_CONTROLS=0
45592 if test "$wxUSE_CONTROLS" = "yes"; then
45593   USES_CONTROLS=1
45594 fi
45595
45596 if test "$wxUSE_ACCEL" = "yes"; then
45597   cat >>confdefs.h <<\_ACEOF
45598 #define wxUSE_ACCEL 1
45599 _ACEOF
45600
45601   USES_CONTROLS=1
45602 fi
45603
45604 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
45605   cat >>confdefs.h <<\_ACEOF
45606 #define wxUSE_ANIMATIONCTRL 1
45607 _ACEOF
45608
45609   USES_CONTROLS=1
45610   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45611 fi
45612
45613 if test "$wxUSE_BUTTON" = "yes"; then
45614   cat >>confdefs.h <<\_ACEOF
45615 #define wxUSE_BUTTON 1
45616 _ACEOF
45617
45618   USES_CONTROLS=1
45619 fi
45620
45621 if test "$wxUSE_BMPBUTTON" = "yes"; then
45622   cat >>confdefs.h <<\_ACEOF
45623 #define wxUSE_BMPBUTTON 1
45624 _ACEOF
45625
45626   USES_CONTROLS=1
45627 fi
45628
45629 if test "$wxUSE_CALCTRL" = "yes"; then
45630   cat >>confdefs.h <<\_ACEOF
45631 #define wxUSE_CALENDARCTRL 1
45632 _ACEOF
45633
45634   USES_CONTROLS=1
45635   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45636 fi
45637
45638 if test "$wxUSE_CARET" = "yes"; then
45639   cat >>confdefs.h <<\_ACEOF
45640 #define wxUSE_CARET 1
45641 _ACEOF
45642
45643   USES_CONTROLS=1
45644   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45645 fi
45646
45647 if test "$wxUSE_COLLPANE" = "yes"; then
45648     cat >>confdefs.h <<\_ACEOF
45649 #define wxUSE_COLLPANE 1
45650 _ACEOF
45651
45652     USES_CONTROLS=1
45653     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
45654 fi
45655
45656 if test "$wxUSE_COMBOBOX" = "yes"; then
45657   cat >>confdefs.h <<\_ACEOF
45658 #define wxUSE_COMBOBOX 1
45659 _ACEOF
45660
45661   USES_CONTROLS=1
45662 fi
45663
45664 if test "$wxUSE_COMBOCTRL" = "yes"; then
45665   cat >>confdefs.h <<\_ACEOF
45666 #define wxUSE_COMBOCTRL 1
45667 _ACEOF
45668
45669   USES_CONTROLS=1
45670 fi
45671
45672 if test "$wxUSE_CHOICE" = "yes"; then
45673   cat >>confdefs.h <<\_ACEOF
45674 #define wxUSE_CHOICE 1
45675 _ACEOF
45676
45677   USES_CONTROLS=1
45678 fi
45679
45680 if test "$wxUSE_CHOICEBOOK" = "yes"; then
45681     cat >>confdefs.h <<\_ACEOF
45682 #define wxUSE_CHOICEBOOK 1
45683 _ACEOF
45684
45685     USES_CONTROLS=1
45686 fi
45687
45688 if test "$wxUSE_CHECKBOX" = "yes"; then
45689   cat >>confdefs.h <<\_ACEOF
45690 #define wxUSE_CHECKBOX 1
45691 _ACEOF
45692
45693   USES_CONTROLS=1
45694 fi
45695
45696 if test "$wxUSE_CHECKLST" = "yes"; then
45697   cat >>confdefs.h <<\_ACEOF
45698 #define wxUSE_CHECKLISTBOX 1
45699 _ACEOF
45700
45701   USES_CONTROLS=1
45702   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
45703 fi
45704
45705 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45706   cat >>confdefs.h <<\_ACEOF
45707 #define wxUSE_COLOURPICKERCTRL 1
45708 _ACEOF
45709
45710   USES_CONTROLS=1
45711 fi
45712
45713 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45714   cat >>confdefs.h <<\_ACEOF
45715 #define wxUSE_DATEPICKCTRL 1
45716 _ACEOF
45717
45718   USES_CONTROLS=1
45719 fi
45720
45721 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45722   cat >>confdefs.h <<\_ACEOF
45723 #define wxUSE_DIRPICKERCTRL 1
45724 _ACEOF
45725
45726   USES_CONTROLS=1
45727 fi
45728
45729 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45730   cat >>confdefs.h <<\_ACEOF
45731 #define wxUSE_FILEPICKERCTRL 1
45732 _ACEOF
45733
45734   USES_CONTROLS=1
45735 fi
45736
45737 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45738   cat >>confdefs.h <<\_ACEOF
45739 #define wxUSE_FONTPICKERCTRL 1
45740 _ACEOF
45741
45742   USES_CONTROLS=1
45743 fi
45744
45745 if test "$wxUSE_DISPLAY" = "yes"; then
45746     cat >>confdefs.h <<\_ACEOF
45747 #define wxUSE_DISPLAY 1
45748 _ACEOF
45749
45750     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
45751 fi
45752
45753 if test "$wxUSE_DETECT_SM" = "yes"; then
45754     cat >>confdefs.h <<\_ACEOF
45755 #define wxUSE_DETECT_SM 1
45756 _ACEOF
45757
45758 fi
45759
45760 if test "$wxUSE_GAUGE" = "yes"; then
45761   cat >>confdefs.h <<\_ACEOF
45762 #define wxUSE_GAUGE 1
45763 _ACEOF
45764
45765   USES_CONTROLS=1
45766 fi
45767
45768 if test "$wxUSE_GRID" = "yes"; then
45769   cat >>confdefs.h <<\_ACEOF
45770 #define wxUSE_GRID 1
45771 _ACEOF
45772
45773   USES_CONTROLS=1
45774   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45775 fi
45776
45777 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45778   cat >>confdefs.h <<\_ACEOF
45779 #define wxUSE_HYPERLINKCTRL 1
45780 _ACEOF
45781
45782   USES_CONTROLS=1
45783 fi
45784
45785 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45786   cat >>confdefs.h <<\_ACEOF
45787 #define wxUSE_BITMAPCOMBOBOX 1
45788 _ACEOF
45789
45790   USES_CONTROLS=1
45791 fi
45792
45793 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45794   cat >>confdefs.h <<\_ACEOF
45795 #define wxUSE_DATAVIEWCTRL 1
45796 _ACEOF
45797
45798   USES_CONTROLS=1
45799   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45800 fi
45801
45802 if test "$wxUSE_IMAGLIST" = "yes"; then
45803     cat >>confdefs.h <<\_ACEOF
45804 #define wxUSE_IMAGLIST 1
45805 _ACEOF
45806
45807 fi
45808
45809 if test "$wxUSE_LISTBOOK" = "yes"; then
45810     cat >>confdefs.h <<\_ACEOF
45811 #define wxUSE_LISTBOOK 1
45812 _ACEOF
45813
45814     USES_CONTROLS=1
45815 fi
45816
45817 if test "$wxUSE_LISTBOX" = "yes"; then
45818     cat >>confdefs.h <<\_ACEOF
45819 #define wxUSE_LISTBOX 1
45820 _ACEOF
45821
45822     USES_CONTROLS=1
45823     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
45824 fi
45825
45826 if test "$wxUSE_LISTCTRL" = "yes"; then
45827     if test "$wxUSE_IMAGLIST" = "yes"; then
45828         cat >>confdefs.h <<\_ACEOF
45829 #define wxUSE_LISTCTRL 1
45830 _ACEOF
45831
45832         USES_CONTROLS=1
45833         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45834     else
45835         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45836 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45837     fi
45838 fi
45839
45840 if test "$wxUSE_NOTEBOOK" = "yes"; then
45841     cat >>confdefs.h <<\_ACEOF
45842 #define wxUSE_NOTEBOOK 1
45843 _ACEOF
45844
45845     USES_CONTROLS=1
45846     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45847 fi
45848
45849 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
45850   cat >>confdefs.h <<\_ACEOF
45851 #define wxUSE_ODCOMBOBOX 1
45852 _ACEOF
45853
45854   USES_CONTROLS=1
45855   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45856 fi
45857
45858
45859 if test "$wxUSE_RADIOBOX" = "yes"; then
45860     cat >>confdefs.h <<\_ACEOF
45861 #define wxUSE_RADIOBOX 1
45862 _ACEOF
45863
45864     USES_CONTROLS=1
45865 fi
45866
45867 if test "$wxUSE_RADIOBTN" = "yes"; then
45868     cat >>confdefs.h <<\_ACEOF
45869 #define wxUSE_RADIOBTN 1
45870 _ACEOF
45871
45872     USES_CONTROLS=1
45873 fi
45874
45875 if test "$wxUSE_SASH" = "yes"; then
45876     cat >>confdefs.h <<\_ACEOF
45877 #define wxUSE_SASH 1
45878 _ACEOF
45879
45880     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45881 fi
45882
45883 if test "$wxUSE_SCROLLBAR" = "yes"; then
45884     cat >>confdefs.h <<\_ACEOF
45885 #define wxUSE_SCROLLBAR 1
45886 _ACEOF
45887
45888     USES_CONTROLS=1
45889     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45890 fi
45891
45892 if test "$wxUSE_SLIDER" = "yes"; then
45893     cat >>confdefs.h <<\_ACEOF
45894 #define wxUSE_SLIDER 1
45895 _ACEOF
45896
45897     USES_CONTROLS=1
45898 fi
45899
45900 if test "$wxUSE_SPINBTN" = "yes"; then
45901     cat >>confdefs.h <<\_ACEOF
45902 #define wxUSE_SPINBTN 1
45903 _ACEOF
45904
45905     USES_CONTROLS=1
45906 fi
45907
45908 if test "$wxUSE_SPINCTRL" = "yes"; then
45909     cat >>confdefs.h <<\_ACEOF
45910 #define wxUSE_SPINCTRL 1
45911 _ACEOF
45912
45913     USES_CONTROLS=1
45914 fi
45915
45916 if test "$wxUSE_SPLITTER" = "yes"; then
45917     cat >>confdefs.h <<\_ACEOF
45918 #define wxUSE_SPLITTER 1
45919 _ACEOF
45920
45921     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45922 fi
45923
45924 if test "$wxUSE_STATBMP" = "yes"; then
45925     cat >>confdefs.h <<\_ACEOF
45926 #define wxUSE_STATBMP 1
45927 _ACEOF
45928
45929     USES_CONTROLS=1
45930 fi
45931
45932 if test "$wxUSE_STATBOX" = "yes"; then
45933     cat >>confdefs.h <<\_ACEOF
45934 #define wxUSE_STATBOX 1
45935 _ACEOF
45936
45937     USES_CONTROLS=1
45938 fi
45939
45940 if test "$wxUSE_STATTEXT" = "yes"; then
45941     cat >>confdefs.h <<\_ACEOF
45942 #define wxUSE_STATTEXT 1
45943 _ACEOF
45944
45945     USES_CONTROLS=1
45946 fi
45947
45948 if test "$wxUSE_STATLINE" = "yes"; then
45949     cat >>confdefs.h <<\_ACEOF
45950 #define wxUSE_STATLINE 1
45951 _ACEOF
45952
45953     USES_CONTROLS=1
45954 fi
45955
45956 if test "$wxUSE_STATUSBAR" = "yes"; then
45957         cat >>confdefs.h <<\_ACEOF
45958 #define wxUSE_NATIVE_STATUSBAR 1
45959 _ACEOF
45960
45961     cat >>confdefs.h <<\_ACEOF
45962 #define wxUSE_STATUSBAR 1
45963 _ACEOF
45964
45965     USES_CONTROLS=1
45966
45967     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45968 fi
45969
45970 if test "$wxUSE_TAB_DIALOG" = "yes"; then
45971     cat >>confdefs.h <<\_ACEOF
45972 #define wxUSE_TAB_DIALOG 1
45973 _ACEOF
45974
45975 fi
45976
45977 if test "$wxUSE_TEXTCTRL" = "yes"; then
45978     cat >>confdefs.h <<\_ACEOF
45979 #define wxUSE_TEXTCTRL 1
45980 _ACEOF
45981
45982     USES_CONTROLS=1
45983     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45984 fi
45985
45986 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45987     if test "$wxUSE_COCOA" = 1 ; then
45988         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45989 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45990         wxUSE_TOGGLEBTN=no
45991     fi
45992
45993     if test "$wxUSE_TOGGLEBTN" = "yes"; then
45994         cat >>confdefs.h <<\_ACEOF
45995 #define wxUSE_TOGGLEBTN 1
45996 _ACEOF
45997
45998         USES_CONTROLS=1
45999     fi
46000 fi
46001
46002 if test "$wxUSE_TOOLBAR" = "yes"; then
46003     cat >>confdefs.h <<\_ACEOF
46004 #define wxUSE_TOOLBAR 1
46005 _ACEOF
46006
46007     USES_CONTROLS=1
46008
46009     if test "$wxUSE_UNIVERSAL" = "yes"; then
46010         wxUSE_TOOLBAR_NATIVE="no"
46011     else
46012         wxUSE_TOOLBAR_NATIVE="yes"
46013         cat >>confdefs.h <<\_ACEOF
46014 #define wxUSE_TOOLBAR_NATIVE 1
46015 _ACEOF
46016
46017     fi
46018
46019     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
46020 fi
46021
46022 if test "$wxUSE_TOOLTIPS" = "yes"; then
46023     if test "$wxUSE_MOTIF" = 1; then
46024         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
46025 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
46026     else
46027         if test "$wxUSE_UNIVERSAL" = "yes"; then
46028             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
46029 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
46030         else
46031             cat >>confdefs.h <<\_ACEOF
46032 #define wxUSE_TOOLTIPS 1
46033 _ACEOF
46034
46035         fi
46036     fi
46037 fi
46038
46039 if test "$wxUSE_TREEBOOK" = "yes"; then
46040     cat >>confdefs.h <<\_ACEOF
46041 #define wxUSE_TREEBOOK 1
46042 _ACEOF
46043
46044     USES_CONTROLS=1
46045 fi
46046
46047 if test "$wxUSE_TOOLBOOK" = "yes"; then
46048     cat >>confdefs.h <<\_ACEOF
46049 #define wxUSE_TOOLBOOK 1
46050 _ACEOF
46051
46052     USES_CONTROLS=1
46053 fi
46054
46055 if test "$wxUSE_TREECTRL" = "yes"; then
46056     if test "$wxUSE_IMAGLIST" = "yes"; then
46057         cat >>confdefs.h <<\_ACEOF
46058 #define wxUSE_TREECTRL 1
46059 _ACEOF
46060
46061         USES_CONTROLS=1
46062         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46063     else
46064         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46065 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
46066     fi
46067 fi
46068
46069 if test "$wxUSE_POPUPWIN" = "yes"; then
46070     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
46071         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
46072 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
46073     else
46074         if test "$wxUSE_PM" = 1; then
46075             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46076 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
46077         else
46078             cat >>confdefs.h <<\_ACEOF
46079 #define wxUSE_POPUPWIN 1
46080 _ACEOF
46081
46082             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
46083
46084             USES_CONTROLS=1
46085         fi
46086     fi
46087 fi
46088
46089 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
46090     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
46091         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
46092 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
46093     else
46094         cat >>confdefs.h <<\_ACEOF
46095 #define wxUSE_DIALUP_MANAGER 1
46096 _ACEOF
46097
46098         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46099     fi
46100 fi
46101
46102 if test "$wxUSE_TIPWINDOW" = "yes"; then
46103     if test "$wxUSE_PM" = 1; then
46104         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46105 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46106     else
46107         cat >>confdefs.h <<\_ACEOF
46108 #define wxUSE_TIPWINDOW 1
46109 _ACEOF
46110
46111     fi
46112 fi
46113
46114 if test "$USES_CONTROLS" = 1; then
46115     cat >>confdefs.h <<\_ACEOF
46116 #define wxUSE_CONTROLS 1
46117 _ACEOF
46118
46119 fi
46120
46121
46122 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46123     cat >>confdefs.h <<\_ACEOF
46124 #define wxUSE_ACCESSIBILITY 1
46125 _ACEOF
46126
46127     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46128 fi
46129
46130 if test "$wxUSE_DC_CACHEING" = "yes"; then
46131     cat >>confdefs.h <<\_ACEOF
46132 #define wxUSE_DC_CACHEING 1
46133 _ACEOF
46134
46135 fi
46136
46137 if test "$wxUSE_DRAGIMAGE" = "yes"; then
46138     cat >>confdefs.h <<\_ACEOF
46139 #define wxUSE_DRAGIMAGE 1
46140 _ACEOF
46141
46142     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46143 fi
46144
46145 if test "$wxUSE_EXCEPTIONS" = "yes"; then
46146     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46147         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46148 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46149     else
46150         cat >>confdefs.h <<\_ACEOF
46151 #define wxUSE_EXCEPTIONS 1
46152 _ACEOF
46153
46154         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46155     fi
46156 fi
46157
46158 USE_HTML=0
46159 if test "$wxUSE_HTML" = "yes"; then
46160     cat >>confdefs.h <<\_ACEOF
46161 #define wxUSE_HTML 1
46162 _ACEOF
46163
46164     USE_HTML=1
46165     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
46166     if test "$wxUSE_MAC" = 1; then
46167         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46168     fi
46169 fi
46170 if test "$wxUSE_WEBKIT" = "yes"; then
46171     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
46172         old_CPPFLAGS="$CPPFLAGS"
46173         CPPFLAGS="-x objective-c++ $CPPFLAGS"
46174         echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46175 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
46176 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46177   echo $ECHO_N "(cached) $ECHO_C" >&6
46178 else
46179   cat >conftest.$ac_ext <<_ACEOF
46180 /* confdefs.h.  */
46181 _ACEOF
46182 cat confdefs.h >>conftest.$ac_ext
46183 cat >>conftest.$ac_ext <<_ACEOF
46184 /* end confdefs.h.  */
46185 #include <Carbon/Carbon.h>
46186
46187 #include <WebKit/HIWebView.h>
46188 _ACEOF
46189 rm -f conftest.$ac_objext
46190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
46199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46200   (eval $ac_try) 2>&5
46201   ac_status=$?
46202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46203   (exit $ac_status); }; } &&
46204          { ac_try='test -s conftest.$ac_objext'
46205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46206   (eval $ac_try) 2>&5
46207   ac_status=$?
46208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46209   (exit $ac_status); }; }; then
46210   ac_cv_header_WebKit_HIWebView_h=yes
46211 else
46212   echo "$as_me: failed program was:" >&5
46213 sed 's/^/| /' conftest.$ac_ext >&5
46214
46215 ac_cv_header_WebKit_HIWebView_h=no
46216 fi
46217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46218 fi
46219 echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46220 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
46221 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46222
46223                            cat >>confdefs.h <<\_ACEOF
46224 #define wxUSE_WEBKIT 1
46225 _ACEOF
46226
46227                            WEBKIT_LINK="-framework WebKit"
46228
46229 else
46230
46231                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46232 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46233                            wxUSE_WEBKIT=no
46234
46235 fi
46236
46237
46238         CPPFLAGS="$old_CPPFLAGS"
46239     elif test "$wxUSE_COCOA" = 1; then
46240         cat >>confdefs.h <<\_ACEOF
46241 #define wxUSE_WEBKIT 1
46242 _ACEOF
46243
46244     else
46245         wxUSE_WEBKIT=no
46246     fi
46247 fi
46248
46249 USE_XRC=0
46250 if test "$wxUSE_XRC" = "yes"; then
46251     if test "$wxUSE_XML" != "yes"; then
46252         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46253 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46254         wxUSE_XRC=no
46255     else
46256         cat >>confdefs.h <<\_ACEOF
46257 #define wxUSE_XRC 1
46258 _ACEOF
46259
46260         USE_XRC=1
46261         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46262     fi
46263 fi
46264
46265 USE_AUI=0
46266 if test "$wxUSE_AUI" = "yes"; then
46267    cat >>confdefs.h <<\_ACEOF
46268 #define wxUSE_AUI 1
46269 _ACEOF
46270
46271    USE_AUI=1
46272    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46273 fi
46274
46275 if test "$wxUSE_MENUS" = "yes"; then
46276     cat >>confdefs.h <<\_ACEOF
46277 #define wxUSE_MENUS 1
46278 _ACEOF
46279
46280     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46281 fi
46282
46283 if test "$wxUSE_METAFILE" = "yes"; then
46284     cat >>confdefs.h <<\_ACEOF
46285 #define wxUSE_METAFILE 1
46286 _ACEOF
46287
46288 fi
46289
46290 if test "$wxUSE_MIMETYPE" = "yes"; then
46291     cat >>confdefs.h <<\_ACEOF
46292 #define wxUSE_MIMETYPE 1
46293 _ACEOF
46294
46295 fi
46296
46297 if test "$wxUSE_MINIFRAME" = "yes"; then
46298     cat >>confdefs.h <<\_ACEOF
46299 #define wxUSE_MINIFRAME 1
46300 _ACEOF
46301
46302     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
46303 fi
46304
46305 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46306     cat >>confdefs.h <<\_ACEOF
46307 #define wxUSE_SYSTEM_OPTIONS 1
46308 _ACEOF
46309
46310     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
46311         "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
46312         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46313     fi
46314 fi
46315
46316
46317 if test "$wxUSE_VALIDATORS" = "yes"; then
46318     cat >>confdefs.h <<\_ACEOF
46319 #define wxUSE_VALIDATORS 1
46320 _ACEOF
46321
46322     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46323 fi
46324
46325 if test "$wxUSE_PALETTE" = "yes" ; then
46326   cat >>confdefs.h <<\_ACEOF
46327 #define wxUSE_PALETTE 1
46328 _ACEOF
46329
46330 fi
46331
46332 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46333     LIBS=" -lunicows $LIBS"
46334 fi
46335
46336 USE_RICHTEXT=0
46337 if test "$wxUSE_RICHTEXT" = "yes"; then
46338     cat >>confdefs.h <<\_ACEOF
46339 #define wxUSE_RICHTEXT 1
46340 _ACEOF
46341
46342     USE_RICHTEXT=1
46343     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46344 fi
46345
46346
46347 if test "$wxUSE_IMAGE" = "yes" ; then
46348     cat >>confdefs.h <<\_ACEOF
46349 #define wxUSE_IMAGE 1
46350 _ACEOF
46351
46352
46353     if test "$wxUSE_GIF" = "yes" ; then
46354       cat >>confdefs.h <<\_ACEOF
46355 #define wxUSE_GIF 1
46356 _ACEOF
46357
46358     fi
46359
46360     if test "$wxUSE_PCX" = "yes" ; then
46361       cat >>confdefs.h <<\_ACEOF
46362 #define wxUSE_PCX 1
46363 _ACEOF
46364
46365     fi
46366
46367     if test "$wxUSE_TGA" = "yes" ; then
46368       cat >>confdefs.h <<\_ACEOF
46369 #define wxUSE_TGA 1
46370 _ACEOF
46371
46372     fi
46373
46374     if test "$wxUSE_IFF" = "yes" ; then
46375       cat >>confdefs.h <<\_ACEOF
46376 #define wxUSE_IFF 1
46377 _ACEOF
46378
46379     fi
46380
46381     if test "$wxUSE_PNM" = "yes" ; then
46382       cat >>confdefs.h <<\_ACEOF
46383 #define wxUSE_PNM 1
46384 _ACEOF
46385
46386     fi
46387
46388     if test "$wxUSE_XPM" = "yes" ; then
46389       cat >>confdefs.h <<\_ACEOF
46390 #define wxUSE_XPM 1
46391 _ACEOF
46392
46393     fi
46394
46395     if test "$wxUSE_ICO_CUR" = "yes" ; then
46396       cat >>confdefs.h <<\_ACEOF
46397 #define wxUSE_ICO_CUR 1
46398 _ACEOF
46399
46400     fi
46401 fi
46402
46403
46404 if test "$wxUSE_ABOUTDLG" = "yes"; then
46405     cat >>confdefs.h <<\_ACEOF
46406 #define wxUSE_ABOUTDLG 1
46407 _ACEOF
46408
46409 fi
46410
46411 if test "$wxUSE_CHOICEDLG" = "yes"; then
46412     cat >>confdefs.h <<\_ACEOF
46413 #define wxUSE_CHOICEDLG 1
46414 _ACEOF
46415
46416 fi
46417
46418 if test "$wxUSE_COLOURDLG" = "yes"; then
46419     cat >>confdefs.h <<\_ACEOF
46420 #define wxUSE_COLOURDLG 1
46421 _ACEOF
46422
46423 fi
46424
46425 if test "$wxUSE_FILEDLG" = "yes"; then
46426     cat >>confdefs.h <<\_ACEOF
46427 #define wxUSE_FILEDLG 1
46428 _ACEOF
46429
46430 fi
46431
46432 if test "$wxUSE_FINDREPLDLG" = "yes"; then
46433     cat >>confdefs.h <<\_ACEOF
46434 #define wxUSE_FINDREPLDLG 1
46435 _ACEOF
46436
46437 fi
46438
46439 if test "$wxUSE_FONTDLG" = "yes"; then
46440     cat >>confdefs.h <<\_ACEOF
46441 #define wxUSE_FONTDLG 1
46442 _ACEOF
46443
46444 fi
46445
46446 if test "$wxUSE_DIRDLG" = "yes"; then
46447     if test "$wxUSE_TREECTRL" != "yes"; then
46448         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46449 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46450     else
46451         cat >>confdefs.h <<\_ACEOF
46452 #define wxUSE_DIRDLG 1
46453 _ACEOF
46454
46455     fi
46456 fi
46457
46458 if test "$wxUSE_MSGDLG" = "yes"; then
46459     cat >>confdefs.h <<\_ACEOF
46460 #define wxUSE_MSGDLG 1
46461 _ACEOF
46462
46463 fi
46464
46465 if test "$wxUSE_NUMBERDLG" = "yes"; then
46466     cat >>confdefs.h <<\_ACEOF
46467 #define wxUSE_NUMBERDLG 1
46468 _ACEOF
46469
46470 fi
46471
46472 if test "$wxUSE_PROGRESSDLG" = "yes"; then
46473     if test "$wxUSE_CONSTRAINTS" != "yes"; then
46474        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
46475 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
46476     else
46477         cat >>confdefs.h <<\_ACEOF
46478 #define wxUSE_PROGRESSDLG 1
46479 _ACEOF
46480
46481     fi
46482 fi
46483
46484 if test "$wxUSE_SPLASH" = "yes"; then
46485     cat >>confdefs.h <<\_ACEOF
46486 #define wxUSE_SPLASH 1
46487 _ACEOF
46488
46489     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
46490 fi
46491
46492 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46493     if test "$wxUSE_CONSTRAINTS" != "yes"; then
46494        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
46495 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
46496     else
46497         cat >>confdefs.h <<\_ACEOF
46498 #define wxUSE_STARTUP_TIPS 1
46499 _ACEOF
46500
46501     fi
46502 fi
46503
46504 if test "$wxUSE_TEXTDLG" = "yes"; then
46505     cat >>confdefs.h <<\_ACEOF
46506 #define wxUSE_TEXTDLG 1
46507 _ACEOF
46508
46509 fi
46510
46511 if test "$wxUSE_WIZARDDLG" = "yes"; then
46512     cat >>confdefs.h <<\_ACEOF
46513 #define wxUSE_WIZARDDLG 1
46514 _ACEOF
46515
46516     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46517 fi
46518
46519
46520 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46521    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
46522       cat >>confdefs.h <<\_ACEOF
46523 #define wxUSE_GRAPHICS_CONTEXT 1
46524 _ACEOF
46525
46526    elif test "$wxUSE_GTK" != 1; then
46527             cat >>confdefs.h <<\_ACEOF
46528 #define wxUSE_GRAPHICS_CONTEXT 1
46529 _ACEOF
46530
46531    else
46532
46533 pkg_failed=no
46534 echo "$as_me:$LINENO: checking for CAIRO" >&5
46535 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6
46536
46537 if test -n "$PKG_CONFIG"; then
46538     if test -n "$CAIRO_CFLAGS"; then
46539         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46540     else
46541         if test -n "$PKG_CONFIG" && \
46542     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46543   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46544   ac_status=$?
46545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46546   (exit $ac_status); }; then
46547   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46548 else
46549   pkg_failed=yes
46550 fi
46551     fi
46552 else
46553         pkg_failed=untried
46554 fi
46555 if test -n "$PKG_CONFIG"; then
46556     if test -n "$CAIRO_LIBS"; then
46557         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46558     else
46559         if test -n "$PKG_CONFIG" && \
46560     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46561   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46562   ac_status=$?
46563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46564   (exit $ac_status); }; then
46565   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46566 else
46567   pkg_failed=yes
46568 fi
46569     fi
46570 else
46571         pkg_failed=untried
46572 fi
46573
46574
46575
46576 if test $pkg_failed = yes; then
46577
46578 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46579         _pkg_short_errors_supported=yes
46580 else
46581         _pkg_short_errors_supported=no
46582 fi
46583         if test $_pkg_short_errors_supported = yes; then
46584                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46585         else
46586                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46587         fi
46588         # Put the nasty error message in config.log where it belongs
46589         echo "$CAIRO_PKG_ERRORS" >&5
46590
46591         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46592 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46593
46594 elif test $pkg_failed = untried; then
46595         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46596 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46597
46598 else
46599         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46600         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46601         echo "$as_me:$LINENO: result: yes" >&5
46602 echo "${ECHO_T}yes" >&6
46603         cat >>confdefs.h <<\_ACEOF
46604 #define wxUSE_GRAPHICS_CONTEXT 1
46605 _ACEOF
46606
46607 fi
46608    fi
46609 fi
46610
46611
46612 USE_MEDIA=0
46613
46614 if test "$wxUSE_MEDIACTRL" = "yes"; then
46615     USE_MEDIA=1
46616
46617                 if test "$wxUSE_GTK" = 1; then
46618         wxUSE_GSTREAMER="no"
46619
46620                                                                 GST_VERSION_MAJOR=0
46621         GST_VERSION_MINOR=10
46622         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46623
46624         if test "$wxUSE_GSTREAMER8" = "no"; then
46625
46626 pkg_failed=no
46627 echo "$as_me:$LINENO: checking for GST" >&5
46628 echo $ECHO_N "checking for GST... $ECHO_C" >&6
46629
46630 if test -n "$PKG_CONFIG"; then
46631     if test -n "$GST_CFLAGS"; then
46632         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46633     else
46634         if test -n "$PKG_CONFIG" && \
46635     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46636   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46637   ac_status=$?
46638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46639   (exit $ac_status); }; then
46640   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46641 else
46642   pkg_failed=yes
46643 fi
46644     fi
46645 else
46646         pkg_failed=untried
46647 fi
46648 if test -n "$PKG_CONFIG"; then
46649     if test -n "$GST_LIBS"; then
46650         pkg_cv_GST_LIBS="$GST_LIBS"
46651     else
46652         if test -n "$PKG_CONFIG" && \
46653     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46654   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46655   ac_status=$?
46656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46657   (exit $ac_status); }; then
46658   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46659 else
46660   pkg_failed=yes
46661 fi
46662     fi
46663 else
46664         pkg_failed=untried
46665 fi
46666
46667
46668
46669 if test $pkg_failed = yes; then
46670
46671 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46672         _pkg_short_errors_supported=yes
46673 else
46674         _pkg_short_errors_supported=no
46675 fi
46676         if test $_pkg_short_errors_supported = yes; then
46677                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46678         else
46679                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46680         fi
46681         # Put the nasty error message in config.log where it belongs
46682         echo "$GST_PKG_ERRORS" >&5
46683
46684
46685                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46686 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46687                     GST_VERSION_MINOR=8
46688
46689
46690 elif test $pkg_failed = untried; then
46691
46692                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46693 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46694                     GST_VERSION_MINOR=8
46695
46696
46697 else
46698         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46699         GST_LIBS=$pkg_cv_GST_LIBS
46700         echo "$as_me:$LINENO: result: yes" >&5
46701 echo "${ECHO_T}yes" >&6
46702
46703                     wxUSE_GSTREAMER="yes"
46704                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
46705
46706 fi
46707         else
46708                         GST_VERSION_MINOR=8
46709         fi
46710
46711         if test $GST_VERSION_MINOR = "8"; then
46712             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46713
46714 pkg_failed=no
46715 echo "$as_me:$LINENO: checking for GST" >&5
46716 echo $ECHO_N "checking for GST... $ECHO_C" >&6
46717
46718 if test -n "$PKG_CONFIG"; then
46719     if test -n "$GST_CFLAGS"; then
46720         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46721     else
46722         if test -n "$PKG_CONFIG" && \
46723     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46724   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46725   ac_status=$?
46726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46727   (exit $ac_status); }; then
46728   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46729 else
46730   pkg_failed=yes
46731 fi
46732     fi
46733 else
46734         pkg_failed=untried
46735 fi
46736 if test -n "$PKG_CONFIG"; then
46737     if test -n "$GST_LIBS"; then
46738         pkg_cv_GST_LIBS="$GST_LIBS"
46739     else
46740         if test -n "$PKG_CONFIG" && \
46741     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46742   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46743   ac_status=$?
46744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46745   (exit $ac_status); }; then
46746   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46747 else
46748   pkg_failed=yes
46749 fi
46750     fi
46751 else
46752         pkg_failed=untried
46753 fi
46754
46755
46756
46757 if test $pkg_failed = yes; then
46758
46759 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46760         _pkg_short_errors_supported=yes
46761 else
46762         _pkg_short_errors_supported=no
46763 fi
46764         if test $_pkg_short_errors_supported = yes; then
46765                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46766         else
46767                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46768         fi
46769         # Put the nasty error message in config.log where it belongs
46770         echo "$GST_PKG_ERRORS" >&5
46771
46772
46773                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46774 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46775
46776 elif test $pkg_failed = untried; then
46777
46778                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46779 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
46780
46781 else
46782         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46783         GST_LIBS=$pkg_cv_GST_LIBS
46784         echo "$as_me:$LINENO: result: yes" >&5
46785 echo "${ECHO_T}yes" >&6
46786         wxUSE_GSTREAMER="yes"
46787 fi
46788         fi
46789
46790
46791         if test "$wxUSE_GSTREAMER" = "yes"; then
46792                                     case "${host}" in
46793                 *-*-solaris2* )
46794                     if "$GCC" = yes; then
46795                         GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
46796                         GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
46797                     fi
46798             esac
46799
46800             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46801             LIBS="$GST_LIBS $LIBS"
46802
46803             cat >>confdefs.h <<\_ACEOF
46804 #define wxUSE_GSTREAMER 1
46805 _ACEOF
46806
46807         else
46808             USE_MEDIA=0
46809         fi
46810     fi
46811
46812     if test $USE_MEDIA = 1; then
46813         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46814         cat >>confdefs.h <<\_ACEOF
46815 #define wxUSE_MEDIACTRL 1
46816 _ACEOF
46817
46818     fi
46819 fi
46820
46821
46822 if test "$cross_compiling" = "yes"; then
46823         OSINFO="\"$host\""
46824 else
46825         OSINFO=`uname -s -r -m`
46826     OSINFO="\"$OSINFO\""
46827 fi
46828
46829 cat >>confdefs.h <<_ACEOF
46830 #define WXWIN_OS_DESCRIPTION $OSINFO
46831 _ACEOF
46832
46833
46834
46835 if test "x$prefix" != "xNONE"; then
46836     wxPREFIX=$prefix
46837 else
46838     wxPREFIX=$ac_default_prefix
46839 fi
46840
46841 cat >>confdefs.h <<_ACEOF
46842 #define wxINSTALL_PREFIX "$wxPREFIX"
46843 _ACEOF
46844
46845
46846
46847
46848 CORE_BASE_LIBS="net base"
46849 CORE_GUI_LIBS="adv core"
46850
46851 if test "$wxUSE_XML" = "yes" ; then
46852     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
46853 fi
46854 if test "$wxUSE_ODBC" != "no" ; then
46855     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
46856     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
46857 fi
46858 if test "$wxUSE_HTML" = "yes" ; then
46859     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
46860 fi
46861 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46862     CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
46863 fi
46864 if test "$wxUSE_XRC" = "yes" ; then
46865     CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
46866 fi
46867 if test "$wxUSE_AUI" = "yes" ; then
46868     CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
46869 fi
46870
46871 if test "$wxUSE_GUI" != "yes"; then
46872     CORE_GUI_LIBS=""
46873 fi
46874
46875
46876
46877
46878
46879
46880 if test "$wxUSE_MAC" = 1 ; then
46881     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
46882         if test "$USE_DARWIN" = 1; then
46883             LDFLAGS="$LDFLAGS -framework QuickTime"
46884         else
46885             LDFLAGS="$LDFLAGS -lQuickTimeLib"
46886         fi
46887     fi
46888     if test "$USE_DARWIN" = 1; then
46889         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
46890     else
46891         LDFLAGS="$LDFLAGS -lCarbonLib"
46892     fi
46893 fi
46894 if test "$wxUSE_COCOA" = 1 ; then
46895     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
46896     if test "$wxUSE_MEDIACTRL" = "yes"; then
46897         LDFLAGS="$LDFLAGS -framework QuickTime"
46898     fi
46899 fi
46900 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46901     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46902 fi
46903
46904 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46905
46906 if test "$wxUSE_GUI" = "yes"; then
46907
46908
46909         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46910                      dynamic erase event exec font image minimal mobile \
46911                      mobile/wxedit mobile/styles propsize render \
46912                      rotate shaped vscroll widgets"
46913
46914     if test "$wxUSE_MONOLITHIC" != "yes"; then
46915         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46916     fi
46917     if test "$TOOLKIT" = "MSW"; then
46918         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46919         if test "$wxUSE_UNIVERSAL" != "yes"; then
46920             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46921         fi
46922     fi
46923     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46924         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
46925     fi
46926 else
46927     SAMPLES_SUBDIRS="console"
46928 fi
46929
46930
46931 if test "x$INTELCC" = "xyes" ; then
46932                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
46933 elif test "$GCC" = yes ; then
46934     CWARNINGS="-Wall -Wundef"
46935 fi
46936
46937 if test "x$INTELCXX" = "xyes" ; then
46938                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
46939 elif test "$GXX" = yes ; then
46940         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
46941 fi
46942
46943
46944 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
46945 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
46946
46947
46948 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
46949  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
46950  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
46951  $CPPFLAGS `
46952
46953 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
46954 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
46955 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
46956
46957 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
46958
46959
46960 if test "x$MWCC" = "xyes"; then
46961
46962             CC="$CC -cwd source -I-"
46963     CXX="$CXX -cwd source -I-"
46964 fi
46965
46966
46967 LIBS=`echo $LIBS`
46968 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
46969 EXTRALIBS_XML="$EXPAT_LINK"
46970 EXTRALIBS_HTML="$MSPACK_LINK"
46971 EXTRALIBS_ODBC="$ODBC_LINK"
46972 if test "$wxUSE_GUI" = "yes"; then
46973     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
46974 fi
46975 if test "$wxUSE_OPENGL" = "yes"; then
46976     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
46977 fi
46978
46979 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
46980
46981 WXCONFIG_LIBS="$LIBS"
46982
46983 if test "$wxUSE_REGEX" = "builtin" ; then
46984     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
46985 fi
46986 if test "$wxUSE_EXPAT" = "builtin" ; then
46987     wxconfig_3rdparty="expat $wxconfig_3rdparty"
46988 fi
46989 if test "$wxUSE_ODBC" = "builtin" ; then
46990     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
46991 fi
46992 if test "$wxUSE_LIBTIFF" = "builtin" ; then
46993     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
46994 fi
46995 if test "$wxUSE_LIBJPEG" = "builtin" ; then
46996     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
46997 fi
46998 if test "$wxUSE_LIBPNG" = "builtin" ; then
46999     wxconfig_3rdparty="png $wxconfig_3rdparty"
47000 fi
47001 if test "$wxUSE_ZLIB" = "builtin" ; then
47002     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
47003 fi
47004
47005 for i in $wxconfig_3rdparty ; do
47006     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
47007 done
47008
47009
47010 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
47011     WXUNIV=1
47012
47013     case "$wxUNIV_THEMES" in
47014         ''|all)
47015             cat >>confdefs.h <<\_ACEOF
47016 #define wxUSE_ALL_THEMES 1
47017 _ACEOF
47018
47019             ;;
47020
47021         *)
47022             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
47023                 cat >>confdefs.h <<_ACEOF
47024 #define wxUSE_THEME_$t 1
47025 _ACEOF
47026
47027             done
47028     esac
47029 else
47030     WXUNIV=0
47031 fi
47032
47033
47034
47035
47036
47037
47038
47039
47040
47041 if test $wxUSE_MONOLITHIC = "yes" ; then
47042     MONOLITHIC=1
47043 else
47044     MONOLITHIC=0
47045 fi
47046
47047 if test $wxUSE_PLUGINS = "yes" ; then
47048     USE_PLUGINS=1
47049 else
47050     USE_PLUGINS=0
47051 fi
47052
47053 if test $wxUSE_ODBC != "no" ; then
47054     USE_ODBC=1
47055 else
47056     USE_ODBC=0
47057 fi
47058
47059 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47060     USE_QA=1
47061 else
47062     USE_QA=0
47063 fi
47064
47065 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47066     OFFICIAL_BUILD=1
47067 else
47068     OFFICIAL_BUILD=0
47069 fi
47070
47071
47072
47073
47074
47075
47076
47077
47078
47079
47080
47081
47082
47083
47084
47085
47086
47087
47088
47089
47090
47091
47092
47093
47094
47095 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
47096
47097
47098
47099
47100
47101
47102
47103
47104 case "$TOOLKIT" in
47105     GTK)
47106         TOOLKIT_DESC="GTK+"
47107         if test "$WXGTK20" = 1; then
47108             TOOLKIT_DESC="$TOOLKIT_DESC 2"
47109             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47110                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47111             fi
47112             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47113                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47114             fi
47115             if test "$wxUSE_LIBHILDON" = "yes"; then
47116                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47117             fi
47118
47119             if test "$TOOLKIT_EXTRA" != ""; then
47120                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47121             fi
47122         fi
47123         ;;
47124
47125     ?*)
47126         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47127         ;;
47128
47129     *)
47130         TOOLKIT_DESC="base only"
47131         ;;
47132 esac
47133
47134 if test "$wxUSE_WINE" = "yes"; then
47135     BAKEFILE_FORCE_PLATFORM=win32
47136 fi
47137
47138 if test "$wxUSE_MAC" = 1 ; then
47139     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
47140                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
47141             OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
47142         else
47143                                     OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
47144         fi
47145         OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
47146         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
47147         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
47148         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
47149         bk_use_pch=no
47150     fi
47151     # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
47152     #       The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
47153 fi
47154
47155 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47156 then
47157     echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47158 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6
47159 if test "${wx_cv_gcc_pch_bug+set}" = set; then
47160   echo $ECHO_N "(cached) $ECHO_C" >&6
47161 else
47162
47163             echo '#include <stdio.h>
47164                   const wchar_t test_var[] = L"awidetest";' > conftest.h
47165
47166             echo '#include "conftest.h"
47167                   int main()
47168                   {
47169                      printf("%ls", test_var);
47170                      return 0;
47171                   }' > conftest.cpp
47172
47173             wx_cv_gcc_pch_bug="pch not supported"
47174
47175             if $CXX conftest.h >/dev/null 2>&1
47176             then
47177                 wx_cv_gcc_pch_bug=
47178
47179                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
47180                 then
47181                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47182                         grep awidetest >/dev/null
47183                     then
47184                         wx_cv_gcc_pch_bug=no
47185                     else
47186                         wx_cv_gcc_pch_bug=yes
47187                     fi
47188                 fi
47189             fi
47190
47191             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
47192
47193 fi
47194 echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47195 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6
47196
47197     if test "$wx_cv_gcc_pch_bug" = yes; then
47198                         bk_use_pch=no
47199     fi
47200 fi
47201
47202
47203
47204
47205     if test "x$BAKEFILE_HOST" = "x"; then
47206                if test "x${host}" = "x" ; then
47207                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47208 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47209    { (exit 1); exit 1; }; }
47210                fi
47211
47212         BAKEFILE_HOST="${host}"
47213     fi
47214
47215     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47216
47217     if test -n "$ac_tool_prefix"; then
47218   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47219 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47220 echo "$as_me:$LINENO: checking for $ac_word" >&5
47221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47222 if test "${ac_cv_prog_RANLIB+set}" = set; then
47223   echo $ECHO_N "(cached) $ECHO_C" >&6
47224 else
47225   if test -n "$RANLIB"; then
47226   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47227 else
47228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47229 for as_dir in $PATH
47230 do
47231   IFS=$as_save_IFS
47232   test -z "$as_dir" && as_dir=.
47233   for ac_exec_ext in '' $ac_executable_extensions; do
47234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47235     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47237     break 2
47238   fi
47239 done
47240 done
47241
47242 fi
47243 fi
47244 RANLIB=$ac_cv_prog_RANLIB
47245 if test -n "$RANLIB"; then
47246   echo "$as_me:$LINENO: result: $RANLIB" >&5
47247 echo "${ECHO_T}$RANLIB" >&6
47248 else
47249   echo "$as_me:$LINENO: result: no" >&5
47250 echo "${ECHO_T}no" >&6
47251 fi
47252
47253 fi
47254 if test -z "$ac_cv_prog_RANLIB"; then
47255   ac_ct_RANLIB=$RANLIB
47256   # Extract the first word of "ranlib", so it can be a program name with args.
47257 set dummy ranlib; ac_word=$2
47258 echo "$as_me:$LINENO: checking for $ac_word" >&5
47259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47260 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47261   echo $ECHO_N "(cached) $ECHO_C" >&6
47262 else
47263   if test -n "$ac_ct_RANLIB"; then
47264   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47265 else
47266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47267 for as_dir in $PATH
47268 do
47269   IFS=$as_save_IFS
47270   test -z "$as_dir" && as_dir=.
47271   for ac_exec_ext in '' $ac_executable_extensions; do
47272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47273     ac_cv_prog_ac_ct_RANLIB="ranlib"
47274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47275     break 2
47276   fi
47277 done
47278 done
47279
47280   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
47281 fi
47282 fi
47283 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47284 if test -n "$ac_ct_RANLIB"; then
47285   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47286 echo "${ECHO_T}$ac_ct_RANLIB" >&6
47287 else
47288   echo "$as_me:$LINENO: result: no" >&5
47289 echo "${ECHO_T}no" >&6
47290 fi
47291
47292   RANLIB=$ac_ct_RANLIB
47293 else
47294   RANLIB="$ac_cv_prog_RANLIB"
47295 fi
47296
47297     # Find a good install program.  We prefer a C program (faster),
47298 # so one script is as good as another.  But avoid the broken or
47299 # incompatible versions:
47300 # SysV /etc/install, /usr/sbin/install
47301 # SunOS /usr/etc/install
47302 # IRIX /sbin/install
47303 # AIX /bin/install
47304 # AmigaOS /C/install, which installs bootblocks on floppy discs
47305 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47306 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
47307 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
47308 # OS/2's system install, which has a completely different semantic
47309 # ./install, which can be erroneously created by make from ./install.sh.
47310 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47311 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
47312 if test -z "$INSTALL"; then
47313 if test "${ac_cv_path_install+set}" = set; then
47314   echo $ECHO_N "(cached) $ECHO_C" >&6
47315 else
47316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47317 for as_dir in $PATH
47318 do
47319   IFS=$as_save_IFS
47320   test -z "$as_dir" && as_dir=.
47321   # Account for people who put trailing slashes in PATH elements.
47322 case $as_dir/ in
47323   ./ | .// | /cC/* | \
47324   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
47325   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47326   /usr/ucb/* ) ;;
47327   *)
47328     # OSF1 and SCO ODT 3.0 have their own names for install.
47329     # Don't use installbsd from OSF since it installs stuff as root
47330     # by default.
47331     for ac_prog in ginstall scoinst install; do
47332       for ac_exec_ext in '' $ac_executable_extensions; do
47333         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
47334           if test $ac_prog = install &&
47335             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47336             # AIX install.  It has an incompatible calling convention.
47337             :
47338           elif test $ac_prog = install &&
47339             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47340             # program-specific install script used by HP pwplus--don't use.
47341             :
47342           else
47343             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47344             break 3
47345           fi
47346         fi
47347       done
47348     done
47349     ;;
47350 esac
47351 done
47352
47353
47354 fi
47355   if test "${ac_cv_path_install+set}" = set; then
47356     INSTALL=$ac_cv_path_install
47357   else
47358     # As a last resort, use the slow shell script.  We don't cache a
47359     # path for INSTALL within a source directory, because that will
47360     # break other packages using the cache if that directory is
47361     # removed, or if the path is relative.
47362     INSTALL=$ac_install_sh
47363   fi
47364 fi
47365 echo "$as_me:$LINENO: result: $INSTALL" >&5
47366 echo "${ECHO_T}$INSTALL" >&6
47367
47368 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47369 # It thinks the first close brace ends the variable substitution.
47370 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47371
47372 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47373
47374 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47375
47376     echo "$as_me:$LINENO: checking whether ln -s works" >&5
47377 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
47378 LN_S=$as_ln_s
47379 if test "$LN_S" = "ln -s"; then
47380   echo "$as_me:$LINENO: result: yes" >&5
47381 echo "${ECHO_T}yes" >&6
47382 else
47383   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47384 echo "${ECHO_T}no, using $LN_S" >&6
47385 fi
47386
47387
47388     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47389 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
47390 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
47391 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
47392   echo $ECHO_N "(cached) $ECHO_C" >&6
47393 else
47394   cat >conftest.make <<\_ACEOF
47395 all:
47396         @echo 'ac_maketemp="$(MAKE)"'
47397 _ACEOF
47398 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47399 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
47400 if test -n "$ac_maketemp"; then
47401   eval ac_cv_prog_make_${ac_make}_set=yes
47402 else
47403   eval ac_cv_prog_make_${ac_make}_set=no
47404 fi
47405 rm -f conftest.make
47406 fi
47407 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
47408   echo "$as_me:$LINENO: result: yes" >&5
47409 echo "${ECHO_T}yes" >&6
47410   SET_MAKE=
47411 else
47412   echo "$as_me:$LINENO: result: no" >&5
47413 echo "${ECHO_T}no" >&6
47414   SET_MAKE="MAKE=${MAKE-make}"
47415 fi
47416
47417
47418
47419     if test "x$SUNCXX" = "xyes"; then
47420                                 AR=$CXX
47421
47422         AROPTIONS="-xar -o"
47423     else
47424         if test -n "$ac_tool_prefix"; then
47425   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47426 set dummy ${ac_tool_prefix}ar; ac_word=$2
47427 echo "$as_me:$LINENO: checking for $ac_word" >&5
47428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47429 if test "${ac_cv_prog_AR+set}" = set; then
47430   echo $ECHO_N "(cached) $ECHO_C" >&6
47431 else
47432   if test -n "$AR"; then
47433   ac_cv_prog_AR="$AR" # Let the user override the test.
47434 else
47435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47436 for as_dir in $PATH
47437 do
47438   IFS=$as_save_IFS
47439   test -z "$as_dir" && as_dir=.
47440   for ac_exec_ext in '' $ac_executable_extensions; do
47441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47442     ac_cv_prog_AR="${ac_tool_prefix}ar"
47443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47444     break 2
47445   fi
47446 done
47447 done
47448
47449 fi
47450 fi
47451 AR=$ac_cv_prog_AR
47452 if test -n "$AR"; then
47453   echo "$as_me:$LINENO: result: $AR" >&5
47454 echo "${ECHO_T}$AR" >&6
47455 else
47456   echo "$as_me:$LINENO: result: no" >&5
47457 echo "${ECHO_T}no" >&6
47458 fi
47459
47460 fi
47461 if test -z "$ac_cv_prog_AR"; then
47462   ac_ct_AR=$AR
47463   # Extract the first word of "ar", so it can be a program name with args.
47464 set dummy ar; ac_word=$2
47465 echo "$as_me:$LINENO: checking for $ac_word" >&5
47466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47467 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47468   echo $ECHO_N "(cached) $ECHO_C" >&6
47469 else
47470   if test -n "$ac_ct_AR"; then
47471   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47472 else
47473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47474 for as_dir in $PATH
47475 do
47476   IFS=$as_save_IFS
47477   test -z "$as_dir" && as_dir=.
47478   for ac_exec_ext in '' $ac_executable_extensions; do
47479   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47480     ac_cv_prog_ac_ct_AR="ar"
47481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47482     break 2
47483   fi
47484 done
47485 done
47486
47487   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
47488 fi
47489 fi
47490 ac_ct_AR=$ac_cv_prog_ac_ct_AR
47491 if test -n "$ac_ct_AR"; then
47492   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47493 echo "${ECHO_T}$ac_ct_AR" >&6
47494 else
47495   echo "$as_me:$LINENO: result: no" >&5
47496 echo "${ECHO_T}no" >&6
47497 fi
47498
47499   AR=$ac_ct_AR
47500 else
47501   AR="$ac_cv_prog_AR"
47502 fi
47503
47504         AROPTIONS=rcu
47505     fi
47506
47507
47508     if test -n "$ac_tool_prefix"; then
47509   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47510 set dummy ${ac_tool_prefix}strip; ac_word=$2
47511 echo "$as_me:$LINENO: checking for $ac_word" >&5
47512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47513 if test "${ac_cv_prog_STRIP+set}" = set; then
47514   echo $ECHO_N "(cached) $ECHO_C" >&6
47515 else
47516   if test -n "$STRIP"; then
47517   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47518 else
47519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47520 for as_dir in $PATH
47521 do
47522   IFS=$as_save_IFS
47523   test -z "$as_dir" && as_dir=.
47524   for ac_exec_ext in '' $ac_executable_extensions; do
47525   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47526     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47528     break 2
47529   fi
47530 done
47531 done
47532
47533 fi
47534 fi
47535 STRIP=$ac_cv_prog_STRIP
47536 if test -n "$STRIP"; then
47537   echo "$as_me:$LINENO: result: $STRIP" >&5
47538 echo "${ECHO_T}$STRIP" >&6
47539 else
47540   echo "$as_me:$LINENO: result: no" >&5
47541 echo "${ECHO_T}no" >&6
47542 fi
47543
47544 fi
47545 if test -z "$ac_cv_prog_STRIP"; then
47546   ac_ct_STRIP=$STRIP
47547   # Extract the first word of "strip", so it can be a program name with args.
47548 set dummy strip; ac_word=$2
47549 echo "$as_me:$LINENO: checking for $ac_word" >&5
47550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47551 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47552   echo $ECHO_N "(cached) $ECHO_C" >&6
47553 else
47554   if test -n "$ac_ct_STRIP"; then
47555   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47556 else
47557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47558 for as_dir in $PATH
47559 do
47560   IFS=$as_save_IFS
47561   test -z "$as_dir" && as_dir=.
47562   for ac_exec_ext in '' $ac_executable_extensions; do
47563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47564     ac_cv_prog_ac_ct_STRIP="strip"
47565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47566     break 2
47567   fi
47568 done
47569 done
47570
47571   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
47572 fi
47573 fi
47574 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47575 if test -n "$ac_ct_STRIP"; then
47576   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47577 echo "${ECHO_T}$ac_ct_STRIP" >&6
47578 else
47579   echo "$as_me:$LINENO: result: no" >&5
47580 echo "${ECHO_T}no" >&6
47581 fi
47582
47583   STRIP=$ac_ct_STRIP
47584 else
47585   STRIP="$ac_cv_prog_STRIP"
47586 fi
47587
47588     if test -n "$ac_tool_prefix"; then
47589   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47590 set dummy ${ac_tool_prefix}nm; ac_word=$2
47591 echo "$as_me:$LINENO: checking for $ac_word" >&5
47592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47593 if test "${ac_cv_prog_NM+set}" = set; then
47594   echo $ECHO_N "(cached) $ECHO_C" >&6
47595 else
47596   if test -n "$NM"; then
47597   ac_cv_prog_NM="$NM" # Let the user override the test.
47598 else
47599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47600 for as_dir in $PATH
47601 do
47602   IFS=$as_save_IFS
47603   test -z "$as_dir" && as_dir=.
47604   for ac_exec_ext in '' $ac_executable_extensions; do
47605   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47606     ac_cv_prog_NM="${ac_tool_prefix}nm"
47607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47608     break 2
47609   fi
47610 done
47611 done
47612
47613 fi
47614 fi
47615 NM=$ac_cv_prog_NM
47616 if test -n "$NM"; then
47617   echo "$as_me:$LINENO: result: $NM" >&5
47618 echo "${ECHO_T}$NM" >&6
47619 else
47620   echo "$as_me:$LINENO: result: no" >&5
47621 echo "${ECHO_T}no" >&6
47622 fi
47623
47624 fi
47625 if test -z "$ac_cv_prog_NM"; then
47626   ac_ct_NM=$NM
47627   # Extract the first word of "nm", so it can be a program name with args.
47628 set dummy nm; ac_word=$2
47629 echo "$as_me:$LINENO: checking for $ac_word" >&5
47630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47631 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47632   echo $ECHO_N "(cached) $ECHO_C" >&6
47633 else
47634   if test -n "$ac_ct_NM"; then
47635   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47636 else
47637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47638 for as_dir in $PATH
47639 do
47640   IFS=$as_save_IFS
47641   test -z "$as_dir" && as_dir=.
47642   for ac_exec_ext in '' $ac_executable_extensions; do
47643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47644     ac_cv_prog_ac_ct_NM="nm"
47645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47646     break 2
47647   fi
47648 done
47649 done
47650
47651   test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
47652 fi
47653 fi
47654 ac_ct_NM=$ac_cv_prog_ac_ct_NM
47655 if test -n "$ac_ct_NM"; then
47656   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47657 echo "${ECHO_T}$ac_ct_NM" >&6
47658 else
47659   echo "$as_me:$LINENO: result: no" >&5
47660 echo "${ECHO_T}no" >&6
47661 fi
47662
47663   NM=$ac_ct_NM
47664 else
47665   NM="$ac_cv_prog_NM"
47666 fi
47667
47668
47669     case ${BAKEFILE_HOST} in
47670         *-hp-hpux* )
47671                                     INSTALL_DIR="mkdir -p"
47672             ;;
47673         * )
47674                                     INSTALL_DIR='$(INSTALL) -d'
47675             ;;
47676     esac
47677
47678
47679     LDFLAGS_GUI=
47680     case ${BAKEFILE_HOST} in
47681         *-*-cygwin* | *-*-mingw32* )
47682         LDFLAGS_GUI="-mwindows"
47683     esac
47684
47685
47686     fi
47687
47688         echo "$as_me:$LINENO: checking if make is GNU make" >&5
47689 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
47690 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47691   echo $ECHO_N "(cached) $ECHO_C" >&6
47692 else
47693
47694         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47695                 egrep -s GNU > /dev/null); then
47696             bakefile_cv_prog_makeisgnu="yes"
47697         else
47698             bakefile_cv_prog_makeisgnu="no"
47699         fi
47700
47701 fi
47702 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47703 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
47704
47705     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47706         IF_GNU_MAKE=""
47707     else
47708         IF_GNU_MAKE="#"
47709     fi
47710
47711
47712
47713     PLATFORM_UNIX=0
47714     PLATFORM_WIN32=0
47715     PLATFORM_MSDOS=0
47716     PLATFORM_MAC=0
47717     PLATFORM_MACOS=0
47718     PLATFORM_MACOSX=0
47719     PLATFORM_OS2=0
47720     PLATFORM_BEOS=0
47721
47722     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47723         case "${BAKEFILE_HOST}" in
47724             *-*-mingw32* )
47725                 PLATFORM_WIN32=1
47726             ;;
47727             *-pc-msdosdjgpp )
47728                 PLATFORM_MSDOS=1
47729             ;;
47730             *-pc-os2_emx | *-pc-os2-emx )
47731                 PLATFORM_OS2=1
47732             ;;
47733             *-*-darwin* )
47734                 PLATFORM_MAC=1
47735                 PLATFORM_MACOSX=1
47736             ;;
47737             *-*-beos* )
47738                 PLATFORM_BEOS=1
47739             ;;
47740             powerpc-apple-macos* )
47741                 PLATFORM_MAC=1
47742                 PLATFORM_MACOS=1
47743             ;;
47744             * )
47745                 PLATFORM_UNIX=1
47746             ;;
47747         esac
47748     else
47749         case "$BAKEFILE_FORCE_PLATFORM" in
47750             win32 )
47751                 PLATFORM_WIN32=1
47752             ;;
47753             msdos )
47754                 PLATFORM_MSDOS=1
47755             ;;
47756             os2 )
47757                 PLATFORM_OS2=1
47758             ;;
47759             darwin )
47760                 PLATFORM_MAC=1
47761                 PLATFORM_MACOSX=1
47762             ;;
47763             unix )
47764                 PLATFORM_UNIX=1
47765             ;;
47766             beos )
47767                 PLATFORM_BEOS=1
47768             ;;
47769             * )
47770                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
47771 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
47772    { (exit 1); exit 1; }; }
47773             ;;
47774         esac
47775     fi
47776
47777
47778
47779
47780
47781
47782
47783
47784
47785
47786
47787     # Check whether --enable-omf or --disable-omf was given.
47788 if test "${enable_omf+set}" = set; then
47789   enableval="$enable_omf"
47790   bk_os2_use_omf="$enableval"
47791 fi;
47792
47793     case "${BAKEFILE_HOST}" in
47794       *-*-darwin* )
47795                         if test "x$GCC" = "xyes"; then
47796             CFLAGS="$CFLAGS -fno-common"
47797             CXXFLAGS="$CXXFLAGS -fno-common"
47798         fi
47799         if test "x$XLCC" = "xyes"; then
47800             CFLAGS="$CFLAGS -qnocommon"
47801             CXXFLAGS="$CXXFLAGS -qnocommon"
47802         fi
47803         ;;
47804
47805       *-pc-os2_emx | *-pc-os2-emx )
47806         if test "x$bk_os2_use_omf" = "xyes" ; then
47807             AR=emxomfar
47808             RANLIB=:
47809             LDFLAGS="-Zomf $LDFLAGS"
47810             CFLAGS="-Zomf $CFLAGS"
47811             CXXFLAGS="-Zomf $CXXFLAGS"
47812             OS2_LIBEXT="lib"
47813         else
47814             OS2_LIBEXT="a"
47815         fi
47816         ;;
47817
47818       i*86-*-beos* )
47819         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47820         ;;
47821     esac
47822
47823
47824     SO_SUFFIX="so"
47825     SO_SUFFIX_MODULE="so"
47826     EXEEXT=""
47827     LIBPREFIX="lib"
47828     LIBEXT=".a"
47829     DLLPREFIX="lib"
47830     DLLPREFIX_MODULE=""
47831     DLLIMP_SUFFIX=""
47832     dlldir="$libdir"
47833
47834     case "${BAKEFILE_HOST}" in
47835         *-hp-hpux* )
47836             SO_SUFFIX="sl"
47837             SO_SUFFIX_MODULE="sl"
47838         ;;
47839         *-*-aix* )
47840                                                                         SO_SUFFIX="a"
47841             SO_SUFFIX_MODULE="a"
47842         ;;
47843         *-*-cygwin* )
47844             SO_SUFFIX="dll"
47845             SO_SUFFIX_MODULE="dll"
47846             DLLIMP_SUFFIX="dll.a"
47847             EXEEXT=".exe"
47848             DLLPREFIX="cyg"
47849             dlldir="$bindir"
47850         ;;
47851         *-*-mingw32* )
47852             SO_SUFFIX="dll"
47853             SO_SUFFIX_MODULE="dll"
47854             DLLIMP_SUFFIX="dll.a"
47855             EXEEXT=".exe"
47856             DLLPREFIX=""
47857             dlldir="$bindir"
47858         ;;
47859         *-pc-msdosdjgpp )
47860             EXEEXT=".exe"
47861             DLLPREFIX=""
47862             dlldir="$bindir"
47863         ;;
47864         *-pc-os2_emx | *-pc-os2-emx )
47865             SO_SUFFIX="dll"
47866             SO_SUFFIX_MODULE="dll"
47867             DLLIMP_SUFFIX=$OS2_LIBEXT
47868             EXEEXT=".exe"
47869             DLLPREFIX=""
47870             LIBPREFIX=""
47871             LIBEXT=".$OS2_LIBEXT"
47872             dlldir="$bindir"
47873         ;;
47874         *-*-darwin* )
47875             SO_SUFFIX="dylib"
47876             SO_SUFFIX_MODULE="bundle"
47877         ;;
47878     esac
47879
47880     if test "x$DLLIMP_SUFFIX" = "x" ; then
47881         DLLIMP_SUFFIX="$SO_SUFFIX"
47882     fi
47883
47884
47885
47886
47887
47888
47889
47890
47891
47892
47893
47894
47895         PIC_FLAG=""
47896     if test "x$GCC" = "xyes"; then
47897                 PIC_FLAG="-fPIC"
47898     fi
47899
47900         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
47901     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
47902     WINDOWS_IMPLIB=0
47903
47904     case "${BAKEFILE_HOST}" in
47905       *-hp-hpux* )
47906                 if test "x$GCC" != "xyes"; then
47907                         LDFLAGS="$LDFLAGS -L/usr/lib"
47908
47909             SHARED_LD_CC="${CC} -b -o"
47910             SHARED_LD_CXX="${CXX} -b -o"
47911             PIC_FLAG="+Z"
47912         fi
47913       ;;
47914
47915       *-*-linux* )
47916         if test "x$GCC" != "xyes"; then
47917             echo "$as_me:$LINENO: checking for Intel compiler" >&5
47918 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
47919 if test "${bakefile_cv_prog_icc+set}" = set; then
47920   echo $ECHO_N "(cached) $ECHO_C" >&6
47921 else
47922
47923                 cat >conftest.$ac_ext <<_ACEOF
47924 /* confdefs.h.  */
47925 _ACEOF
47926 cat confdefs.h >>conftest.$ac_ext
47927 cat >>conftest.$ac_ext <<_ACEOF
47928 /* end confdefs.h.  */
47929
47930 int
47931 main ()
47932 {
47933
47934                         #ifndef __INTEL_COMPILER
47935                         This is not ICC
47936                         #endif
47937
47938   ;
47939   return 0;
47940 }
47941 _ACEOF
47942 rm -f conftest.$ac_objext
47943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47944   (eval $ac_compile) 2>conftest.er1
47945   ac_status=$?
47946   grep -v '^ *+' conftest.er1 >conftest.err
47947   rm -f conftest.er1
47948   cat conftest.err >&5
47949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47950   (exit $ac_status); } &&
47951          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
47952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47953   (eval $ac_try) 2>&5
47954   ac_status=$?
47955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47956   (exit $ac_status); }; } &&
47957          { ac_try='test -s conftest.$ac_objext'
47958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47959   (eval $ac_try) 2>&5
47960   ac_status=$?
47961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47962   (exit $ac_status); }; }; then
47963   bakefile_cv_prog_icc=yes
47964 else
47965   echo "$as_me: failed program was:" >&5
47966 sed 's/^/| /' conftest.$ac_ext >&5
47967
47968 bakefile_cv_prog_icc=no
47969
47970 fi
47971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47972
47973 fi
47974 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
47975 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
47976             if test "$bakefile_cv_prog_icc" = "yes"; then
47977                 PIC_FLAG="-KPIC"
47978             fi
47979         fi
47980       ;;
47981
47982       *-*-solaris2* )
47983         if test "x$GCC" != xyes ; then
47984             SHARED_LD_CC="${CC} -G -o"
47985             SHARED_LD_CXX="${CXX} -G -o"
47986             PIC_FLAG="-KPIC"
47987         fi
47988       ;;
47989
47990       *-*-darwin* )
47991
47992 D='$'
47993 cat <<EOF >shared-ld-sh
47994 #!/bin/sh
47995 #-----------------------------------------------------------------------------
47996 #-- Name:        distrib/mac/shared-ld-sh
47997 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
47998 #-- Author:      Gilles Depeyrot
47999 #-- Copyright:   (c) 2002 Gilles Depeyrot
48000 #-- Licence:     any use permitted
48001 #-----------------------------------------------------------------------------
48002
48003 verbose=0
48004 args=""
48005 objects=""
48006 linking_flag="-dynamiclib"
48007 ldargs="-r -keep_private_externs -nostdlib"
48008
48009 while test ${D}# -gt 0; do
48010     case ${D}1 in
48011
48012        -v)
48013         verbose=1
48014         ;;
48015
48016        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
48017         # collect these options and values
48018         args="${D}{args} ${D}1 ${D}2"
48019         shift
48020         ;;
48021
48022        -s|-Wl,*)
48023         # collect these load args
48024         ldargs="${D}{ldargs} ${D}1"
48025         ;;
48026
48027        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
48028         # collect these options
48029         args="${D}{args} ${D}1"
48030         ;;
48031
48032        -dynamiclib|-bundle)
48033         linking_flag="${D}1"
48034         ;;
48035
48036        -*)
48037         echo "shared-ld: unhandled option '${D}1'"
48038         exit 1
48039         ;;
48040
48041         *.o | *.a | *.dylib)
48042         # collect object files
48043         objects="${D}{objects} ${D}1"
48044         ;;
48045
48046         *)
48047         echo "shared-ld: unhandled argument '${D}1'"
48048         exit 1
48049         ;;
48050
48051     esac
48052     shift
48053 done
48054
48055 status=0
48056
48057 #
48058 # Link one module containing all the others
48059 #
48060 if test ${D}{verbose} = 1; then
48061     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
48062 fi
48063 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
48064 status=${D}?
48065
48066 #
48067 # Link the shared library from the single module created, but only if the
48068 # previous command didn't fail:
48069 #
48070 if test ${D}{status} = 0; then
48071     if test ${D}{verbose} = 1; then
48072         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48073     fi
48074     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48075     status=${D}?
48076 fi
48077
48078 #
48079 # Remove intermediate module
48080 #
48081 rm -f master.${D}${D}.o
48082
48083 exit ${D}status
48084 EOF
48085
48086         chmod +x shared-ld-sh
48087
48088         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48089         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
48090
48091
48092                                 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48093 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
48094 if test "${bakefile_cv_gcc31+set}" = set; then
48095   echo $ECHO_N "(cached) $ECHO_C" >&6
48096 else
48097
48098            cat >conftest.$ac_ext <<_ACEOF
48099 /* confdefs.h.  */
48100 _ACEOF
48101 cat confdefs.h >>conftest.$ac_ext
48102 cat >>conftest.$ac_ext <<_ACEOF
48103 /* end confdefs.h.  */
48104
48105 int
48106 main ()
48107 {
48108
48109                    #if (__GNUC__ < 3) || \
48110                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
48111                        This is old gcc
48112                    #endif
48113
48114   ;
48115   return 0;
48116 }
48117 _ACEOF
48118 rm -f conftest.$ac_objext
48119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48120   (eval $ac_compile) 2>conftest.er1
48121   ac_status=$?
48122   grep -v '^ *+' conftest.er1 >conftest.err
48123   rm -f conftest.er1
48124   cat conftest.err >&5
48125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48126   (exit $ac_status); } &&
48127          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
48128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48129   (eval $ac_try) 2>&5
48130   ac_status=$?
48131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48132   (exit $ac_status); }; } &&
48133          { ac_try='test -s conftest.$ac_objext'
48134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48135   (eval $ac_try) 2>&5
48136   ac_status=$?
48137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48138   (exit $ac_status); }; }; then
48139
48140                    bakefile_cv_gcc31=yes
48141
48142 else
48143   echo "$as_me: failed program was:" >&5
48144 sed 's/^/| /' conftest.$ac_ext >&5
48145
48146
48147                    bakefile_cv_gcc31=no
48148
48149
48150 fi
48151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48152
48153 fi
48154 echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48155 echo "${ECHO_T}$bakefile_cv_gcc31" >&6
48156         if test "$bakefile_cv_gcc31" = "no"; then
48157                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
48158             SHARED_LD_CXX="$SHARED_LD_CC"
48159         else
48160                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
48161             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
48162         fi
48163
48164         if test "x$GCC" == "xyes"; then
48165             PIC_FLAG="-dynamic -fPIC"
48166         fi
48167         if test "x$XLCC" = "xyes"; then
48168             PIC_FLAG="-dynamic -DPIC"
48169         fi
48170       ;;
48171
48172       *-*-aix* )
48173         if test "x$GCC" = "xyes"; then
48174                                                             PIC_FLAG=""
48175
48176                                                                                     case "${BAKEFILE_HOST}" in
48177                 *-*-aix5* )
48178                     LD_EXPFULL="-Wl,-bexpfull"
48179                     ;;
48180             esac
48181
48182             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48183             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48184         else
48185                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
48186 set dummy makeC++SharedLib; ac_word=$2
48187 echo "$as_me:$LINENO: checking for $ac_word" >&5
48188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48189 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48190   echo $ECHO_N "(cached) $ECHO_C" >&6
48191 else
48192   if test -n "$AIX_CXX_LD"; then
48193   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48194 else
48195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48196 for as_dir in $PATH
48197 do
48198   IFS=$as_save_IFS
48199   test -z "$as_dir" && as_dir=.
48200   for ac_exec_ext in '' $ac_executable_extensions; do
48201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48202     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48204     break 2
48205   fi
48206 done
48207 done
48208
48209   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48210 fi
48211 fi
48212 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48213 if test -n "$AIX_CXX_LD"; then
48214   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48215 echo "${ECHO_T}$AIX_CXX_LD" >&6
48216 else
48217   echo "$as_me:$LINENO: result: no" >&5
48218 echo "${ECHO_T}no" >&6
48219 fi
48220
48221             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
48222             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48223         fi
48224       ;;
48225
48226       *-*-beos* )
48227                         SHARED_LD_CC="${LD} -nostart -o"
48228         SHARED_LD_CXX="${LD} -nostart -o"
48229       ;;
48230
48231       *-*-irix* )
48232                 if test "x$GCC" != "xyes"; then
48233             PIC_FLAG="-KPIC"
48234         fi
48235       ;;
48236
48237       *-*-cygwin* | *-*-mingw32* )
48238         PIC_FLAG=""
48239         SHARED_LD_CC="\$(CC) -shared -o"
48240         SHARED_LD_CXX="\$(CXX) -shared -o"
48241         WINDOWS_IMPLIB=1
48242       ;;
48243
48244       *-pc-os2_emx | *-pc-os2-emx )
48245         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48246         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48247         PIC_FLAG=""
48248
48249 D='$'
48250 cat <<EOF >dllar.sh
48251 #!/bin/sh
48252 #
48253 # dllar - a tool to build both a .dll and an .a file
48254 # from a set of object (.o) files for EMX/OS2.
48255 #
48256 #  Written by Andrew Zabolotny, bit@freya.etu.ru
48257 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48258 #
48259 #  This script will accept a set of files on the command line.
48260 #  All the public symbols from the .o files will be exported into
48261 #  a .DEF file, then linker will be run (through gcc) against them to
48262 #  build a shared library consisting of all given .o files. All libraries
48263 #  (.a) will be first decompressed into component .o files then act as
48264 #  described above. You can optionally give a description (-d "description")
48265 #  which will be put into .DLL. To see the list of accepted options (as well
48266 #  as command-line format) simply run this program without options. The .DLL
48267 #  is built to be imported by name (there is no guarantee that new versions
48268 #  of the library you build will have same ordinals for same symbols).
48269 #
48270 #  dllar is free software; you can redistribute it and/or modify
48271 #  it under the terms of the GNU General Public License as published by
48272 #  the Free Software Foundation; either version 2, or (at your option)
48273 #  any later version.
48274 #
48275 #  dllar is distributed in the hope that it will be useful,
48276 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
48277 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
48278 #  GNU General Public License for more details.
48279 #
48280 #  You should have received a copy of the GNU General Public License
48281 #  along with dllar; see the file COPYING.  If not, write to the Free
48282 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48283 #  02111-1307, USA.
48284
48285 # To successfuly run this program you will need:
48286 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
48287 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48288 #  - gcc
48289 #    (used to build the .dll)
48290 #  - emxexp
48291 #    (used to create .def file from .o files)
48292 #  - emximp
48293 #    (used to create .a file from .def file)
48294 #  - GNU text utilites (cat, sort, uniq)
48295 #    used to process emxexp output
48296 #  - GNU file utilities (mv, rm)
48297 #  - GNU sed
48298 #  - lxlite (optional, see flag below)
48299 #    (used for general .dll cleanup)
48300 #
48301
48302 flag_USE_LXLITE=1;
48303
48304 #
48305 # helper functions
48306 # basnam, variant of basename, which does _not_ remove the path, _iff_
48307 #                              second argument (suffix to remove) is given
48308 basnam(){
48309     case ${D}# in
48310     1)
48311         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
48312         ;;
48313     2)
48314         echo ${D}1 | sed 's/'${D}2'${D}//'
48315         ;;
48316     *)
48317         echo "error in basnam ${D}*"
48318         exit 8
48319         ;;
48320     esac
48321 }
48322
48323 # Cleanup temporary files and output
48324 CleanUp() {
48325     cd ${D}curDir
48326     for i in ${D}inputFiles ; do
48327         case ${D}i in
48328         *!)
48329             rm -rf \`basnam ${D}i !\`
48330             ;;
48331         *)
48332             ;;
48333         esac
48334     done
48335
48336     # Kill result in case of failure as there is just to many stupid make/nmake
48337     # things out there which doesn't do this.
48338     if [ ${D}# -eq 0 ]; then
48339         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48340     fi
48341 }
48342
48343 # Print usage and exit script with rc=1.
48344 PrintHelp() {
48345  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48346  echo '       [-name-mangler-script script.sh]'
48347  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48348  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
48349  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
48350  echo '       [*.o] [*.a]'
48351  echo '*> "output_file" should have no extension.'
48352  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
48353  echo '   The import library name is derived from this and is set to "name".a,'
48354  echo '   unless overridden by -import'
48355  echo '*> "importlib_name" should have no extension.'
48356  echo '   If it has the .o, or .a extension, it is automatically removed.'
48357  echo '   This name is used as the import library name and may be longer and'
48358  echo '   more descriptive than the DLL name which has to follow the old '
48359  echo '   8.3 convention of FAT.'
48360  echo '*> "script.sh may be given to override the output_file name by a'
48361  echo '   different name. It is mainly useful if the regular make process'
48362  echo '   of some package does not take into account OS/2 restriction of'
48363  echo '   DLL name lengths. It takes the importlib name as input and is'
48364  echo '   supposed to procude a shorter name as output. The script should'
48365  echo '   expect to get importlib_name without extension and should produce'
48366  echo '   a (max.) 8 letter name without extension.'
48367  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
48368  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48369  echo '   These flags will be put at the start of GCC command line.'
48370  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48371  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
48372  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48373  echo '   If the last character of a symbol is "*", all symbols beginning'
48374  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
48375  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
48376  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
48377  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
48378  echo '   C runtime DLLs.'
48379  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
48380  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48381  echo '   unchanged to GCC at the end of command line.'
48382  echo '*> If you create a DLL from a library and you do not specify -o,'
48383  echo '   the basename for DLL and import library will be set to library name,'
48384  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
48385  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48386  echo '   library will be renamed into gcc_s.a.'
48387  echo '--------'
48388  echo 'Example:'
48389  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48390  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48391  CleanUp
48392  exit 1
48393 }
48394
48395 # Execute a command.
48396 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48397 # @Uses    Whatever CleanUp() uses.
48398 doCommand() {
48399     echo "${D}*"
48400     eval ${D}*
48401     rcCmd=${D}?
48402
48403     if [ ${D}rcCmd -ne 0 ]; then
48404         echo "command failed, exit code="${D}rcCmd
48405         CleanUp
48406         exit ${D}rcCmd
48407     fi
48408 }
48409
48410 # main routine
48411 # setup globals
48412 cmdLine=${D}*
48413 outFile=""
48414 outimpFile=""
48415 inputFiles=""
48416 renameScript=""
48417 description=""
48418 CC=gcc.exe
48419 CFLAGS="-s -Zcrtdll"
48420 EXTRA_CFLAGS=""
48421 EXPORT_BY_ORDINALS=0
48422 exclude_symbols=""
48423 library_flags=""
48424 curDir=\`pwd\`
48425 curDirS=curDir
48426 case ${D}curDirS in
48427 */)
48428   ;;
48429 *)
48430   curDirS=${D}{curDirS}"/"
48431   ;;
48432 esac
48433 # Parse commandline
48434 libsToLink=0
48435 omfLinking=0
48436 while [ ${D}1 ]; do
48437     case ${D}1 in
48438     -ord*)
48439         EXPORT_BY_ORDINALS=1;
48440         ;;
48441     -o*)
48442         shift
48443         outFile=${D}1
48444         ;;
48445     -i*)
48446         shift
48447         outimpFile=${D}1
48448         ;;
48449     -name-mangler-script)
48450         shift
48451         renameScript=${D}1
48452         ;;
48453     -d*)
48454         shift
48455         description=${D}1
48456         ;;
48457     -f*)
48458         shift
48459         CFLAGS=${D}1
48460         ;;
48461     -c*)
48462         shift
48463         CC=${D}1
48464         ;;
48465     -h*)
48466         PrintHelp
48467         ;;
48468     -ex*)
48469         shift
48470         exclude_symbols=${D}{exclude_symbols}${D}1" "
48471         ;;
48472     -libf*)
48473         shift
48474         library_flags=${D}{library_flags}${D}1" "
48475         ;;
48476     -nocrt*)
48477         CFLAGS="-s"
48478         ;;
48479     -nolxl*)
48480         flag_USE_LXLITE=0
48481         ;;
48482     -* | /*)
48483         case ${D}1 in
48484         -L* | -l*)
48485             libsToLink=1
48486             ;;
48487         -Zomf)
48488             omfLinking=1
48489             ;;
48490         *)
48491             ;;
48492         esac
48493         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48494         ;;
48495     *.dll)
48496         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48497         if [ ${D}omfLinking -eq 1 ]; then
48498             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48499         else
48500             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48501         fi
48502         ;;
48503     *)
48504         found=0;
48505         if [ ${D}libsToLink -ne 0 ]; then
48506             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48507         else
48508             for file in ${D}1 ; do
48509                 if [ -f ${D}file ]; then
48510                     inputFiles="${D}{inputFiles} ${D}file"
48511                     found=1
48512                 fi
48513             done
48514             if [ ${D}found -eq 0 ]; then
48515                 echo "ERROR: No file(s) found: "${D}1
48516                 exit 8
48517             fi
48518         fi
48519       ;;
48520     esac
48521     shift
48522 done # iterate cmdline words
48523
48524 #
48525 if [ -z "${D}inputFiles" ]; then
48526     echo "dllar: no input files"
48527     PrintHelp
48528 fi
48529
48530 # Now extract all .o files from .a files
48531 newInputFiles=""
48532 for file in ${D}inputFiles ; do
48533     case ${D}file in
48534     *.a | *.lib)
48535         case ${D}file in
48536         *.a)
48537             suffix=".a"
48538             AR="ar"
48539             ;;
48540         *.lib)
48541             suffix=".lib"
48542             AR="emxomfar"
48543             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48544             ;;
48545         *)
48546             ;;
48547         esac
48548         dirname=\`basnam ${D}file ${D}suffix\`"_%"
48549         mkdir ${D}dirname
48550         if [ ${D}? -ne 0 ]; then
48551             echo "Failed to create subdirectory ./${D}dirname"
48552             CleanUp
48553             exit 8;
48554         fi
48555         # Append '!' to indicate archive
48556         newInputFiles="${D}newInputFiles ${D}{dirname}!"
48557         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48558         cd ${D}curDir
48559         found=0;
48560         for subfile in ${D}dirname/*.o* ; do
48561             if [ -f ${D}subfile ]; then
48562                 found=1
48563                 if [ -s ${D}subfile ]; then
48564                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48565                     newInputFiles="${D}newInputFiles ${D}subfile"
48566                 fi
48567             fi
48568         done
48569         if [ ${D}found -eq 0 ]; then
48570             echo "WARNING: there are no files in archive \\'${D}file\\'"
48571         fi
48572         ;;
48573     *)
48574         newInputFiles="${D}{newInputFiles} ${D}file"
48575         ;;
48576     esac
48577 done
48578 inputFiles="${D}newInputFiles"
48579
48580 # Output filename(s).
48581 do_backup=0;
48582 if [ -z ${D}outFile ]; then
48583     do_backup=1;
48584     set outFile ${D}inputFiles; outFile=${D}2
48585 fi
48586
48587 # If it is an archive, remove the '!' and the '_%' suffixes
48588 case ${D}outFile in
48589 *_%!)
48590     outFile=\`basnam ${D}outFile _%!\`
48591     ;;
48592 *)
48593     ;;
48594 esac
48595 case ${D}outFile in
48596 *.dll)
48597     outFile=\`basnam ${D}outFile .dll\`
48598     ;;
48599 *.DLL)
48600     outFile=\`basnam ${D}outFile .DLL\`
48601     ;;
48602 *.o)
48603     outFile=\`basnam ${D}outFile .o\`
48604     ;;
48605 *.obj)
48606     outFile=\`basnam ${D}outFile .obj\`
48607     ;;
48608 *.a)
48609     outFile=\`basnam ${D}outFile .a\`
48610     ;;
48611 *.lib)
48612     outFile=\`basnam ${D}outFile .lib\`
48613     ;;
48614 *)
48615     ;;
48616 esac
48617 case ${D}outimpFile in
48618 *.a)
48619     outimpFile=\`basnam ${D}outimpFile .a\`
48620     ;;
48621 *.lib)
48622     outimpFile=\`basnam ${D}outimpFile .lib\`
48623     ;;
48624 *)
48625     ;;
48626 esac
48627 if [ -z ${D}outimpFile ]; then
48628     outimpFile=${D}outFile
48629 fi
48630 defFile="${D}{outFile}.def"
48631 arcFile="${D}{outimpFile}.a"
48632 arcFile2="${D}{outimpFile}.lib"
48633
48634 #create ${D}dllFile as something matching 8.3 restrictions,
48635 if [ -z ${D}renameScript ] ; then
48636     dllFile="${D}outFile"
48637 else
48638     dllFile=\`${D}renameScript ${D}outimpFile\`
48639 fi
48640
48641 if [ ${D}do_backup -ne 0 ] ; then
48642     if [ -f ${D}arcFile ] ; then
48643         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48644     fi
48645     if [ -f ${D}arcFile2 ] ; then
48646         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48647     fi
48648 fi
48649
48650 # Extract public symbols from all the object files.
48651 tmpdefFile=${D}{defFile}_%
48652 rm -f ${D}tmpdefFile
48653 for file in ${D}inputFiles ; do
48654     case ${D}file in
48655     *!)
48656         ;;
48657     *)
48658         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48659         ;;
48660     esac
48661 done
48662
48663 # Create the def file.
48664 rm -f ${D}defFile
48665 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
48666 dllFile="${D}{dllFile}.dll"
48667 if [ ! -z ${D}description ]; then
48668     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
48669 fi
48670 echo "EXPORTS" >> ${D}defFile
48671
48672 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48673 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48674
48675 # Checks if the export is ok or not.
48676 for word in ${D}exclude_symbols; do
48677     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48678     mv ${D}{tmpdefFile}% ${D}tmpdefFile
48679 done
48680
48681
48682 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48683     sed "=" < ${D}tmpdefFile | \\
48684     sed '
48685       N
48686       : loop
48687       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
48688       t loop
48689     ' > ${D}{tmpdefFile}%
48690     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48691 else
48692     rm -f ${D}{tmpdefFile}%
48693 fi
48694 cat ${D}tmpdefFile >> ${D}defFile
48695 rm -f ${D}tmpdefFile
48696
48697 # Do linking, create implib, and apply lxlite.
48698 gccCmdl="";
48699 for file in ${D}inputFiles ; do
48700     case ${D}file in
48701     *!)
48702         ;;
48703     *)
48704         gccCmdl="${D}gccCmdl ${D}file"
48705         ;;
48706     esac
48707 done
48708 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48709 touch "${D}{outFile}.dll"
48710
48711 doCommand "emximp -o ${D}arcFile ${D}defFile"
48712 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
48713     add_flags="";
48714     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48715         add_flags="-ynd"
48716     fi
48717     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48718 fi
48719 doCommand "emxomf -s -l ${D}arcFile"
48720
48721 # Successful exit.
48722 CleanUp 1
48723 exit 0
48724 EOF
48725
48726         chmod +x dllar.sh
48727       ;;
48728
48729       powerpc-apple-macos* | \
48730       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
48731       *-*-mirbsd* | \
48732       *-*-sunos4* | \
48733       *-*-osf* | \
48734       *-*-dgux5* | \
48735       *-*-sysv5* | \
48736       *-pc-msdosdjgpp )
48737               ;;
48738
48739       *)
48740                     esac
48741
48742     if test "x$PIC_FLAG" != "x" ; then
48743         PIC_FLAG="$PIC_FLAG -DPIC"
48744     fi
48745
48746     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48747         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48748     fi
48749     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48750         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48751     fi
48752
48753
48754
48755
48756
48757
48758
48759
48760
48761     USE_SOVERSION=0
48762     USE_SOVERLINUX=0
48763     USE_SOVERSOLARIS=0
48764     USE_SOVERCYGWIN=0
48765     USE_SOSYMLINKS=0
48766     USE_MACVERSION=0
48767     SONAME_FLAG=
48768
48769     case "${BAKEFILE_HOST}" in
48770       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
48771         SONAME_FLAG="-Wl,-soname,"
48772         USE_SOVERSION=1
48773         USE_SOVERLINUX=1
48774         USE_SOSYMLINKS=1
48775       ;;
48776
48777       *-*-solaris2* )
48778         SONAME_FLAG="-h "
48779         USE_SOVERSION=1
48780         USE_SOVERSOLARIS=1
48781         USE_SOSYMLINKS=1
48782       ;;
48783
48784       *-*-darwin* )
48785         USE_MACVERSION=1
48786         USE_SOVERSION=1
48787         USE_SOSYMLINKS=1
48788       ;;
48789
48790       *-*-cygwin* )
48791         USE_SOVERSION=1
48792         USE_SOVERCYGWIN=1
48793       ;;
48794     esac
48795
48796
48797
48798
48799
48800
48801
48802
48803
48804
48805     # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
48806 if test "${enable_dependency_tracking+set}" = set; then
48807   enableval="$enable_dependency_tracking"
48808   bk_use_trackdeps="$enableval"
48809 fi;
48810
48811     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48812 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
48813
48814     BK_DEPS=""
48815     if test "x$bk_use_trackdeps" = "xno" ; then
48816         DEPS_TRACKING=0
48817         echo "$as_me:$LINENO: result: disabled" >&5
48818 echo "${ECHO_T}disabled" >&6
48819     else
48820         DEPS_TRACKING=1
48821
48822         if test "x$GCC" = "xyes"; then
48823             DEPSMODE=gcc
48824             case "${BAKEFILE_HOST}" in
48825                 *-*-darwin* )
48826                                                             DEPSFLAG="-no-cpp-precomp -MMD"
48827                 ;;
48828                 * )
48829                     DEPSFLAG="-MMD"
48830                 ;;
48831             esac
48832             echo "$as_me:$LINENO: result: gcc" >&5
48833 echo "${ECHO_T}gcc" >&6
48834         elif test "x$MWCC" = "xyes"; then
48835             DEPSMODE=mwcc
48836             DEPSFLAG="-MM"
48837             echo "$as_me:$LINENO: result: mwcc" >&5
48838 echo "${ECHO_T}mwcc" >&6
48839         elif test "x$SUNCC" = "xyes"; then
48840             DEPSMODE=unixcc
48841             DEPSFLAG="-xM1"
48842             echo "$as_me:$LINENO: result: Sun cc" >&5
48843 echo "${ECHO_T}Sun cc" >&6
48844         elif test "x$SGICC" = "xyes"; then
48845             DEPSMODE=unixcc
48846             DEPSFLAG="-M"
48847             echo "$as_me:$LINENO: result: SGI cc" >&5
48848 echo "${ECHO_T}SGI cc" >&6
48849         elif test "x$HPCC" = "xyes"; then
48850             DEPSMODE=unixcc
48851             DEPSFLAG="+make"
48852             echo "$as_me:$LINENO: result: HP cc" >&5
48853 echo "${ECHO_T}HP cc" >&6
48854         elif test "x$COMPAQCC" = "xyes"; then
48855             DEPSMODE=gcc
48856             DEPSFLAG="-MD"
48857             echo "$as_me:$LINENO: result: Compaq cc" >&5
48858 echo "${ECHO_T}Compaq cc" >&6
48859         else
48860             DEPS_TRACKING=0
48861             echo "$as_me:$LINENO: result: none" >&5
48862 echo "${ECHO_T}none" >&6
48863         fi
48864
48865         if test $DEPS_TRACKING = 1 ; then
48866
48867 D='$'
48868 cat <<EOF >bk-deps
48869 #!/bin/sh
48870
48871 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48872 # script. It is used to track C/C++ files dependencies in portable way.
48873 #
48874 # Permission is given to use this file in any way.
48875
48876 DEPSMODE=${DEPSMODE}
48877 DEPSDIR=.deps
48878 DEPSFLAG="${DEPSFLAG}"
48879
48880 mkdir -p ${D}DEPSDIR
48881
48882 if test ${D}DEPSMODE = gcc ; then
48883     ${D}* ${D}{DEPSFLAG}
48884     status=${D}?
48885     if test ${D}{status} != 0 ; then
48886         exit ${D}{status}
48887     fi
48888     # move created file to the location we want it in:
48889     while test ${D}# -gt 0; do
48890         case "${D}1" in
48891             -o )
48892                 shift
48893                 objfile=${D}1
48894             ;;
48895             -* )
48896             ;;
48897             * )
48898                 srcfile=${D}1
48899             ;;
48900         esac
48901         shift
48902     done
48903     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
48904     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
48905     if test -f ${D}depfile ; then
48906         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48907         rm -f ${D}depfile
48908     else
48909         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
48910         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
48911         if test ! -f ${D}depfile ; then
48912             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
48913             depfile="${D}objfile.d"
48914         fi
48915         if test -f ${D}depfile ; then
48916             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48917             rm -f ${D}depfile
48918         fi
48919     fi
48920     exit 0
48921 elif test ${D}DEPSMODE = mwcc ; then
48922     ${D}* || exit ${D}?
48923     # Run mwcc again with -MM and redirect into the dep file we want
48924     # NOTE: We can't use shift here because we need ${D}* to be valid
48925     prevarg=
48926     for arg in ${D}* ; do
48927         if test "${D}prevarg" = "-o"; then
48928             objfile=${D}arg
48929         else
48930             case "${D}arg" in
48931                 -* )
48932                 ;;
48933                 * )
48934                     srcfile=${D}arg
48935                 ;;
48936             esac
48937         fi
48938         prevarg="${D}arg"
48939     done
48940     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
48941     exit 0
48942 elif test ${D}DEPSMODE = unixcc; then
48943     ${D}* || exit ${D}?
48944     # Run compiler again with deps flag and redirect into the dep file.
48945     # It doesn't work if the '-o FILE' option is used, but without it the
48946     # dependency file will contain the wrong name for the object. So it is
48947     # removed from the command line, and the dep file is fixed with sed.
48948     cmd=""
48949     while test ${D}# -gt 0; do
48950         case "${D}1" in
48951             -o )
48952                 shift
48953                 objfile=${D}1
48954             ;;
48955             * )
48956                 eval arg${D}#=\\${D}1
48957                 cmd="${D}cmd \\${D}arg${D}#"
48958             ;;
48959         esac
48960         shift
48961     done
48962     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
48963     exit 0
48964 else
48965     ${D}*
48966     exit ${D}?
48967 fi
48968 EOF
48969
48970             chmod +x bk-deps
48971                                     BK_DEPS="`pwd`/bk-deps"
48972         fi
48973     fi
48974
48975
48976
48977
48978
48979     case ${BAKEFILE_HOST} in
48980         *-*-cygwin* | *-*-mingw32* )
48981                         if test -n "$ac_tool_prefix"; then
48982   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
48983 set dummy ${ac_tool_prefix}windres; ac_word=$2
48984 echo "$as_me:$LINENO: checking for $ac_word" >&5
48985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48986 if test "${ac_cv_prog_WINDRES+set}" = set; then
48987   echo $ECHO_N "(cached) $ECHO_C" >&6
48988 else
48989   if test -n "$WINDRES"; then
48990   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
48991 else
48992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48993 for as_dir in $PATH
48994 do
48995   IFS=$as_save_IFS
48996   test -z "$as_dir" && as_dir=.
48997   for ac_exec_ext in '' $ac_executable_extensions; do
48998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48999     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
49000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49001     break 2
49002   fi
49003 done
49004 done
49005
49006 fi
49007 fi
49008 WINDRES=$ac_cv_prog_WINDRES
49009 if test -n "$WINDRES"; then
49010   echo "$as_me:$LINENO: result: $WINDRES" >&5
49011 echo "${ECHO_T}$WINDRES" >&6
49012 else
49013   echo "$as_me:$LINENO: result: no" >&5
49014 echo "${ECHO_T}no" >&6
49015 fi
49016
49017 fi
49018 if test -z "$ac_cv_prog_WINDRES"; then
49019   ac_ct_WINDRES=$WINDRES
49020   # Extract the first word of "windres", so it can be a program name with args.
49021 set dummy windres; ac_word=$2
49022 echo "$as_me:$LINENO: checking for $ac_word" >&5
49023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49024 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
49025   echo $ECHO_N "(cached) $ECHO_C" >&6
49026 else
49027   if test -n "$ac_ct_WINDRES"; then
49028   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
49029 else
49030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49031 for as_dir in $PATH
49032 do
49033   IFS=$as_save_IFS
49034   test -z "$as_dir" && as_dir=.
49035   for ac_exec_ext in '' $ac_executable_extensions; do
49036   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49037     ac_cv_prog_ac_ct_WINDRES="windres"
49038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49039     break 2
49040   fi
49041 done
49042 done
49043
49044 fi
49045 fi
49046 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49047 if test -n "$ac_ct_WINDRES"; then
49048   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49049 echo "${ECHO_T}$ac_ct_WINDRES" >&6
49050 else
49051   echo "$as_me:$LINENO: result: no" >&5
49052 echo "${ECHO_T}no" >&6
49053 fi
49054
49055   WINDRES=$ac_ct_WINDRES
49056 else
49057   WINDRES="$ac_cv_prog_WINDRES"
49058 fi
49059
49060          ;;
49061
49062       *-*-darwin* | powerpc-apple-macos* )
49063             # Extract the first word of "Rez", so it can be a program name with args.
49064 set dummy Rez; ac_word=$2
49065 echo "$as_me:$LINENO: checking for $ac_word" >&5
49066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49067 if test "${ac_cv_prog_REZ+set}" = set; then
49068   echo $ECHO_N "(cached) $ECHO_C" >&6
49069 else
49070   if test -n "$REZ"; then
49071   ac_cv_prog_REZ="$REZ" # Let the user override the test.
49072 else
49073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49074 for as_dir in $PATH
49075 do
49076   IFS=$as_save_IFS
49077   test -z "$as_dir" && as_dir=.
49078   for ac_exec_ext in '' $ac_executable_extensions; do
49079   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49080     ac_cv_prog_REZ="Rez"
49081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49082     break 2
49083   fi
49084 done
49085 done
49086
49087   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
49088 fi
49089 fi
49090 REZ=$ac_cv_prog_REZ
49091 if test -n "$REZ"; then
49092   echo "$as_me:$LINENO: result: $REZ" >&5
49093 echo "${ECHO_T}$REZ" >&6
49094 else
49095   echo "$as_me:$LINENO: result: no" >&5
49096 echo "${ECHO_T}no" >&6
49097 fi
49098
49099             # Extract the first word of "SetFile", so it can be a program name with args.
49100 set dummy SetFile; ac_word=$2
49101 echo "$as_me:$LINENO: checking for $ac_word" >&5
49102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49103 if test "${ac_cv_prog_SETFILE+set}" = set; then
49104   echo $ECHO_N "(cached) $ECHO_C" >&6
49105 else
49106   if test -n "$SETFILE"; then
49107   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49108 else
49109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49110 for as_dir in $PATH
49111 do
49112   IFS=$as_save_IFS
49113   test -z "$as_dir" && as_dir=.
49114   for ac_exec_ext in '' $ac_executable_extensions; do
49115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49116     ac_cv_prog_SETFILE="SetFile"
49117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49118     break 2
49119   fi
49120 done
49121 done
49122
49123   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49124 fi
49125 fi
49126 SETFILE=$ac_cv_prog_SETFILE
49127 if test -n "$SETFILE"; then
49128   echo "$as_me:$LINENO: result: $SETFILE" >&5
49129 echo "${ECHO_T}$SETFILE" >&6
49130 else
49131   echo "$as_me:$LINENO: result: no" >&5
49132 echo "${ECHO_T}no" >&6
49133 fi
49134
49135         ;;
49136     esac
49137
49138
49139
49140
49141
49142
49143     BAKEFILE_BAKEFILE_M4_VERSION="0.2.1"
49144
49145
49146 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.1"
49147
49148
49149
49150     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
49151 if test "${enable_precomp_headers+set}" = set; then
49152   enableval="$enable_precomp_headers"
49153   bk_use_pch="$enableval"
49154 fi;
49155
49156     GCC_PCH=0
49157     ICC_PCH=0
49158     USE_PCH=0
49159     BK_MAKE_PCH=""
49160
49161     case ${BAKEFILE_HOST} in
49162         *-*-cygwin* )
49163                                                 bk_use_pch="no"
49164             ;;
49165     esac
49166
49167     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49168         if test "x$GCC" = "xyes"; then
49169                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49170 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
49171             cat >conftest.$ac_ext <<_ACEOF
49172 /* confdefs.h.  */
49173 _ACEOF
49174 cat confdefs.h >>conftest.$ac_ext
49175 cat >>conftest.$ac_ext <<_ACEOF
49176 /* end confdefs.h.  */
49177
49178 int
49179 main ()
49180 {
49181
49182                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
49183                         There is no PCH support
49184                     #endif
49185                     #if (__GNUC__ < 3)
49186                         There is no PCH support
49187                     #endif
49188                     #if (__GNUC__ == 3) && \
49189                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
49190                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49191                        ( defined(__INTEL_COMPILER) )
49192                         There is no PCH support
49193                     #endif
49194
49195   ;
49196   return 0;
49197 }
49198 _ACEOF
49199 rm -f conftest.$ac_objext
49200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49201   (eval $ac_compile) 2>conftest.er1
49202   ac_status=$?
49203   grep -v '^ *+' conftest.er1 >conftest.err
49204   rm -f conftest.er1
49205   cat conftest.err >&5
49206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49207   (exit $ac_status); } &&
49208          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
49209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49210   (eval $ac_try) 2>&5
49211   ac_status=$?
49212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49213   (exit $ac_status); }; } &&
49214          { ac_try='test -s conftest.$ac_objext'
49215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49216   (eval $ac_try) 2>&5
49217   ac_status=$?
49218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49219   (exit $ac_status); }; }; then
49220
49221                     echo "$as_me:$LINENO: result: yes" >&5
49222 echo "${ECHO_T}yes" >&6
49223                     GCC_PCH=1
49224
49225 else
49226   echo "$as_me: failed program was:" >&5
49227 sed 's/^/| /' conftest.$ac_ext >&5
49228
49229
49230                     cat >conftest.$ac_ext <<_ACEOF
49231 /* confdefs.h.  */
49232 _ACEOF
49233 cat confdefs.h >>conftest.$ac_ext
49234 cat >>conftest.$ac_ext <<_ACEOF
49235 /* end confdefs.h.  */
49236
49237 int
49238 main ()
49239 {
49240
49241                             #if !defined(__INTEL_COMPILER) || \
49242                                 (__INTEL_COMPILER < 800)
49243                                 There is no PCH support
49244                             #endif
49245
49246   ;
49247   return 0;
49248 }
49249 _ACEOF
49250 rm -f conftest.$ac_objext
49251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49252   (eval $ac_compile) 2>conftest.er1
49253   ac_status=$?
49254   grep -v '^ *+' conftest.er1 >conftest.err
49255   rm -f conftest.er1
49256   cat conftest.err >&5
49257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49258   (exit $ac_status); } &&
49259          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
49260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49261   (eval $ac_try) 2>&5
49262   ac_status=$?
49263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49264   (exit $ac_status); }; } &&
49265          { ac_try='test -s conftest.$ac_objext'
49266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49267   (eval $ac_try) 2>&5
49268   ac_status=$?
49269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49270   (exit $ac_status); }; }; then
49271
49272                             echo "$as_me:$LINENO: result: yes" >&5
49273 echo "${ECHO_T}yes" >&6
49274                             ICC_PCH=1
49275
49276 else
49277   echo "$as_me: failed program was:" >&5
49278 sed 's/^/| /' conftest.$ac_ext >&5
49279
49280
49281                             echo "$as_me:$LINENO: result: no" >&5
49282 echo "${ECHO_T}no" >&6
49283
49284 fi
49285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49286
49287 fi
49288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49289             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49290                 USE_PCH=1
49291
49292 D='$'
49293 cat <<EOF >bk-make-pch
49294 #!/bin/sh
49295
49296 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
49297 # script. It is used to generated precompiled headers.
49298 #
49299 # Permission is given to use this file in any way.
49300
49301 outfile="${D}{1}"
49302 header="${D}{2}"
49303 shift
49304 shift
49305
49306 compiler=""
49307 headerfile=""
49308
49309 while test ${D}{#} -gt 0; do
49310     add_to_cmdline=1
49311     case "${D}{1}" in
49312         -I* )
49313             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49314             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49315                 headerfile="${D}{incdir}/${D}{header}"
49316             fi
49317         ;;
49318         -use-pch|-use_pch )
49319             shift
49320             add_to_cmdline=0
49321         ;;
49322     esac
49323     if test ${D}add_to_cmdline = 1 ; then
49324         compiler="${D}{compiler} ${D}{1}"
49325     fi
49326     shift
49327 done
49328
49329 if test "x${D}{headerfile}" = "x" ; then
49330     echo "error: can't find header ${D}{header} in include paths" >&2
49331 else
49332     if test -f ${D}{outfile} ; then
49333         rm -f ${D}{outfile}
49334     else
49335         mkdir -p \`dirname ${D}{outfile}\`
49336     fi
49337     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
49338     mkdir -p .deps
49339     if test "x${GCC_PCH}" = "x1" ; then
49340         # can do this because gcc is >= 3.4:
49341         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49342     elif test "x${ICC_PCH}" = "x1" ; then
49343         filename=pch_gen-${D}${D}
49344         file=${D}{filename}.c
49345         dfile=${D}{filename}.d
49346         cat > ${D}file <<EOT
49347 #include "${D}header"
49348 EOT
49349         # using -MF icc complains about differing command lines in creation/use
49350         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
49351           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49352           rm -f ${D}file ${D}dfile ${D}{filename}.o
49353     fi
49354     exit ${D}{?}
49355 fi
49356 EOF
49357
49358                 chmod +x bk-make-pch
49359                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
49360             fi
49361         fi
49362     fi
49363
49364
49365
49366
49367
49368     COND_BUILD_DEBUG="#"
49369     if test "x$BUILD" = "xdebug" ; then
49370         COND_BUILD_DEBUG=""
49371     fi
49372
49373     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49374     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49375         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49376     fi
49377
49378     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49379     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49380         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49381     fi
49382
49383     COND_BUILD_DEBUG_UNICODE_0="#"
49384     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49385         COND_BUILD_DEBUG_UNICODE_0=""
49386     fi
49387
49388     COND_BUILD_DEBUG_UNICODE_1="#"
49389     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49390         COND_BUILD_DEBUG_UNICODE_1=""
49391     fi
49392
49393     COND_BUILD_RELEASE="#"
49394     if test "x$BUILD" = "xrelease" ; then
49395         COND_BUILD_RELEASE=""
49396     fi
49397
49398     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49399     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49400         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49401     fi
49402
49403     COND_BUILD_RELEASE_UNICODE_0="#"
49404     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49405         COND_BUILD_RELEASE_UNICODE_0=""
49406     fi
49407
49408     COND_BUILD_RELEASE_UNICODE_1="#"
49409     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49410         COND_BUILD_RELEASE_UNICODE_1=""
49411     fi
49412
49413     COND_DEBUG_FLAG_1="#"
49414     if test "x$DEBUG_FLAG" = "x1" ; then
49415         COND_DEBUG_FLAG_1=""
49416     fi
49417
49418     COND_DEBUG_INFO_0="#"
49419     if test "x$DEBUG_INFO" = "x0" ; then
49420         COND_DEBUG_INFO_0=""
49421     fi
49422
49423     COND_DEBUG_INFO_1="#"
49424     if test "x$DEBUG_INFO" = "x1" ; then
49425         COND_DEBUG_INFO_1=""
49426     fi
49427
49428     COND_DEPS_TRACKING_0="#"
49429     if test "x$DEPS_TRACKING" = "x0" ; then
49430         COND_DEPS_TRACKING_0=""
49431     fi
49432
49433     COND_DEPS_TRACKING_1="#"
49434     if test "x$DEPS_TRACKING" = "x1" ; then
49435         COND_DEPS_TRACKING_1=""
49436     fi
49437
49438     COND_GCC_PCH_1="#"
49439     if test "x$GCC_PCH" = "x1" ; then
49440         COND_GCC_PCH_1=""
49441     fi
49442
49443     COND_ICC_PCH_1="#"
49444     if test "x$ICC_PCH" = "x1" ; then
49445         COND_ICC_PCH_1=""
49446     fi
49447
49448     COND_MONOLITHIC_0="#"
49449     if test "x$MONOLITHIC" = "x0" ; then
49450         COND_MONOLITHIC_0=""
49451     fi
49452
49453     COND_MONOLITHIC_0_SHARED_0="#"
49454     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49455         COND_MONOLITHIC_0_SHARED_0=""
49456     fi
49457
49458     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49459     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49460         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49461     fi
49462
49463     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49464     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49465         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49466     fi
49467
49468     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49469     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49470         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49471     fi
49472
49473     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49474     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49475         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49476     fi
49477
49478     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
49479     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49480         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
49481     fi
49482
49483     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49484     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49485         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49486     fi
49487
49488     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
49489     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
49490         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
49491     fi
49492
49493     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49494     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49495         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49496     fi
49497
49498     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49499     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49500         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49501     fi
49502
49503     COND_MONOLITHIC_0_SHARED_1="#"
49504     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49505         COND_MONOLITHIC_0_SHARED_1=""
49506     fi
49507
49508     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49509     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49510         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49511     fi
49512
49513     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49514     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49515         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49516     fi
49517
49518     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49519     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49520         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49521     fi
49522
49523     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49524     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49525         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49526     fi
49527
49528     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
49529     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49530         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
49531     fi
49532
49533     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49534     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49535         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49536     fi
49537
49538     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
49539     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
49540         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
49541     fi
49542
49543     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49544     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49545         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49546     fi
49547
49548     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49549     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49550         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49551     fi
49552
49553     COND_MONOLITHIC_0_USE_MEDIA_1="#"
49554     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49555         COND_MONOLITHIC_0_USE_MEDIA_1=""
49556     fi
49557
49558     COND_MONOLITHIC_0_USE_ODBC_1="#"
49559     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
49560         COND_MONOLITHIC_0_USE_ODBC_1=""
49561     fi
49562
49563     COND_MONOLITHIC_1="#"
49564     if test "x$MONOLITHIC" = "x1" ; then
49565         COND_MONOLITHIC_1=""
49566     fi
49567
49568     COND_MONOLITHIC_1_SHARED_0="#"
49569     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49570         COND_MONOLITHIC_1_SHARED_0=""
49571     fi
49572
49573     COND_MONOLITHIC_1_SHARED_1="#"
49574     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49575         COND_MONOLITHIC_1_SHARED_1=""
49576     fi
49577
49578     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49579     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49580         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49581     fi
49582
49583     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49584     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49585         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49586     fi
49587
49588     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49589     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49590         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49591     fi
49592
49593     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49594     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49595         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49596     fi
49597
49598     COND_PLATFORM_MACOSX_1="#"
49599     if test "x$PLATFORM_MACOSX" = "x1" ; then
49600         COND_PLATFORM_MACOSX_1=""
49601     fi
49602
49603     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
49604     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
49605         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
49606     fi
49607
49608     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
49609     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
49610         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
49611     fi
49612
49613     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
49614     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
49615         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
49616     fi
49617
49618     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
49619     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
49620         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
49621     fi
49622
49623     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
49624     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49625         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
49626     fi
49627
49628     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
49629     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
49630         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
49631     fi
49632
49633     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
49634     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
49635         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
49636     fi
49637
49638     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49639     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49640         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49641     fi
49642
49643     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49644     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49645         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49646     fi
49647
49648     COND_PLATFORM_MACOS_1="#"
49649     if test "x$PLATFORM_MACOS" = "x1" ; then
49650         COND_PLATFORM_MACOS_1=""
49651     fi
49652
49653     COND_PLATFORM_MAC_1="#"
49654     if test "x$PLATFORM_MAC" = "x1" ; then
49655         COND_PLATFORM_MAC_1=""
49656     fi
49657
49658     COND_PLATFORM_MSDOS_0="#"
49659     if test "x$PLATFORM_MSDOS" = "x0" ; then
49660         COND_PLATFORM_MSDOS_0=""
49661     fi
49662
49663     COND_PLATFORM_MSDOS_1="#"
49664     if test "x$PLATFORM_MSDOS" = "x1" ; then
49665         COND_PLATFORM_MSDOS_1=""
49666     fi
49667
49668     COND_PLATFORM_OS2_1="#"
49669     if test "x$PLATFORM_OS2" = "x1" ; then
49670         COND_PLATFORM_OS2_1=""
49671     fi
49672
49673     COND_PLATFORM_UNIX_0="#"
49674     if test "x$PLATFORM_UNIX" = "x0" ; then
49675         COND_PLATFORM_UNIX_0=""
49676     fi
49677
49678     COND_PLATFORM_UNIX_1="#"
49679     if test "x$PLATFORM_UNIX" = "x1" ; then
49680         COND_PLATFORM_UNIX_1=""
49681     fi
49682
49683     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
49684     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
49685         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
49686     fi
49687
49688     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
49689     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49690         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
49691     fi
49692
49693     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49694     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49695         COND_PLATFORM_UNIX_1_USE_GUI_1=""
49696     fi
49697
49698     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49699     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49700         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49701     fi
49702
49703     COND_PLATFORM_WIN32_0="#"
49704     if test "x$PLATFORM_WIN32" = "x0" ; then
49705         COND_PLATFORM_WIN32_0=""
49706     fi
49707
49708     COND_PLATFORM_WIN32_1="#"
49709     if test "x$PLATFORM_WIN32" = "x1" ; then
49710         COND_PLATFORM_WIN32_1=""
49711     fi
49712
49713     COND_SHARED_0="#"
49714     if test "x$SHARED" = "x0" ; then
49715         COND_SHARED_0=""
49716     fi
49717
49718     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49719     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49720         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49721     fi
49722
49723     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49724     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49725         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49726     fi
49727
49728     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49729     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49730         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49731     fi
49732
49733     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49734     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49735         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49736     fi
49737
49738     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49739     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49740         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49741     fi
49742
49743     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49744     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49745         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49746     fi
49747
49748     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49749     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49750         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49751     fi
49752
49753     COND_SHARED_0_USE_XRC_1="#"
49754     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49755         COND_SHARED_0_USE_XRC_1=""
49756     fi
49757
49758     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49759     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49760         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49761     fi
49762
49763     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
49764     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
49765         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
49766     fi
49767
49768     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49769     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49770         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49771     fi
49772
49773     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49774     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49775         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49776     fi
49777
49778     COND_SHARED_1="#"
49779     if test "x$SHARED" = "x1" ; then
49780         COND_SHARED_1=""
49781     fi
49782
49783     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49784     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49785         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49786     fi
49787
49788     COND_SHARED_1_USE_XRC_1="#"
49789     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49790         COND_SHARED_1_USE_XRC_1=""
49791     fi
49792
49793     COND_TOOLKIT_="#"
49794     if test "x$TOOLKIT" = "x" ; then
49795         COND_TOOLKIT_=""
49796     fi
49797
49798     COND_TOOLKIT_COCOA="#"
49799     if test "x$TOOLKIT" = "xCOCOA" ; then
49800         COND_TOOLKIT_COCOA=""
49801     fi
49802
49803     COND_TOOLKIT_COCOA_USE_GUI_1="#"
49804     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49805         COND_TOOLKIT_COCOA_USE_GUI_1=""
49806     fi
49807
49808     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49809     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49810         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49811     fi
49812
49813     COND_TOOLKIT_DFB="#"
49814     if test "x$TOOLKIT" = "xDFB" ; then
49815         COND_TOOLKIT_DFB=""
49816     fi
49817
49818     COND_TOOLKIT_DFB_USE_GUI_1="#"
49819     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49820         COND_TOOLKIT_DFB_USE_GUI_1=""
49821     fi
49822
49823     COND_TOOLKIT_GTK="#"
49824     if test "x$TOOLKIT" = "xGTK" ; then
49825         COND_TOOLKIT_GTK=""
49826     fi
49827
49828     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49829     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
49830         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
49831     fi
49832
49833     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
49834     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
49835         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
49836     fi
49837
49838     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
49839     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
49840         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
49841     fi
49842
49843     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
49844     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49845         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
49846     fi
49847
49848     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
49849     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
49850         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
49851     fi
49852
49853     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
49854     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49855         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
49856     fi
49857
49858     COND_TOOLKIT_GTK_USE_GUI_1="#"
49859     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
49860         COND_TOOLKIT_GTK_USE_GUI_1=""
49861     fi
49862
49863     COND_TOOLKIT_MAC="#"
49864     if test "x$TOOLKIT" = "xMAC" ; then
49865         COND_TOOLKIT_MAC=""
49866     fi
49867
49868     COND_TOOLKIT_MAC_USE_GUI_1="#"
49869     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49870         COND_TOOLKIT_MAC_USE_GUI_1=""
49871     fi
49872
49873     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49874     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49875         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49876     fi
49877
49878     COND_TOOLKIT_MGL="#"
49879     if test "x$TOOLKIT" = "xMGL" ; then
49880         COND_TOOLKIT_MGL=""
49881     fi
49882
49883     COND_TOOLKIT_MGL_USE_GUI_1="#"
49884     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49885         COND_TOOLKIT_MGL_USE_GUI_1=""
49886     fi
49887
49888     COND_TOOLKIT_MOTIF="#"
49889     if test "x$TOOLKIT" = "xMOTIF" ; then
49890         COND_TOOLKIT_MOTIF=""
49891     fi
49892
49893     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
49894     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
49895         COND_TOOLKIT_MOTIF_USE_GUI_1=""
49896     fi
49897
49898     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
49899     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49900         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
49901     fi
49902
49903     COND_TOOLKIT_MSW="#"
49904     if test "x$TOOLKIT" = "xMSW" ; then
49905         COND_TOOLKIT_MSW=""
49906     fi
49907
49908     COND_TOOLKIT_MSW_USE_GUI_1="#"
49909     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
49910         COND_TOOLKIT_MSW_USE_GUI_1=""
49911     fi
49912
49913     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
49914     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49915         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
49916     fi
49917
49918     COND_TOOLKIT_MSW_WXUNIV_0="#"
49919     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49920         COND_TOOLKIT_MSW_WXUNIV_0=""
49921     fi
49922
49923     COND_TOOLKIT_PM="#"
49924     if test "x$TOOLKIT" = "xPM" ; then
49925         COND_TOOLKIT_PM=""
49926     fi
49927
49928     COND_TOOLKIT_PM_USE_GUI_1="#"
49929     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
49930         COND_TOOLKIT_PM_USE_GUI_1=""
49931     fi
49932
49933     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
49934     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49935         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
49936     fi
49937
49938     COND_TOOLKIT_WINCE="#"
49939     if test "x$TOOLKIT" = "xWINCE" ; then
49940         COND_TOOLKIT_WINCE=""
49941     fi
49942
49943     COND_TOOLKIT_WINCE_USE_GUI_1="#"
49944     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
49945         COND_TOOLKIT_WINCE_USE_GUI_1=""
49946     fi
49947
49948     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
49949     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49950         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
49951     fi
49952
49953     COND_TOOLKIT_WINCE_WXUNIV_0="#"
49954     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
49955         COND_TOOLKIT_WINCE_WXUNIV_0=""
49956     fi
49957
49958     COND_TOOLKIT_X11="#"
49959     if test "x$TOOLKIT" = "xX11" ; then
49960         COND_TOOLKIT_X11=""
49961     fi
49962
49963     COND_TOOLKIT_X11_USE_GUI_1="#"
49964     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
49965         COND_TOOLKIT_X11_USE_GUI_1=""
49966     fi
49967
49968     COND_UNICODE_1="#"
49969     if test "x$UNICODE" = "x1" ; then
49970         COND_UNICODE_1=""
49971     fi
49972
49973     COND_USE_EXCEPTIONS_0="#"
49974     if test "x$USE_EXCEPTIONS" = "x0" ; then
49975         COND_USE_EXCEPTIONS_0=""
49976     fi
49977
49978     COND_USE_EXCEPTIONS_1="#"
49979     if test "x$USE_EXCEPTIONS" = "x1" ; then
49980         COND_USE_EXCEPTIONS_1=""
49981     fi
49982
49983     COND_USE_GUI_0="#"
49984     if test "x$USE_GUI" = "x0" ; then
49985         COND_USE_GUI_0=""
49986     fi
49987
49988     COND_USE_GUI_1="#"
49989     if test "x$USE_GUI" = "x1" ; then
49990         COND_USE_GUI_1=""
49991     fi
49992
49993     COND_USE_GUI_1_WXUNIV_0="#"
49994     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49995         COND_USE_GUI_1_WXUNIV_0=""
49996     fi
49997
49998     COND_USE_GUI_1_WXUNIV_1="#"
49999     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50000         COND_USE_GUI_1_WXUNIV_1=""
50001     fi
50002
50003     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50004     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50005         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50006     fi
50007
50008     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50009     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50010         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50011     fi
50012
50013     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50014     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50015         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50016     fi
50017
50018     COND_USE_ODBC_1="#"
50019     if test "x$USE_ODBC" = "x1" ; then
50020         COND_USE_ODBC_1=""
50021     fi
50022
50023     COND_USE_OPENGL_1="#"
50024     if test "x$USE_OPENGL" = "x1" ; then
50025         COND_USE_OPENGL_1=""
50026     fi
50027
50028     COND_USE_PCH_1="#"
50029     if test "x$USE_PCH" = "x1" ; then
50030         COND_USE_PCH_1=""
50031     fi
50032
50033     COND_USE_PLUGINS_0="#"
50034     if test "x$USE_PLUGINS" = "x0" ; then
50035         COND_USE_PLUGINS_0=""
50036     fi
50037
50038     COND_USE_RTTI_0="#"
50039     if test "x$USE_RTTI" = "x0" ; then
50040         COND_USE_RTTI_0=""
50041     fi
50042
50043     COND_USE_RTTI_1="#"
50044     if test "x$USE_RTTI" = "x1" ; then
50045         COND_USE_RTTI_1=""
50046     fi
50047
50048     COND_USE_SOSYMLINKS_1="#"
50049     if test "x$USE_SOSYMLINKS" = "x1" ; then
50050         COND_USE_SOSYMLINKS_1=""
50051     fi
50052
50053     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50054     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50055         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50056     fi
50057
50058     COND_USE_SOVERLINUX_1="#"
50059     if test "x$USE_SOVERLINUX" = "x1" ; then
50060         COND_USE_SOVERLINUX_1=""
50061     fi
50062
50063     COND_USE_SOVERSION_0="#"
50064     if test "x$USE_SOVERSION" = "x0" ; then
50065         COND_USE_SOVERSION_0=""
50066     fi
50067
50068     COND_USE_SOVERSOLARIS_1="#"
50069     if test "x$USE_SOVERSOLARIS" = "x1" ; then
50070         COND_USE_SOVERSOLARIS_1=""
50071     fi
50072
50073     COND_USE_THREADS_0="#"
50074     if test "x$USE_THREADS" = "x0" ; then
50075         COND_USE_THREADS_0=""
50076     fi
50077
50078     COND_USE_THREADS_1="#"
50079     if test "x$USE_THREADS" = "x1" ; then
50080         COND_USE_THREADS_1=""
50081     fi
50082
50083     COND_USE_XRC_1="#"
50084     if test "x$USE_XRC" = "x1" ; then
50085         COND_USE_XRC_1=""
50086     fi
50087
50088     COND_WINDOWS_IMPLIB_1="#"
50089     if test "x$WINDOWS_IMPLIB" = "x1" ; then
50090         COND_WINDOWS_IMPLIB_1=""
50091     fi
50092
50093     COND_WITH_PLUGIN_SDL_1="#"
50094     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50095         COND_WITH_PLUGIN_SDL_1=""
50096     fi
50097
50098     COND_WXUNIV_0="#"
50099     if test "x$WXUNIV" = "x0" ; then
50100         COND_WXUNIV_0=""
50101     fi
50102
50103     COND_WXUNIV_1="#"
50104     if test "x$WXUNIV" = "x1" ; then
50105         COND_WXUNIV_1=""
50106     fi
50107
50108     COND_WXUSE_EXPAT_BUILTIN="#"
50109     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50110         COND_WXUSE_EXPAT_BUILTIN=""
50111     fi
50112
50113     COND_WXUSE_LIBJPEG_BUILTIN="#"
50114     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50115         COND_WXUSE_LIBJPEG_BUILTIN=""
50116     fi
50117
50118     COND_WXUSE_LIBPNG_BUILTIN="#"
50119     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50120         COND_WXUSE_LIBPNG_BUILTIN=""
50121     fi
50122
50123     COND_WXUSE_LIBTIFF_BUILTIN="#"
50124     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50125         COND_WXUSE_LIBTIFF_BUILTIN=""
50126     fi
50127
50128     COND_WXUSE_ODBC_BUILTIN="#"
50129     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
50130         COND_WXUSE_ODBC_BUILTIN=""
50131     fi
50132
50133     COND_WXUSE_REGEX_BUILTIN="#"
50134     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50135         COND_WXUSE_REGEX_BUILTIN=""
50136     fi
50137
50138     COND_WXUSE_ZLIB_BUILTIN="#"
50139     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50140         COND_WXUSE_ZLIB_BUILTIN=""
50141     fi
50142
50143
50144
50145     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50146         { { 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
50147 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;}
50148    { (exit 1); exit 1; }; }
50149     fi
50150
50151     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50152         { { 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
50153 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;}
50154    { (exit 1); exit 1; }; }
50155     fi
50156
50157
50158 if test $GCC_PCH = 1
50159 then
50160     if test "$wx_cv_gcc_pch_bug" = yes; then
50161         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50162 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50163         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50164 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50165         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50166 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50167     fi
50168
50169     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
50170 fi
50171
50172
50173 if test "$wxUSE_MAC" = 1 ; then
50174     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
50175         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50176         mv temp bk-deps
50177         chmod +x bk-deps
50178     fi
50179 fi
50180
50181 if test "$wxUSE_SHARED" = "yes"; then
50182
50183                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
50184     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
50185
50186                 case "${host}" in
50187       *-pc-os2_emx | *-pc-os2-emx )
50188         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50189         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50190         cp -p ${srcdir}/src/os2/dllnames.sh .
50191         cp -p ${srcdir}/src/os2/dllar.sh .
50192       ;;
50193     esac
50194 else
50195
50196         EXE_LINKER="$CXX -o"
50197
50198 fi
50199 if test "$wxUSE_OMF" = "yes"; then
50200     case "${host}" in
50201       *-pc-os2_emx | *-pc-os2-emx )
50202         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50203         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50204         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50205       ;;
50206     esac
50207 fi
50208
50209 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
50210
50211 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50212
50213
50214
50215
50216
50217
50218
50219
50220
50221
50222
50223
50224
50225
50226
50227
50228
50229
50230
50231
50232
50233
50234
50235
50236
50237
50238
50239
50240
50241
50242
50243
50244
50245
50246
50247
50248
50249
50250
50251
50252
50253
50254
50255
50256
50257
50258
50259
50260
50261
50262
50263
50264
50265
50266
50267
50268
50269
50270
50271
50272
50273 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50274 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
50275 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
50276 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
50277   echo $ECHO_N "(cached) $ECHO_C" >&6
50278 else
50279   cat >conftest.make <<\_ACEOF
50280 all:
50281         @echo 'ac_maketemp="$(MAKE)"'
50282 _ACEOF
50283 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50284 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
50285 if test -n "$ac_maketemp"; then
50286   eval ac_cv_prog_make_${ac_make}_set=yes
50287 else
50288   eval ac_cv_prog_make_${ac_make}_set=no
50289 fi
50290 rm -f conftest.make
50291 fi
50292 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
50293   echo "$as_me:$LINENO: result: yes" >&5
50294 echo "${ECHO_T}yes" >&6
50295   SET_MAKE=
50296 else
50297   echo "$as_me:$LINENO: result: no" >&5
50298 echo "${ECHO_T}no" >&6
50299   SET_MAKE="MAKE=${MAKE-make}"
50300 fi
50301
50302
50303
50304           ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50305
50306
50307 if test "$USE_WIN32" = 1; then
50308               ac_config_commands="$ac_config_commands
50309             rcdefs.h
50310         "
50311
50312 fi
50313
50314           ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
50315
50316
50317           ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
50318
50319
50320 if test "$wx_cv_version_script" = "yes"; then
50321               ac_config_files="$ac_config_files version-script"
50322
50323 fi
50324           ac_config_files="$ac_config_files Makefile"
50325
50326
50327           ac_config_commands="$ac_config_commands wx-config"
50328
50329
50330
50331 if test "$wxWITH_SUBDIRS" != "no"; then
50332 if test "$wxUSE_GUI" = "yes"; then
50333     SUBDIRS="samples demos utils contrib"
50334 else         SUBDIRS="samples utils"
50335 fi
50336
50337
50338
50339 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
50340 if test "${with_cppunit_prefix+set}" = set; then
50341   withval="$with_cppunit_prefix"
50342   cppunit_config_prefix="$withval"
50343 else
50344   cppunit_config_prefix=""
50345 fi;
50346
50347 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
50348 if test "${with_cppunit_exec_prefix+set}" = set; then
50349   withval="$with_cppunit_exec_prefix"
50350   cppunit_config_exec_prefix="$withval"
50351 else
50352   cppunit_config_exec_prefix=""
50353 fi;
50354
50355   if test x$cppunit_config_exec_prefix != x ; then
50356      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50357      if test x${CPPUNIT_CONFIG+set} != xset ; then
50358         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50359      fi
50360   fi
50361   if test x$cppunit_config_prefix != x ; then
50362      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50363      if test x${CPPUNIT_CONFIG+set} != xset ; then
50364         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50365      fi
50366   fi
50367
50368   # Extract the first word of "cppunit-config", so it can be a program name with args.
50369 set dummy cppunit-config; ac_word=$2
50370 echo "$as_me:$LINENO: checking for $ac_word" >&5
50371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
50372 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50373   echo $ECHO_N "(cached) $ECHO_C" >&6
50374 else
50375   case $CPPUNIT_CONFIG in
50376   [\\/]* | ?:[\\/]*)
50377   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50378   ;;
50379   *)
50380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50381 for as_dir in $PATH
50382 do
50383   IFS=$as_save_IFS
50384   test -z "$as_dir" && as_dir=.
50385   for ac_exec_ext in '' $ac_executable_extensions; do
50386   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
50387     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50389     break 2
50390   fi
50391 done
50392 done
50393
50394   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50395   ;;
50396 esac
50397 fi
50398 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50399
50400 if test -n "$CPPUNIT_CONFIG"; then
50401   echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50402 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
50403 else
50404   echo "$as_me:$LINENO: result: no" >&5
50405 echo "${ECHO_T}no" >&6
50406 fi
50407
50408   cppunit_version_min=1.8.0
50409
50410   echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50411 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
50412   no_cppunit=""
50413   if test "$CPPUNIT_CONFIG" = "no" ; then
50414     echo "$as_me:$LINENO: result: no" >&5
50415 echo "${ECHO_T}no" >&6
50416     no_cppunit=yes
50417   else
50418     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50419     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50420     cppunit_version=`$CPPUNIT_CONFIG --version`
50421
50422     cppunit_major_version=`echo $cppunit_version | \
50423            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50424     cppunit_minor_version=`echo $cppunit_version | \
50425            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50426     cppunit_micro_version=`echo $cppunit_version | \
50427            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50428
50429     cppunit_major_min=`echo $cppunit_version_min | \
50430            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50431     cppunit_minor_min=`echo $cppunit_version_min | \
50432            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50433     cppunit_micro_min=`echo $cppunit_version_min | \
50434            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50435
50436     cppunit_version_proper=`expr \
50437         $cppunit_major_version \> $cppunit_major_min \| \
50438         $cppunit_major_version \= $cppunit_major_min \& \
50439         $cppunit_minor_version \> $cppunit_minor_min \| \
50440         $cppunit_major_version \= $cppunit_major_min \& \
50441         $cppunit_minor_version \= $cppunit_minor_min \& \
50442         $cppunit_micro_version \>= $cppunit_micro_min `
50443
50444     if test "$cppunit_version_proper" = "1" ; then
50445       echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50446 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
50447     else
50448       echo "$as_me:$LINENO: result: no" >&5
50449 echo "${ECHO_T}no" >&6
50450       no_cppunit=yes
50451     fi
50452   fi
50453
50454   if test "x$no_cppunit" = x ; then
50455      SUBDIRS="$SUBDIRS tests"
50456   else
50457      CPPUNIT_CFLAGS=""
50458      CPPUNIT_LIBS=""
50459      :
50460   fi
50461
50462
50463
50464
50465
50466 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
50467     DISABLED_CONTRIB="$DISABLED_CONTRIB net"
50468 fi
50469
50470 for subdir in `echo $SUBDIRS`; do
50471     if test -d ${srcdir}/${subdir} ; then
50472         if test "$wxUSE_GUI" = "yes"; then
50473             if test ${subdir} = "samples"; then
50474                                                 makefiles="samples/Makefile.in $makefiles"
50475                 for sample in `echo $SAMPLES_SUBDIRS`; do
50476                     if test -d $srcdir/samples/$sample; then
50477                         makefiles="samples/$sample/Makefile.in $makefiles"
50478                     fi
50479                 done
50480             else
50481                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
50482                 eval "disabled=\$$disabled_var"
50483                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50484                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
50485             fi
50486         else                                     if test ${subdir} = "samples"; then
50487                 makefiles="samples/Makefile.in samples/console/Makefile.in"
50488             elif test ${subdir} = "utils"; then
50489                 makefiles=""
50490                 for util in HelpGen tex2rtf ; do
50491                     if test -d $srcdir/utils/$util ; then
50492                         makefiles="utils/$util/Makefile.in \
50493                                    utils/$util/src/Makefile.in \
50494                                    $makefiles"
50495                     fi
50496                 done
50497             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
50498             fi
50499         fi
50500
50501         for mkin in $makefiles ; do
50502             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50503                       ac_config_files="$ac_config_files $mk"
50504
50505         done
50506     fi
50507 done
50508 fi
50509 cat >confcache <<\_ACEOF
50510 # This file is a shell script that caches the results of configure
50511 # tests run on this system so they can be shared between configure
50512 # scripts and configure runs, see configure's option --config-cache.
50513 # It is not useful on other systems.  If it contains results you don't
50514 # want to keep, you may remove or edit it.
50515 #
50516 # config.status only pays attention to the cache file if you give it
50517 # the --recheck option to rerun configure.
50518 #
50519 # `ac_cv_env_foo' variables (set or unset) will be overridden when
50520 # loading this file, other *unset* `ac_cv_foo' will be assigned the
50521 # following values.
50522
50523 _ACEOF
50524
50525 # The following way of writing the cache mishandles newlines in values,
50526 # but we know of no workaround that is simple, portable, and efficient.
50527 # So, don't put newlines in cache variables' values.
50528 # Ultrix sh set writes to stderr and can't be redirected directly,
50529 # and sets the high bit in the cache file unless we assign to the vars.
50530 {
50531   (set) 2>&1 |
50532     case `(ac_space=' '; set | grep ac_space) 2>&1` in
50533     *ac_space=\ *)
50534       # `set' does not quote correctly, so add quotes (double-quote
50535       # substitution turns \\\\ into \\, and sed turns \\ into \).
50536       sed -n \
50537         "s/'/'\\\\''/g;
50538           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
50539       ;;
50540     *)
50541       # `set' quotes correctly as required by POSIX, so do not add quotes.
50542       sed -n \
50543         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
50544       ;;
50545     esac;
50546 } |
50547   sed '
50548      t clear
50549      : clear
50550      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50551      t end
50552      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50553      : end' >>confcache
50554 if diff $cache_file confcache >/dev/null 2>&1; then :; else
50555   if test -w $cache_file; then
50556     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
50557     cat confcache >$cache_file
50558   else
50559     echo "not updating unwritable cache $cache_file"
50560   fi
50561 fi
50562 rm -f confcache
50563
50564 test "x$prefix" = xNONE && prefix=$ac_default_prefix
50565 # Let make expand exec_prefix.
50566 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50567
50568 # VPATH may cause trouble with some makes, so we remove $(srcdir),
50569 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
50570 # trailing colons and then remove the whole line if VPATH becomes empty
50571 # (actually we leave an empty line to preserve line numbers).
50572 if test "x$srcdir" = x.; then
50573   ac_vpsub='/^[  ]*VPATH[        ]*=/{
50574 s/:*\$(srcdir):*/:/;
50575 s/:*\${srcdir}:*/:/;
50576 s/:*@srcdir@:*/:/;
50577 s/^\([^=]*=[     ]*\):*/\1/;
50578 s/:*$//;
50579 s/^[^=]*=[       ]*$//;
50580 }'
50581 fi
50582
50583 DEFS=-DHAVE_CONFIG_H
50584
50585 ac_libobjs=
50586 ac_ltlibobjs=
50587 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50588   # 1. Remove the extension, and $U if already installed.
50589   ac_i=`echo "$ac_i" |
50590          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
50591   # 2. Add them.
50592   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
50593   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
50594 done
50595 LIBOBJS=$ac_libobjs
50596
50597 LTLIBOBJS=$ac_ltlibobjs
50598
50599
50600
50601 : ${CONFIG_STATUS=./config.status}
50602 ac_clean_files_save=$ac_clean_files
50603 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50604 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50605 echo "$as_me: creating $CONFIG_STATUS" >&6;}
50606 cat >$CONFIG_STATUS <<_ACEOF
50607 #! $SHELL
50608 # Generated by $as_me.
50609 # Run this file to recreate the current configuration.
50610 # Compiler output produced by configure, useful for debugging
50611 # configure, is in config.log if it exists.
50612
50613 debug=false
50614 ac_cs_recheck=false
50615 ac_cs_silent=false
50616 SHELL=\${CONFIG_SHELL-$SHELL}
50617 _ACEOF
50618
50619 cat >>$CONFIG_STATUS <<\_ACEOF
50620 ## --------------------- ##
50621 ## M4sh Initialization.  ##
50622 ## --------------------- ##
50623
50624 # Be Bourne compatible
50625 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50626   emulate sh
50627   NULLCMD=:
50628   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50629   # is contrary to our usage.  Disable this feature.
50630   alias -g '${1+"$@"}'='"$@"'
50631 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
50632   set -o posix
50633 fi
50634 DUALCASE=1; export DUALCASE # for MKS sh
50635
50636 # Support unset when possible.
50637 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
50638   as_unset=unset
50639 else
50640   as_unset=false
50641 fi
50642
50643
50644 # Work around bugs in pre-3.0 UWIN ksh.
50645 $as_unset ENV MAIL MAILPATH
50646 PS1='$ '
50647 PS2='> '
50648 PS4='+ '
50649
50650 # NLS nuisances.
50651 for as_var in \
50652   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50653   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50654   LC_TELEPHONE LC_TIME
50655 do
50656   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
50657     eval $as_var=C; export $as_var
50658   else
50659     $as_unset $as_var
50660   fi
50661 done
50662
50663 # Required to use basename.
50664 if expr a : '\(a\)' >/dev/null 2>&1; then
50665   as_expr=expr
50666 else
50667   as_expr=false
50668 fi
50669
50670 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
50671   as_basename=basename
50672 else
50673   as_basename=false
50674 fi
50675
50676
50677 # Name of the executable.
50678 as_me=`$as_basename "$0" ||
50679 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50680          X"$0" : 'X\(//\)$' \| \
50681          X"$0" : 'X\(/\)$' \| \
50682          .     : '\(.\)' 2>/dev/null ||
50683 echo X/"$0" |
50684     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
50685           /^X\/\(\/\/\)$/{ s//\1/; q; }
50686           /^X\/\(\/\).*/{ s//\1/; q; }
50687           s/.*/./; q'`
50688
50689
50690 # PATH needs CR, and LINENO needs CR and PATH.
50691 # Avoid depending upon Character Ranges.
50692 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50693 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50694 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50695 as_cr_digits='0123456789'
50696 as_cr_alnum=$as_cr_Letters$as_cr_digits
50697
50698 # The user is always right.
50699 if test "${PATH_SEPARATOR+set}" != set; then
50700   echo "#! /bin/sh" >conf$$.sh
50701   echo  "exit 0"   >>conf$$.sh
50702   chmod +x conf$$.sh
50703   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50704     PATH_SEPARATOR=';'
50705   else
50706     PATH_SEPARATOR=:
50707   fi
50708   rm -f conf$$.sh
50709 fi
50710
50711
50712   as_lineno_1=$LINENO
50713   as_lineno_2=$LINENO
50714   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50715   test "x$as_lineno_1" != "x$as_lineno_2" &&
50716   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
50717   # Find who we are.  Look in the path if we contain no path at all
50718   # relative or not.
50719   case $0 in
50720     *[\\/]* ) as_myself=$0 ;;
50721     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50722 for as_dir in $PATH
50723 do
50724   IFS=$as_save_IFS
50725   test -z "$as_dir" && as_dir=.
50726   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50727 done
50728
50729        ;;
50730   esac
50731   # We did not find ourselves, most probably we were run as `sh COMMAND'
50732   # in which case we are not to be found in the path.
50733   if test "x$as_myself" = x; then
50734     as_myself=$0
50735   fi
50736   if test ! -f "$as_myself"; then
50737     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
50738 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
50739    { (exit 1); exit 1; }; }
50740   fi
50741   case $CONFIG_SHELL in
50742   '')
50743     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50744 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
50745 do
50746   IFS=$as_save_IFS
50747   test -z "$as_dir" && as_dir=.
50748   for as_base in sh bash ksh sh5; do
50749          case $as_dir in
50750          /*)
50751            if ("$as_dir/$as_base" -c '
50752   as_lineno_1=$LINENO
50753   as_lineno_2=$LINENO
50754   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50755   test "x$as_lineno_1" != "x$as_lineno_2" &&
50756   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
50757              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
50758              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
50759              CONFIG_SHELL=$as_dir/$as_base
50760              export CONFIG_SHELL
50761              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
50762            fi;;
50763          esac
50764        done
50765 done
50766 ;;
50767   esac
50768
50769   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50770   # uniformly replaced by the line number.  The first 'sed' inserts a
50771   # line-number line before each line; the second 'sed' does the real
50772   # work.  The second script uses 'N' to pair each line-number line
50773   # with the numbered line, and appends trailing '-' during
50774   # substitution so that $LINENO is not a special case at line end.
50775   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50776   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
50777   sed '=' <$as_myself |
50778     sed '
50779       N
50780       s,$,-,
50781       : loop
50782       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
50783       t loop
50784       s,-$,,
50785       s,^['$as_cr_digits']*\n,,
50786     ' >$as_me.lineno &&
50787   chmod +x $as_me.lineno ||
50788     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
50789 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
50790    { (exit 1); exit 1; }; }
50791
50792   # Don't try to exec as it changes $[0], causing all sort of problems
50793   # (the dirname of $[0] is not the place where we might find the
50794   # original and so on.  Autoconf is especially sensible to this).
50795   . ./$as_me.lineno
50796   # Exit status is that of the last command.
50797   exit
50798 }
50799
50800
50801 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
50802   *c*,-n*) ECHO_N= ECHO_C='
50803 ' ECHO_T='      ' ;;
50804   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
50805   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
50806 esac
50807
50808 if expr a : '\(a\)' >/dev/null 2>&1; then
50809   as_expr=expr
50810 else
50811   as_expr=false
50812 fi
50813
50814 rm -f conf$$ conf$$.exe conf$$.file
50815 echo >conf$$.file
50816 if ln -s conf$$.file conf$$ 2>/dev/null; then
50817   # We could just check for DJGPP; but this test a) works b) is more generic
50818   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
50819   if test -f conf$$.exe; then
50820     # Don't use ln at all; we don't have any links
50821     as_ln_s='cp -p'
50822   else
50823     as_ln_s='ln -s'
50824   fi
50825 elif ln conf$$.file conf$$ 2>/dev/null; then
50826   as_ln_s=ln
50827 else
50828   as_ln_s='cp -p'
50829 fi
50830 rm -f conf$$ conf$$.exe conf$$.file
50831
50832 if mkdir -p . 2>/dev/null; then
50833   as_mkdir_p=:
50834 else
50835   test -d ./-p && rmdir ./-p
50836   as_mkdir_p=false
50837 fi
50838
50839 as_executable_p="test -f"
50840
50841 # Sed expression to map a string onto a valid CPP name.
50842 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
50843
50844 # Sed expression to map a string onto a valid variable name.
50845 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
50846
50847
50848 # IFS
50849 # We need space, tab and new line, in precisely that order.
50850 as_nl='
50851 '
50852 IFS="   $as_nl"
50853
50854 # CDPATH.
50855 $as_unset CDPATH
50856
50857 exec 6>&1
50858
50859 # Open the log real soon, to keep \$[0] and so on meaningful, and to
50860 # report actual input values of CONFIG_FILES etc. instead of their
50861 # values after options handling.  Logging --version etc. is OK.
50862 exec 5>>config.log
50863 {
50864   echo
50865   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50866 ## Running $as_me. ##
50867 _ASBOX
50868 } >&5
50869 cat >&5 <<_CSEOF
50870
50871 This file was extended by wxWidgets $as_me 2.8.0, which was
50872 generated by GNU Autoconf 2.59.  Invocation command line was
50873
50874   CONFIG_FILES    = $CONFIG_FILES
50875   CONFIG_HEADERS  = $CONFIG_HEADERS
50876   CONFIG_LINKS    = $CONFIG_LINKS
50877   CONFIG_COMMANDS = $CONFIG_COMMANDS
50878   $ $0 $@
50879
50880 _CSEOF
50881 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
50882 echo >&5
50883 _ACEOF
50884
50885 # Files that config.status was made for.
50886 if test -n "$ac_config_files"; then
50887   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
50888 fi
50889
50890 if test -n "$ac_config_headers"; then
50891   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
50892 fi
50893
50894 if test -n "$ac_config_links"; then
50895   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
50896 fi
50897
50898 if test -n "$ac_config_commands"; then
50899   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
50900 fi
50901
50902 cat >>$CONFIG_STATUS <<\_ACEOF
50903
50904 ac_cs_usage="\
50905 \`$as_me' instantiates files from templates according to the
50906 current configuration.
50907
50908 Usage: $0 [OPTIONS] [FILE]...
50909
50910   -h, --help       print this help, then exit
50911   -V, --version    print version number, then exit
50912   -q, --quiet      do not print progress messages
50913   -d, --debug      don't remove temporary files
50914       --recheck    update $as_me by reconfiguring in the same conditions
50915   --file=FILE[:TEMPLATE]
50916                    instantiate the configuration file FILE
50917   --header=FILE[:TEMPLATE]
50918                    instantiate the configuration header FILE
50919
50920 Configuration files:
50921 $config_files
50922
50923 Configuration headers:
50924 $config_headers
50925
50926 Configuration commands:
50927 $config_commands
50928
50929 Report bugs to <bug-autoconf@gnu.org>."
50930 _ACEOF
50931
50932 cat >>$CONFIG_STATUS <<_ACEOF
50933 ac_cs_version="\\
50934 wxWidgets config.status 2.8.0
50935 configured by $0, generated by GNU Autoconf 2.59,
50936   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
50937
50938 Copyright (C) 2003 Free Software Foundation, Inc.
50939 This config.status script is free software; the Free Software Foundation
50940 gives unlimited permission to copy, distribute and modify it."
50941 srcdir=$srcdir
50942 INSTALL="$INSTALL"
50943 _ACEOF
50944
50945 cat >>$CONFIG_STATUS <<\_ACEOF
50946 # If no file are specified by the user, then we need to provide default
50947 # value.  By we need to know if files were specified by the user.
50948 ac_need_defaults=:
50949 while test $# != 0
50950 do
50951   case $1 in
50952   --*=*)
50953     ac_option=`expr "x$1" : 'x\([^=]*\)='`
50954     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
50955     ac_shift=:
50956     ;;
50957   -*)
50958     ac_option=$1
50959     ac_optarg=$2
50960     ac_shift=shift
50961     ;;
50962   *) # This is not an option, so the user has probably given explicit
50963      # arguments.
50964      ac_option=$1
50965      ac_need_defaults=false;;
50966   esac
50967
50968   case $ac_option in
50969   # Handling of the options.
50970 _ACEOF
50971 cat >>$CONFIG_STATUS <<\_ACEOF
50972   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50973     ac_cs_recheck=: ;;
50974   --version | --vers* | -V )
50975     echo "$ac_cs_version"; exit 0 ;;
50976   --he | --h)
50977     # Conflict between --help and --header
50978     { { echo "$as_me:$LINENO: error: ambiguous option: $1
50979 Try \`$0 --help' for more information." >&5
50980 echo "$as_me: error: ambiguous option: $1
50981 Try \`$0 --help' for more information." >&2;}
50982    { (exit 1); exit 1; }; };;
50983   --help | --hel | -h )
50984     echo "$ac_cs_usage"; exit 0 ;;
50985   --debug | --d* | -d )
50986     debug=: ;;
50987   --file | --fil | --fi | --f )
50988     $ac_shift
50989     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50990     ac_need_defaults=false;;
50991   --header | --heade | --head | --hea )
50992     $ac_shift
50993     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50994     ac_need_defaults=false;;
50995   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50996   | -silent | --silent | --silen | --sile | --sil | --si | --s)
50997     ac_cs_silent=: ;;
50998
50999   # This is an error.
51000   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51001 Try \`$0 --help' for more information." >&5
51002 echo "$as_me: error: unrecognized option: $1
51003 Try \`$0 --help' for more information." >&2;}
51004    { (exit 1); exit 1; }; } ;;
51005
51006   *) ac_config_targets="$ac_config_targets $1" ;;
51007
51008   esac
51009   shift
51010 done
51011
51012 ac_configure_extra_args=
51013
51014 if $ac_cs_silent; then
51015   exec 6>/dev/null
51016   ac_configure_extra_args="$ac_configure_extra_args --silent"
51017 fi
51018
51019 _ACEOF
51020 cat >>$CONFIG_STATUS <<_ACEOF
51021 if \$ac_cs_recheck; then
51022   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51023   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51024 fi
51025
51026 _ACEOF
51027
51028 cat >>$CONFIG_STATUS <<_ACEOF
51029 #
51030 # INIT-COMMANDS section.
51031 #
51032
51033
51034             CPP="$CPP"
51035             infile="$srcdir/include/wx/msw/genrcdefs.h"
51036             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51037
51038
51039  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51040  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51041  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51042                      LN_S="${LN_S}"
51043
51044
51045 _ACEOF
51046
51047
51048
51049 cat >>$CONFIG_STATUS <<\_ACEOF
51050 for ac_config_target in $ac_config_targets
51051 do
51052   case "$ac_config_target" in
51053   # Handling of arguments.
51054   "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51055   "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
51056   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
51057   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51058   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
51059   "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
51060   "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51061   "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
51062   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51063 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51064    { (exit 1); exit 1; }; };;
51065   esac
51066 done
51067
51068 # If the user did not use the arguments to specify the items to instantiate,
51069 # then the envvar interface is used.  Set only those that are not.
51070 # We use the long form for the default assignment because of an extremely
51071 # bizarre bug on SunOS 4.1.3.
51072 if $ac_need_defaults; then
51073   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51074   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51075   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51076 fi
51077
51078 # Have a temporary directory for convenience.  Make it in the build tree
51079 # simply because there is no reason to put it here, and in addition,
51080 # creating and moving files from /tmp can sometimes cause problems.
51081 # Create a temporary directory, and hook for its removal unless debugging.
51082 $debug ||
51083 {
51084   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51085   trap '{ (exit 1); exit 1; }' 1 2 13 15
51086 }
51087
51088 # Create a (secure) tmp directory for tmp files.
51089
51090 {
51091   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51092   test -n "$tmp" && test -d "$tmp"
51093 }  ||
51094 {
51095   tmp=./confstat$$-$RANDOM
51096   (umask 077 && mkdir $tmp)
51097 } ||
51098 {
51099    echo "$me: cannot create a temporary directory in ." >&2
51100    { (exit 1); exit 1; }
51101 }
51102
51103 _ACEOF
51104
51105 cat >>$CONFIG_STATUS <<_ACEOF
51106
51107 #
51108 # CONFIG_FILES section.
51109 #
51110
51111 # No need to generate the scripts if there are no CONFIG_FILES.
51112 # This happens for instance when ./config.status config.h
51113 if test -n "\$CONFIG_FILES"; then
51114   # Protect against being on the right side of a sed subst in config.status.
51115   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51116    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51117 s,@SHELL@,$SHELL,;t t
51118 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51119 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51120 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51121 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51122 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51123 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51124 s,@exec_prefix@,$exec_prefix,;t t
51125 s,@prefix@,$prefix,;t t
51126 s,@program_transform_name@,$program_transform_name,;t t
51127 s,@bindir@,$bindir,;t t
51128 s,@sbindir@,$sbindir,;t t
51129 s,@libexecdir@,$libexecdir,;t t
51130 s,@datadir@,$datadir,;t t
51131 s,@sysconfdir@,$sysconfdir,;t t
51132 s,@sharedstatedir@,$sharedstatedir,;t t
51133 s,@localstatedir@,$localstatedir,;t t
51134 s,@libdir@,$libdir,;t t
51135 s,@includedir@,$includedir,;t t
51136 s,@oldincludedir@,$oldincludedir,;t t
51137 s,@infodir@,$infodir,;t t
51138 s,@mandir@,$mandir,;t t
51139 s,@build_alias@,$build_alias,;t t
51140 s,@host_alias@,$host_alias,;t t
51141 s,@target_alias@,$target_alias,;t t
51142 s,@DEFS@,$DEFS,;t t
51143 s,@ECHO_C@,$ECHO_C,;t t
51144 s,@ECHO_N@,$ECHO_N,;t t
51145 s,@ECHO_T@,$ECHO_T,;t t
51146 s,@LIBS@,$LIBS,;t t
51147 s,@build@,$build,;t t
51148 s,@build_cpu@,$build_cpu,;t t
51149 s,@build_vendor@,$build_vendor,;t t
51150 s,@build_os@,$build_os,;t t
51151 s,@host@,$host,;t t
51152 s,@host_cpu@,$host_cpu,;t t
51153 s,@host_vendor@,$host_vendor,;t t
51154 s,@host_os@,$host_os,;t t
51155 s,@target@,$target,;t t
51156 s,@target_cpu@,$target_cpu,;t t
51157 s,@target_vendor@,$target_vendor,;t t
51158 s,@target_os@,$target_os,;t t
51159 s,@wx_top_builddir@,$wx_top_builddir,;t t
51160 s,@CC@,$CC,;t t
51161 s,@CFLAGS@,$CFLAGS,;t t
51162 s,@LDFLAGS@,$LDFLAGS,;t t
51163 s,@CPPFLAGS@,$CPPFLAGS,;t t
51164 s,@ac_ct_CC@,$ac_ct_CC,;t t
51165 s,@EXEEXT@,$EXEEXT,;t t
51166 s,@OBJEXT@,$OBJEXT,;t t
51167 s,@CPP@,$CPP,;t t
51168 s,@EGREP@,$EGREP,;t t
51169 s,@CXX@,$CXX,;t t
51170 s,@CXXFLAGS@,$CXXFLAGS,;t t
51171 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51172 s,@RANLIB@,$RANLIB,;t t
51173 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51174 s,@AR@,$AR,;t t
51175 s,@ac_ct_AR@,$ac_ct_AR,;t t
51176 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51177 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51178 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51179 s,@STRIP@,$STRIP,;t t
51180 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
51181 s,@WINDRES@,$WINDRES,;t t
51182 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
51183 s,@DLLTOOL@,$DLLTOOL,;t t
51184 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
51185 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
51186 s,@LN_S@,$LN_S,;t t
51187 s,@CXXCPP@,$CXXCPP,;t t
51188 s,@subdirs@,$subdirs,;t t
51189 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
51190 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
51191 s,@GTK_LIBS@,$GTK_LIBS,;t t
51192 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
51193 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
51194 s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
51195 s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
51196 s,@X_CFLAGS@,$X_CFLAGS,;t t
51197 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
51198 s,@X_LIBS@,$X_LIBS,;t t
51199 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
51200 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
51201 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
51202 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
51203 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
51204 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
51205 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
51206 s,@REZ@,$REZ,;t t
51207 s,@DEREZ@,$DEREZ,;t t
51208 s,@SETFILE@,$SETFILE,;t t
51209 s,@LIBICONV@,$LIBICONV,;t t
51210 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
51211 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
51212 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
51213 s,@SDL_LIBS@,$SDL_LIBS,;t t
51214 s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
51215 s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
51216 s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
51217 s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
51218 s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
51219 s,@HILDON_LIBS@,$HILDON_LIBS,;t t
51220 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
51221 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
51222 s,@GST_CFLAGS@,$GST_CFLAGS,;t t
51223 s,@GST_LIBS@,$GST_LIBS,;t t
51224 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
51225 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
51226 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
51227 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
51228 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
51229 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
51230 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
51231 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
51232 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
51233 s,@VENDOR@,$VENDOR,;t t
51234 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
51235 s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
51236 s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
51237 s,@WXUNIV@,$WXUNIV,;t t
51238 s,@MONOLITHIC@,$MONOLITHIC,;t t
51239 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
51240 s,@EXTRALIBS@,$EXTRALIBS,;t t
51241 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
51242 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
51243 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
51244 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
51245 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
51246 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
51247 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
51248 s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
51249 s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
51250 s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
51251 s,@UNICODE@,$UNICODE,;t t
51252 s,@BUILD@,$BUILD,;t t
51253 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
51254 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
51255 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
51256 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
51257 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
51258 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
51259 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
51260 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
51261 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
51262 s,@SET_MAKE@,$SET_MAKE,;t t
51263 s,@MAKE_SET@,$MAKE_SET,;t t
51264 s,@AROPTIONS@,$AROPTIONS,;t t
51265 s,@NM@,$NM,;t t
51266 s,@ac_ct_NM@,$ac_ct_NM,;t t
51267 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
51268 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
51269 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
51270 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
51271 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
51272 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
51273 s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
51274 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
51275 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
51276 s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
51277 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
51278 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
51279 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
51280 s,@LIBPREFIX@,$LIBPREFIX,;t t
51281 s,@LIBEXT@,$LIBEXT,;t t
51282 s,@DLLPREFIX@,$DLLPREFIX,;t t
51283 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
51284 s,@dlldir@,$dlldir,;t t
51285 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
51286 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
51287 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
51288 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
51289 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
51290 s,@PIC_FLAG@,$PIC_FLAG,;t t
51291 s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
51292 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
51293 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
51294 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
51295 s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
51296 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
51297 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
51298 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
51299 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
51300 s,@BK_DEPS@,$BK_DEPS,;t t
51301 s,@GCC_PCH@,$GCC_PCH,;t t
51302 s,@ICC_PCH@,$ICC_PCH,;t t
51303 s,@BK_MAKE_PCH@,$BK_MAKE_PCH,;t t
51304 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
51305 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
51306 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
51307 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
51308 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
51309 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
51310 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
51311 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
51312 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
51313 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
51314 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
51315 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
51316 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
51317 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
51318 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
51319 s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
51320 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
51321 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
51322 s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
51323 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
51324 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
51325 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1,;t t
51326 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
51327 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1,;t t
51328 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
51329 s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
51330 s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
51331 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
51332 s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
51333 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
51334 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
51335 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1,;t t
51336 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
51337 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1,;t t
51338 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
51339 s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
51340 s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
51341 s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
51342 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
51343 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
51344 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
51345 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
51346 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
51347 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
51348 s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
51349 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
51350 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
51351 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
51352 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
51353 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
51354 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
51355 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
51356 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
51357 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
51358 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
51359 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
51360 s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
51361 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
51362 s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
51363 s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
51364 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
51365 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
51366 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
51367 s,@COND_PLATFORM_UNIX_1_TOOLKIT_MGL@,$COND_PLATFORM_UNIX_1_TOOLKIT_MGL,;t t
51368 s,@COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1@,$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1,;t t
51369 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
51370 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
51371 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
51372 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
51373 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
51374 s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
51375 s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
51376 s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
51377 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
51378 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51379 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51380 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
51381 s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
51382 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
51383 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
51384 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
51385 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
51386 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
51387 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
51388 s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
51389 s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
51390 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
51391 s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
51392 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
51393 s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
51394 s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
51395 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
51396 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
51397 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
51398 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
51399 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
51400 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
51401 s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
51402 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
51403 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
51404 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
51405 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
51406 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
51407 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
51408 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
51409 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
51410 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
51411 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
51412 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
51413 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
51414 s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
51415 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
51416 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
51417 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
51418 s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
51419 s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
51420 s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
51421 s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
51422 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
51423 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
51424 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
51425 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
51426 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
51427 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
51428 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
51429 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
51430 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
51431 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51432 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51433 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
51434 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
51435 s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
51436 s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
51437 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
51438 s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
51439 s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
51440 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
51441 s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
51442 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
51443 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
51444 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
51445 s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
51446 s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
51447 s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
51448 s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
51449 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
51450 s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
51451 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
51452 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
51453 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
51454 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
51455 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
51456 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
51457 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
51458 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
51459 s,@SHARED@,$SHARED,;t t
51460 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
51461 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
51462 s,@USE_GUI@,$USE_GUI,;t t
51463 s,@AFMINSTALL@,$AFMINSTALL,;t t
51464 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
51465 s,@TOOLKIT@,$TOOLKIT,;t t
51466 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
51467 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
51468 s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
51469 s,@cross_compiling@,$cross_compiling,;t t
51470 s,@WIDGET_SET@,$WIDGET_SET,;t t
51471 s,@WX_RELEASE@,$WX_RELEASE,;t t
51472 s,@WX_VERSION@,$WX_VERSION,;t t
51473 s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
51474 s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
51475 s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
51476 s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
51477 s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
51478 s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
51479 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
51480 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
51481 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
51482 s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
51483 s,@EXE_LINKER@,$EXE_LINKER,;t t
51484 s,@GUIDIST@,$GUIDIST,;t t
51485 s,@DISTDIR@,$DISTDIR,;t t
51486 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
51487 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
51488 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
51489 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
51490 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
51491 s,@RESCOMP@,$RESCOMP,;t t
51492 s,@RESFLAGS@,$RESFLAGS,;t t
51493 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
51494 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
51495 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
51496 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
51497 s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
51498 s,@MACSETFILE@,$MACSETFILE,;t t
51499 s,@GCC@,$GCC,;t t
51500 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
51501 s,@LIBOBJS@,$LIBOBJS,;t t
51502 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51503 CEOF
51504
51505 _ACEOF
51506
51507   cat >>$CONFIG_STATUS <<\_ACEOF
51508   # Split the substitutions into bite-sized pieces for seds with
51509   # small command number limits, like on Digital OSF/1 and HP-UX.
51510   ac_max_sed_lines=48
51511   ac_sed_frag=1 # Number of current file.
51512   ac_beg=1 # First line for current file.
51513   ac_end=$ac_max_sed_lines # Line after last line for current file.
51514   ac_more_lines=:
51515   ac_sed_cmds=
51516   while $ac_more_lines; do
51517     if test $ac_beg -gt 1; then
51518       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51519     else
51520       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51521     fi
51522     if test ! -s $tmp/subs.frag; then
51523       ac_more_lines=false
51524     else
51525       # The purpose of the label and of the branching condition is to
51526       # speed up the sed processing (if there are no `@' at all, there
51527       # is no need to browse any of the substitutions).
51528       # These are the two extra sed commands mentioned above.
51529       (echo ':t
51530   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
51531       if test -z "$ac_sed_cmds"; then
51532         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
51533       else
51534         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
51535       fi
51536       ac_sed_frag=`expr $ac_sed_frag + 1`
51537       ac_beg=$ac_end
51538       ac_end=`expr $ac_end + $ac_max_sed_lines`
51539     fi
51540   done
51541   if test -z "$ac_sed_cmds"; then
51542     ac_sed_cmds=cat
51543   fi
51544 fi # test -n "$CONFIG_FILES"
51545
51546 _ACEOF
51547 cat >>$CONFIG_STATUS <<\_ACEOF
51548 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
51549   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51550   case $ac_file in
51551   - | *:- | *:-:* ) # input from stdin
51552         cat >$tmp/stdin
51553         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51554         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51555   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51556         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51557   * )   ac_file_in=$ac_file.in ;;
51558   esac
51559
51560   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
51561   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51562 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51563          X"$ac_file" : 'X\(//\)[^/]' \| \
51564          X"$ac_file" : 'X\(//\)$' \| \
51565          X"$ac_file" : 'X\(/\)' \| \
51566          .     : '\(.\)' 2>/dev/null ||
51567 echo X"$ac_file" |
51568     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51569           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51570           /^X\(\/\/\)$/{ s//\1/; q; }
51571           /^X\(\/\).*/{ s//\1/; q; }
51572           s/.*/./; q'`
51573   { if $as_mkdir_p; then
51574     mkdir -p "$ac_dir"
51575   else
51576     as_dir="$ac_dir"
51577     as_dirs=
51578     while test ! -d "$as_dir"; do
51579       as_dirs="$as_dir $as_dirs"
51580       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51581 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51582          X"$as_dir" : 'X\(//\)[^/]' \| \
51583          X"$as_dir" : 'X\(//\)$' \| \
51584          X"$as_dir" : 'X\(/\)' \| \
51585          .     : '\(.\)' 2>/dev/null ||
51586 echo X"$as_dir" |
51587     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51588           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51589           /^X\(\/\/\)$/{ s//\1/; q; }
51590           /^X\(\/\).*/{ s//\1/; q; }
51591           s/.*/./; q'`
51592     done
51593     test ! -n "$as_dirs" || mkdir $as_dirs
51594   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51595 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51596    { (exit 1); exit 1; }; }; }
51597
51598   ac_builddir=.
51599
51600 if test "$ac_dir" != .; then
51601   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51602   # A "../" for each directory in $ac_dir_suffix.
51603   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51604 else
51605   ac_dir_suffix= ac_top_builddir=
51606 fi
51607
51608 case $srcdir in
51609   .)  # No --srcdir option.  We are building in place.
51610     ac_srcdir=.
51611     if test -z "$ac_top_builddir"; then
51612        ac_top_srcdir=.
51613     else
51614        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51615     fi ;;
51616   [\\/]* | ?:[\\/]* )  # Absolute path.
51617     ac_srcdir=$srcdir$ac_dir_suffix;
51618     ac_top_srcdir=$srcdir ;;
51619   *) # Relative path.
51620     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51621     ac_top_srcdir=$ac_top_builddir$srcdir ;;
51622 esac
51623
51624 # Do not use `cd foo && pwd` to compute absolute paths, because
51625 # the directories may not exist.
51626 case `pwd` in
51627 .) ac_abs_builddir="$ac_dir";;
51628 *)
51629   case "$ac_dir" in
51630   .) ac_abs_builddir=`pwd`;;
51631   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51632   *) ac_abs_builddir=`pwd`/"$ac_dir";;
51633   esac;;
51634 esac
51635 case $ac_abs_builddir in
51636 .) ac_abs_top_builddir=${ac_top_builddir}.;;
51637 *)
51638   case ${ac_top_builddir}. in
51639   .) ac_abs_top_builddir=$ac_abs_builddir;;
51640   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51641   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51642   esac;;
51643 esac
51644 case $ac_abs_builddir in
51645 .) ac_abs_srcdir=$ac_srcdir;;
51646 *)
51647   case $ac_srcdir in
51648   .) ac_abs_srcdir=$ac_abs_builddir;;
51649   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51650   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51651   esac;;
51652 esac
51653 case $ac_abs_builddir in
51654 .) ac_abs_top_srcdir=$ac_top_srcdir;;
51655 *)
51656   case $ac_top_srcdir in
51657   .) ac_abs_top_srcdir=$ac_abs_builddir;;
51658   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51659   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51660   esac;;
51661 esac
51662
51663
51664   case $INSTALL in
51665   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51666   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
51667   esac
51668
51669   # Let's still pretend it is `configure' which instantiates (i.e., don't
51670   # use $as_me), people would be surprised to read:
51671   #    /* config.h.  Generated by config.status.  */
51672   if test x"$ac_file" = x-; then
51673     configure_input=
51674   else
51675     configure_input="$ac_file.  "
51676   fi
51677   configure_input=$configure_input"Generated from `echo $ac_file_in |
51678                                      sed 's,.*/,,'` by configure."
51679
51680   # First look for the input files in the build tree, otherwise in the
51681   # src tree.
51682   ac_file_inputs=`IFS=:
51683     for f in $ac_file_in; do
51684       case $f in
51685       -) echo $tmp/stdin ;;
51686       [\\/$]*)
51687          # Absolute (can't be DOS-style, as IFS=:)
51688          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51689 echo "$as_me: error: cannot find input file: $f" >&2;}
51690    { (exit 1); exit 1; }; }
51691          echo "$f";;
51692       *) # Relative
51693          if test -f "$f"; then
51694            # Build tree
51695            echo "$f"
51696          elif test -f "$srcdir/$f"; then
51697            # Source tree
51698            echo "$srcdir/$f"
51699          else
51700            # /dev/null tree
51701            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51702 echo "$as_me: error: cannot find input file: $f" >&2;}
51703    { (exit 1); exit 1; }; }
51704          fi;;
51705       esac
51706     done` || { (exit 1); exit 1; }
51707
51708   if test x"$ac_file" != x-; then
51709     { echo "$as_me:$LINENO: creating $ac_file" >&5
51710 echo "$as_me: creating $ac_file" >&6;}
51711     rm -f "$ac_file"
51712   fi
51713 _ACEOF
51714 cat >>$CONFIG_STATUS <<_ACEOF
51715   sed "$ac_vpsub
51716 $extrasub
51717 _ACEOF
51718 cat >>$CONFIG_STATUS <<\_ACEOF
51719 :t
51720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51721 s,@configure_input@,$configure_input,;t t
51722 s,@srcdir@,$ac_srcdir,;t t
51723 s,@abs_srcdir@,$ac_abs_srcdir,;t t
51724 s,@top_srcdir@,$ac_top_srcdir,;t t
51725 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
51726 s,@builddir@,$ac_builddir,;t t
51727 s,@abs_builddir@,$ac_abs_builddir,;t t
51728 s,@top_builddir@,$ac_top_builddir,;t t
51729 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
51730 s,@INSTALL@,$ac_INSTALL,;t t
51731 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
51732   rm -f $tmp/stdin
51733   if test x"$ac_file" != x-; then
51734     mv $tmp/out $ac_file
51735   else
51736     cat $tmp/out
51737     rm -f $tmp/out
51738   fi
51739
51740   # Run the commands associated with the file.
51741   case $ac_file in
51742     lib/wx/config/${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
51743     lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
51744   esac
51745 done
51746 _ACEOF
51747 cat >>$CONFIG_STATUS <<\_ACEOF
51748
51749 #
51750 # CONFIG_HEADER section.
51751 #
51752
51753 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
51754 # NAME is the cpp macro being defined and VALUE is the value it is being given.
51755 #
51756 # ac_d sets the value in "#define NAME VALUE" lines.
51757 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
51758 ac_dB='[         ].*$,\1#\2'
51759 ac_dC=' '
51760 ac_dD=',;t'
51761 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
51762 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
51763 ac_uB='$,\1#\2define\3'
51764 ac_uC=' '
51765 ac_uD=',;t'
51766
51767 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
51768   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51769   case $ac_file in
51770   - | *:- | *:-:* ) # input from stdin
51771         cat >$tmp/stdin
51772         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51773         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51774   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51775         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51776   * )   ac_file_in=$ac_file.in ;;
51777   esac
51778
51779   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
51780 echo "$as_me: creating $ac_file" >&6;}
51781
51782   # First look for the input files in the build tree, otherwise in the
51783   # src tree.
51784   ac_file_inputs=`IFS=:
51785     for f in $ac_file_in; do
51786       case $f in
51787       -) echo $tmp/stdin ;;
51788       [\\/$]*)
51789          # Absolute (can't be DOS-style, as IFS=:)
51790          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51791 echo "$as_me: error: cannot find input file: $f" >&2;}
51792    { (exit 1); exit 1; }; }
51793          # Do quote $f, to prevent DOS paths from being IFS'd.
51794          echo "$f";;
51795       *) # Relative
51796          if test -f "$f"; then
51797            # Build tree
51798            echo "$f"
51799          elif test -f "$srcdir/$f"; then
51800            # Source tree
51801            echo "$srcdir/$f"
51802          else
51803            # /dev/null tree
51804            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51805 echo "$as_me: error: cannot find input file: $f" >&2;}
51806    { (exit 1); exit 1; }; }
51807          fi;;
51808       esac
51809     done` || { (exit 1); exit 1; }
51810   # Remove the trailing spaces.
51811   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
51812
51813 _ACEOF
51814
51815 # Transform confdefs.h into two sed scripts, `conftest.defines' and
51816 # `conftest.undefs', that substitutes the proper values into
51817 # config.h.in to produce config.h.  The first handles `#define'
51818 # templates, and the second `#undef' templates.
51819 # And first: Protect against being on the right side of a sed subst in
51820 # config.status.  Protect against being in an unquoted here document
51821 # in config.status.
51822 rm -f conftest.defines conftest.undefs
51823 # Using a here document instead of a string reduces the quoting nightmare.
51824 # Putting comments in sed scripts is not portable.
51825 #
51826 # `end' is used to avoid that the second main sed command (meant for
51827 # 0-ary CPP macros) applies to n-ary macro definitions.
51828 # See the Autoconf documentation for `clear'.
51829 cat >confdef2sed.sed <<\_ACEOF
51830 s/[\\&,]/\\&/g
51831 s,[\\$`],\\&,g
51832 t clear
51833 : clear
51834 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
51835 t end
51836 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
51837 : end
51838 _ACEOF
51839 # If some macros were called several times there might be several times
51840 # the same #defines, which is useless.  Nevertheless, we may not want to
51841 # sort them, since we want the *last* AC-DEFINE to be honored.
51842 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
51843 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
51844 rm -f confdef2sed.sed
51845
51846 # This sed command replaces #undef with comments.  This is necessary, for
51847 # example, in the case of _POSIX_SOURCE, which is predefined and required
51848 # on some systems where configure will not decide to define it.
51849 cat >>conftest.undefs <<\_ACEOF
51850 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
51851 _ACEOF
51852
51853 # Break up conftest.defines because some shells have a limit on the size
51854 # of here documents, and old seds have small limits too (100 cmds).
51855 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
51856 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
51857 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
51858 echo '  :' >>$CONFIG_STATUS
51859 rm -f conftest.tail
51860 while grep . conftest.defines >/dev/null
51861 do
51862   # Write a limited-size here document to $tmp/defines.sed.
51863   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
51864   # Speed up: don't consider the non `#define' lines.
51865   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
51866   # Work around the forget-to-reset-the-flag bug.
51867   echo 't clr' >>$CONFIG_STATUS
51868   echo ': clr' >>$CONFIG_STATUS
51869   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
51870   echo 'CEOF
51871   sed -f $tmp/defines.sed $tmp/in >$tmp/out
51872   rm -f $tmp/in
51873   mv $tmp/out $tmp/in
51874 ' >>$CONFIG_STATUS
51875   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
51876   rm -f conftest.defines
51877   mv conftest.tail conftest.defines
51878 done
51879 rm -f conftest.defines
51880 echo '  fi # grep' >>$CONFIG_STATUS
51881 echo >>$CONFIG_STATUS
51882
51883 # Break up conftest.undefs because some shells have a limit on the size
51884 # of here documents, and old seds have small limits too (100 cmds).
51885 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
51886 rm -f conftest.tail
51887 while grep . conftest.undefs >/dev/null
51888 do
51889   # Write a limited-size here document to $tmp/undefs.sed.
51890   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
51891   # Speed up: don't consider the non `#undef'
51892   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
51893   # Work around the forget-to-reset-the-flag bug.
51894   echo 't clr' >>$CONFIG_STATUS
51895   echo ': clr' >>$CONFIG_STATUS
51896   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
51897   echo 'CEOF
51898   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
51899   rm -f $tmp/in
51900   mv $tmp/out $tmp/in
51901 ' >>$CONFIG_STATUS
51902   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
51903   rm -f conftest.undefs
51904   mv conftest.tail conftest.undefs
51905 done
51906 rm -f conftest.undefs
51907
51908 cat >>$CONFIG_STATUS <<\_ACEOF
51909   # Let's still pretend it is `configure' which instantiates (i.e., don't
51910   # use $as_me), people would be surprised to read:
51911   #    /* config.h.  Generated by config.status.  */
51912   if test x"$ac_file" = x-; then
51913     echo "/* Generated by configure.  */" >$tmp/config.h
51914   else
51915     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
51916   fi
51917   cat $tmp/in >>$tmp/config.h
51918   rm -f $tmp/in
51919   if test x"$ac_file" != x-; then
51920     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
51921       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51922 echo "$as_me: $ac_file is unchanged" >&6;}
51923     else
51924       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51925 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51926          X"$ac_file" : 'X\(//\)[^/]' \| \
51927          X"$ac_file" : 'X\(//\)$' \| \
51928          X"$ac_file" : 'X\(/\)' \| \
51929          .     : '\(.\)' 2>/dev/null ||
51930 echo X"$ac_file" |
51931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51932           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51933           /^X\(\/\/\)$/{ s//\1/; q; }
51934           /^X\(\/\).*/{ s//\1/; q; }
51935           s/.*/./; q'`
51936       { if $as_mkdir_p; then
51937     mkdir -p "$ac_dir"
51938   else
51939     as_dir="$ac_dir"
51940     as_dirs=
51941     while test ! -d "$as_dir"; do
51942       as_dirs="$as_dir $as_dirs"
51943       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51945          X"$as_dir" : 'X\(//\)[^/]' \| \
51946          X"$as_dir" : 'X\(//\)$' \| \
51947          X"$as_dir" : 'X\(/\)' \| \
51948          .     : '\(.\)' 2>/dev/null ||
51949 echo X"$as_dir" |
51950     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51951           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51952           /^X\(\/\/\)$/{ s//\1/; q; }
51953           /^X\(\/\).*/{ s//\1/; q; }
51954           s/.*/./; q'`
51955     done
51956     test ! -n "$as_dirs" || mkdir $as_dirs
51957   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51958 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51959    { (exit 1); exit 1; }; }; }
51960
51961       rm -f $ac_file
51962       mv $tmp/config.h $ac_file
51963     fi
51964   else
51965     cat $tmp/config.h
51966     rm -f $tmp/config.h
51967   fi
51968 done
51969 _ACEOF
51970 cat >>$CONFIG_STATUS <<\_ACEOF
51971
51972 #
51973 # CONFIG_COMMANDS section.
51974 #
51975 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
51976   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
51977   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
51978   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
51979 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51980          X"$ac_dest" : 'X\(//\)[^/]' \| \
51981          X"$ac_dest" : 'X\(//\)$' \| \
51982          X"$ac_dest" : 'X\(/\)' \| \
51983          .     : '\(.\)' 2>/dev/null ||
51984 echo X"$ac_dest" |
51985     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51986           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51987           /^X\(\/\/\)$/{ s//\1/; q; }
51988           /^X\(\/\).*/{ s//\1/; q; }
51989           s/.*/./; q'`
51990   { if $as_mkdir_p; then
51991     mkdir -p "$ac_dir"
51992   else
51993     as_dir="$ac_dir"
51994     as_dirs=
51995     while test ! -d "$as_dir"; do
51996       as_dirs="$as_dir $as_dirs"
51997       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51998 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51999          X"$as_dir" : 'X\(//\)[^/]' \| \
52000          X"$as_dir" : 'X\(//\)$' \| \
52001          X"$as_dir" : 'X\(/\)' \| \
52002          .     : '\(.\)' 2>/dev/null ||
52003 echo X"$as_dir" |
52004     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52005           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52006           /^X\(\/\/\)$/{ s//\1/; q; }
52007           /^X\(\/\).*/{ s//\1/; q; }
52008           s/.*/./; q'`
52009     done
52010     test ! -n "$as_dirs" || mkdir $as_dirs
52011   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52012 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52013    { (exit 1); exit 1; }; }; }
52014
52015   ac_builddir=.
52016
52017 if test "$ac_dir" != .; then
52018   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52019   # A "../" for each directory in $ac_dir_suffix.
52020   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52021 else
52022   ac_dir_suffix= ac_top_builddir=
52023 fi
52024
52025 case $srcdir in
52026   .)  # No --srcdir option.  We are building in place.
52027     ac_srcdir=.
52028     if test -z "$ac_top_builddir"; then
52029        ac_top_srcdir=.
52030     else
52031        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52032     fi ;;
52033   [\\/]* | ?:[\\/]* )  # Absolute path.
52034     ac_srcdir=$srcdir$ac_dir_suffix;
52035     ac_top_srcdir=$srcdir ;;
52036   *) # Relative path.
52037     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52038     ac_top_srcdir=$ac_top_builddir$srcdir ;;
52039 esac
52040
52041 # Do not use `cd foo && pwd` to compute absolute paths, because
52042 # the directories may not exist.
52043 case `pwd` in
52044 .) ac_abs_builddir="$ac_dir";;
52045 *)
52046   case "$ac_dir" in
52047   .) ac_abs_builddir=`pwd`;;
52048   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52049   *) ac_abs_builddir=`pwd`/"$ac_dir";;
52050   esac;;
52051 esac
52052 case $ac_abs_builddir in
52053 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52054 *)
52055   case ${ac_top_builddir}. in
52056   .) ac_abs_top_builddir=$ac_abs_builddir;;
52057   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52058   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52059   esac;;
52060 esac
52061 case $ac_abs_builddir in
52062 .) ac_abs_srcdir=$ac_srcdir;;
52063 *)
52064   case $ac_srcdir in
52065   .) ac_abs_srcdir=$ac_abs_builddir;;
52066   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52067   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52068   esac;;
52069 esac
52070 case $ac_abs_builddir in
52071 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52072 *)
52073   case $ac_top_srcdir in
52074   .) ac_abs_top_srcdir=$ac_abs_builddir;;
52075   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52076   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52077   esac;;
52078 esac
52079
52080
52081   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52082 echo "$as_me: executing $ac_dest commands" >&6;}
52083   case $ac_dest in
52084     rcdefs.h )
52085             mkdir -p $outdir &&
52086             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52087          ;;
52088     wx-config )  rm -f wx-config
52089                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52090                     ;;
52091   esac
52092 done
52093 _ACEOF
52094
52095 cat >>$CONFIG_STATUS <<\_ACEOF
52096
52097 { (exit 0); exit 0; }
52098 _ACEOF
52099 chmod +x $CONFIG_STATUS
52100 ac_clean_files=$ac_clean_files_save
52101
52102
52103 # configure is writing to config.log, and then calls config.status.
52104 # config.status does its own redirection, appending to config.log.
52105 # Unfortunately, on DOS this fails, as config.log is still kept open
52106 # by configure, so config.status won't be able to write to it; its
52107 # output is simply discarded.  So we exec the FD to /dev/null,
52108 # effectively closing config.log, so it can be properly (re)opened and
52109 # appended to by config.status.  When coming back to configure, we
52110 # need to make the FD available again.
52111 if test "$no_create" != yes; then
52112   ac_cs_success=:
52113   ac_config_status_args=
52114   test "$silent" = yes &&
52115     ac_config_status_args="$ac_config_status_args --quiet"
52116   exec 5>/dev/null
52117   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52118   exec 5>>config.log
52119   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52120   # would make configure fail if this is the last instruction.
52121   $ac_cs_success || { (exit 1); exit 1; }
52122 fi
52123
52124 #
52125 # CONFIG_SUBDIRS section.
52126 #
52127 if test "$no_recursion" != yes; then
52128
52129   # Remove --cache-file and --srcdir arguments so they do not pile up.
52130   ac_sub_configure_args=
52131   ac_prev=
52132   for ac_arg in $ac_configure_args; do
52133     if test -n "$ac_prev"; then
52134       ac_prev=
52135       continue
52136     fi
52137     case $ac_arg in
52138     -cache-file | --cache-file | --cache-fil | --cache-fi \
52139     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52140       ac_prev=cache_file ;;
52141     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52142     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52143     | --c=*)
52144       ;;
52145     --config-cache | -C)
52146       ;;
52147     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52148       ac_prev=srcdir ;;
52149     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52150       ;;
52151     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52152       ac_prev=prefix ;;
52153     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52154       ;;
52155     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
52156     esac
52157   done
52158
52159   # Always prepend --prefix to ensure using the same prefix
52160   # in subdir configurations.
52161   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
52162
52163   ac_popdir=`pwd`
52164   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52165
52166     # Do not complain, so a configure script can configure whichever
52167     # parts of a large source tree are present.
52168     test -d $srcdir/$ac_dir || continue
52169
52170     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
52171 echo "$as_me: configuring in $ac_dir" >&6;}
52172     { if $as_mkdir_p; then
52173     mkdir -p "$ac_dir"
52174   else
52175     as_dir="$ac_dir"
52176     as_dirs=
52177     while test ! -d "$as_dir"; do
52178       as_dirs="$as_dir $as_dirs"
52179       as_dir=`(dirname "$as_dir") 2>/dev/null ||
52180 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52181          X"$as_dir" : 'X\(//\)[^/]' \| \
52182          X"$as_dir" : 'X\(//\)$' \| \
52183          X"$as_dir" : 'X\(/\)' \| \
52184          .     : '\(.\)' 2>/dev/null ||
52185 echo X"$as_dir" |
52186     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52187           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52188           /^X\(\/\/\)$/{ s//\1/; q; }
52189           /^X\(\/\).*/{ s//\1/; q; }
52190           s/.*/./; q'`
52191     done
52192     test ! -n "$as_dirs" || mkdir $as_dirs
52193   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52194 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52195    { (exit 1); exit 1; }; }; }
52196
52197     ac_builddir=.
52198
52199 if test "$ac_dir" != .; then
52200   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52201   # A "../" for each directory in $ac_dir_suffix.
52202   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52203 else
52204   ac_dir_suffix= ac_top_builddir=
52205 fi
52206
52207 case $srcdir in
52208   .)  # No --srcdir option.  We are building in place.
52209     ac_srcdir=.
52210     if test -z "$ac_top_builddir"; then
52211        ac_top_srcdir=.
52212     else
52213        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52214     fi ;;
52215   [\\/]* | ?:[\\/]* )  # Absolute path.
52216     ac_srcdir=$srcdir$ac_dir_suffix;
52217     ac_top_srcdir=$srcdir ;;
52218   *) # Relative path.
52219     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52220     ac_top_srcdir=$ac_top_builddir$srcdir ;;
52221 esac
52222
52223 # Do not use `cd foo && pwd` to compute absolute paths, because
52224 # the directories may not exist.
52225 case `pwd` in
52226 .) ac_abs_builddir="$ac_dir";;
52227 *)
52228   case "$ac_dir" in
52229   .) ac_abs_builddir=`pwd`;;
52230   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52231   *) ac_abs_builddir=`pwd`/"$ac_dir";;
52232   esac;;
52233 esac
52234 case $ac_abs_builddir in
52235 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52236 *)
52237   case ${ac_top_builddir}. in
52238   .) ac_abs_top_builddir=$ac_abs_builddir;;
52239   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52240   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52241   esac;;
52242 esac
52243 case $ac_abs_builddir in
52244 .) ac_abs_srcdir=$ac_srcdir;;
52245 *)
52246   case $ac_srcdir in
52247   .) ac_abs_srcdir=$ac_abs_builddir;;
52248   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52249   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52250   esac;;
52251 esac
52252 case $ac_abs_builddir in
52253 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52254 *)
52255   case $ac_top_srcdir in
52256   .) ac_abs_top_srcdir=$ac_abs_builddir;;
52257   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52258   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52259   esac;;
52260 esac
52261
52262
52263     cd $ac_dir
52264
52265     # Check for guested configure; otherwise get Cygnus style configure.
52266     if test -f $ac_srcdir/configure.gnu; then
52267       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
52268     elif test -f $ac_srcdir/configure; then
52269       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
52270     elif test -f $ac_srcdir/configure.in; then
52271       ac_sub_configure=$ac_configure
52272     else
52273       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52274 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52275       ac_sub_configure=
52276     fi
52277
52278     # The recursion is here.
52279     if test -n "$ac_sub_configure"; then
52280       # Make the cache file name correct relative to the subdirectory.
52281       case $cache_file in
52282       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52283       *) # Relative path.
52284         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
52285       esac
52286
52287       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
52288 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
52289       # The eval makes quoting arguments work.
52290       eval $ac_sub_configure $ac_sub_configure_args \
52291            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
52292         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
52293 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
52294    { (exit 1); exit 1; }; }
52295     fi
52296
52297     cd "$ac_popdir"
52298   done
52299 fi
52300
52301
52302 echo
52303 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
52304 echo ""
52305 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
52306 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
52307
52308 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
52309 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
52310 echo "  Should wxWidgets be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
52311
52312 echo "  What level of wxWidgets compatibility should be enabled?"
52313 echo "                                       wxWidgets 2.4      ${WXWIN_COMPATIBILITY_2_4:-no}"
52314 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-yes}"
52315
52316 echo "  Which libraries should wxWidgets use?"
52317 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
52318 echo "                                       png                ${wxUSE_LIBPNG-none}"
52319 echo "                                       regex              ${wxUSE_REGEX}"
52320 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
52321 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52322 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
52323 fi
52324 echo "                                       zlib               ${wxUSE_ZLIB}"
52325 echo "                                       odbc               ${wxUSE_ODBC}"
52326 echo "                                       expat              ${wxUSE_EXPAT}"
52327 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
52328 echo "                                       sdl                ${wxUSE_LIBSDL}"
52329
52330 echo ""
52331