added wxUSE_DATEPICKCTRL
[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.5.3.
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.5.3'
274 PACKAGE_STRING='wxWidgets 2.5.3'
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_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 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 ac_ct_AR ac_ct_STRIP 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 AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_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_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 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_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_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_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_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_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_MAC_USE_GUI_1_WXUNIV_0 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_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_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_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_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 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_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_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_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_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 WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL 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
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794   # Omit some internal or obsolete options to make the list less imposing.
795   # This message is too long to be a string in the A/UX 3.1 sh.
796   cat <<_ACEOF
797 \`configure' configures wxWidgets 2.5.3 to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857   --target=TARGET   configure for building compilers for TARGET [HOST]
858 _ACEOF
859 fi
860
861 if test -n "$ac_init_help"; then
862   case $ac_init_help in
863      short | recursive ) echo "Configuration of wxWidgets 2.5.3:";;
864    esac
865   cat <<\_ACEOF
866
867 Optional Features:
868   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
869   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
870   --enable-gui            use GUI classes
871   --enable-monolithic     build wxWidgets as single library
872   --enable-plugins        build parts of wxWidgets as loadable components
873   --enable-universal      use wxWidgets GUI controls instead of native ones
874   --enable-nanox          use NanoX
875   --disable-gtk2          use GTK+ 1.2 instead of 2.0
876   --enable-gpe            use GNOME PDA Environment features if possible
877   --enable-shared         create shared library code
878   --enable-optimise       create optimised code
879   --enable-debug          same as debug_flag and debug_info
880   --enable-stl            use STL for containers
881   --enable-omf            use OMF object format
882   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
883   --enable-debug_info     create code with debugging information
884   --enable-debug_gdb      create code with extra GDB debugging information
885   --enable-debug_cntxt    use wxDebugContext
886   --enable-mem_tracing    create code with memory tracing
887   --enable-profile        create code with profiling information
888   --enable-no_rtti        create code without RTTI information
889   --enable-no_exceptions  create code without C++ exceptions handling
890   --enable-permissive     compile code disregarding strict ANSI
891   --enable-no_deps        create code without dependency information
892   --enable-compat22       enable wxWidgets 2.2 compatibility
893   --disable-compat24      disable wxWidgets 2.4 compatibility
894   --disable-rpath         disable use of rpath for uninstalled builds
895   --enable-intl           use internationalization system
896   --enable-config         use wxConfig (and derived) classes
897   --enable-protocols      use wxProtocol and derived classes
898   --enable-ftp            use wxFTP (requires wxProtocol
899   --enable-http           use wxHTTP (requires wxProtocol
900   --enable-fileproto      use wxFileProto class (requires wxProtocol
901   --enable-sockets        use socket/network classes
902   --enable-ole            use OLE classes (Win32 only)
903   --enable-dataobj        use data object classes
904   --enable-ipc            use interprocess communication (wxSocket etc.)
905   --enable-apple_ieee     use the Apple IEEE codec
906   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
907   --enable-backtrace      use wxStackWalker class for getting backtraces
908   --enable-cmdline        use wxCmdLineParser class
909   --enable-datetime       use wxDateTime class
910   --enable-dialupman      use dialup network classes
911   --enable-dynlib         use wxLibrary class for DLL loading
912   --enable-dynamicloader  use (new) wxDynamicLibrary class
913   --enable-exceptions     build exception-safe library
914   --enable-ffile          use wxFFile class
915   --enable-file           use wxFile class
916   --enable-filesystem     use virtual file systems classes
917   --enable-fontmap        use font encodings conversion classes
918   --enable-fs_inet        use virtual HTTP/FTP filesystems
919   --enable-fs_zip         use virtual ZIP filesystems
920   --enable-geometry       use geometry class
921   --enable-log            use logging system
922   --enable-longlong       use wxLongLong class
923   --enable-mimetype       use wxMimeTypesManager
924   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
925   --enable-snglinst       use wxSingleInstanceChecker class
926   --enable-streams        use wxStream etc classes
927   --enable-std_iostreams  use standard C++ stream classes
928   --enable-stopwatch      use wxStopWatch class
929   --enable-sysoptions     use wxSystemOptions
930   --enable-textbuf        use wxTextBuffer class
931   --enable-textfile       use wxTextFile class
932   --enable-timer          use wxTimer class
933   --enable-unicode        compile wxString with Unicode support
934   --enable-sound          use wxSound class
935   --enable-mediactrl      use wxMediaCtrl class
936   --enable-wxprintfv      use wxWidgets implementation of vprintf()
937   --enable-zipstream      use wxZipInputStream
938   --enable-url            use wxURL class
939   --enable-protocol       use wxProtocol class
940   --enable-protocol-http  HTTP support in wxProtocol
941   --enable-protocol-ftp   FTP support in wxProtocol
942   --enable-protocol-file  FILE support in wxProtocol
943   --enable-threads        use threads
944   --enable-docview        use document view architecture
945   --enable-help           use help subsystem
946   --enable-mshtmlhelp     use MS HTML Help (win32)
947   --enable-html           use wxHTML sub-library
948   --enable-htmlhelp       use wxHTML-based help
949   --enable-xrc            use XRC resources sub-library
950   --enable-constraints    use layout-constraints system
951   --enable-printarch      use printing architecture
952   --enable-mdi            use multiple document interface architecture
953   --enable-mdidoc         use docview architecture with MDI
954   --enable-loggui         use standard GUI logger
955   --enable-logwin         use wxLogWindow
956   --enable-logdialog      use wxLogDialog
957   --enable-webkit         use wxWebKitCtrl (Mac)
958   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
959   --enable-prologio       not available; see contrib
960   --enable-resources      not available; see contrib
961   --enable-clipboard      use wxClipboard class
962   --enable-dnd            use Drag'n'Drop classes
963   --enable-metafile       use win32 metafiles
964   --enable-controls       use all usual controls
965   --enable-accel          use accelerators
966   --enable-button         use wxButton class
967   --enable-bmpbutton      use wxBitmapButton class
968   --enable-calendar       use wxCalendarCtrl class
969   --enable-caret          use wxCaret class
970   --enable-checkbox       use wxCheckBox class
971   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
972   --enable-choice         use wxChoice class
973   --enable-choicebook     use wxChoicebook class
974   --enable-combobox       use wxComboBox class
975   --enable-datepick       use wxDatePickerCtrl class
976   --enable-display        use wxDisplay class
977   --enable-gauge          use wxGauge class
978   --enable-grid           use wxGrid class
979   --enable-imaglist       use wxImageList class
980   --enable-listbook       use wxListbook class
981   --enable-listbox        use wxListBox class
982   --enable-listctrl       use wxListCtrl class
983   --enable-notebook       use wxNotebook class
984   --enable-radiobox       use wxRadioBox class
985   --enable-radiobtn       use wxRadioButton class
986   --enable-sash           use wxSashWindow class
987   --enable-scrollbar      use wxScrollBar class and scrollable windows
988   --enable-slider         use wxSlider class
989   --enable-spinbtn        use wxSpinButton class
990   --enable-spinctrl       use wxSpinCtrl class
991   --enable-splitter       use wxSplitterWindow class
992   --enable-statbmp        use wxStaticBitmap class
993   --enable-statbox        use wxStaticBox class
994   --enable-statline       use wxStaticLine class
995   --enable-stattext       use wxStaticText class
996   --enable-statusbar      use wxStatusBar class
997   --enable-tabdialog      use wxTabControl class
998   --enable-textctrl       use wxTextCtrl class
999   --enable-togglebtn      use wxToggleButton class
1000   --enable-toolbar        use wxToolBar class
1001   --enable-tbarnative     use native wxToolBar class
1002   --enable-tbarsmpl       use wxToolBarSimple class
1003   --enable-treectrl       use wxTreeCtrl class
1004   --enable-tipwindow      use wxTipWindow class
1005   --enable-popupwin       use wxPopUpWindow class
1006   --enable-commondlg      use all common dialogs
1007   --enable-choicedlg      use wxChoiceDialog
1008   --enable-coldlg         use wxColourDialog
1009   --enable-filedlg        use wxFileDialog
1010   --enable-finddlg        use wxFindReplaceDialog
1011   --enable-fontdlg        use wxFontDialog
1012   --enable-dirdlg         use wxDirDialog
1013   --enable-msgdlg         use wxMessageDialog
1014   --enable-numberdlg      use wxNumberEntryDialog
1015   --enable-splash         use wxSplashScreen
1016   --enable-textdlg        use wxTextDialog
1017   --enable-tipdlg         use startup tips
1018   --enable-progressdlg    use wxProgressDialog
1019   --enable-wizarddlg      use wxWizard
1020   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1021   --enable-miniframe      use wxMiniFrame class
1022   --enable-tooltips       use wxToolTip class
1023   --enable-splines        use spline drawing code
1024   --enable-validators     use wxValidator and derived classes
1025   --enable-busyinfo       use wxBusyInfo
1026   --enable-joystick       use wxJoystick (Linux only)
1027   --enable-metafiles      use wxMetaFile (Windows only)
1028   --enable-dragimage      use wxDragImage
1029   --enable-accessibility  enable accessibility support
1030   --enable-palette        use wxPalette class
1031   --enable-image          use wxImage class
1032   --enable-gif            use gif images (GIF file format)
1033   --enable-pcx            use pcx images (PCX file format)
1034   --enable-iff            use iff images (IFF file format)
1035   --enable-pnm            use pnm images (PNM file format)
1036   --enable-xpm            use xpm images (XPM file format)
1037   --enable-icocur         use Windows ICO and CUR formats
1038   --enable-official_build official build of wxWidgets (win32 DLL only)
1039   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1040   --disable-largefile     omit support for large files
1041   --disable-gtktest       do not try to compile and run a test GTK+ program
1042   --disable-gtktest       Do not try to compile and run a test GTK program
1043   --disable-sdltest       Do not try to compile and run a test SDL program
1044   --enable-omf            use OMF object format (OS/2)
1045   --disable-precomp-headers
1046                           don't use precompiled headers even if compiler can
1047
1048 Optional Packages:
1049   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1050   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1051   --with-gtk              use GTK+
1052   --with-motif            use Motif/Lesstif
1053   --with-mac              use Mac OS X
1054   --with-cocoa            use Cocoa
1055   --with-wine             use Wine
1056   --with-msw              use MS-Windows
1057   --with-pm               use OS/2 Presentation Manager
1058   --with-mgl              use SciTech MGL
1059   --with-microwin         use MicroWindows
1060   --with-x11              use X11
1061   --with-libpng           use libpng (PNG image format)
1062   --with-libjpeg          use libjpeg (JPEG file format)
1063   --with-libtiff          use libtiff (TIFF file format)
1064   --with-libxpm           use libxpm (XPM file format)
1065   --with-libmspack        use libmspack (CHM help files loading)
1066   --with-sdl              use SDL for audio on Unix
1067   --with-gnomeprint       use GNOME print for printing under Unix
1068   --with-opengl           use OpenGL (or Mesa)
1069   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1070   --with-regex            enable support for wxRegEx class
1071   --with-zlib             use zlib for LZW compression
1072   --with-odbc             use the IODBC and wxODBC classes
1073   --with-expat            enable XML support using expat parser
1074   --with-flavour=NAME     specify a name to identify this build
1075   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1076   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1077   --with-x                use the X Window System
1078   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1079   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1080   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1081   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1082   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1083
1084 Some influential environment variables:
1085   CC          C compiler command
1086   CFLAGS      C compiler flags
1087   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1088               nonstandard directory <lib dir>
1089   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1090               headers in a nonstandard directory <include dir>
1091   CPP         C preprocessor
1092   CXX         C++ compiler command
1093   CXXFLAGS    C++ compiler flags
1094   CXXCPP      C++ preprocessor
1095
1096 Use these variables to override the choices made by `configure' or to help
1097 it to find libraries and programs with nonstandard names/locations.
1098
1099 Report bugs to <wx-dev@lists.wxwidgets.org>.
1100 _ACEOF
1101 fi
1102
1103 if test "$ac_init_help" = "recursive"; then
1104   # If there are subdirs, report their specific --help.
1105   ac_popdir=`pwd`
1106   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1107     test -d $ac_dir || continue
1108     ac_builddir=.
1109
1110 if test "$ac_dir" != .; then
1111   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1112   # A "../" for each directory in $ac_dir_suffix.
1113   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1114 else
1115   ac_dir_suffix= ac_top_builddir=
1116 fi
1117
1118 case $srcdir in
1119   .)  # No --srcdir option.  We are building in place.
1120     ac_srcdir=.
1121     if test -z "$ac_top_builddir"; then
1122        ac_top_srcdir=.
1123     else
1124        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1125     fi ;;
1126   [\\/]* | ?:[\\/]* )  # Absolute path.
1127     ac_srcdir=$srcdir$ac_dir_suffix;
1128     ac_top_srcdir=$srcdir ;;
1129   *) # Relative path.
1130     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1131     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1132 esac
1133
1134 # Do not use `cd foo && pwd` to compute absolute paths, because
1135 # the directories may not exist.
1136 case `pwd` in
1137 .) ac_abs_builddir="$ac_dir";;
1138 *)
1139   case "$ac_dir" in
1140   .) ac_abs_builddir=`pwd`;;
1141   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1142   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1143   esac;;
1144 esac
1145 case $ac_abs_builddir in
1146 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1147 *)
1148   case ${ac_top_builddir}. in
1149   .) ac_abs_top_builddir=$ac_abs_builddir;;
1150   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1151   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1152   esac;;
1153 esac
1154 case $ac_abs_builddir in
1155 .) ac_abs_srcdir=$ac_srcdir;;
1156 *)
1157   case $ac_srcdir in
1158   .) ac_abs_srcdir=$ac_abs_builddir;;
1159   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1160   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1161   esac;;
1162 esac
1163 case $ac_abs_builddir in
1164 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1165 *)
1166   case $ac_top_srcdir in
1167   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1168   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1169   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1170   esac;;
1171 esac
1172
1173     cd $ac_dir
1174     # Check for guested configure; otherwise get Cygnus style configure.
1175     if test -f $ac_srcdir/configure.gnu; then
1176       echo
1177       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1178     elif test -f $ac_srcdir/configure; then
1179       echo
1180       $SHELL $ac_srcdir/configure  --help=recursive
1181     elif test -f $ac_srcdir/configure.ac ||
1182            test -f $ac_srcdir/configure.in; then
1183       echo
1184       $ac_configure --help
1185     else
1186       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1187     fi
1188     cd "$ac_popdir"
1189   done
1190 fi
1191
1192 test -n "$ac_init_help" && exit 0
1193 if $ac_init_version; then
1194   cat <<\_ACEOF
1195 wxWidgets configure 2.5.3
1196 generated by GNU Autoconf 2.59
1197
1198 Copyright (C) 2003 Free Software Foundation, Inc.
1199 This configure script is free software; the Free Software Foundation
1200 gives unlimited permission to copy, distribute and modify it.
1201 _ACEOF
1202   exit 0
1203 fi
1204 exec 5>config.log
1205 cat >&5 <<_ACEOF
1206 This file contains any messages produced by compilers while
1207 running configure, to aid debugging if configure makes a mistake.
1208
1209 It was created by wxWidgets $as_me 2.5.3, which was
1210 generated by GNU Autoconf 2.59.  Invocation command line was
1211
1212   $ $0 $@
1213
1214 _ACEOF
1215 {
1216 cat <<_ASUNAME
1217 ## --------- ##
1218 ## Platform. ##
1219 ## --------- ##
1220
1221 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1222 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1223 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1224 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1225 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1226
1227 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1228 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1229
1230 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1231 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1232 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1233 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1234 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1235 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1236 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1237
1238 _ASUNAME
1239
1240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1241 for as_dir in $PATH
1242 do
1243   IFS=$as_save_IFS
1244   test -z "$as_dir" && as_dir=.
1245   echo "PATH: $as_dir"
1246 done
1247
1248 } >&5
1249
1250 cat >&5 <<_ACEOF
1251
1252
1253 ## ----------- ##
1254 ## Core tests. ##
1255 ## ----------- ##
1256
1257 _ACEOF
1258
1259
1260 # Keep a trace of the command line.
1261 # Strip out --no-create and --no-recursion so they do not pile up.
1262 # Strip out --silent because we don't want to record it for future runs.
1263 # Also quote any args containing shell meta-characters.
1264 # Make two passes to allow for proper duplicate-argument suppression.
1265 ac_configure_args=
1266 ac_configure_args0=
1267 ac_configure_args1=
1268 ac_sep=
1269 ac_must_keep_next=false
1270 for ac_pass in 1 2
1271 do
1272   for ac_arg
1273   do
1274     case $ac_arg in
1275     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1276     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1277     | -silent | --silent | --silen | --sile | --sil)
1278       continue ;;
1279     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1281     esac
1282     case $ac_pass in
1283     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1284     2)
1285       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1286       if test $ac_must_keep_next = true; then
1287         ac_must_keep_next=false # Got value, back to normal.
1288       else
1289         case $ac_arg in
1290           *=* | --config-cache | -C | -disable-* | --disable-* \
1291           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1292           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1293           | -with-* | --with-* | -without-* | --without-* | --x)
1294             case "$ac_configure_args0 " in
1295               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1296             esac
1297             ;;
1298           -* ) ac_must_keep_next=true ;;
1299         esac
1300       fi
1301       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1302       # Get rid of the leading space.
1303       ac_sep=" "
1304       ;;
1305     esac
1306   done
1307 done
1308 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1309 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1310
1311 # When interrupted or exit'd, cleanup temporary files, and complete
1312 # config.log.  We remove comments because anyway the quotes in there
1313 # would cause problems or look ugly.
1314 # WARNING: Be sure not to use single quotes in there, as some shells,
1315 # such as our DU 5.0 friend, will then `close' the trap.
1316 trap 'exit_status=$?
1317   # Save into config.log some information that might help in debugging.
1318   {
1319     echo
1320
1321     cat <<\_ASBOX
1322 ## ---------------- ##
1323 ## Cache variables. ##
1324 ## ---------------- ##
1325 _ASBOX
1326     echo
1327     # The following way of writing the cache mishandles newlines in values,
1328 {
1329   (set) 2>&1 |
1330     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1331     *ac_space=\ *)
1332       sed -n \
1333         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1334           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1335       ;;
1336     *)
1337       sed -n \
1338         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1339       ;;
1340     esac;
1341 }
1342     echo
1343
1344     cat <<\_ASBOX
1345 ## ----------------- ##
1346 ## Output variables. ##
1347 ## ----------------- ##
1348 _ASBOX
1349     echo
1350     for ac_var in $ac_subst_vars
1351     do
1352       eval ac_val=$`echo $ac_var`
1353       echo "$ac_var='"'"'$ac_val'"'"'"
1354     done | sort
1355     echo
1356
1357     if test -n "$ac_subst_files"; then
1358       cat <<\_ASBOX
1359 ## ------------- ##
1360 ## Output files. ##
1361 ## ------------- ##
1362 _ASBOX
1363       echo
1364       for ac_var in $ac_subst_files
1365       do
1366         eval ac_val=$`echo $ac_var`
1367         echo "$ac_var='"'"'$ac_val'"'"'"
1368       done | sort
1369       echo
1370     fi
1371
1372     if test -s confdefs.h; then
1373       cat <<\_ASBOX
1374 ## ----------- ##
1375 ## confdefs.h. ##
1376 ## ----------- ##
1377 _ASBOX
1378       echo
1379       sed "/^$/d" confdefs.h | sort
1380       echo
1381     fi
1382     test "$ac_signal" != 0 &&
1383       echo "$as_me: caught signal $ac_signal"
1384     echo "$as_me: exit $exit_status"
1385   } >&5
1386   rm -f core *.core &&
1387   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1388     exit $exit_status
1389      ' 0
1390 for ac_signal in 1 2 13 15; do
1391   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1392 done
1393 ac_signal=0
1394
1395 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1396 rm -rf conftest* confdefs.h
1397 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1398 echo >confdefs.h
1399
1400 # Predefined preprocessor variables.
1401
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_NAME "$PACKAGE_NAME"
1404 _ACEOF
1405
1406
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1409 _ACEOF
1410
1411
1412 cat >>confdefs.h <<_ACEOF
1413 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1414 _ACEOF
1415
1416
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_STRING "$PACKAGE_STRING"
1419 _ACEOF
1420
1421
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1424 _ACEOF
1425
1426
1427 # Let the site file select an alternate cache file if it wants to.
1428 # Prefer explicitly selected file to automatically selected ones.
1429 if test -z "$CONFIG_SITE"; then
1430   if test "x$prefix" != xNONE; then
1431     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1432   else
1433     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1434   fi
1435 fi
1436 for ac_site_file in $CONFIG_SITE; do
1437   if test -r "$ac_site_file"; then
1438     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1439 echo "$as_me: loading site script $ac_site_file" >&6;}
1440     sed 's/^/| /' "$ac_site_file" >&5
1441     . "$ac_site_file"
1442   fi
1443 done
1444
1445 if test -r "$cache_file"; then
1446   # Some versions of bash will fail to source /dev/null (special
1447   # files actually), so we avoid doing that.
1448   if test -f "$cache_file"; then
1449     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1450 echo "$as_me: loading cache $cache_file" >&6;}
1451     case $cache_file in
1452       [\\/]* | ?:[\\/]* ) . $cache_file;;
1453       *)                      . ./$cache_file;;
1454     esac
1455   fi
1456 else
1457   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1458 echo "$as_me: creating cache $cache_file" >&6;}
1459   >$cache_file
1460 fi
1461
1462 # Check that the precious variables saved in the cache have kept the same
1463 # value.
1464 ac_cache_corrupted=false
1465 for ac_var in `(set) 2>&1 |
1466                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1467   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1468   eval ac_new_set=\$ac_env_${ac_var}_set
1469   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1470   eval ac_new_val="\$ac_env_${ac_var}_value"
1471   case $ac_old_set,$ac_new_set in
1472     set,)
1473       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1474 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1475       ac_cache_corrupted=: ;;
1476     ,set)
1477       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1478 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1479       ac_cache_corrupted=: ;;
1480     ,);;
1481     *)
1482       if test "x$ac_old_val" != "x$ac_new_val"; then
1483         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1484 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1485         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1486 echo "$as_me:   former value:  $ac_old_val" >&2;}
1487         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1488 echo "$as_me:   current value: $ac_new_val" >&2;}
1489         ac_cache_corrupted=:
1490       fi;;
1491   esac
1492   # Pass precious variables to config.status.
1493   if test "$ac_new_set" = set; then
1494     case $ac_new_val in
1495     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1496       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1497     *) ac_arg=$ac_var=$ac_new_val ;;
1498     esac
1499     case " $ac_configure_args " in
1500       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1501       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1502     esac
1503   fi
1504 done
1505 if $ac_cache_corrupted; then
1506   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1507 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1508   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1509 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1510    { (exit 1); exit 1; }; }
1511 fi
1512
1513 ac_ext=c
1514 ac_cpp='$CPP $CPPFLAGS'
1515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548 ac_aux_dir=
1549 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1550   if test -f $ac_dir/install-sh; then
1551     ac_aux_dir=$ac_dir
1552     ac_install_sh="$ac_aux_dir/install-sh -c"
1553     break
1554   elif test -f $ac_dir/install.sh; then
1555     ac_aux_dir=$ac_dir
1556     ac_install_sh="$ac_aux_dir/install.sh -c"
1557     break
1558   elif test -f $ac_dir/shtool; then
1559     ac_aux_dir=$ac_dir
1560     ac_install_sh="$ac_aux_dir/shtool install -c"
1561     break
1562   fi
1563 done
1564 if test -z "$ac_aux_dir"; then
1565   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1566 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1567    { (exit 1); exit 1; }; }
1568 fi
1569 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1570 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1571 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1572
1573 # Make sure we can run config.sub.
1574 $ac_config_sub sun4 >/dev/null 2>&1 ||
1575   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1576 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1577    { (exit 1); exit 1; }; }
1578
1579 echo "$as_me:$LINENO: checking build system type" >&5
1580 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1581 if test "${ac_cv_build+set}" = set; then
1582   echo $ECHO_N "(cached) $ECHO_C" >&6
1583 else
1584   ac_cv_build_alias=$build_alias
1585 test -z "$ac_cv_build_alias" &&
1586   ac_cv_build_alias=`$ac_config_guess`
1587 test -z "$ac_cv_build_alias" &&
1588   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1589 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1590    { (exit 1); exit 1; }; }
1591 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1592   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1593 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1594    { (exit 1); exit 1; }; }
1595
1596 fi
1597 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1598 echo "${ECHO_T}$ac_cv_build" >&6
1599 build=$ac_cv_build
1600 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1601 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1602 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1603
1604
1605 echo "$as_me:$LINENO: checking host system type" >&5
1606 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1607 if test "${ac_cv_host+set}" = set; then
1608   echo $ECHO_N "(cached) $ECHO_C" >&6
1609 else
1610   ac_cv_host_alias=$host_alias
1611 test -z "$ac_cv_host_alias" &&
1612   ac_cv_host_alias=$ac_cv_build_alias
1613 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1614   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1615 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1616    { (exit 1); exit 1; }; }
1617
1618 fi
1619 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1620 echo "${ECHO_T}$ac_cv_host" >&6
1621 host=$ac_cv_host
1622 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1623 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1624 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1625
1626
1627 echo "$as_me:$LINENO: checking target system type" >&5
1628 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1629 if test "${ac_cv_target+set}" = set; then
1630   echo $ECHO_N "(cached) $ECHO_C" >&6
1631 else
1632   ac_cv_target_alias=$target_alias
1633 test "x$ac_cv_target_alias" = "x" &&
1634   ac_cv_target_alias=$ac_cv_host_alias
1635 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1636   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1638    { (exit 1); exit 1; }; }
1639
1640 fi
1641 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1642 echo "${ECHO_T}$ac_cv_target" >&6
1643 target=$ac_cv_target
1644 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
1648
1649 # The aliases save the names the user supplied, while $host etc.
1650 # will get canonicalized.
1651 test -n "$target_alias" &&
1652   test "$program_prefix$program_suffix$program_transform_name" = \
1653     NONENONEs,x,x, &&
1654   program_prefix=${target_alias}-
1655
1656
1657
1658 wx_major_version_number=2
1659 wx_minor_version_number=5
1660 wx_release_number=3
1661 wx_subrelease_number=3
1662
1663 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1664 WX_VERSION=$WX_RELEASE.$wx_release_number
1665 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
1666
1667 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
1668
1669 WX_CURRENT=3
1670 WX_REVISION=0
1671 WX_AGE=3
1672
1673
1674
1675 USE_UNIX=1
1676 USE_OS2=0
1677 USE_WIN32=0
1678 USE_DOS=0
1679 USE_BEOS=0
1680 USE_MAC=0
1681
1682 USE_AIX=
1683 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1684 USE_GNU=                            USE_HPUX=
1685 USE_LINUX=
1686 USE_NETBSD=
1687 USE_OPENBSD=
1688 USE_OSF=                            USE_SGI=
1689 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1690 USE_ULTRIX=
1691 USE_UNIXWARE=
1692
1693 USE_ALPHA=
1694
1695 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1696
1697 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1698
1699 DEFAULT_wxUSE_COCOA=0
1700 DEFAULT_wxUSE_GTK=0
1701 DEFAULT_wxUSE_MAC=0
1702 DEFAULT_wxUSE_MGL=0
1703 DEFAULT_wxUSE_MICROWIN=0
1704 DEFAULT_wxUSE_MOTIF=0
1705 DEFAULT_wxUSE_MSW=0
1706 DEFAULT_wxUSE_PM=0
1707 DEFAULT_wxUSE_X11=0
1708
1709 DEFAULT_DEFAULT_wxUSE_COCOA=0
1710 DEFAULT_DEFAULT_wxUSE_GTK=0
1711 DEFAULT_DEFAULT_wxUSE_MAC=0
1712 DEFAULT_DEFAULT_wxUSE_MGL=0
1713 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1714 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1715 DEFAULT_DEFAULT_wxUSE_MSW=0
1716 DEFAULT_DEFAULT_wxUSE_PM=0
1717 DEFAULT_DEFAULT_wxUSE_X11=0
1718
1719 PROGRAM_EXT=
1720 SO_SUFFIX=so
1721 SAMPLES_RPATH_FLAG=
1722 SAMPLES_RPATH_POSTLINK=
1723
1724 case "${host}" in
1725   *-hp-hpux* )
1726     USE_HPUX=1
1727     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1728     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1729     SO_SUFFIX=sl
1730     cat >>confdefs.h <<\_ACEOF
1731 #define __HPUX__ 1
1732 _ACEOF
1733
1734   ;;
1735   *-*-linux* )
1736     USE_LINUX=1
1737     cat >>confdefs.h <<\_ACEOF
1738 #define __LINUX__ 1
1739 _ACEOF
1740
1741     TMP=`uname -m`
1742     if test "x$TMP" = "xalpha"; then
1743       USE_ALPHA=1
1744       cat >>confdefs.h <<\_ACEOF
1745 #define __ALPHA__ 1
1746 _ACEOF
1747
1748     fi
1749     DEFAULT_DEFAULT_wxUSE_GTK=1
1750   ;;
1751   *-*-gnu* | *-*-k*bsd*-gnu )
1752     USE_GNU=1
1753     TMP=`uname -m`
1754     if test "x$TMP" = "xalpha"; then
1755       USE_ALPHA=1
1756       cat >>confdefs.h <<\_ACEOF
1757 #define __ALPHA__ 1
1758 _ACEOF
1759
1760     fi
1761     DEFAULT_DEFAULT_wxUSE_GTK=1
1762   ;;
1763   *-*-irix5* | *-*-irix6* )
1764     USE_SGI=1
1765     USE_SVR4=1
1766     cat >>confdefs.h <<\_ACEOF
1767 #define __SGI__ 1
1768 _ACEOF
1769
1770     cat >>confdefs.h <<\_ACEOF
1771 #define __SVR4__ 1
1772 _ACEOF
1773
1774     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1775   ;;
1776   *-*-solaris2* )
1777     USE_SUN=1
1778     USE_SOLARIS=1
1779     USE_SVR4=1
1780     cat >>confdefs.h <<\_ACEOF
1781 #define __SUN__ 1
1782 _ACEOF
1783
1784     cat >>confdefs.h <<\_ACEOF
1785 #define __SOLARIS__ 1
1786 _ACEOF
1787
1788     cat >>confdefs.h <<\_ACEOF
1789 #define __SVR4__ 1
1790 _ACEOF
1791
1792     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1793     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1794   ;;
1795   *-*-sunos4* )
1796     USE_SUN=1
1797     USE_SUNOS=1
1798     USE_BSD=1
1799     cat >>confdefs.h <<\_ACEOF
1800 #define __SUN__ 1
1801 _ACEOF
1802
1803     cat >>confdefs.h <<\_ACEOF
1804 #define __SUNOS__ 1
1805 _ACEOF
1806
1807     cat >>confdefs.h <<\_ACEOF
1808 #define __BSD__ 1
1809 _ACEOF
1810
1811     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1812   ;;
1813   *-*-freebsd*)
1814     USE_BSD=1
1815     USE_FREEBSD=1
1816     cat >>confdefs.h <<\_ACEOF
1817 #define __FREEBSD__ 1
1818 _ACEOF
1819
1820     cat >>confdefs.h <<\_ACEOF
1821 #define __BSD__ 1
1822 _ACEOF
1823
1824     DEFAULT_DEFAULT_wxUSE_GTK=1
1825   ;;
1826   *-*-openbsd*)
1827     USE_BSD=1
1828     USE_OPENBSD=1
1829     cat >>confdefs.h <<\_ACEOF
1830 #define __OPENBSD__ 1
1831 _ACEOF
1832
1833     cat >>confdefs.h <<\_ACEOF
1834 #define __BSD__ 1
1835 _ACEOF
1836
1837     DEFAULT_DEFAULT_wxUSE_GTK=1
1838   ;;
1839   *-*-netbsd*)
1840     USE_BSD=1
1841     USE_NETBSD=1
1842     cat >>confdefs.h <<\_ACEOF
1843 #define __NETBSD__ 1
1844 _ACEOF
1845
1846     cat >>confdefs.h <<\_ACEOF
1847 #define __BSD__ 1
1848 _ACEOF
1849
1850     DEFAULT_DEFAULT_wxUSE_GTK=1
1851   ;;
1852   *-*-osf* )
1853     USE_ALPHA=1
1854     USE_OSF=1
1855     cat >>confdefs.h <<\_ACEOF
1856 #define __ALPHA__ 1
1857 _ACEOF
1858
1859     cat >>confdefs.h <<\_ACEOF
1860 #define __OSF__ 1
1861 _ACEOF
1862
1863     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1864     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1865   ;;
1866   *-*-dgux5* )
1867     USE_ALPHA=1
1868     USE_SVR4=1
1869     cat >>confdefs.h <<\_ACEOF
1870 #define __ALPHA__ 1
1871 _ACEOF
1872
1873     cat >>confdefs.h <<\_ACEOF
1874 #define __SVR4__ 1
1875 _ACEOF
1876
1877     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1878   ;;
1879   *-*-sysv5* )
1880     USE_SYSV=1
1881     USE_SVR4=1
1882     cat >>confdefs.h <<\_ACEOF
1883 #define __SYSV__ 1
1884 _ACEOF
1885
1886     cat >>confdefs.h <<\_ACEOF
1887 #define __SVR4__ 1
1888 _ACEOF
1889
1890     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1891   ;;
1892   *-*-aix* )
1893     USE_AIX=1
1894     USE_SYSV=1
1895     USE_SVR4=1
1896                         SO_SUFFIX=a
1897     cat >>confdefs.h <<\_ACEOF
1898 #define __AIX__ 1
1899 _ACEOF
1900
1901     cat >>confdefs.h <<\_ACEOF
1902 #define __SYSV__ 1
1903 _ACEOF
1904
1905     cat >>confdefs.h <<\_ACEOF
1906 #define __SVR4__ 1
1907 _ACEOF
1908
1909     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1910   ;;
1911
1912   *-*-*UnixWare*)
1913     USE_SYSV=1
1914     USE_SVR4=1
1915     USE_UNIXWARE=1
1916     cat >>confdefs.h <<\_ACEOF
1917 #define __UNIXWARE__ 1
1918 _ACEOF
1919
1920   ;;
1921
1922   *-*-cygwin* | *-*-mingw32* )
1923                 SO_SUFFIX=dll
1924     PROGRAM_EXT=".exe"
1925     RESCOMP=windres
1926     DEFAULT_DEFAULT_wxUSE_MSW=1
1927   ;;
1928
1929   *-pc-msdosdjgpp )
1930     USE_UNIX=0
1931     USE_DOS=1
1932     cat >>confdefs.h <<\_ACEOF
1933 #define __DOS__ 1
1934 _ACEOF
1935
1936     PROGRAM_EXT=".exe"
1937     DEFAULT_DEFAULT_wxUSE_MGL=1
1938         LIBS="$LIBS -lstdc++"
1939   ;;
1940
1941   *-pc-os2_emx | *-pc-os2-emx )
1942     cat >>confdefs.h <<\_ACEOF
1943 #define __EMX__ 1
1944 _ACEOF
1945
1946     USE_OS2=1
1947     cat >>confdefs.h <<\_ACEOF
1948 #define __OS2__ 1
1949 _ACEOF
1950
1951     PROGRAM_EXT=".exe"
1952     DEFAULT_DEFAULT_wxUSE_PM=1
1953         CXX=gcc
1954     LDFLAGS="$LDFLAGS -Zcrtdll"
1955                         ac_executable_extensions=".exe"
1956     export ac_executable_extensions
1957             ac_save_IFS="$IFS"
1958     IFS='\\'
1959     ac_TEMP_PATH=
1960     for ac_dir in $PATH; do
1961       IFS=$ac_save_IFS
1962       if test -z "$ac_TEMP_PATH"; then
1963         ac_TEMP_PATH="$ac_dir"
1964       else
1965         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1966       fi
1967     done
1968     export PATH="$ac_TEMP_PATH"
1969     unset ac_TEMP_PATH
1970   ;;
1971
1972   powerpc-*-darwin* )
1973         USE_BSD=1
1974     USE_DARWIN=1
1975     SO_SUFFIX=dylib
1976     cat >>confdefs.h <<\_ACEOF
1977 #define __BSD__ 1
1978 _ACEOF
1979
1980     cat >>confdefs.h <<\_ACEOF
1981 #define __DARWIN__ 1
1982 _ACEOF
1983
1984     cat >>confdefs.h <<\_ACEOF
1985 #define __POWERPC__ 1
1986 _ACEOF
1987
1988     cat >>confdefs.h <<\_ACEOF
1989 #define TARGET_CARBON 1
1990 _ACEOF
1991
1992     DEFAULT_DEFAULT_wxUSE_MAC=1
1993   ;;
1994   powerpc-apple-macos* )
1995         USE_UNIX=0
1996             ac_cv_c_bigendian=yes
1997     SO_SUFFIX=shlib
1998             DEFAULT_DEFAULT_wxUSE_MAC=1
1999   ;;
2000
2001   *-*-beos* )
2002         USE_BEOS=1
2003     cat >>confdefs.h <<\_ACEOF
2004 #define __BEOS__ 1
2005 _ACEOF
2006
2007   ;;
2008
2009   *)
2010     { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2011 echo "$as_me: error: unknown system type ${host}." >&2;}
2012    { (exit 1); exit 1; }; }
2013 esac
2014
2015
2016
2017
2018           wx_arg_cache_file="configarg.cache"
2019           echo "loading argument cache $wx_arg_cache_file"
2020           rm -f ${wx_arg_cache_file}.tmp
2021           touch ${wx_arg_cache_file}.tmp
2022           touch ${wx_arg_cache_file}
2023
2024
2025 DEBUG_CONFIGURE=0
2026 if test $DEBUG_CONFIGURE = 1; then
2027   DEFAULT_wxUSE_UNIVERSAL=no
2028   DEFAULT_wxUSE_STL=no
2029
2030   DEFAULT_wxUSE_NANOX=no
2031
2032   DEFAULT_wxUSE_THREADS=yes
2033
2034   DEFAULT_wxUSE_SHARED=yes
2035   DEFAULT_wxUSE_OPTIMISE=no
2036   DEFAULT_wxUSE_PROFILE=no
2037   DEFAULT_wxUSE_NO_DEPS=no
2038   DEFAULT_wxUSE_NO_RTTI=no
2039   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2040   DEFAULT_wxUSE_RPATH=yes
2041   DEFAULT_wxUSE_PERMISSIVE=no
2042   DEFAULT_wxUSE_DEBUG_FLAG=yes
2043   DEFAULT_wxUSE_DEBUG_INFO=yes
2044   DEFAULT_wxUSE_DEBUG_GDB=yes
2045   DEFAULT_wxUSE_MEM_TRACING=no
2046   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2047   DEFAULT_wxUSE_DMALLOC=no
2048   DEFAULT_wxUSE_APPLE_IEEE=no
2049
2050   DEFAULT_wxUSE_EXCEPTIONS=no
2051   DEFAULT_wxUSE_LOG=yes
2052   DEFAULT_wxUSE_LOGWINDOW=no
2053   DEFAULT_wxUSE_LOGGUI=no
2054   DEFAULT_wxUSE_LOGDIALOG=no
2055
2056   DEFAULT_wxUSE_GUI=yes
2057   DEFAULT_wxUSE_CONTROLS=no
2058
2059   DEFAULT_wxUSE_REGEX=no
2060   DEFAULT_wxUSE_XML=no
2061   DEFAULT_wxUSE_EXPAT=no
2062   DEFAULT_wxUSE_ZLIB=no
2063   DEFAULT_wxUSE_LIBPNG=no
2064   DEFAULT_wxUSE_LIBJPEG=no
2065   DEFAULT_wxUSE_LIBTIFF=no
2066   DEFAULT_wxUSE_LIBXPM=no
2067   DEFAULT_wxUSE_LIBMSPACK=no
2068   DEFAULT_wxUSE_LIBSDL=no
2069   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2070   DEFAULT_wxUSE_ODBC=no
2071   DEFAULT_wxUSE_OPENGL=no
2072
2073   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2074   DEFAULT_wxUSE_STACKWALKER=no
2075   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2076   DEFAULT_wxUSE_STD_IOSTREAM=no
2077   DEFAULT_wxUSE_CMDLINE_PARSER=no
2078   DEFAULT_wxUSE_DATETIME=no
2079   DEFAULT_wxUSE_TIMER=no
2080   DEFAULT_wxUSE_STOPWATCH=no
2081   DEFAULT_wxUSE_FILE=no
2082   DEFAULT_wxUSE_FFILE=no
2083   DEFAULT_wxUSE_TEXTBUFFER=no
2084   DEFAULT_wxUSE_TEXTFILE=no
2085   DEFAULT_wxUSE_SOUND=no
2086   DEFAULT_wxUSE_MEDIACTRL=no
2087   DEFAULT_wxUSE_DIRECTSHOW=no
2088   DEFAULT_wxUSE_INTL=no
2089   DEFAULT_wxUSE_CONFIG=no
2090   DEFAULT_wxUSE_FONTMAP=no
2091   DEFAULT_wxUSE_STREAMS=no
2092   DEFAULT_wxUSE_SOCKETS=no
2093   DEFAULT_wxUSE_OLE=no
2094   DEFAULT_wxUSE_DATAOBJ=no
2095   DEFAULT_wxUSE_DIALUP_MANAGER=no
2096   DEFAULT_wxUSE_JOYSTICK=no
2097   DEFAULT_wxUSE_DYNLIB_CLASS=no
2098   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2099   DEFAULT_wxUSE_LONGLONG=no
2100   DEFAULT_wxUSE_GEOMETRY=no
2101
2102   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2103   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2104   DEFAULT_wxUSE_POSTSCRIPT=no
2105
2106   DEFAULT_wxUSE_CLIPBOARD=no
2107   DEFAULT_wxUSE_TOOLTIPS=no
2108   DEFAULT_wxUSE_DRAG_AND_DROP=no
2109   DEFAULT_wxUSE_DRAGIMAGE=no
2110   DEFAULT_wxUSE_SPLINES=no
2111
2112   DEFAULT_wxUSE_MDI=no
2113   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2114   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2115   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2116
2117   DEFAULT_wxUSE_RESOURCES=no
2118   DEFAULT_wxUSE_CONSTRAINTS=no
2119   DEFAULT_wxUSE_IPC=no
2120   DEFAULT_wxUSE_HELP=no
2121   DEFAULT_wxUSE_MS_HTML_HELP=no
2122   DEFAULT_wxUSE_WXHTML_HELP=no
2123   DEFAULT_wxUSE_TREELAYOUT=no
2124   DEFAULT_wxUSE_METAFILE=no
2125   DEFAULT_wxUSE_MIMETYPE=no
2126   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2127   DEFAULT_wxUSE_PROTOCOL=no
2128   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2129   DEFAULT_wxUSE_PROTOCOL_FTP=no
2130   DEFAULT_wxUSE_PROTOCOL_FILE=no
2131   DEFAULT_wxUSE_URL=no
2132
2133   DEFAULT_wxUSE_COMMONDLGS=no
2134   DEFAULT_wxUSE_CHOICEDLG=no
2135   DEFAULT_wxUSE_COLOURDLG=no
2136   DEFAULT_wxUSE_DIRDLG=no
2137   DEFAULT_wxUSE_FILEDLG=no
2138   DEFAULT_wxUSE_FINDREPLDLG=no
2139   DEFAULT_wxUSE_FONTDLG=no
2140   DEFAULT_wxUSE_MSGDLG=no
2141   DEFAULT_wxUSE_NUMBERDLG=no
2142   DEFAULT_wxUSE_TEXTDLG=no
2143   DEFAULT_wxUSE_SPLASH=no
2144   DEFAULT_wxUSE_STARTUP_TIPS=no
2145   DEFAULT_wxUSE_PROGRESSDLG=no
2146   DEFAULT_wxUSE_WIZARDDLG=no
2147
2148   DEFAULT_wxUSE_MENUS=no
2149   DEFAULT_wxUSE_MINIFRAME=no
2150   DEFAULT_wxUSE_HTML=no
2151   DEFAULT_wxUSE_XRC=no
2152   DEFAULT_wxUSE_WEBKIT=no
2153   DEFAULT_wxUSE_FILESYSTEM=no
2154   DEFAULT_wxUSE_FS_INET=no
2155   DEFAULT_wxUSE_FS_ZIP=no
2156   DEFAULT_wxUSE_BUSYINFO=no
2157   DEFAULT_wxUSE_ZIPSTREAM=no
2158   DEFAULT_wxUSE_VALIDATORS=no
2159
2160   DEFAULT_wxUSE_ACCEL=no
2161   DEFAULT_wxUSE_BUTTON=no
2162   DEFAULT_wxUSE_BMPBUTTON=no
2163   DEFAULT_wxUSE_CALCTRL=no
2164   DEFAULT_wxUSE_CARET=no
2165   DEFAULT_wxUSE_CHECKBOX=no
2166   DEFAULT_wxUSE_CHECKLST=no
2167   DEFAULT_wxUSE_CHOICE=no
2168   DEFAULT_wxUSE_CHOICEBOOK=no
2169   DEFAULT_wxUSE_COMBOBOX=no
2170   DEFAULT_wxUSE_DATEPICKCTRL=no
2171   DEFAULT_wxUSE_DISPLAY=no
2172   DEFAULT_wxUSE_GAUGE=no
2173   DEFAULT_wxUSE_GRID=no
2174   DEFAULT_wxUSE_IMAGLIST=no
2175   DEFAULT_wxUSE_LISTBOOK=no
2176   DEFAULT_wxUSE_LISTBOX=no
2177   DEFAULT_wxUSE_LISTCTRL=no
2178   DEFAULT_wxUSE_NOTEBOOK=no
2179   DEFAULT_wxUSE_RADIOBOX=no
2180   DEFAULT_wxUSE_RADIOBTN=no
2181   DEFAULT_wxUSE_SASH=no
2182   DEFAULT_wxUSE_SCROLLBAR=no
2183   DEFAULT_wxUSE_SLIDER=no
2184   DEFAULT_wxUSE_SPINBTN=no
2185   DEFAULT_wxUSE_SPINCTRL=no
2186   DEFAULT_wxUSE_SPLITTER=no
2187   DEFAULT_wxUSE_STATBMP=no
2188   DEFAULT_wxUSE_STATBOX=no
2189   DEFAULT_wxUSE_STATLINE=no
2190   DEFAULT_wxUSE_STATTEXT=no
2191   DEFAULT_wxUSE_STATUSBAR=yes
2192   DEFAULT_wxUSE_TABDIALOG=no
2193   DEFAULT_wxUSE_TEXTCTRL=no
2194   DEFAULT_wxUSE_TOGGLEBTN=no
2195   DEFAULT_wxUSE_TOOLBAR=no
2196   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2197   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2198   DEFAULT_wxUSE_TREECTRL=no
2199   DEFAULT_wxUSE_POPUPWIN=no
2200   DEFAULT_wxUSE_TIPWINDOW=no
2201
2202   DEFAULT_wxUSE_UNICODE=no
2203   DEFAULT_wxUSE_UNICODE_MSLU=no
2204   DEFAULT_wxUSE_WCSRTOMBS=no
2205
2206   DEFAULT_wxUSE_PALETTE=no
2207   DEFAULT_wxUSE_IMAGE=no
2208   DEFAULT_wxUSE_GIF=no
2209   DEFAULT_wxUSE_PCX=no
2210   DEFAULT_wxUSE_PNM=no
2211   DEFAULT_wxUSE_IFF=no
2212   DEFAULT_wxUSE_XPM=no
2213   DEFAULT_wxUSE_ICO_CUR=no
2214   DEFAULT_wxUSE_ACCESSIBILITY=no
2215
2216   DEFAULT_wxUSE_MONOLITHIC=no
2217   DEFAULT_wxUSE_PLUGINS=no
2218   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2219 else
2220   DEFAULT_wxUSE_UNIVERSAL=no
2221   DEFAULT_wxUSE_STL=no
2222
2223   DEFAULT_wxUSE_NANOX=no
2224
2225   DEFAULT_wxUSE_THREADS=yes
2226
2227   DEFAULT_wxUSE_SHARED=yes
2228   DEFAULT_wxUSE_OPTIMISE=yes
2229   DEFAULT_wxUSE_PROFILE=no
2230   DEFAULT_wxUSE_NO_DEPS=no
2231   DEFAULT_wxUSE_NO_RTTI=no
2232   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2233   DEFAULT_wxUSE_RPATH=yes
2234   DEFAULT_wxUSE_PERMISSIVE=no
2235   DEFAULT_wxUSE_DEBUG_FLAG=no
2236   DEFAULT_wxUSE_DEBUG_INFO=no
2237   DEFAULT_wxUSE_DEBUG_GDB=no
2238   DEFAULT_wxUSE_MEM_TRACING=no
2239   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2240   DEFAULT_wxUSE_DMALLOC=no
2241   DEFAULT_wxUSE_APPLE_IEEE=yes
2242
2243   DEFAULT_wxUSE_EXCEPTIONS=yes
2244   DEFAULT_wxUSE_LOG=yes
2245   DEFAULT_wxUSE_LOGWINDOW=yes
2246   DEFAULT_wxUSE_LOGGUI=yes
2247   DEFAULT_wxUSE_LOGDIALOG=yes
2248
2249   DEFAULT_wxUSE_GUI=yes
2250
2251   DEFAULT_wxUSE_REGEX=yes
2252   DEFAULT_wxUSE_XML=yes
2253   DEFAULT_wxUSE_EXPAT=yes
2254   DEFAULT_wxUSE_ZLIB=yes
2255   DEFAULT_wxUSE_LIBPNG=yes
2256   DEFAULT_wxUSE_LIBJPEG=yes
2257   DEFAULT_wxUSE_LIBTIFF=yes
2258   DEFAULT_wxUSE_LIBXPM=yes
2259   DEFAULT_wxUSE_LIBMSPACK=yes
2260   DEFAULT_wxUSE_LIBSDL=no
2261   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2262   DEFAULT_wxUSE_ODBC=no
2263   DEFAULT_wxUSE_OPENGL=no
2264
2265   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2266   DEFAULT_wxUSE_STACKWALKER=yes
2267   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2268   DEFAULT_wxUSE_STD_IOSTREAM=no
2269   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2270   DEFAULT_wxUSE_DATETIME=yes
2271   DEFAULT_wxUSE_TIMER=yes
2272   DEFAULT_wxUSE_STOPWATCH=yes
2273   DEFAULT_wxUSE_FILE=yes
2274   DEFAULT_wxUSE_FFILE=yes
2275   DEFAULT_wxUSE_TEXTBUFFER=yes
2276   DEFAULT_wxUSE_TEXTFILE=yes
2277   DEFAULT_wxUSE_SOUND=yes
2278   DEFAULT_wxUSE_MEDIACTRL=no
2279   DEFAULT_wxUSE_DIRECTSHOW=no
2280   DEFAULT_wxUSE_INTL=yes
2281   DEFAULT_wxUSE_CONFIG=yes
2282   DEFAULT_wxUSE_FONTMAP=yes
2283   DEFAULT_wxUSE_STREAMS=yes
2284   DEFAULT_wxUSE_SOCKETS=yes
2285   DEFAULT_wxUSE_OLE=yes
2286   DEFAULT_wxUSE_DATAOBJ=yes
2287   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2288   DEFAULT_wxUSE_JOYSTICK=yes
2289   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2290   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2291   DEFAULT_wxUSE_LONGLONG=yes
2292   DEFAULT_wxUSE_GEOMETRY=yes
2293
2294   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2295   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2296   DEFAULT_wxUSE_POSTSCRIPT=yes
2297
2298   DEFAULT_wxUSE_CLIPBOARD=yes
2299   DEFAULT_wxUSE_TOOLTIPS=yes
2300   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2301   DEFAULT_wxUSE_DRAGIMAGE=yes
2302   DEFAULT_wxUSE_SPLINES=yes
2303
2304   DEFAULT_wxUSE_MDI=yes
2305   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2306   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2307   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2308
2309   DEFAULT_wxUSE_RESOURCES=no
2310   DEFAULT_wxUSE_CONSTRAINTS=yes
2311   DEFAULT_wxUSE_IPC=yes
2312   DEFAULT_wxUSE_HELP=yes
2313   DEFAULT_wxUSE_MS_HTML_HELP=yes
2314   DEFAULT_wxUSE_WXHTML_HELP=yes
2315   DEFAULT_wxUSE_TREELAYOUT=yes
2316   DEFAULT_wxUSE_METAFILE=yes
2317   DEFAULT_wxUSE_MIMETYPE=yes
2318   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2319   DEFAULT_wxUSE_PROTOCOL=yes
2320   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2321   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2322   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2323   DEFAULT_wxUSE_URL=yes
2324
2325   DEFAULT_wxUSE_COMMONDLGS=yes
2326   DEFAULT_wxUSE_CHOICEDLG=yes
2327   DEFAULT_wxUSE_COLOURDLG=yes
2328   DEFAULT_wxUSE_DIRDLG=yes
2329   DEFAULT_wxUSE_FILEDLG=yes
2330   DEFAULT_wxUSE_FINDREPLDLG=yes
2331   DEFAULT_wxUSE_FONTDLG=yes
2332   DEFAULT_wxUSE_MSGDLG=yes
2333   DEFAULT_wxUSE_NUMBERDLG=yes
2334   DEFAULT_wxUSE_TEXTDLG=yes
2335   DEFAULT_wxUSE_SPLASH=yes
2336   DEFAULT_wxUSE_STARTUP_TIPS=yes
2337   DEFAULT_wxUSE_PROGRESSDLG=yes
2338   DEFAULT_wxUSE_WIZARDDLG=yes
2339
2340   DEFAULT_wxUSE_MENUS=yes
2341   DEFAULT_wxUSE_MINIFRAME=yes
2342   DEFAULT_wxUSE_HTML=yes
2343   DEFAULT_wxUSE_XRC=yes
2344   DEFAULT_wxUSE_WEBKIT=yes
2345   DEFAULT_wxUSE_FILESYSTEM=yes
2346   DEFAULT_wxUSE_FS_INET=yes
2347   DEFAULT_wxUSE_FS_ZIP=yes
2348   DEFAULT_wxUSE_BUSYINFO=yes
2349   DEFAULT_wxUSE_ZIPSTREAM=yes
2350   DEFAULT_wxUSE_VALIDATORS=yes
2351
2352   DEFAULT_wxUSE_ACCEL=yes
2353   DEFAULT_wxUSE_BUTTON=yes
2354   DEFAULT_wxUSE_BMPBUTTON=yes
2355   DEFAULT_wxUSE_CALCTRL=yes
2356   DEFAULT_wxUSE_CARET=yes
2357   DEFAULT_wxUSE_CHECKBOX=yes
2358   DEFAULT_wxUSE_CHECKLST=yes
2359   DEFAULT_wxUSE_CHOICE=yes
2360   DEFAULT_wxUSE_CHOICEBOOK=yes
2361   DEFAULT_wxUSE_COMBOBOX=yes
2362   DEFAULT_wxUSE_DATEPICKCTRL=yes
2363   DEFAULT_wxUSE_DISPLAY=yes
2364   DEFAULT_wxUSE_GAUGE=yes
2365   DEFAULT_wxUSE_GRID=yes
2366   DEFAULT_wxUSE_IMAGLIST=yes
2367   DEFAULT_wxUSE_LISTBOOK=yes
2368   DEFAULT_wxUSE_LISTBOX=yes
2369   DEFAULT_wxUSE_LISTCTRL=yes
2370   DEFAULT_wxUSE_NOTEBOOK=yes
2371   DEFAULT_wxUSE_RADIOBOX=yes
2372   DEFAULT_wxUSE_RADIOBTN=yes
2373   DEFAULT_wxUSE_SASH=yes
2374   DEFAULT_wxUSE_SCROLLBAR=yes
2375   DEFAULT_wxUSE_SLIDER=yes
2376   DEFAULT_wxUSE_SPINBTN=yes
2377   DEFAULT_wxUSE_SPINCTRL=yes
2378   DEFAULT_wxUSE_SPLITTER=yes
2379   DEFAULT_wxUSE_STATBMP=yes
2380   DEFAULT_wxUSE_STATBOX=yes
2381   DEFAULT_wxUSE_STATLINE=yes
2382   DEFAULT_wxUSE_STATTEXT=yes
2383   DEFAULT_wxUSE_STATUSBAR=yes
2384   DEFAULT_wxUSE_TABDIALOG=no
2385   DEFAULT_wxUSE_TEXTCTRL=yes
2386   DEFAULT_wxUSE_TOGGLEBTN=yes
2387   DEFAULT_wxUSE_TOOLBAR=yes
2388   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2389   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2390   DEFAULT_wxUSE_TREECTRL=yes
2391   DEFAULT_wxUSE_POPUPWIN=yes
2392   DEFAULT_wxUSE_TIPWINDOW=yes
2393
2394   DEFAULT_wxUSE_UNICODE=no
2395   DEFAULT_wxUSE_UNICODE_MSLU=yes
2396   DEFAULT_wxUSE_WCSRTOMBS=no
2397
2398   DEFAULT_wxUSE_PALETTE=yes
2399   DEFAULT_wxUSE_IMAGE=yes
2400   DEFAULT_wxUSE_GIF=yes
2401   DEFAULT_wxUSE_PCX=yes
2402   DEFAULT_wxUSE_IFF=no
2403   DEFAULT_wxUSE_PNM=yes
2404   DEFAULT_wxUSE_XPM=yes
2405   DEFAULT_wxUSE_ICO_CUR=yes
2406   DEFAULT_wxUSE_ACCESSIBILITY=no
2407
2408   DEFAULT_wxUSE_MONOLITHIC=no
2409   DEFAULT_wxUSE_PLUGINS=no
2410   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2411
2412     DEFAULT_wxUSE_GTK2=yes
2413 fi
2414
2415
2416
2417 for toolkit in `echo $ALL_TOOLKITS`; do
2418   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2419   if test "x$LINE" != "x" ; then
2420     has_toolkit_in_cache=1
2421     eval "DEFAULT_$LINE"
2422     eval "CACHE_$toolkit=1"
2423   fi
2424 done
2425
2426
2427
2428           enablestring=
2429           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2430 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2431           no_cache=0
2432           # Check whether --enable-gui or --disable-gui was given.
2433 if test "${enable_gui+set}" = set; then
2434   enableval="$enable_gui"
2435
2436                           if test "$enableval" = yes; then
2437                             ac_cv_use_gui='wxUSE_GUI=yes'
2438                           else
2439                             ac_cv_use_gui='wxUSE_GUI=no'
2440                           fi
2441
2442 else
2443
2444                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2445                           if test "x$LINE" != x ; then
2446                             eval "DEFAULT_$LINE"
2447                           else
2448                             no_cache=1
2449                           fi
2450
2451                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2452
2453 fi;
2454
2455           eval "$ac_cv_use_gui"
2456           if test "$no_cache" != 1; then
2457             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2458           fi
2459
2460           if test "$wxUSE_GUI" = yes; then
2461             echo "$as_me:$LINENO: result: yes" >&5
2462 echo "${ECHO_T}yes" >&6
2463           else
2464             echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6
2466           fi
2467
2468
2469           enablestring=
2470           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2471 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2472           no_cache=0
2473           # Check whether --enable-monolithic or --disable-monolithic was given.
2474 if test "${enable_monolithic+set}" = set; then
2475   enableval="$enable_monolithic"
2476
2477                           if test "$enableval" = yes; then
2478                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2479                           else
2480                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2481                           fi
2482
2483 else
2484
2485                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2486                           if test "x$LINE" != x ; then
2487                             eval "DEFAULT_$LINE"
2488                           else
2489                             no_cache=1
2490                           fi
2491
2492                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2493
2494 fi;
2495
2496           eval "$ac_cv_use_monolithic"
2497           if test "$no_cache" != 1; then
2498             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2499           fi
2500
2501           if test "$wxUSE_MONOLITHIC" = yes; then
2502             echo "$as_me:$LINENO: result: yes" >&5
2503 echo "${ECHO_T}yes" >&6
2504           else
2505             echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6
2507           fi
2508
2509
2510           enablestring=
2511           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2512 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2513           no_cache=0
2514           # Check whether --enable-plugins or --disable-plugins was given.
2515 if test "${enable_plugins+set}" = set; then
2516   enableval="$enable_plugins"
2517
2518                           if test "$enableval" = yes; then
2519                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2520                           else
2521                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
2522                           fi
2523
2524 else
2525
2526                           LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2527                           if test "x$LINE" != x ; then
2528                             eval "DEFAULT_$LINE"
2529                           else
2530                             no_cache=1
2531                           fi
2532
2533                           ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2534
2535 fi;
2536
2537           eval "$ac_cv_use_plugins"
2538           if test "$no_cache" != 1; then
2539             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2540           fi
2541
2542           if test "$wxUSE_PLUGINS" = yes; then
2543             echo "$as_me:$LINENO: result: yes" >&5
2544 echo "${ECHO_T}yes" >&6
2545           else
2546             echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6
2548           fi
2549
2550
2551 if test "$wxUSE_GUI" = "yes"; then
2552
2553
2554           enablestring=
2555           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2556 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2557           no_cache=0
2558           # Check whether --enable-universal or --disable-universal was given.
2559 if test "${enable_universal+set}" = set; then
2560   enableval="$enable_universal"
2561
2562                           if test "$enableval" = yes; then
2563                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2564                           else
2565                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2566                           fi
2567
2568 else
2569
2570                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2571                           if test "x$LINE" != x ; then
2572                             eval "DEFAULT_$LINE"
2573                           else
2574                             no_cache=1
2575                           fi
2576
2577                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2578
2579 fi;
2580
2581           eval "$ac_cv_use_universal"
2582           if test "$no_cache" != 1; then
2583             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2584           fi
2585
2586           if test "$wxUSE_UNIVERSAL" = yes; then
2587             echo "$as_me:$LINENO: result: yes" >&5
2588 echo "${ECHO_T}yes" >&6
2589           else
2590             echo "$as_me:$LINENO: result: no" >&5
2591 echo "${ECHO_T}no" >&6
2592           fi
2593
2594
2595 # Check whether --with-gtk or --without-gtk was given.
2596 if test "${with_gtk+set}" = set; then
2597   withval="$with_gtk"
2598   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2599 fi;
2600
2601 # Check whether --with-motif or --without-motif was given.
2602 if test "${with_motif+set}" = set; then
2603   withval="$with_motif"
2604   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2605 fi;
2606
2607 # Check whether --with-mac or --without-mac was given.
2608 if test "${with_mac+set}" = set; then
2609   withval="$with_mac"
2610   wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
2611 fi;
2612
2613 # Check whether --with-cocoa or --without-cocoa was given.
2614 if test "${with_cocoa+set}" = set; then
2615   withval="$with_cocoa"
2616   wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
2617 fi;
2618
2619 # Check whether --with-wine or --without-wine was given.
2620 if test "${with_wine+set}" = set; then
2621   withval="$with_wine"
2622   wxUSE_WINE="$withval" CACHE_WINE=1
2623 fi;
2624
2625 # Check whether --with-msw or --without-msw was given.
2626 if test "${with_msw+set}" = set; then
2627   withval="$with_msw"
2628   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2629 fi;
2630
2631 # Check whether --with-pm or --without-pm was given.
2632 if test "${with_pm+set}" = set; then
2633   withval="$with_pm"
2634   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2635 fi;
2636
2637 # Check whether --with-mgl or --without-mgl was given.
2638 if test "${with_mgl+set}" = set; then
2639   withval="$with_mgl"
2640   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2641 fi;
2642
2643 # Check whether --with-microwin or --without-microwin was given.
2644 if test "${with_microwin+set}" = set; then
2645   withval="$with_microwin"
2646   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2647 fi;
2648
2649 # Check whether --with-x11 or --without-x11 was given.
2650 if test "${with_x11+set}" = set; then
2651   withval="$with_x11"
2652   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2653 fi;
2654
2655           enablestring=
2656           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2657 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2658           no_cache=0
2659           # Check whether --enable-nanox or --disable-nanox was given.
2660 if test "${enable_nanox+set}" = set; then
2661   enableval="$enable_nanox"
2662
2663                           if test "$enableval" = yes; then
2664                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2665                           else
2666                             ac_cv_use_nanox='wxUSE_NANOX=no'
2667                           fi
2668
2669 else
2670
2671                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2672                           if test "x$LINE" != x ; then
2673                             eval "DEFAULT_$LINE"
2674                           else
2675                             no_cache=1
2676                           fi
2677
2678                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2679
2680 fi;
2681
2682           eval "$ac_cv_use_nanox"
2683           if test "$no_cache" != 1; then
2684             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2685           fi
2686
2687           if test "$wxUSE_NANOX" = yes; then
2688             echo "$as_me:$LINENO: result: yes" >&5
2689 echo "${ECHO_T}yes" >&6
2690           else
2691             echo "$as_me:$LINENO: result: no" >&5
2692 echo "${ECHO_T}no" >&6
2693           fi
2694
2695
2696
2697           enablestring=
2698           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2699 echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2700           no_cache=0
2701           # Check whether --enable-gtk2 or --disable-gtk2 was given.
2702 if test "${enable_gtk2+set}" = set; then
2703   enableval="$enable_gtk2"
2704
2705                           if test "$enableval" = yes; then
2706                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
2707                           else
2708                             ac_cv_use_gtk2='wxUSE_GTK2=no'
2709                           fi
2710
2711 else
2712
2713                           LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2714                           if test "x$LINE" != x ; then
2715                             eval "DEFAULT_$LINE"
2716                           else
2717                             no_cache=1
2718                           fi
2719
2720                           ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2721
2722 fi;
2723
2724           eval "$ac_cv_use_gtk2"
2725           if test "$no_cache" != 1; then
2726             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2727           fi
2728
2729           if test "$wxUSE_GTK2" = yes; then
2730             echo "$as_me:$LINENO: result: yes" >&5
2731 echo "${ECHO_T}yes" >&6
2732           else
2733             echo "$as_me:$LINENO: result: no" >&5
2734 echo "${ECHO_T}no" >&6
2735           fi
2736
2737
2738           enablestring=
2739           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2740 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2741           no_cache=0
2742           # Check whether --enable-gpe or --disable-gpe was given.
2743 if test "${enable_gpe+set}" = set; then
2744   enableval="$enable_gpe"
2745
2746                           if test "$enableval" = yes; then
2747                             ac_cv_use_gpe='wxUSE_GPE=yes'
2748                           else
2749                             ac_cv_use_gpe='wxUSE_GPE=no'
2750                           fi
2751
2752 else
2753
2754                           LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2755                           if test "x$LINE" != x ; then
2756                             eval "DEFAULT_$LINE"
2757                           else
2758                             no_cache=1
2759                           fi
2760
2761                           ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2762
2763 fi;
2764
2765           eval "$ac_cv_use_gpe"
2766           if test "$no_cache" != 1; then
2767             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2768           fi
2769
2770           if test "$wxUSE_GPE" = yes; then
2771             echo "$as_me:$LINENO: result: yes" >&5
2772 echo "${ECHO_T}yes" >&6
2773           else
2774             echo "$as_me:$LINENO: result: no" >&5
2775 echo "${ECHO_T}no" >&6
2776           fi
2777
2778
2779
2780           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2781 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2782           no_cache=0
2783
2784 # Check whether --with-libpng or --without-libpng was given.
2785 if test "${with_libpng+set}" = set; then
2786   withval="$with_libpng"
2787
2788                         if test "$withval" = yes; then
2789                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2790                         elif test "$withval" = no; then
2791                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2792                         elif test "$withval" = sys; then
2793                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2794                         elif test "$withval" = builtin; then
2795                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2796                         else
2797                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2798 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2799    { (exit 1); exit 1; }; }
2800                         fi
2801
2802 else
2803
2804                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2805                         if test "x$LINE" != x ; then
2806                           eval "DEFAULT_$LINE"
2807                         else
2808                           no_cache=1
2809                         fi
2810
2811                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2812
2813 fi;
2814
2815           eval "$ac_cv_use_libpng"
2816           if test "$no_cache" != 1; then
2817             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2818           fi
2819
2820           if test "$wxUSE_LIBPNG" = yes; then
2821             echo "$as_me:$LINENO: result: yes" >&5
2822 echo "${ECHO_T}yes" >&6
2823           elif test "$wxUSE_LIBPNG" = no; then
2824             echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6
2826           elif test "$wxUSE_LIBPNG" = sys; then
2827             echo "$as_me:$LINENO: result: system version" >&5
2828 echo "${ECHO_T}system version" >&6
2829           elif test "$wxUSE_LIBPNG" = builtin; then
2830             echo "$as_me:$LINENO: result: builtin version" >&5
2831 echo "${ECHO_T}builtin version" >&6
2832           else
2833             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2834 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2835    { (exit 1); exit 1; }; }
2836           fi
2837
2838
2839           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2840 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2841           no_cache=0
2842
2843 # Check whether --with-libjpeg or --without-libjpeg was given.
2844 if test "${with_libjpeg+set}" = set; then
2845   withval="$with_libjpeg"
2846
2847                         if test "$withval" = yes; then
2848                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2849                         elif test "$withval" = no; then
2850                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2851                         elif test "$withval" = sys; then
2852                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2853                         elif test "$withval" = builtin; then
2854                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2855                         else
2856                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2857 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2858    { (exit 1); exit 1; }; }
2859                         fi
2860
2861 else
2862
2863                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2864                         if test "x$LINE" != x ; then
2865                           eval "DEFAULT_$LINE"
2866                         else
2867                           no_cache=1
2868                         fi
2869
2870                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2871
2872 fi;
2873
2874           eval "$ac_cv_use_libjpeg"
2875           if test "$no_cache" != 1; then
2876             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2877           fi
2878
2879           if test "$wxUSE_LIBJPEG" = yes; then
2880             echo "$as_me:$LINENO: result: yes" >&5
2881 echo "${ECHO_T}yes" >&6
2882           elif test "$wxUSE_LIBJPEG" = no; then
2883             echo "$as_me:$LINENO: result: no" >&5
2884 echo "${ECHO_T}no" >&6
2885           elif test "$wxUSE_LIBJPEG" = sys; then
2886             echo "$as_me:$LINENO: result: system version" >&5
2887 echo "${ECHO_T}system version" >&6
2888           elif test "$wxUSE_LIBJPEG" = builtin; then
2889             echo "$as_me:$LINENO: result: builtin version" >&5
2890 echo "${ECHO_T}builtin version" >&6
2891           else
2892             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2893 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2894    { (exit 1); exit 1; }; }
2895           fi
2896
2897
2898           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2899 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2900           no_cache=0
2901
2902 # Check whether --with-libtiff or --without-libtiff was given.
2903 if test "${with_libtiff+set}" = set; then
2904   withval="$with_libtiff"
2905
2906                         if test "$withval" = yes; then
2907                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2908                         elif test "$withval" = no; then
2909                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2910                         elif test "$withval" = sys; then
2911                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2912                         elif test "$withval" = builtin; then
2913                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2914                         else
2915                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2916 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2917    { (exit 1); exit 1; }; }
2918                         fi
2919
2920 else
2921
2922                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2923                         if test "x$LINE" != x ; then
2924                           eval "DEFAULT_$LINE"
2925                         else
2926                           no_cache=1
2927                         fi
2928
2929                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2930
2931 fi;
2932
2933           eval "$ac_cv_use_libtiff"
2934           if test "$no_cache" != 1; then
2935             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2936           fi
2937
2938           if test "$wxUSE_LIBTIFF" = yes; then
2939             echo "$as_me:$LINENO: result: yes" >&5
2940 echo "${ECHO_T}yes" >&6
2941           elif test "$wxUSE_LIBTIFF" = no; then
2942             echo "$as_me:$LINENO: result: no" >&5
2943 echo "${ECHO_T}no" >&6
2944           elif test "$wxUSE_LIBTIFF" = sys; then
2945             echo "$as_me:$LINENO: result: system version" >&5
2946 echo "${ECHO_T}system version" >&6
2947           elif test "$wxUSE_LIBTIFF" = builtin; then
2948             echo "$as_me:$LINENO: result: builtin version" >&5
2949 echo "${ECHO_T}builtin version" >&6
2950           else
2951             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2952 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2953    { (exit 1); exit 1; }; }
2954           fi
2955
2956
2957           echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2958 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2959           no_cache=0
2960
2961 # Check whether --with-libxpm or --without-libxpm was given.
2962 if test "${with_libxpm+set}" = set; then
2963   withval="$with_libxpm"
2964
2965                         if test "$withval" = yes; then
2966                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2967                         elif test "$withval" = no; then
2968                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2969                         elif test "$withval" = sys; then
2970                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2971                         elif test "$withval" = builtin; then
2972                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2973                         else
2974                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2975 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2976    { (exit 1); exit 1; }; }
2977                         fi
2978
2979 else
2980
2981                         LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2982                         if test "x$LINE" != x ; then
2983                           eval "DEFAULT_$LINE"
2984                         else
2985                           no_cache=1
2986                         fi
2987
2988                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2989
2990 fi;
2991
2992           eval "$ac_cv_use_libxpm"
2993           if test "$no_cache" != 1; then
2994             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2995           fi
2996
2997           if test "$wxUSE_LIBXPM" = yes; then
2998             echo "$as_me:$LINENO: result: yes" >&5
2999 echo "${ECHO_T}yes" >&6
3000           elif test "$wxUSE_LIBXPM" = no; then
3001             echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6
3003           elif test "$wxUSE_LIBXPM" = sys; then
3004             echo "$as_me:$LINENO: result: system version" >&5
3005 echo "${ECHO_T}system version" >&6
3006           elif test "$wxUSE_LIBXPM" = builtin; then
3007             echo "$as_me:$LINENO: result: builtin version" >&5
3008 echo "${ECHO_T}builtin version" >&6
3009           else
3010             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3011 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3012    { (exit 1); exit 1; }; }
3013           fi
3014
3015
3016           echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3017 echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3018           no_cache=0
3019
3020 # Check whether --with-libmspack or --without-libmspack was given.
3021 if test "${with_libmspack+set}" = set; then
3022   withval="$with_libmspack"
3023
3024                         if test "$withval" = yes; then
3025                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3026                         else
3027                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3028                         fi
3029
3030 else
3031
3032                         LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3033                         if test "x$LINE" != x ; then
3034                           eval "DEFAULT_$LINE"
3035                         else
3036                           no_cache=1
3037                         fi
3038
3039                         ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3040
3041 fi;
3042
3043           eval "$ac_cv_use_libmspack"
3044           if test "$no_cache" != 1; then
3045             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3046           fi
3047
3048           if test "$wxUSE_LIBMSPACK" = yes; then
3049             echo "$as_me:$LINENO: result: yes" >&5
3050 echo "${ECHO_T}yes" >&6
3051           else
3052             echo "$as_me:$LINENO: result: no" >&5
3053 echo "${ECHO_T}no" >&6
3054           fi
3055
3056
3057           echo "$as_me:$LINENO: checking for --with-sdl" >&5
3058 echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3059           no_cache=0
3060
3061 # Check whether --with-sdl or --without-sdl was given.
3062 if test "${with_sdl+set}" = set; then
3063   withval="$with_sdl"
3064
3065                         if test "$withval" = yes; then
3066                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3067                         else
3068                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
3069                         fi
3070
3071 else
3072
3073                         LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3074                         if test "x$LINE" != x ; then
3075                           eval "DEFAULT_$LINE"
3076                         else
3077                           no_cache=1
3078                         fi
3079
3080                         ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3081
3082 fi;
3083
3084           eval "$ac_cv_use_sdl"
3085           if test "$no_cache" != 1; then
3086             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3087           fi
3088
3089           if test "$wxUSE_LIBSDL" = yes; then
3090             echo "$as_me:$LINENO: result: yes" >&5
3091 echo "${ECHO_T}yes" >&6
3092           else
3093             echo "$as_me:$LINENO: result: no" >&5
3094 echo "${ECHO_T}no" >&6
3095           fi
3096
3097
3098           echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3099 echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3100           no_cache=0
3101
3102 # Check whether --with-gnomeprint or --without-gnomeprint was given.
3103 if test "${with_gnomeprint+set}" = set; then
3104   withval="$with_gnomeprint"
3105
3106                         if test "$withval" = yes; then
3107                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3108                         else
3109                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3110                         fi
3111
3112 else
3113
3114                         LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3115                         if test "x$LINE" != x ; then
3116                           eval "DEFAULT_$LINE"
3117                         else
3118                           no_cache=1
3119                         fi
3120
3121                         ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3122
3123 fi;
3124
3125           eval "$ac_cv_use_gnomeprint"
3126           if test "$no_cache" != 1; then
3127             echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3128           fi
3129
3130           if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3131             echo "$as_me:$LINENO: result: yes" >&5
3132 echo "${ECHO_T}yes" >&6
3133           else
3134             echo "$as_me:$LINENO: result: no" >&5
3135 echo "${ECHO_T}no" >&6
3136           fi
3137
3138
3139           echo "$as_me:$LINENO: checking for --with-opengl" >&5
3140 echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3141           no_cache=0
3142
3143 # Check whether --with-opengl or --without-opengl was given.
3144 if test "${with_opengl+set}" = set; then
3145   withval="$with_opengl"
3146
3147                         if test "$withval" = yes; then
3148                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
3149                         else
3150                           ac_cv_use_opengl='wxUSE_OPENGL=no'
3151                         fi
3152
3153 else
3154
3155                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3156                         if test "x$LINE" != x ; then
3157                           eval "DEFAULT_$LINE"
3158                         else
3159                           no_cache=1
3160                         fi
3161
3162                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3163
3164 fi;
3165
3166           eval "$ac_cv_use_opengl"
3167           if test "$no_cache" != 1; then
3168             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3169           fi
3170
3171           if test "$wxUSE_OPENGL" = yes; then
3172             echo "$as_me:$LINENO: result: yes" >&5
3173 echo "${ECHO_T}yes" >&6
3174           else
3175             echo "$as_me:$LINENO: result: no" >&5
3176 echo "${ECHO_T}no" >&6
3177           fi
3178
3179
3180 fi
3181
3182
3183           echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3184 echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3185           no_cache=0
3186
3187 # Check whether --with-dmalloc or --without-dmalloc was given.
3188 if test "${with_dmalloc+set}" = set; then
3189   withval="$with_dmalloc"
3190
3191                         if test "$withval" = yes; then
3192                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3193                         else
3194                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3195                         fi
3196
3197 else
3198
3199                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3200                         if test "x$LINE" != x ; then
3201                           eval "DEFAULT_$LINE"
3202                         else
3203                           no_cache=1
3204                         fi
3205
3206                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3207
3208 fi;
3209
3210           eval "$ac_cv_use_dmalloc"
3211           if test "$no_cache" != 1; then
3212             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3213           fi
3214
3215           if test "$wxUSE_DMALLOC" = yes; then
3216             echo "$as_me:$LINENO: result: yes" >&5
3217 echo "${ECHO_T}yes" >&6
3218           else
3219             echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3221           fi
3222
3223
3224           echo "$as_me:$LINENO: checking for --with-regex" >&5
3225 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3226           no_cache=0
3227
3228 # Check whether --with-regex or --without-regex was given.
3229 if test "${with_regex+set}" = set; then
3230   withval="$with_regex"
3231
3232                         if test "$withval" = yes; then
3233                           ac_cv_use_regex='wxUSE_REGEX=yes'
3234                         elif test "$withval" = no; then
3235                           ac_cv_use_regex='wxUSE_REGEX=no'
3236                         elif test "$withval" = sys; then
3237                           ac_cv_use_regex='wxUSE_REGEX=sys'
3238                         elif test "$withval" = builtin; then
3239                           ac_cv_use_regex='wxUSE_REGEX=builtin'
3240                         else
3241                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3242 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3243    { (exit 1); exit 1; }; }
3244                         fi
3245
3246 else
3247
3248                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3249                         if test "x$LINE" != x ; then
3250                           eval "DEFAULT_$LINE"
3251                         else
3252                           no_cache=1
3253                         fi
3254
3255                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3256
3257 fi;
3258
3259           eval "$ac_cv_use_regex"
3260           if test "$no_cache" != 1; then
3261             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3262           fi
3263
3264           if test "$wxUSE_REGEX" = yes; then
3265             echo "$as_me:$LINENO: result: yes" >&5
3266 echo "${ECHO_T}yes" >&6
3267           elif test "$wxUSE_REGEX" = no; then
3268             echo "$as_me:$LINENO: result: no" >&5
3269 echo "${ECHO_T}no" >&6
3270           elif test "$wxUSE_REGEX" = sys; then
3271             echo "$as_me:$LINENO: result: system version" >&5
3272 echo "${ECHO_T}system version" >&6
3273           elif test "$wxUSE_REGEX" = builtin; then
3274             echo "$as_me:$LINENO: result: builtin version" >&5
3275 echo "${ECHO_T}builtin version" >&6
3276           else
3277             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3278 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3279    { (exit 1); exit 1; }; }
3280           fi
3281
3282
3283           echo "$as_me:$LINENO: checking for --with-zlib" >&5
3284 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3285           no_cache=0
3286
3287 # Check whether --with-zlib or --without-zlib was given.
3288 if test "${with_zlib+set}" = set; then
3289   withval="$with_zlib"
3290
3291                         if test "$withval" = yes; then
3292                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
3293                         elif test "$withval" = no; then
3294                           ac_cv_use_zlib='wxUSE_ZLIB=no'
3295                         elif test "$withval" = sys; then
3296                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
3297                         elif test "$withval" = builtin; then
3298                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3299                         else
3300                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3301 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3302    { (exit 1); exit 1; }; }
3303                         fi
3304
3305 else
3306
3307                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3308                         if test "x$LINE" != x ; then
3309                           eval "DEFAULT_$LINE"
3310                         else
3311                           no_cache=1
3312                         fi
3313
3314                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3315
3316 fi;
3317
3318           eval "$ac_cv_use_zlib"
3319           if test "$no_cache" != 1; then
3320             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3321           fi
3322
3323           if test "$wxUSE_ZLIB" = yes; then
3324             echo "$as_me:$LINENO: result: yes" >&5
3325 echo "${ECHO_T}yes" >&6
3326           elif test "$wxUSE_ZLIB" = no; then
3327             echo "$as_me:$LINENO: result: no" >&5
3328 echo "${ECHO_T}no" >&6
3329           elif test "$wxUSE_ZLIB" = sys; then
3330             echo "$as_me:$LINENO: result: system version" >&5
3331 echo "${ECHO_T}system version" >&6
3332           elif test "$wxUSE_ZLIB" = builtin; then
3333             echo "$as_me:$LINENO: result: builtin version" >&5
3334 echo "${ECHO_T}builtin version" >&6
3335           else
3336             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3337 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3338    { (exit 1); exit 1; }; }
3339           fi
3340
3341
3342           echo "$as_me:$LINENO: checking for --with-odbc" >&5
3343 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3344           no_cache=0
3345
3346 # Check whether --with-odbc or --without-odbc was given.
3347 if test "${with_odbc+set}" = set; then
3348   withval="$with_odbc"
3349
3350                         if test "$withval" = yes; then
3351                           ac_cv_use_odbc='wxUSE_ODBC=yes'
3352                         elif test "$withval" = no; then
3353                           ac_cv_use_odbc='wxUSE_ODBC=no'
3354                         elif test "$withval" = sys; then
3355                           ac_cv_use_odbc='wxUSE_ODBC=sys'
3356                         elif test "$withval" = builtin; then
3357                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
3358                         else
3359                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3360 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3361    { (exit 1); exit 1; }; }
3362                         fi
3363
3364 else
3365
3366                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3367                         if test "x$LINE" != x ; then
3368                           eval "DEFAULT_$LINE"
3369                         else
3370                           no_cache=1
3371                         fi
3372
3373                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3374
3375 fi;
3376
3377           eval "$ac_cv_use_odbc"
3378           if test "$no_cache" != 1; then
3379             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3380           fi
3381
3382           if test "$wxUSE_ODBC" = yes; then
3383             echo "$as_me:$LINENO: result: yes" >&5
3384 echo "${ECHO_T}yes" >&6
3385           elif test "$wxUSE_ODBC" = no; then
3386             echo "$as_me:$LINENO: result: no" >&5
3387 echo "${ECHO_T}no" >&6
3388           elif test "$wxUSE_ODBC" = sys; then
3389             echo "$as_me:$LINENO: result: system version" >&5
3390 echo "${ECHO_T}system version" >&6
3391           elif test "$wxUSE_ODBC" = builtin; then
3392             echo "$as_me:$LINENO: result: builtin version" >&5
3393 echo "${ECHO_T}builtin version" >&6
3394           else
3395             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3396 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3397    { (exit 1); exit 1; }; }
3398           fi
3399
3400
3401           echo "$as_me:$LINENO: checking for --with-expat" >&5
3402 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3403           no_cache=0
3404
3405 # Check whether --with-expat or --without-expat was given.
3406 if test "${with_expat+set}" = set; then
3407   withval="$with_expat"
3408
3409                         if test "$withval" = yes; then
3410                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3411                         elif test "$withval" = no; then
3412                           ac_cv_use_expat='wxUSE_EXPAT=no'
3413                         elif test "$withval" = sys; then
3414                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3415                         elif test "$withval" = builtin; then
3416                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3417                         else
3418                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3419 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3420    { (exit 1); exit 1; }; }
3421                         fi
3422
3423 else
3424
3425                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3426                         if test "x$LINE" != x ; then
3427                           eval "DEFAULT_$LINE"
3428                         else
3429                           no_cache=1
3430                         fi
3431
3432                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3433
3434 fi;
3435
3436           eval "$ac_cv_use_expat"
3437           if test "$no_cache" != 1; then
3438             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3439           fi
3440
3441           if test "$wxUSE_EXPAT" = yes; then
3442             echo "$as_me:$LINENO: result: yes" >&5
3443 echo "${ECHO_T}yes" >&6
3444           elif test "$wxUSE_EXPAT" = no; then
3445             echo "$as_me:$LINENO: result: no" >&5
3446 echo "${ECHO_T}no" >&6
3447           elif test "$wxUSE_EXPAT" = sys; then
3448             echo "$as_me:$LINENO: result: system version" >&5
3449 echo "${ECHO_T}system version" >&6
3450           elif test "$wxUSE_EXPAT" = builtin; then
3451             echo "$as_me:$LINENO: result: builtin version" >&5
3452 echo "${ECHO_T}builtin version" >&6
3453           else
3454             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3455 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3456    { (exit 1); exit 1; }; }
3457           fi
3458
3459
3460
3461
3462           enablestring=
3463           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3464 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3465           no_cache=0
3466           # Check whether --enable-shared or --disable-shared was given.
3467 if test "${enable_shared+set}" = set; then
3468   enableval="$enable_shared"
3469
3470                           if test "$enableval" = yes; then
3471                             ac_cv_use_shared='wxUSE_SHARED=yes'
3472                           else
3473                             ac_cv_use_shared='wxUSE_SHARED=no'
3474                           fi
3475
3476 else
3477
3478                           LINE=`grep "wxUSE_SHARED" ${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_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3486
3487 fi;
3488
3489           eval "$ac_cv_use_shared"
3490           if test "$no_cache" != 1; then
3491             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3492           fi
3493
3494           if test "$wxUSE_SHARED" = 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           enablestring=
3504           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3505 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3506           no_cache=0
3507           # Check whether --enable-optimise or --disable-optimise was given.
3508 if test "${enable_optimise+set}" = set; then
3509   enableval="$enable_optimise"
3510
3511                           if test "$enableval" = yes; then
3512                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3513                           else
3514                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3515                           fi
3516
3517 else
3518
3519                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3520                           if test "x$LINE" != x ; then
3521                             eval "DEFAULT_$LINE"
3522                           else
3523                             no_cache=1
3524                           fi
3525
3526                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3527
3528 fi;
3529
3530           eval "$ac_cv_use_optimise"
3531           if test "$no_cache" != 1; then
3532             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3533           fi
3534
3535           if test "$wxUSE_OPTIMISE" = yes; then
3536             echo "$as_me:$LINENO: result: yes" >&5
3537 echo "${ECHO_T}yes" >&6
3538           else
3539             echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3541           fi
3542
3543
3544           enablestring=
3545           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3546 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3547           no_cache=0
3548           # Check whether --enable-debug or --disable-debug was given.
3549 if test "${enable_debug+set}" = set; then
3550   enableval="$enable_debug"
3551
3552                           if test "$enableval" = yes; then
3553                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3554                           else
3555                             ac_cv_use_debug='wxUSE_DEBUG=no'
3556                           fi
3557
3558 else
3559
3560                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3561                           if test "x$LINE" != x ; then
3562                             eval "DEFAULT_$LINE"
3563                           else
3564                             no_cache=1
3565                           fi
3566
3567                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3568
3569 fi;
3570
3571           eval "$ac_cv_use_debug"
3572           if test "$no_cache" != 1; then
3573             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3574           fi
3575
3576           if test "$wxUSE_DEBUG" = yes; then
3577             echo "$as_me:$LINENO: result: yes" >&5
3578 echo "${ECHO_T}yes" >&6
3579           else
3580             echo "$as_me:$LINENO: result: no" >&5
3581 echo "${ECHO_T}no" >&6
3582           fi
3583
3584
3585           enablestring=
3586           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3587 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3588           no_cache=0
3589           # Check whether --enable-stl or --disable-stl was given.
3590 if test "${enable_stl+set}" = set; then
3591   enableval="$enable_stl"
3592
3593                           if test "$enableval" = yes; then
3594                             ac_cv_use_stl='wxUSE_STL=yes'
3595                           else
3596                             ac_cv_use_stl='wxUSE_STL=no'
3597                           fi
3598
3599 else
3600
3601                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3602                           if test "x$LINE" != x ; then
3603                             eval "DEFAULT_$LINE"
3604                           else
3605                             no_cache=1
3606                           fi
3607
3608                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3609
3610 fi;
3611
3612           eval "$ac_cv_use_stl"
3613           if test "$no_cache" != 1; then
3614             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3615           fi
3616
3617           if test "$wxUSE_STL" = yes; then
3618             echo "$as_me:$LINENO: result: yes" >&5
3619 echo "${ECHO_T}yes" >&6
3620           else
3621             echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6
3623           fi
3624
3625 if test "$USE_OS2" = "1"; then
3626
3627           enablestring=
3628           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3629 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3630           no_cache=0
3631           # Check whether --enable-omf or --disable-omf was given.
3632 if test "${enable_omf+set}" = set; then
3633   enableval="$enable_omf"
3634
3635                           if test "$enableval" = yes; then
3636                             ac_cv_use_omf='wxUSE_OMF=yes'
3637                           else
3638                             ac_cv_use_omf='wxUSE_OMF=no'
3639                           fi
3640
3641 else
3642
3643                           LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3644                           if test "x$LINE" != x ; then
3645                             eval "DEFAULT_$LINE"
3646                           else
3647                             no_cache=1
3648                           fi
3649
3650                           ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3651
3652 fi;
3653
3654           eval "$ac_cv_use_omf"
3655           if test "$no_cache" != 1; then
3656             echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3657           fi
3658
3659           if test "$wxUSE_OMF" = yes; then
3660             echo "$as_me:$LINENO: result: yes" >&5
3661 echo "${ECHO_T}yes" >&6
3662           else
3663             echo "$as_me:$LINENO: result: no" >&5
3664 echo "${ECHO_T}no" >&6
3665           fi
3666
3667 fi
3668
3669 if test "$wxUSE_DEBUG" = "yes"; then
3670   DEFAULT_wxUSE_DEBUG_FLAG=yes
3671   DEFAULT_wxUSE_DEBUG_INFO=yes
3672   BUILD=debug
3673 elif test "$wxUSE_DEBUG" = "no"; then
3674   DEFAULT_wxUSE_DEBUG_FLAG=no
3675   DEFAULT_wxUSE_DEBUG_INFO=no
3676   BUILD=release
3677 fi
3678
3679
3680           enablestring=
3681           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3682 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3683           no_cache=0
3684           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3685 if test "${enable_debug_flag+set}" = set; then
3686   enableval="$enable_debug_flag"
3687
3688                           if test "$enableval" = yes; then
3689                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3690                           else
3691                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3692                           fi
3693
3694 else
3695
3696                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3697                           if test "x$LINE" != x ; then
3698                             eval "DEFAULT_$LINE"
3699                           else
3700                             no_cache=1
3701                           fi
3702
3703                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3704
3705 fi;
3706
3707           eval "$ac_cv_use_debug_flag"
3708           if test "$no_cache" != 1; then
3709             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3710           fi
3711
3712           if test "$wxUSE_DEBUG_FLAG" = yes; then
3713             echo "$as_me:$LINENO: result: yes" >&5
3714 echo "${ECHO_T}yes" >&6
3715           else
3716             echo "$as_me:$LINENO: result: no" >&5
3717 echo "${ECHO_T}no" >&6
3718           fi
3719
3720
3721           enablestring=
3722           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3723 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3724           no_cache=0
3725           # Check whether --enable-debug_info or --disable-debug_info was given.
3726 if test "${enable_debug_info+set}" = set; then
3727   enableval="$enable_debug_info"
3728
3729                           if test "$enableval" = yes; then
3730                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3731                           else
3732                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3733                           fi
3734
3735 else
3736
3737                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3738                           if test "x$LINE" != x ; then
3739                             eval "DEFAULT_$LINE"
3740                           else
3741                             no_cache=1
3742                           fi
3743
3744                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3745
3746 fi;
3747
3748           eval "$ac_cv_use_debug_info"
3749           if test "$no_cache" != 1; then
3750             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3751           fi
3752
3753           if test "$wxUSE_DEBUG_INFO" = yes; then
3754             echo "$as_me:$LINENO: result: yes" >&5
3755 echo "${ECHO_T}yes" >&6
3756           else
3757             echo "$as_me:$LINENO: result: no" >&5
3758 echo "${ECHO_T}no" >&6
3759           fi
3760
3761
3762           enablestring=
3763           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3764 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3765           no_cache=0
3766           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3767 if test "${enable_debug_gdb+set}" = set; then
3768   enableval="$enable_debug_gdb"
3769
3770                           if test "$enableval" = yes; then
3771                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3772                           else
3773                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3774                           fi
3775
3776 else
3777
3778                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3779                           if test "x$LINE" != x ; then
3780                             eval "DEFAULT_$LINE"
3781                           else
3782                             no_cache=1
3783                           fi
3784
3785                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3786
3787 fi;
3788
3789           eval "$ac_cv_use_debug_gdb"
3790           if test "$no_cache" != 1; then
3791             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3792           fi
3793
3794           if test "$wxUSE_DEBUG_GDB" = yes; then
3795             echo "$as_me:$LINENO: result: yes" >&5
3796 echo "${ECHO_T}yes" >&6
3797           else
3798             echo "$as_me:$LINENO: result: no" >&5
3799 echo "${ECHO_T}no" >&6
3800           fi
3801
3802
3803           enablestring=
3804           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3805 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3806           no_cache=0
3807           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3808 if test "${enable_debug_cntxt+set}" = set; then
3809   enableval="$enable_debug_cntxt"
3810
3811                           if test "$enableval" = yes; then
3812                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3813                           else
3814                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3815                           fi
3816
3817 else
3818
3819                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3820                           if test "x$LINE" != x ; then
3821                             eval "DEFAULT_$LINE"
3822                           else
3823                             no_cache=1
3824                           fi
3825
3826                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3827
3828 fi;
3829
3830           eval "$ac_cv_use_debug_cntxt"
3831           if test "$no_cache" != 1; then
3832             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3833           fi
3834
3835           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3836             echo "$as_me:$LINENO: result: yes" >&5
3837 echo "${ECHO_T}yes" >&6
3838           else
3839             echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6
3841           fi
3842
3843
3844           enablestring=
3845           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3846 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3847           no_cache=0
3848           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3849 if test "${enable_mem_tracing+set}" = set; then
3850   enableval="$enable_mem_tracing"
3851
3852                           if test "$enableval" = yes; then
3853                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3854                           else
3855                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3856                           fi
3857
3858 else
3859
3860                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3861                           if test "x$LINE" != x ; then
3862                             eval "DEFAULT_$LINE"
3863                           else
3864                             no_cache=1
3865                           fi
3866
3867                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3868
3869 fi;
3870
3871           eval "$ac_cv_use_mem_tracing"
3872           if test "$no_cache" != 1; then
3873             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3874           fi
3875
3876           if test "$wxUSE_MEM_TRACING" = yes; then
3877             echo "$as_me:$LINENO: result: yes" >&5
3878 echo "${ECHO_T}yes" >&6
3879           else
3880             echo "$as_me:$LINENO: result: no" >&5
3881 echo "${ECHO_T}no" >&6
3882           fi
3883
3884
3885           enablestring=
3886           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3887 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3888           no_cache=0
3889           # Check whether --enable-profile or --disable-profile was given.
3890 if test "${enable_profile+set}" = set; then
3891   enableval="$enable_profile"
3892
3893                           if test "$enableval" = yes; then
3894                             ac_cv_use_profile='wxUSE_PROFILE=yes'
3895                           else
3896                             ac_cv_use_profile='wxUSE_PROFILE=no'
3897                           fi
3898
3899 else
3900
3901                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3902                           if test "x$LINE" != x ; then
3903                             eval "DEFAULT_$LINE"
3904                           else
3905                             no_cache=1
3906                           fi
3907
3908                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3909
3910 fi;
3911
3912           eval "$ac_cv_use_profile"
3913           if test "$no_cache" != 1; then
3914             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3915           fi
3916
3917           if test "$wxUSE_PROFILE" = yes; then
3918             echo "$as_me:$LINENO: result: yes" >&5
3919 echo "${ECHO_T}yes" >&6
3920           else
3921             echo "$as_me:$LINENO: result: no" >&5
3922 echo "${ECHO_T}no" >&6
3923           fi
3924
3925
3926           enablestring=
3927           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3928 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3929           no_cache=0
3930           # Check whether --enable-no_rtti or --disable-no_rtti was given.
3931 if test "${enable_no_rtti+set}" = set; then
3932   enableval="$enable_no_rtti"
3933
3934                           if test "$enableval" = yes; then
3935                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3936                           else
3937                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3938                           fi
3939
3940 else
3941
3942                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3943                           if test "x$LINE" != x ; then
3944                             eval "DEFAULT_$LINE"
3945                           else
3946                             no_cache=1
3947                           fi
3948
3949                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3950
3951 fi;
3952
3953           eval "$ac_cv_use_no_rtti"
3954           if test "$no_cache" != 1; then
3955             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3956           fi
3957
3958           if test "$wxUSE_NO_RTTI" = yes; then
3959             echo "$as_me:$LINENO: result: yes" >&5
3960 echo "${ECHO_T}yes" >&6
3961           else
3962             echo "$as_me:$LINENO: result: no" >&5
3963 echo "${ECHO_T}no" >&6
3964           fi
3965
3966
3967           enablestring=
3968           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3969 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3970           no_cache=0
3971           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3972 if test "${enable_no_exceptions+set}" = set; then
3973   enableval="$enable_no_exceptions"
3974
3975                           if test "$enableval" = yes; then
3976                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3977                           else
3978                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3979                           fi
3980
3981 else
3982
3983                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3984                           if test "x$LINE" != x ; then
3985                             eval "DEFAULT_$LINE"
3986                           else
3987                             no_cache=1
3988                           fi
3989
3990                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3991
3992 fi;
3993
3994           eval "$ac_cv_use_no_exceptions"
3995           if test "$no_cache" != 1; then
3996             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3997           fi
3998
3999           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4000             echo "$as_me:$LINENO: result: yes" >&5
4001 echo "${ECHO_T}yes" >&6
4002           else
4003             echo "$as_me:$LINENO: result: no" >&5
4004 echo "${ECHO_T}no" >&6
4005           fi
4006
4007
4008           enablestring=
4009           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4010 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4011           no_cache=0
4012           # Check whether --enable-permissive or --disable-permissive was given.
4013 if test "${enable_permissive+set}" = set; then
4014   enableval="$enable_permissive"
4015
4016                           if test "$enableval" = yes; then
4017                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4018                           else
4019                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4020                           fi
4021
4022 else
4023
4024                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4025                           if test "x$LINE" != x ; then
4026                             eval "DEFAULT_$LINE"
4027                           else
4028                             no_cache=1
4029                           fi
4030
4031                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4032
4033 fi;
4034
4035           eval "$ac_cv_use_permissive"
4036           if test "$no_cache" != 1; then
4037             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4038           fi
4039
4040           if test "$wxUSE_PERMISSIVE" = yes; then
4041             echo "$as_me:$LINENO: result: yes" >&5
4042 echo "${ECHO_T}yes" >&6
4043           else
4044             echo "$as_me:$LINENO: result: no" >&5
4045 echo "${ECHO_T}no" >&6
4046           fi
4047
4048
4049           enablestring=
4050           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4051 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4052           no_cache=0
4053           # Check whether --enable-no_deps or --disable-no_deps was given.
4054 if test "${enable_no_deps+set}" = set; then
4055   enableval="$enable_no_deps"
4056
4057                           if test "$enableval" = yes; then
4058                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4059                           else
4060                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4061                           fi
4062
4063 else
4064
4065                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4066                           if test "x$LINE" != x ; then
4067                             eval "DEFAULT_$LINE"
4068                           else
4069                             no_cache=1
4070                           fi
4071
4072                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4073
4074 fi;
4075
4076           eval "$ac_cv_use_no_deps"
4077           if test "$no_cache" != 1; then
4078             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4079           fi
4080
4081           if test "$wxUSE_NO_DEPS" = yes; then
4082             echo "$as_me:$LINENO: result: yes" >&5
4083 echo "${ECHO_T}yes" >&6
4084           else
4085             echo "$as_me:$LINENO: result: no" >&5
4086 echo "${ECHO_T}no" >&6
4087           fi
4088
4089
4090
4091           enablestring=
4092           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4093 echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4094           no_cache=0
4095           # Check whether --enable-compat22 or --disable-compat22 was given.
4096 if test "${enable_compat22+set}" = set; then
4097   enableval="$enable_compat22"
4098
4099                           if test "$enableval" = yes; then
4100                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4101                           else
4102                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4103                           fi
4104
4105 else
4106
4107                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4108                           if test "x$LINE" != x ; then
4109                             eval "DEFAULT_$LINE"
4110                           else
4111                             no_cache=1
4112                           fi
4113
4114                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4115
4116 fi;
4117
4118           eval "$ac_cv_use_compat22"
4119           if test "$no_cache" != 1; then
4120             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4121           fi
4122
4123           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4124             echo "$as_me:$LINENO: result: yes" >&5
4125 echo "${ECHO_T}yes" >&6
4126           else
4127             echo "$as_me:$LINENO: result: no" >&5
4128 echo "${ECHO_T}no" >&6
4129           fi
4130
4131
4132           enablestring=disable
4133           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4134 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4135           no_cache=0
4136           # Check whether --enable-compat24 or --disable-compat24 was given.
4137 if test "${enable_compat24+set}" = set; then
4138   enableval="$enable_compat24"
4139
4140                           if test "$enableval" = yes; then
4141                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4142                           else
4143                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4144                           fi
4145
4146 else
4147
4148                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4149                           if test "x$LINE" != x ; then
4150                             eval "DEFAULT_$LINE"
4151                           else
4152                             no_cache=1
4153                           fi
4154
4155                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4156
4157 fi;
4158
4159           eval "$ac_cv_use_compat24"
4160           if test "$no_cache" != 1; then
4161             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4162           fi
4163
4164           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4165             echo "$as_me:$LINENO: result: yes" >&5
4166 echo "${ECHO_T}yes" >&6
4167           else
4168             echo "$as_me:$LINENO: result: no" >&5
4169 echo "${ECHO_T}no" >&6
4170           fi
4171
4172
4173
4174           enablestring=
4175           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4176 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4177           no_cache=0
4178           # Check whether --enable-rpath or --disable-rpath was given.
4179 if test "${enable_rpath+set}" = set; then
4180   enableval="$enable_rpath"
4181
4182                           if test "$enableval" = yes; then
4183                             ac_cv_use_rpath='wxUSE_RPATH=yes'
4184                           else
4185                             ac_cv_use_rpath='wxUSE_RPATH=no'
4186                           fi
4187
4188 else
4189
4190                           LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4191                           if test "x$LINE" != x ; then
4192                             eval "DEFAULT_$LINE"
4193                           else
4194                             no_cache=1
4195                           fi
4196
4197                           ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4198
4199 fi;
4200
4201           eval "$ac_cv_use_rpath"
4202           if test "$no_cache" != 1; then
4203             echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4204           fi
4205
4206           if test "$wxUSE_RPATH" = yes; then
4207             echo "$as_me:$LINENO: result: yes" >&5
4208 echo "${ECHO_T}yes" >&6
4209           else
4210             echo "$as_me:$LINENO: result: no" >&5
4211 echo "${ECHO_T}no" >&6
4212           fi
4213
4214
4215
4216
4217
4218           enablestring=
4219           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4220 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4221           no_cache=0
4222           # Check whether --enable-intl or --disable-intl was given.
4223 if test "${enable_intl+set}" = set; then
4224   enableval="$enable_intl"
4225
4226                           if test "$enableval" = yes; then
4227                             ac_cv_use_intl='wxUSE_INTL=yes'
4228                           else
4229                             ac_cv_use_intl='wxUSE_INTL=no'
4230                           fi
4231
4232 else
4233
4234                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4235                           if test "x$LINE" != x ; then
4236                             eval "DEFAULT_$LINE"
4237                           else
4238                             no_cache=1
4239                           fi
4240
4241                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4242
4243 fi;
4244
4245           eval "$ac_cv_use_intl"
4246           if test "$no_cache" != 1; then
4247             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4248           fi
4249
4250           if test "$wxUSE_INTL" = yes; then
4251             echo "$as_me:$LINENO: result: yes" >&5
4252 echo "${ECHO_T}yes" >&6
4253           else
4254             echo "$as_me:$LINENO: result: no" >&5
4255 echo "${ECHO_T}no" >&6
4256           fi
4257
4258
4259           enablestring=
4260           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4261 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4262           no_cache=0
4263           # Check whether --enable-config or --disable-config was given.
4264 if test "${enable_config+set}" = set; then
4265   enableval="$enable_config"
4266
4267                           if test "$enableval" = yes; then
4268                             ac_cv_use_config='wxUSE_CONFIG=yes'
4269                           else
4270                             ac_cv_use_config='wxUSE_CONFIG=no'
4271                           fi
4272
4273 else
4274
4275                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4276                           if test "x$LINE" != x ; then
4277                             eval "DEFAULT_$LINE"
4278                           else
4279                             no_cache=1
4280                           fi
4281
4282                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4283
4284 fi;
4285
4286           eval "$ac_cv_use_config"
4287           if test "$no_cache" != 1; then
4288             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4289           fi
4290
4291           if test "$wxUSE_CONFIG" = yes; then
4292             echo "$as_me:$LINENO: result: yes" >&5
4293 echo "${ECHO_T}yes" >&6
4294           else
4295             echo "$as_me:$LINENO: result: no" >&5
4296 echo "${ECHO_T}no" >&6
4297           fi
4298
4299
4300
4301           enablestring=
4302           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4303 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4304           no_cache=0
4305           # Check whether --enable-protocols or --disable-protocols was given.
4306 if test "${enable_protocols+set}" = set; then
4307   enableval="$enable_protocols"
4308
4309                           if test "$enableval" = yes; then
4310                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4311                           else
4312                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4313                           fi
4314
4315 else
4316
4317                           LINE=`grep "wxUSE_PROTOCOL" ${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_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4325
4326 fi;
4327
4328           eval "$ac_cv_use_protocols"
4329           if test "$no_cache" != 1; then
4330             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4331           fi
4332
4333           if test "$wxUSE_PROTOCOL" = 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}-ftp" >&5
4344 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4345           no_cache=0
4346           # Check whether --enable-ftp or --disable-ftp was given.
4347 if test "${enable_ftp+set}" = set; then
4348   enableval="$enable_ftp"
4349
4350                           if test "$enableval" = yes; then
4351                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4352                           else
4353                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4354                           fi
4355
4356 else
4357
4358                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${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_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4366
4367 fi;
4368
4369           eval "$ac_cv_use_ftp"
4370           if test "$no_cache" != 1; then
4371             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4372           fi
4373
4374           if test "$wxUSE_PROTOCOL_FTP" = 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}-http" >&5
4385 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4386           no_cache=0
4387           # Check whether --enable-http or --disable-http was given.
4388 if test "${enable_http+set}" = set; then
4389   enableval="$enable_http"
4390
4391                           if test "$enableval" = yes; then
4392                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4393                           else
4394                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4395                           fi
4396
4397 else
4398
4399                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${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_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4407
4408 fi;
4409
4410           eval "$ac_cv_use_http"
4411           if test "$no_cache" != 1; then
4412             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4413           fi
4414
4415           if test "$wxUSE_PROTOCOL_HTTP" = 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}-fileproto" >&5
4426 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4427           no_cache=0
4428           # Check whether --enable-fileproto or --disable-fileproto was given.
4429 if test "${enable_fileproto+set}" = set; then
4430   enableval="$enable_fileproto"
4431
4432                           if test "$enableval" = yes; then
4433                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4434                           else
4435                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4436                           fi
4437
4438 else
4439
4440                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${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_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4448
4449 fi;
4450
4451           eval "$ac_cv_use_fileproto"
4452           if test "$no_cache" != 1; then
4453             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4454           fi
4455
4456           if test "$wxUSE_PROTOCOL_FILE" = 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}-sockets" >&5
4467 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4468           no_cache=0
4469           # Check whether --enable-sockets or --disable-sockets was given.
4470 if test "${enable_sockets+set}" = set; then
4471   enableval="$enable_sockets"
4472
4473                           if test "$enableval" = yes; then
4474                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4475                           else
4476                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4477                           fi
4478
4479 else
4480
4481                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4482                           if test "x$LINE" != x ; then
4483                             eval "DEFAULT_$LINE"
4484                           else
4485                             no_cache=1
4486                           fi
4487
4488                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4489
4490 fi;
4491
4492           eval "$ac_cv_use_sockets"
4493           if test "$no_cache" != 1; then
4494             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4495           fi
4496
4497           if test "$wxUSE_SOCKETS" = yes; then
4498             echo "$as_me:$LINENO: result: yes" >&5
4499 echo "${ECHO_T}yes" >&6
4500           else
4501             echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6
4503           fi
4504
4505
4506           enablestring=
4507           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4508 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4509           no_cache=0
4510           # Check whether --enable-ole or --disable-ole was given.
4511 if test "${enable_ole+set}" = set; then
4512   enableval="$enable_ole"
4513
4514                           if test "$enableval" = yes; then
4515                             ac_cv_use_ole='wxUSE_OLE=yes'
4516                           else
4517                             ac_cv_use_ole='wxUSE_OLE=no'
4518                           fi
4519
4520 else
4521
4522                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4523                           if test "x$LINE" != x ; then
4524                             eval "DEFAULT_$LINE"
4525                           else
4526                             no_cache=1
4527                           fi
4528
4529                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4530
4531 fi;
4532
4533           eval "$ac_cv_use_ole"
4534           if test "$no_cache" != 1; then
4535             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4536           fi
4537
4538           if test "$wxUSE_OLE" = yes; then
4539             echo "$as_me:$LINENO: result: yes" >&5
4540 echo "${ECHO_T}yes" >&6
4541           else
4542             echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6
4544           fi
4545
4546
4547           enablestring=
4548           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4549 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4550           no_cache=0
4551           # Check whether --enable-dataobj or --disable-dataobj was given.
4552 if test "${enable_dataobj+set}" = set; then
4553   enableval="$enable_dataobj"
4554
4555                           if test "$enableval" = yes; then
4556                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4557                           else
4558                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4559                           fi
4560
4561 else
4562
4563                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4564                           if test "x$LINE" != x ; then
4565                             eval "DEFAULT_$LINE"
4566                           else
4567                             no_cache=1
4568                           fi
4569
4570                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4571
4572 fi;
4573
4574           eval "$ac_cv_use_dataobj"
4575           if test "$no_cache" != 1; then
4576             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4577           fi
4578
4579           if test "$wxUSE_DATAOBJ" = yes; then
4580             echo "$as_me:$LINENO: result: yes" >&5
4581 echo "${ECHO_T}yes" >&6
4582           else
4583             echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6
4585           fi
4586
4587
4588
4589           enablestring=
4590           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4591 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4592           no_cache=0
4593           # Check whether --enable-ipc or --disable-ipc was given.
4594 if test "${enable_ipc+set}" = set; then
4595   enableval="$enable_ipc"
4596
4597                           if test "$enableval" = yes; then
4598                             ac_cv_use_ipc='wxUSE_IPC=yes'
4599                           else
4600                             ac_cv_use_ipc='wxUSE_IPC=no'
4601                           fi
4602
4603 else
4604
4605                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4606                           if test "x$LINE" != x ; then
4607                             eval "DEFAULT_$LINE"
4608                           else
4609                             no_cache=1
4610                           fi
4611
4612                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4613
4614 fi;
4615
4616           eval "$ac_cv_use_ipc"
4617           if test "$no_cache" != 1; then
4618             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4619           fi
4620
4621           if test "$wxUSE_IPC" = yes; then
4622             echo "$as_me:$LINENO: result: yes" >&5
4623 echo "${ECHO_T}yes" >&6
4624           else
4625             echo "$as_me:$LINENO: result: no" >&5
4626 echo "${ECHO_T}no" >&6
4627           fi
4628
4629
4630
4631           enablestring=
4632           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4633 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4634           no_cache=0
4635           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4636 if test "${enable_apple_ieee+set}" = set; then
4637   enableval="$enable_apple_ieee"
4638
4639                           if test "$enableval" = yes; then
4640                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4641                           else
4642                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4643                           fi
4644
4645 else
4646
4647                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4648                           if test "x$LINE" != x ; then
4649                             eval "DEFAULT_$LINE"
4650                           else
4651                             no_cache=1
4652                           fi
4653
4654                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4655
4656 fi;
4657
4658           eval "$ac_cv_use_apple_ieee"
4659           if test "$no_cache" != 1; then
4660             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4661           fi
4662
4663           if test "$wxUSE_APPLE_IEEE" = yes; then
4664             echo "$as_me:$LINENO: result: yes" >&5
4665 echo "${ECHO_T}yes" >&6
4666           else
4667             echo "$as_me:$LINENO: result: no" >&5
4668 echo "${ECHO_T}no" >&6
4669           fi
4670
4671
4672           enablestring=
4673           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4674 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4675           no_cache=0
4676           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4677 if test "${enable_catch_segvs+set}" = set; then
4678   enableval="$enable_catch_segvs"
4679
4680                           if test "$enableval" = yes; then
4681                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4682                           else
4683                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4684                           fi
4685
4686 else
4687
4688                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4689                           if test "x$LINE" != x ; then
4690                             eval "DEFAULT_$LINE"
4691                           else
4692                             no_cache=1
4693                           fi
4694
4695                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4696
4697 fi;
4698
4699           eval "$ac_cv_use_catch_segvs"
4700           if test "$no_cache" != 1; then
4701             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4702           fi
4703
4704           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4705             echo "$as_me:$LINENO: result: yes" >&5
4706 echo "${ECHO_T}yes" >&6
4707           else
4708             echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6
4710           fi
4711
4712
4713           enablestring=
4714           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4715 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
4716           no_cache=0
4717           # Check whether --enable-backtrace or --disable-backtrace was given.
4718 if test "${enable_backtrace+set}" = set; then
4719   enableval="$enable_backtrace"
4720
4721                           if test "$enableval" = yes; then
4722                             ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
4723                           else
4724                             ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
4725                           fi
4726
4727 else
4728
4729                           LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
4730                           if test "x$LINE" != x ; then
4731                             eval "DEFAULT_$LINE"
4732                           else
4733                             no_cache=1
4734                           fi
4735
4736                           ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
4737
4738 fi;
4739
4740           eval "$ac_cv_use_backtrace"
4741           if test "$no_cache" != 1; then
4742             echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
4743           fi
4744
4745           if test "$wxUSE_STACKWALKER" = yes; then
4746             echo "$as_me:$LINENO: result: yes" >&5
4747 echo "${ECHO_T}yes" >&6
4748           else
4749             echo "$as_me:$LINENO: result: no" >&5
4750 echo "${ECHO_T}no" >&6
4751           fi
4752
4753
4754           enablestring=
4755           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4756 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4757           no_cache=0
4758           # Check whether --enable-cmdline or --disable-cmdline was given.
4759 if test "${enable_cmdline+set}" = set; then
4760   enableval="$enable_cmdline"
4761
4762                           if test "$enableval" = yes; then
4763                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4764                           else
4765                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4766                           fi
4767
4768 else
4769
4770                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4771                           if test "x$LINE" != x ; then
4772                             eval "DEFAULT_$LINE"
4773                           else
4774                             no_cache=1
4775                           fi
4776
4777                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4778
4779 fi;
4780
4781           eval "$ac_cv_use_cmdline"
4782           if test "$no_cache" != 1; then
4783             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4784           fi
4785
4786           if test "$wxUSE_CMDLINE_PARSER" = yes; then
4787             echo "$as_me:$LINENO: result: yes" >&5
4788 echo "${ECHO_T}yes" >&6
4789           else
4790             echo "$as_me:$LINENO: result: no" >&5
4791 echo "${ECHO_T}no" >&6
4792           fi
4793
4794
4795           enablestring=
4796           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4797 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4798           no_cache=0
4799           # Check whether --enable-datetime or --disable-datetime was given.
4800 if test "${enable_datetime+set}" = set; then
4801   enableval="$enable_datetime"
4802
4803                           if test "$enableval" = yes; then
4804                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
4805                           else
4806                             ac_cv_use_datetime='wxUSE_DATETIME=no'
4807                           fi
4808
4809 else
4810
4811                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4812                           if test "x$LINE" != x ; then
4813                             eval "DEFAULT_$LINE"
4814                           else
4815                             no_cache=1
4816                           fi
4817
4818                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4819
4820 fi;
4821
4822           eval "$ac_cv_use_datetime"
4823           if test "$no_cache" != 1; then
4824             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4825           fi
4826
4827           if test "$wxUSE_DATETIME" = yes; then
4828             echo "$as_me:$LINENO: result: yes" >&5
4829 echo "${ECHO_T}yes" >&6
4830           else
4831             echo "$as_me:$LINENO: result: no" >&5
4832 echo "${ECHO_T}no" >&6
4833           fi
4834
4835
4836           enablestring=
4837           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4838 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4839           no_cache=0
4840           # Check whether --enable-dialupman or --disable-dialupman was given.
4841 if test "${enable_dialupman+set}" = set; then
4842   enableval="$enable_dialupman"
4843
4844                           if test "$enableval" = yes; then
4845                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4846                           else
4847                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4848                           fi
4849
4850 else
4851
4852                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4853                           if test "x$LINE" != x ; then
4854                             eval "DEFAULT_$LINE"
4855                           else
4856                             no_cache=1
4857                           fi
4858
4859                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4860
4861 fi;
4862
4863           eval "$ac_cv_use_dialupman"
4864           if test "$no_cache" != 1; then
4865             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4866           fi
4867
4868           if test "$wxUSE_DIALUP_MANAGER" = yes; then
4869             echo "$as_me:$LINENO: result: yes" >&5
4870 echo "${ECHO_T}yes" >&6
4871           else
4872             echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6
4874           fi
4875
4876
4877           enablestring=
4878           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4879 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4880           no_cache=0
4881           # Check whether --enable-dynlib or --disable-dynlib was given.
4882 if test "${enable_dynlib+set}" = set; then
4883   enableval="$enable_dynlib"
4884
4885                           if test "$enableval" = yes; then
4886                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4887                           else
4888                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4889                           fi
4890
4891 else
4892
4893                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4894                           if test "x$LINE" != x ; then
4895                             eval "DEFAULT_$LINE"
4896                           else
4897                             no_cache=1
4898                           fi
4899
4900                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4901
4902 fi;
4903
4904           eval "$ac_cv_use_dynlib"
4905           if test "$no_cache" != 1; then
4906             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4907           fi
4908
4909           if test "$wxUSE_DYNLIB_CLASS" = yes; then
4910             echo "$as_me:$LINENO: result: yes" >&5
4911 echo "${ECHO_T}yes" >&6
4912           else
4913             echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6
4915           fi
4916
4917
4918           enablestring=
4919           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4920 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4921           no_cache=0
4922           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4923 if test "${enable_dynamicloader+set}" = set; then
4924   enableval="$enable_dynamicloader"
4925
4926                           if test "$enableval" = yes; then
4927                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4928                           else
4929                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4930                           fi
4931
4932 else
4933
4934                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4935                           if test "x$LINE" != x ; then
4936                             eval "DEFAULT_$LINE"
4937                           else
4938                             no_cache=1
4939                           fi
4940
4941                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4942
4943 fi;
4944
4945           eval "$ac_cv_use_dynamicloader"
4946           if test "$no_cache" != 1; then
4947             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4948           fi
4949
4950           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4951             echo "$as_me:$LINENO: result: yes" >&5
4952 echo "${ECHO_T}yes" >&6
4953           else
4954             echo "$as_me:$LINENO: result: no" >&5
4955 echo "${ECHO_T}no" >&6
4956           fi
4957
4958
4959           enablestring=
4960           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4961 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4962           no_cache=0
4963           # Check whether --enable-exceptions or --disable-exceptions was given.
4964 if test "${enable_exceptions+set}" = set; then
4965   enableval="$enable_exceptions"
4966
4967                           if test "$enableval" = yes; then
4968                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4969                           else
4970                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4971                           fi
4972
4973 else
4974
4975                           LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4976                           if test "x$LINE" != x ; then
4977                             eval "DEFAULT_$LINE"
4978                           else
4979                             no_cache=1
4980                           fi
4981
4982                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4983
4984 fi;
4985
4986           eval "$ac_cv_use_exceptions"
4987           if test "$no_cache" != 1; then
4988             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4989           fi
4990
4991           if test "$wxUSE_EXCEPTIONS" = yes; then
4992             echo "$as_me:$LINENO: result: yes" >&5
4993 echo "${ECHO_T}yes" >&6
4994           else
4995             echo "$as_me:$LINENO: result: no" >&5
4996 echo "${ECHO_T}no" >&6
4997           fi
4998
4999
5000           enablestring=
5001           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5002 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5003           no_cache=0
5004           # Check whether --enable-ffile or --disable-ffile was given.
5005 if test "${enable_ffile+set}" = set; then
5006   enableval="$enable_ffile"
5007
5008                           if test "$enableval" = yes; then
5009                             ac_cv_use_ffile='wxUSE_FFILE=yes'
5010                           else
5011                             ac_cv_use_ffile='wxUSE_FFILE=no'
5012                           fi
5013
5014 else
5015
5016                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5017                           if test "x$LINE" != x ; then
5018                             eval "DEFAULT_$LINE"
5019                           else
5020                             no_cache=1
5021                           fi
5022
5023                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5024
5025 fi;
5026
5027           eval "$ac_cv_use_ffile"
5028           if test "$no_cache" != 1; then
5029             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5030           fi
5031
5032           if test "$wxUSE_FFILE" = yes; then
5033             echo "$as_me:$LINENO: result: yes" >&5
5034 echo "${ECHO_T}yes" >&6
5035           else
5036             echo "$as_me:$LINENO: result: no" >&5
5037 echo "${ECHO_T}no" >&6
5038           fi
5039
5040
5041           enablestring=
5042           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5043 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5044           no_cache=0
5045           # Check whether --enable-file or --disable-file was given.
5046 if test "${enable_file+set}" = set; then
5047   enableval="$enable_file"
5048
5049                           if test "$enableval" = yes; then
5050                             ac_cv_use_file='wxUSE_FILE=yes'
5051                           else
5052                             ac_cv_use_file='wxUSE_FILE=no'
5053                           fi
5054
5055 else
5056
5057                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5058                           if test "x$LINE" != x ; then
5059                             eval "DEFAULT_$LINE"
5060                           else
5061                             no_cache=1
5062                           fi
5063
5064                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5065
5066 fi;
5067
5068           eval "$ac_cv_use_file"
5069           if test "$no_cache" != 1; then
5070             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5071           fi
5072
5073           if test "$wxUSE_FILE" = yes; then
5074             echo "$as_me:$LINENO: result: yes" >&5
5075 echo "${ECHO_T}yes" >&6
5076           else
5077             echo "$as_me:$LINENO: result: no" >&5
5078 echo "${ECHO_T}no" >&6
5079           fi
5080
5081
5082           enablestring=
5083           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5084 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5085           no_cache=0
5086           # Check whether --enable-filesystem or --disable-filesystem was given.
5087 if test "${enable_filesystem+set}" = set; then
5088   enableval="$enable_filesystem"
5089
5090                           if test "$enableval" = yes; then
5091                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5092                           else
5093                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5094                           fi
5095
5096 else
5097
5098                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5099                           if test "x$LINE" != x ; then
5100                             eval "DEFAULT_$LINE"
5101                           else
5102                             no_cache=1
5103                           fi
5104
5105                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5106
5107 fi;
5108
5109           eval "$ac_cv_use_filesystem"
5110           if test "$no_cache" != 1; then
5111             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5112           fi
5113
5114           if test "$wxUSE_FILESYSTEM" = yes; then
5115             echo "$as_me:$LINENO: result: yes" >&5
5116 echo "${ECHO_T}yes" >&6
5117           else
5118             echo "$as_me:$LINENO: result: no" >&5
5119 echo "${ECHO_T}no" >&6
5120           fi
5121
5122
5123           enablestring=
5124           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5125 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5126           no_cache=0
5127           # Check whether --enable-fontmap or --disable-fontmap was given.
5128 if test "${enable_fontmap+set}" = set; then
5129   enableval="$enable_fontmap"
5130
5131                           if test "$enableval" = yes; then
5132                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5133                           else
5134                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5135                           fi
5136
5137 else
5138
5139                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5140                           if test "x$LINE" != x ; then
5141                             eval "DEFAULT_$LINE"
5142                           else
5143                             no_cache=1
5144                           fi
5145
5146                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5147
5148 fi;
5149
5150           eval "$ac_cv_use_fontmap"
5151           if test "$no_cache" != 1; then
5152             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5153           fi
5154
5155           if test "$wxUSE_FONTMAP" = yes; then
5156             echo "$as_me:$LINENO: result: yes" >&5
5157 echo "${ECHO_T}yes" >&6
5158           else
5159             echo "$as_me:$LINENO: result: no" >&5
5160 echo "${ECHO_T}no" >&6
5161           fi
5162
5163
5164           enablestring=
5165           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5166 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5167           no_cache=0
5168           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5169 if test "${enable_fs_inet+set}" = set; then
5170   enableval="$enable_fs_inet"
5171
5172                           if test "$enableval" = yes; then
5173                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5174                           else
5175                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5176                           fi
5177
5178 else
5179
5180                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5181                           if test "x$LINE" != x ; then
5182                             eval "DEFAULT_$LINE"
5183                           else
5184                             no_cache=1
5185                           fi
5186
5187                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5188
5189 fi;
5190
5191           eval "$ac_cv_use_fs_inet"
5192           if test "$no_cache" != 1; then
5193             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5194           fi
5195
5196           if test "$wxUSE_FS_INET" = yes; then
5197             echo "$as_me:$LINENO: result: yes" >&5
5198 echo "${ECHO_T}yes" >&6
5199           else
5200             echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6
5202           fi
5203
5204
5205           enablestring=
5206           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5207 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5208           no_cache=0
5209           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5210 if test "${enable_fs_zip+set}" = set; then
5211   enableval="$enable_fs_zip"
5212
5213                           if test "$enableval" = yes; then
5214                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5215                           else
5216                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5217                           fi
5218
5219 else
5220
5221                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5222                           if test "x$LINE" != x ; then
5223                             eval "DEFAULT_$LINE"
5224                           else
5225                             no_cache=1
5226                           fi
5227
5228                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5229
5230 fi;
5231
5232           eval "$ac_cv_use_fs_zip"
5233           if test "$no_cache" != 1; then
5234             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5235           fi
5236
5237           if test "$wxUSE_FS_ZIP" = yes; then
5238             echo "$as_me:$LINENO: result: yes" >&5
5239 echo "${ECHO_T}yes" >&6
5240           else
5241             echo "$as_me:$LINENO: result: no" >&5
5242 echo "${ECHO_T}no" >&6
5243           fi
5244
5245
5246           enablestring=
5247           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5248 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5249           no_cache=0
5250           # Check whether --enable-geometry or --disable-geometry was given.
5251 if test "${enable_geometry+set}" = set; then
5252   enableval="$enable_geometry"
5253
5254                           if test "$enableval" = yes; then
5255                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5256                           else
5257                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5258                           fi
5259
5260 else
5261
5262                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5263                           if test "x$LINE" != x ; then
5264                             eval "DEFAULT_$LINE"
5265                           else
5266                             no_cache=1
5267                           fi
5268
5269                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5270
5271 fi;
5272
5273           eval "$ac_cv_use_geometry"
5274           if test "$no_cache" != 1; then
5275             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5276           fi
5277
5278           if test "$wxUSE_GEOMETRY" = yes; then
5279             echo "$as_me:$LINENO: result: yes" >&5
5280 echo "${ECHO_T}yes" >&6
5281           else
5282             echo "$as_me:$LINENO: result: no" >&5
5283 echo "${ECHO_T}no" >&6
5284           fi
5285
5286
5287           enablestring=
5288           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5289 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5290           no_cache=0
5291           # Check whether --enable-log or --disable-log was given.
5292 if test "${enable_log+set}" = set; then
5293   enableval="$enable_log"
5294
5295                           if test "$enableval" = yes; then
5296                             ac_cv_use_log='wxUSE_LOG=yes'
5297                           else
5298                             ac_cv_use_log='wxUSE_LOG=no'
5299                           fi
5300
5301 else
5302
5303                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5304                           if test "x$LINE" != x ; then
5305                             eval "DEFAULT_$LINE"
5306                           else
5307                             no_cache=1
5308                           fi
5309
5310                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5311
5312 fi;
5313
5314           eval "$ac_cv_use_log"
5315           if test "$no_cache" != 1; then
5316             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5317           fi
5318
5319           if test "$wxUSE_LOG" = yes; then
5320             echo "$as_me:$LINENO: result: yes" >&5
5321 echo "${ECHO_T}yes" >&6
5322           else
5323             echo "$as_me:$LINENO: result: no" >&5
5324 echo "${ECHO_T}no" >&6
5325           fi
5326
5327
5328           enablestring=
5329           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5330 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5331           no_cache=0
5332           # Check whether --enable-longlong or --disable-longlong was given.
5333 if test "${enable_longlong+set}" = set; then
5334   enableval="$enable_longlong"
5335
5336                           if test "$enableval" = yes; then
5337                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5338                           else
5339                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
5340                           fi
5341
5342 else
5343
5344                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5345                           if test "x$LINE" != x ; then
5346                             eval "DEFAULT_$LINE"
5347                           else
5348                             no_cache=1
5349                           fi
5350
5351                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5352
5353 fi;
5354
5355           eval "$ac_cv_use_longlong"
5356           if test "$no_cache" != 1; then
5357             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5358           fi
5359
5360           if test "$wxUSE_LONGLONG" = yes; then
5361             echo "$as_me:$LINENO: result: yes" >&5
5362 echo "${ECHO_T}yes" >&6
5363           else
5364             echo "$as_me:$LINENO: result: no" >&5
5365 echo "${ECHO_T}no" >&6
5366           fi
5367
5368
5369           enablestring=
5370           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5371 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5372           no_cache=0
5373           # Check whether --enable-mimetype or --disable-mimetype was given.
5374 if test "${enable_mimetype+set}" = set; then
5375   enableval="$enable_mimetype"
5376
5377                           if test "$enableval" = yes; then
5378                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5379                           else
5380                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5381                           fi
5382
5383 else
5384
5385                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5386                           if test "x$LINE" != x ; then
5387                             eval "DEFAULT_$LINE"
5388                           else
5389                             no_cache=1
5390                           fi
5391
5392                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5393
5394 fi;
5395
5396           eval "$ac_cv_use_mimetype"
5397           if test "$no_cache" != 1; then
5398             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5399           fi
5400
5401           if test "$wxUSE_MIMETYPE" = yes; then
5402             echo "$as_me:$LINENO: result: yes" >&5
5403 echo "${ECHO_T}yes" >&6
5404           else
5405             echo "$as_me:$LINENO: result: no" >&5
5406 echo "${ECHO_T}no" >&6
5407           fi
5408
5409
5410           enablestring=
5411           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5412 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5413           no_cache=0
5414           # Check whether --enable-mslu or --disable-mslu was given.
5415 if test "${enable_mslu+set}" = set; then
5416   enableval="$enable_mslu"
5417
5418                           if test "$enableval" = yes; then
5419                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5420                           else
5421                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5422                           fi
5423
5424 else
5425
5426                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5427                           if test "x$LINE" != x ; then
5428                             eval "DEFAULT_$LINE"
5429                           else
5430                             no_cache=1
5431                           fi
5432
5433                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5434
5435 fi;
5436
5437           eval "$ac_cv_use_mslu"
5438           if test "$no_cache" != 1; then
5439             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5440           fi
5441
5442           if test "$wxUSE_UNICODE_MSLU" = yes; then
5443             echo "$as_me:$LINENO: result: yes" >&5
5444 echo "${ECHO_T}yes" >&6
5445           else
5446             echo "$as_me:$LINENO: result: no" >&5
5447 echo "${ECHO_T}no" >&6
5448           fi
5449
5450
5451           enablestring=
5452           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5453 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5454           no_cache=0
5455           # Check whether --enable-snglinst or --disable-snglinst was given.
5456 if test "${enable_snglinst+set}" = set; then
5457   enableval="$enable_snglinst"
5458
5459                           if test "$enableval" = yes; then
5460                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5461                           else
5462                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5463                           fi
5464
5465 else
5466
5467                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5468                           if test "x$LINE" != x ; then
5469                             eval "DEFAULT_$LINE"
5470                           else
5471                             no_cache=1
5472                           fi
5473
5474                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5475
5476 fi;
5477
5478           eval "$ac_cv_use_snglinst"
5479           if test "$no_cache" != 1; then
5480             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5481           fi
5482
5483           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5484             echo "$as_me:$LINENO: result: yes" >&5
5485 echo "${ECHO_T}yes" >&6
5486           else
5487             echo "$as_me:$LINENO: result: no" >&5
5488 echo "${ECHO_T}no" >&6
5489           fi
5490
5491
5492           enablestring=
5493           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5494 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5495           no_cache=0
5496           # Check whether --enable-streams or --disable-streams was given.
5497 if test "${enable_streams+set}" = set; then
5498   enableval="$enable_streams"
5499
5500                           if test "$enableval" = yes; then
5501                             ac_cv_use_streams='wxUSE_STREAMS=yes'
5502                           else
5503                             ac_cv_use_streams='wxUSE_STREAMS=no'
5504                           fi
5505
5506 else
5507
5508                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5509                           if test "x$LINE" != x ; then
5510                             eval "DEFAULT_$LINE"
5511                           else
5512                             no_cache=1
5513                           fi
5514
5515                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5516
5517 fi;
5518
5519           eval "$ac_cv_use_streams"
5520           if test "$no_cache" != 1; then
5521             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5522           fi
5523
5524           if test "$wxUSE_STREAMS" = yes; then
5525             echo "$as_me:$LINENO: result: yes" >&5
5526 echo "${ECHO_T}yes" >&6
5527           else
5528             echo "$as_me:$LINENO: result: no" >&5
5529 echo "${ECHO_T}no" >&6
5530           fi
5531
5532
5533           enablestring=
5534           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5535 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5536           no_cache=0
5537           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5538 if test "${enable_std_iostreams+set}" = set; then
5539   enableval="$enable_std_iostreams"
5540
5541                           if test "$enableval" = yes; then
5542                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5543                           else
5544                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5545                           fi
5546
5547 else
5548
5549                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5550                           if test "x$LINE" != x ; then
5551                             eval "DEFAULT_$LINE"
5552                           else
5553                             no_cache=1
5554                           fi
5555
5556                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5557
5558 fi;
5559
5560           eval "$ac_cv_use_std_iostreams"
5561           if test "$no_cache" != 1; then
5562             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5563           fi
5564
5565           if test "$wxUSE_STD_IOSTREAM" = yes; then
5566             echo "$as_me:$LINENO: result: yes" >&5
5567 echo "${ECHO_T}yes" >&6
5568           else
5569             echo "$as_me:$LINENO: result: no" >&5
5570 echo "${ECHO_T}no" >&6
5571           fi
5572
5573
5574           enablestring=
5575           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5576 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5577           no_cache=0
5578           # Check whether --enable-stopwatch or --disable-stopwatch was given.
5579 if test "${enable_stopwatch+set}" = set; then
5580   enableval="$enable_stopwatch"
5581
5582                           if test "$enableval" = yes; then
5583                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5584                           else
5585                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5586                           fi
5587
5588 else
5589
5590                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5591                           if test "x$LINE" != x ; then
5592                             eval "DEFAULT_$LINE"
5593                           else
5594                             no_cache=1
5595                           fi
5596
5597                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5598
5599 fi;
5600
5601           eval "$ac_cv_use_stopwatch"
5602           if test "$no_cache" != 1; then
5603             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5604           fi
5605
5606           if test "$wxUSE_STOPWATCH" = yes; then
5607             echo "$as_me:$LINENO: result: yes" >&5
5608 echo "${ECHO_T}yes" >&6
5609           else
5610             echo "$as_me:$LINENO: result: no" >&5
5611 echo "${ECHO_T}no" >&6
5612           fi
5613
5614
5615           enablestring=
5616           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5617 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5618           no_cache=0
5619           # Check whether --enable-system_options or --disable-system_options was given.
5620 if test "${enable_system_options+set}" = set; then
5621   enableval="$enable_system_options"
5622
5623                           if test "$enableval" = yes; then
5624                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5625                           else
5626                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5627                           fi
5628
5629 else
5630
5631                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5632                           if test "x$LINE" != x ; then
5633                             eval "DEFAULT_$LINE"
5634                           else
5635                             no_cache=1
5636                           fi
5637
5638                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5639
5640 fi;
5641
5642           eval "$ac_cv_use_system_options"
5643           if test "$no_cache" != 1; then
5644             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5645           fi
5646
5647           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5648             echo "$as_me:$LINENO: result: yes" >&5
5649 echo "${ECHO_T}yes" >&6
5650           else
5651             echo "$as_me:$LINENO: result: no" >&5
5652 echo "${ECHO_T}no" >&6
5653           fi
5654
5655
5656           enablestring=
5657           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5658 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5659           no_cache=0
5660           # Check whether --enable-textbuf or --disable-textbuf was given.
5661 if test "${enable_textbuf+set}" = set; then
5662   enableval="$enable_textbuf"
5663
5664                           if test "$enableval" = yes; then
5665                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5666                           else
5667                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5668                           fi
5669
5670 else
5671
5672                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5673                           if test "x$LINE" != x ; then
5674                             eval "DEFAULT_$LINE"
5675                           else
5676                             no_cache=1
5677                           fi
5678
5679                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5680
5681 fi;
5682
5683           eval "$ac_cv_use_textbuf"
5684           if test "$no_cache" != 1; then
5685             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5686           fi
5687
5688           if test "$wxUSE_TEXTBUFFER" = yes; then
5689             echo "$as_me:$LINENO: result: yes" >&5
5690 echo "${ECHO_T}yes" >&6
5691           else
5692             echo "$as_me:$LINENO: result: no" >&5
5693 echo "${ECHO_T}no" >&6
5694           fi
5695
5696
5697           enablestring=
5698           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5699 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5700           no_cache=0
5701           # Check whether --enable-textfile or --disable-textfile was given.
5702 if test "${enable_textfile+set}" = set; then
5703   enableval="$enable_textfile"
5704
5705                           if test "$enableval" = yes; then
5706                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5707                           else
5708                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5709                           fi
5710
5711 else
5712
5713                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5714                           if test "x$LINE" != x ; then
5715                             eval "DEFAULT_$LINE"
5716                           else
5717                             no_cache=1
5718                           fi
5719
5720                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5721
5722 fi;
5723
5724           eval "$ac_cv_use_textfile"
5725           if test "$no_cache" != 1; then
5726             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5727           fi
5728
5729           if test "$wxUSE_TEXTFILE" = yes; then
5730             echo "$as_me:$LINENO: result: yes" >&5
5731 echo "${ECHO_T}yes" >&6
5732           else
5733             echo "$as_me:$LINENO: result: no" >&5
5734 echo "${ECHO_T}no" >&6
5735           fi
5736
5737
5738           enablestring=
5739           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5740 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5741           no_cache=0
5742           # Check whether --enable-timer or --disable-timer was given.
5743 if test "${enable_timer+set}" = set; then
5744   enableval="$enable_timer"
5745
5746                           if test "$enableval" = yes; then
5747                             ac_cv_use_timer='wxUSE_TIMER=yes'
5748                           else
5749                             ac_cv_use_timer='wxUSE_TIMER=no'
5750                           fi
5751
5752 else
5753
5754                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5755                           if test "x$LINE" != x ; then
5756                             eval "DEFAULT_$LINE"
5757                           else
5758                             no_cache=1
5759                           fi
5760
5761                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5762
5763 fi;
5764
5765           eval "$ac_cv_use_timer"
5766           if test "$no_cache" != 1; then
5767             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5768           fi
5769
5770           if test "$wxUSE_TIMER" = yes; then
5771             echo "$as_me:$LINENO: result: yes" >&5
5772 echo "${ECHO_T}yes" >&6
5773           else
5774             echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6
5776           fi
5777
5778
5779           enablestring=
5780           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5781 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5782           no_cache=0
5783           # Check whether --enable-unicode or --disable-unicode was given.
5784 if test "${enable_unicode+set}" = set; then
5785   enableval="$enable_unicode"
5786
5787                           if test "$enableval" = yes; then
5788                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
5789                           else
5790                             ac_cv_use_unicode='wxUSE_UNICODE=no'
5791                           fi
5792
5793 else
5794
5795                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5796                           if test "x$LINE" != x ; then
5797                             eval "DEFAULT_$LINE"
5798                           else
5799                             no_cache=1
5800                           fi
5801
5802                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5803
5804 fi;
5805
5806           eval "$ac_cv_use_unicode"
5807           if test "$no_cache" != 1; then
5808             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5809           fi
5810
5811           if test "$wxUSE_UNICODE" = yes; then
5812             echo "$as_me:$LINENO: result: yes" >&5
5813 echo "${ECHO_T}yes" >&6
5814           else
5815             echo "$as_me:$LINENO: result: no" >&5
5816 echo "${ECHO_T}no" >&6
5817           fi
5818
5819
5820           enablestring=
5821           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5822 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5823           no_cache=0
5824           # Check whether --enable-sound or --disable-sound was given.
5825 if test "${enable_sound+set}" = set; then
5826   enableval="$enable_sound"
5827
5828                           if test "$enableval" = yes; then
5829                             ac_cv_use_sound='wxUSE_SOUND=yes'
5830                           else
5831                             ac_cv_use_sound='wxUSE_SOUND=no'
5832                           fi
5833
5834 else
5835
5836                           LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5837                           if test "x$LINE" != x ; then
5838                             eval "DEFAULT_$LINE"
5839                           else
5840                             no_cache=1
5841                           fi
5842
5843                           ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5844
5845 fi;
5846
5847           eval "$ac_cv_use_sound"
5848           if test "$no_cache" != 1; then
5849             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5850           fi
5851
5852           if test "$wxUSE_SOUND" = yes; then
5853             echo "$as_me:$LINENO: result: yes" >&5
5854 echo "${ECHO_T}yes" >&6
5855           else
5856             echo "$as_me:$LINENO: result: no" >&5
5857 echo "${ECHO_T}no" >&6
5858           fi
5859
5860
5861           enablestring=
5862           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5863 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5864           no_cache=0
5865           # Check whether --enable-mediactrl or --disable-mediactrl was given.
5866 if test "${enable_mediactrl+set}" = set; then
5867   enableval="$enable_mediactrl"
5868
5869                           if test "$enableval" = yes; then
5870                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5871                           else
5872                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
5873                           fi
5874
5875 else
5876
5877                           LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
5878                           if test "x$LINE" != x ; then
5879                             eval "DEFAULT_$LINE"
5880                           else
5881                             no_cache=1
5882                           fi
5883
5884                           ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
5885
5886 fi;
5887
5888           eval "$ac_cv_use_mediactrl"
5889           if test "$no_cache" != 1; then
5890             echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
5891           fi
5892
5893           if test "$wxUSE_MEDIACTRL" = yes; then
5894             echo "$as_me:$LINENO: result: yes" >&5
5895 echo "${ECHO_T}yes" >&6
5896           else
5897             echo "$as_me:$LINENO: result: no" >&5
5898 echo "${ECHO_T}no" >&6
5899           fi
5900
5901
5902           enablestring=
5903           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5904 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5905           no_cache=0
5906           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5907 if test "${enable_wxprintfv+set}" = set; then
5908   enableval="$enable_wxprintfv"
5909
5910                           if test "$enableval" = yes; then
5911                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5912                           else
5913                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5914                           fi
5915
5916 else
5917
5918                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5919                           if test "x$LINE" != x ; then
5920                             eval "DEFAULT_$LINE"
5921                           else
5922                             no_cache=1
5923                           fi
5924
5925                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5926
5927 fi;
5928
5929           eval "$ac_cv_use_wxprintfv"
5930           if test "$no_cache" != 1; then
5931             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5932           fi
5933
5934           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5935             echo "$as_me:$LINENO: result: yes" >&5
5936 echo "${ECHO_T}yes" >&6
5937           else
5938             echo "$as_me:$LINENO: result: no" >&5
5939 echo "${ECHO_T}no" >&6
5940           fi
5941
5942
5943           enablestring=
5944           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5945 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5946           no_cache=0
5947           # Check whether --enable-zipstream or --disable-zipstream was given.
5948 if test "${enable_zipstream+set}" = set; then
5949   enableval="$enable_zipstream"
5950
5951                           if test "$enableval" = yes; then
5952                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5953                           else
5954                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5955                           fi
5956
5957 else
5958
5959                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5960                           if test "x$LINE" != x ; then
5961                             eval "DEFAULT_$LINE"
5962                           else
5963                             no_cache=1
5964                           fi
5965
5966                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5967
5968 fi;
5969
5970           eval "$ac_cv_use_zipstream"
5971           if test "$no_cache" != 1; then
5972             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5973           fi
5974
5975           if test "$wxUSE_ZIPSTREAM" = yes; then
5976             echo "$as_me:$LINENO: result: yes" >&5
5977 echo "${ECHO_T}yes" >&6
5978           else
5979             echo "$as_me:$LINENO: result: no" >&5
5980 echo "${ECHO_T}no" >&6
5981           fi
5982
5983
5984
5985           enablestring=
5986           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5987 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5988           no_cache=0
5989           # Check whether --enable-url or --disable-url was given.
5990 if test "${enable_url+set}" = set; then
5991   enableval="$enable_url"
5992
5993                           if test "$enableval" = yes; then
5994                             ac_cv_use_url='wxUSE_URL=yes'
5995                           else
5996                             ac_cv_use_url='wxUSE_URL=no'
5997                           fi
5998
5999 else
6000
6001                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6002                           if test "x$LINE" != x ; then
6003                             eval "DEFAULT_$LINE"
6004                           else
6005                             no_cache=1
6006                           fi
6007
6008                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6009
6010 fi;
6011
6012           eval "$ac_cv_use_url"
6013           if test "$no_cache" != 1; then
6014             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6015           fi
6016
6017           if test "$wxUSE_URL" = yes; then
6018             echo "$as_me:$LINENO: result: yes" >&5
6019 echo "${ECHO_T}yes" >&6
6020           else
6021             echo "$as_me:$LINENO: result: no" >&5
6022 echo "${ECHO_T}no" >&6
6023           fi
6024
6025
6026           enablestring=
6027           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6028 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6029           no_cache=0
6030           # Check whether --enable-protocol or --disable-protocol was given.
6031 if test "${enable_protocol+set}" = set; then
6032   enableval="$enable_protocol"
6033
6034                           if test "$enableval" = yes; then
6035                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6036                           else
6037                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6038                           fi
6039
6040 else
6041
6042                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6043                           if test "x$LINE" != x ; then
6044                             eval "DEFAULT_$LINE"
6045                           else
6046                             no_cache=1
6047                           fi
6048
6049                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6050
6051 fi;
6052
6053           eval "$ac_cv_use_protocol"
6054           if test "$no_cache" != 1; then
6055             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6056           fi
6057
6058           if test "$wxUSE_PROTOCOL" = yes; then
6059             echo "$as_me:$LINENO: result: yes" >&5
6060 echo "${ECHO_T}yes" >&6
6061           else
6062             echo "$as_me:$LINENO: result: no" >&5
6063 echo "${ECHO_T}no" >&6
6064           fi
6065
6066
6067           enablestring=
6068           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6069 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6070           no_cache=0
6071           # Check whether --enable-protocol_http or --disable-protocol_http was given.
6072 if test "${enable_protocol_http+set}" = set; then
6073   enableval="$enable_protocol_http"
6074
6075                           if test "$enableval" = yes; then
6076                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6077                           else
6078                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6079                           fi
6080
6081 else
6082
6083                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6084                           if test "x$LINE" != x ; then
6085                             eval "DEFAULT_$LINE"
6086                           else
6087                             no_cache=1
6088                           fi
6089
6090                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6091
6092 fi;
6093
6094           eval "$ac_cv_use_protocol_http"
6095           if test "$no_cache" != 1; then
6096             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6097           fi
6098
6099           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6100             echo "$as_me:$LINENO: result: yes" >&5
6101 echo "${ECHO_T}yes" >&6
6102           else
6103             echo "$as_me:$LINENO: result: no" >&5
6104 echo "${ECHO_T}no" >&6
6105           fi
6106
6107
6108           enablestring=
6109           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6110 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6111           no_cache=0
6112           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6113 if test "${enable_protocol_ftp+set}" = set; then
6114   enableval="$enable_protocol_ftp"
6115
6116                           if test "$enableval" = yes; then
6117                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6118                           else
6119                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6120                           fi
6121
6122 else
6123
6124                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6125                           if test "x$LINE" != x ; then
6126                             eval "DEFAULT_$LINE"
6127                           else
6128                             no_cache=1
6129                           fi
6130
6131                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6132
6133 fi;
6134
6135           eval "$ac_cv_use_protocol_ftp"
6136           if test "$no_cache" != 1; then
6137             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6138           fi
6139
6140           if test "$wxUSE_PROTOCOL_FTP" = yes; then
6141             echo "$as_me:$LINENO: result: yes" >&5
6142 echo "${ECHO_T}yes" >&6
6143           else
6144             echo "$as_me:$LINENO: result: no" >&5
6145 echo "${ECHO_T}no" >&6
6146           fi
6147
6148
6149           enablestring=
6150           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6151 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6152           no_cache=0
6153           # Check whether --enable-protocol_file or --disable-protocol_file was given.
6154 if test "${enable_protocol_file+set}" = set; then
6155   enableval="$enable_protocol_file"
6156
6157                           if test "$enableval" = yes; then
6158                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6159                           else
6160                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6161                           fi
6162
6163 else
6164
6165                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6166                           if test "x$LINE" != x ; then
6167                             eval "DEFAULT_$LINE"
6168                           else
6169                             no_cache=1
6170                           fi
6171
6172                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6173
6174 fi;
6175
6176           eval "$ac_cv_use_protocol_file"
6177           if test "$no_cache" != 1; then
6178             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6179           fi
6180
6181           if test "$wxUSE_PROTOCOL_FILE" = yes; then
6182             echo "$as_me:$LINENO: result: yes" >&5
6183 echo "${ECHO_T}yes" >&6
6184           else
6185             echo "$as_me:$LINENO: result: no" >&5
6186 echo "${ECHO_T}no" >&6
6187           fi
6188
6189
6190
6191
6192
6193           enablestring=
6194           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6195 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6196           no_cache=0
6197           # Check whether --enable-threads or --disable-threads was given.
6198 if test "${enable_threads+set}" = set; then
6199   enableval="$enable_threads"
6200
6201                           if test "$enableval" = yes; then
6202                             ac_cv_use_threads='wxUSE_THREADS=yes'
6203                           else
6204                             ac_cv_use_threads='wxUSE_THREADS=no'
6205                           fi
6206
6207 else
6208
6209                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6210                           if test "x$LINE" != x ; then
6211                             eval "DEFAULT_$LINE"
6212                           else
6213                             no_cache=1
6214                           fi
6215
6216                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6217
6218 fi;
6219
6220           eval "$ac_cv_use_threads"
6221           if test "$no_cache" != 1; then
6222             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6223           fi
6224
6225           if test "$wxUSE_THREADS" = yes; then
6226             echo "$as_me:$LINENO: result: yes" >&5
6227 echo "${ECHO_T}yes" >&6
6228           else
6229             echo "$as_me:$LINENO: result: no" >&5
6230 echo "${ECHO_T}no" >&6
6231           fi
6232
6233
6234 if test "$wxUSE_GUI" = "yes"; then
6235
6236
6237
6238           enablestring=
6239           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6240 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6241           no_cache=0
6242           # Check whether --enable-docview or --disable-docview was given.
6243 if test "${enable_docview+set}" = set; then
6244   enableval="$enable_docview"
6245
6246                           if test "$enableval" = yes; then
6247                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6248                           else
6249                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6250                           fi
6251
6252 else
6253
6254                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6255                           if test "x$LINE" != x ; then
6256                             eval "DEFAULT_$LINE"
6257                           else
6258                             no_cache=1
6259                           fi
6260
6261                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6262
6263 fi;
6264
6265           eval "$ac_cv_use_docview"
6266           if test "$no_cache" != 1; then
6267             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6268           fi
6269
6270           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6271             echo "$as_me:$LINENO: result: yes" >&5
6272 echo "${ECHO_T}yes" >&6
6273           else
6274             echo "$as_me:$LINENO: result: no" >&5
6275 echo "${ECHO_T}no" >&6
6276           fi
6277
6278
6279           enablestring=
6280           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6281 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6282           no_cache=0
6283           # Check whether --enable-help or --disable-help was given.
6284 if test "${enable_help+set}" = set; then
6285   enableval="$enable_help"
6286
6287                           if test "$enableval" = yes; then
6288                             ac_cv_use_help='wxUSE_HELP=yes'
6289                           else
6290                             ac_cv_use_help='wxUSE_HELP=no'
6291                           fi
6292
6293 else
6294
6295                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6296                           if test "x$LINE" != x ; then
6297                             eval "DEFAULT_$LINE"
6298                           else
6299                             no_cache=1
6300                           fi
6301
6302                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6303
6304 fi;
6305
6306           eval "$ac_cv_use_help"
6307           if test "$no_cache" != 1; then
6308             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6309           fi
6310
6311           if test "$wxUSE_HELP" = yes; then
6312             echo "$as_me:$LINENO: result: yes" >&5
6313 echo "${ECHO_T}yes" >&6
6314           else
6315             echo "$as_me:$LINENO: result: no" >&5
6316 echo "${ECHO_T}no" >&6
6317           fi
6318
6319
6320           enablestring=
6321           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6322 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6323           no_cache=0
6324           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6325 if test "${enable_mshtmlhelp+set}" = set; then
6326   enableval="$enable_mshtmlhelp"
6327
6328                           if test "$enableval" = yes; then
6329                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6330                           else
6331                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6332                           fi
6333
6334 else
6335
6336                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6337                           if test "x$LINE" != x ; then
6338                             eval "DEFAULT_$LINE"
6339                           else
6340                             no_cache=1
6341                           fi
6342
6343                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6344
6345 fi;
6346
6347           eval "$ac_cv_use_mshtmlhelp"
6348           if test "$no_cache" != 1; then
6349             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6350           fi
6351
6352           if test "$wxUSE_MS_HTML_HELP" = yes; then
6353             echo "$as_me:$LINENO: result: yes" >&5
6354 echo "${ECHO_T}yes" >&6
6355           else
6356             echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6
6358           fi
6359
6360
6361           enablestring=
6362           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6363 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6364           no_cache=0
6365           # Check whether --enable-html or --disable-html was given.
6366 if test "${enable_html+set}" = set; then
6367   enableval="$enable_html"
6368
6369                           if test "$enableval" = yes; then
6370                             ac_cv_use_html='wxUSE_HTML=yes'
6371                           else
6372                             ac_cv_use_html='wxUSE_HTML=no'
6373                           fi
6374
6375 else
6376
6377                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6378                           if test "x$LINE" != x ; then
6379                             eval "DEFAULT_$LINE"
6380                           else
6381                             no_cache=1
6382                           fi
6383
6384                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6385
6386 fi;
6387
6388           eval "$ac_cv_use_html"
6389           if test "$no_cache" != 1; then
6390             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6391           fi
6392
6393           if test "$wxUSE_HTML" = yes; then
6394             echo "$as_me:$LINENO: result: yes" >&5
6395 echo "${ECHO_T}yes" >&6
6396           else
6397             echo "$as_me:$LINENO: result: no" >&5
6398 echo "${ECHO_T}no" >&6
6399           fi
6400
6401
6402           enablestring=
6403           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6404 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6405           no_cache=0
6406           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6407 if test "${enable_htmlhelp+set}" = set; then
6408   enableval="$enable_htmlhelp"
6409
6410                           if test "$enableval" = yes; then
6411                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6412                           else
6413                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6414                           fi
6415
6416 else
6417
6418                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6419                           if test "x$LINE" != x ; then
6420                             eval "DEFAULT_$LINE"
6421                           else
6422                             no_cache=1
6423                           fi
6424
6425                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6426
6427 fi;
6428
6429           eval "$ac_cv_use_htmlhelp"
6430           if test "$no_cache" != 1; then
6431             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6432           fi
6433
6434           if test "$wxUSE_WXHTML_HELP" = yes; then
6435             echo "$as_me:$LINENO: result: yes" >&5
6436 echo "${ECHO_T}yes" >&6
6437           else
6438             echo "$as_me:$LINENO: result: no" >&5
6439 echo "${ECHO_T}no" >&6
6440           fi
6441
6442
6443           enablestring=
6444           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6445 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6446           no_cache=0
6447           # Check whether --enable-xrc or --disable-xrc was given.
6448 if test "${enable_xrc+set}" = set; then
6449   enableval="$enable_xrc"
6450
6451                           if test "$enableval" = yes; then
6452                             ac_cv_use_xrc='wxUSE_XRC=yes'
6453                           else
6454                             ac_cv_use_xrc='wxUSE_XRC=no'
6455                           fi
6456
6457 else
6458
6459                           LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6460                           if test "x$LINE" != x ; then
6461                             eval "DEFAULT_$LINE"
6462                           else
6463                             no_cache=1
6464                           fi
6465
6466                           ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6467
6468 fi;
6469
6470           eval "$ac_cv_use_xrc"
6471           if test "$no_cache" != 1; then
6472             echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6473           fi
6474
6475           if test "$wxUSE_XRC" = yes; then
6476             echo "$as_me:$LINENO: result: yes" >&5
6477 echo "${ECHO_T}yes" >&6
6478           else
6479             echo "$as_me:$LINENO: result: no" >&5
6480 echo "${ECHO_T}no" >&6
6481           fi
6482
6483
6484           enablestring=
6485           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6486 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6487           no_cache=0
6488           # Check whether --enable-constraints or --disable-constraints was given.
6489 if test "${enable_constraints+set}" = set; then
6490   enableval="$enable_constraints"
6491
6492                           if test "$enableval" = yes; then
6493                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6494                           else
6495                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6496                           fi
6497
6498 else
6499
6500                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6501                           if test "x$LINE" != x ; then
6502                             eval "DEFAULT_$LINE"
6503                           else
6504                             no_cache=1
6505                           fi
6506
6507                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6508
6509 fi;
6510
6511           eval "$ac_cv_use_constraints"
6512           if test "$no_cache" != 1; then
6513             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6514           fi
6515
6516           if test "$wxUSE_CONSTRAINTS" = yes; then
6517             echo "$as_me:$LINENO: result: yes" >&5
6518 echo "${ECHO_T}yes" >&6
6519           else
6520             echo "$as_me:$LINENO: result: no" >&5
6521 echo "${ECHO_T}no" >&6
6522           fi
6523
6524
6525           enablestring=
6526           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6527 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6528           no_cache=0
6529           # Check whether --enable-printarch or --disable-printarch was given.
6530 if test "${enable_printarch+set}" = set; then
6531   enableval="$enable_printarch"
6532
6533                           if test "$enableval" = yes; then
6534                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6535                           else
6536                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6537                           fi
6538
6539 else
6540
6541                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6542                           if test "x$LINE" != x ; then
6543                             eval "DEFAULT_$LINE"
6544                           else
6545                             no_cache=1
6546                           fi
6547
6548                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6549
6550 fi;
6551
6552           eval "$ac_cv_use_printarch"
6553           if test "$no_cache" != 1; then
6554             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6555           fi
6556
6557           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6558             echo "$as_me:$LINENO: result: yes" >&5
6559 echo "${ECHO_T}yes" >&6
6560           else
6561             echo "$as_me:$LINENO: result: no" >&5
6562 echo "${ECHO_T}no" >&6
6563           fi
6564
6565
6566           enablestring=
6567           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6568 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6569           no_cache=0
6570           # Check whether --enable-mdi or --disable-mdi was given.
6571 if test "${enable_mdi+set}" = set; then
6572   enableval="$enable_mdi"
6573
6574                           if test "$enableval" = yes; then
6575                             ac_cv_use_mdi='wxUSE_MDI=yes'
6576                           else
6577                             ac_cv_use_mdi='wxUSE_MDI=no'
6578                           fi
6579
6580 else
6581
6582                           LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
6583                           if test "x$LINE" != x ; then
6584                             eval "DEFAULT_$LINE"
6585                           else
6586                             no_cache=1
6587                           fi
6588
6589                           ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
6590
6591 fi;
6592
6593           eval "$ac_cv_use_mdi"
6594           if test "$no_cache" != 1; then
6595             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6596           fi
6597
6598           if test "$wxUSE_MDI" = yes; then
6599             echo "$as_me:$LINENO: result: yes" >&5
6600 echo "${ECHO_T}yes" >&6
6601           else
6602             echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6
6604           fi
6605
6606
6607           enablestring=
6608           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6609 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6610           no_cache=0
6611           # Check whether --enable-mdidoc or --disable-mdidoc was given.
6612 if test "${enable_mdidoc+set}" = set; then
6613   enableval="$enable_mdidoc"
6614
6615                           if test "$enableval" = yes; then
6616                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6617                           else
6618                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6619                           fi
6620
6621 else
6622
6623                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6624                           if test "x$LINE" != x ; then
6625                             eval "DEFAULT_$LINE"
6626                           else
6627                             no_cache=1
6628                           fi
6629
6630                           ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6631
6632 fi;
6633
6634           eval "$ac_cv_use_mdidoc"
6635           if test "$no_cache" != 1; then
6636             echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6637           fi
6638
6639           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6640             echo "$as_me:$LINENO: result: yes" >&5
6641 echo "${ECHO_T}yes" >&6
6642           else
6643             echo "$as_me:$LINENO: result: no" >&5
6644 echo "${ECHO_T}no" >&6
6645           fi
6646
6647
6648           enablestring=
6649           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6650 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6651           no_cache=0
6652           # Check whether --enable-loggui or --disable-loggui was given.
6653 if test "${enable_loggui+set}" = set; then
6654   enableval="$enable_loggui"
6655
6656                           if test "$enableval" = yes; then
6657                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6658                           else
6659                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
6660                           fi
6661
6662 else
6663
6664                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6665                           if test "x$LINE" != x ; then
6666                             eval "DEFAULT_$LINE"
6667                           else
6668                             no_cache=1
6669                           fi
6670
6671                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6672
6673 fi;
6674
6675           eval "$ac_cv_use_loggui"
6676           if test "$no_cache" != 1; then
6677             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6678           fi
6679
6680           if test "$wxUSE_LOGGUI" = yes; then
6681             echo "$as_me:$LINENO: result: yes" >&5
6682 echo "${ECHO_T}yes" >&6
6683           else
6684             echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6
6686           fi
6687
6688
6689           enablestring=
6690           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6691 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6692           no_cache=0
6693           # Check whether --enable-logwin or --disable-logwin was given.
6694 if test "${enable_logwin+set}" = set; then
6695   enableval="$enable_logwin"
6696
6697                           if test "$enableval" = yes; then
6698                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6699                           else
6700                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6701                           fi
6702
6703 else
6704
6705                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6706                           if test "x$LINE" != x ; then
6707                             eval "DEFAULT_$LINE"
6708                           else
6709                             no_cache=1
6710                           fi
6711
6712                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6713
6714 fi;
6715
6716           eval "$ac_cv_use_logwin"
6717           if test "$no_cache" != 1; then
6718             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6719           fi
6720
6721           if test "$wxUSE_LOGWINDOW" = yes; then
6722             echo "$as_me:$LINENO: result: yes" >&5
6723 echo "${ECHO_T}yes" >&6
6724           else
6725             echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6
6727           fi
6728
6729
6730           enablestring=
6731           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6732 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6733           no_cache=0
6734           # Check whether --enable-logdialog or --disable-logdialog was given.
6735 if test "${enable_logdialog+set}" = set; then
6736   enableval="$enable_logdialog"
6737
6738                           if test "$enableval" = yes; then
6739                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6740                           else
6741                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6742                           fi
6743
6744 else
6745
6746                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6747                           if test "x$LINE" != x ; then
6748                             eval "DEFAULT_$LINE"
6749                           else
6750                             no_cache=1
6751                           fi
6752
6753                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6754
6755 fi;
6756
6757           eval "$ac_cv_use_logdialog"
6758           if test "$no_cache" != 1; then
6759             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6760           fi
6761
6762           if test "$wxUSE_LOGDIALOG" = yes; then
6763             echo "$as_me:$LINENO: result: yes" >&5
6764 echo "${ECHO_T}yes" >&6
6765           else
6766             echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6
6768           fi
6769
6770
6771           enablestring=
6772           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6773 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6774           no_cache=0
6775           # Check whether --enable-webkit or --disable-webkit was given.
6776 if test "${enable_webkit+set}" = set; then
6777   enableval="$enable_webkit"
6778
6779                           if test "$enableval" = yes; then
6780                             ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6781                           else
6782                             ac_cv_use_webkit='wxUSE_WEBKIT=no'
6783                           fi
6784
6785 else
6786
6787                           LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6788                           if test "x$LINE" != x ; then
6789                             eval "DEFAULT_$LINE"
6790                           else
6791                             no_cache=1
6792                           fi
6793
6794                           ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6795
6796 fi;
6797
6798           eval "$ac_cv_use_webkit"
6799           if test "$no_cache" != 1; then
6800             echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6801           fi
6802
6803           if test "$wxUSE_WEBKIT" = yes; then
6804             echo "$as_me:$LINENO: result: yes" >&5
6805 echo "${ECHO_T}yes" >&6
6806           else
6807             echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6
6809           fi
6810
6811
6812
6813           enablestring=
6814           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6815 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6816           no_cache=0
6817           # Check whether --enable-postscript or --disable-postscript was given.
6818 if test "${enable_postscript+set}" = set; then
6819   enableval="$enable_postscript"
6820
6821                           if test "$enableval" = yes; then
6822                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6823                           else
6824                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6825                           fi
6826
6827 else
6828
6829                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6830                           if test "x$LINE" != x ; then
6831                             eval "DEFAULT_$LINE"
6832                           else
6833                             no_cache=1
6834                           fi
6835
6836                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6837
6838 fi;
6839
6840           eval "$ac_cv_use_postscript"
6841           if test "$no_cache" != 1; then
6842             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6843           fi
6844
6845           if test "$wxUSE_POSTSCRIPT" = yes; then
6846             echo "$as_me:$LINENO: result: yes" >&5
6847 echo "${ECHO_T}yes" >&6
6848           else
6849             echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6
6851           fi
6852
6853
6854
6855
6856
6857           enablestring=
6858           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6859 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6860           no_cache=0
6861           # Check whether --enable-prologio or --disable-prologio was given.
6862 if test "${enable_prologio+set}" = set; then
6863   enableval="$enable_prologio"
6864
6865                           if test "$enableval" = yes; then
6866                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6867                           else
6868                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6869                           fi
6870
6871 else
6872
6873                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6874                           if test "x$LINE" != x ; then
6875                             eval "DEFAULT_$LINE"
6876                           else
6877                             no_cache=1
6878                           fi
6879
6880                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6881
6882 fi;
6883
6884           eval "$ac_cv_use_prologio"
6885           if test "$no_cache" != 1; then
6886             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6887           fi
6888
6889           if test "$wxUSE_PROLOGIO" = yes; then
6890             echo "$as_me:$LINENO: result: yes" >&5
6891 echo "${ECHO_T}yes" >&6
6892           else
6893             echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6
6895           fi
6896
6897
6898           enablestring=
6899           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6900 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6901           no_cache=0
6902           # Check whether --enable-resources or --disable-resources was given.
6903 if test "${enable_resources+set}" = set; then
6904   enableval="$enable_resources"
6905
6906                           if test "$enableval" = yes; then
6907                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
6908                           else
6909                             ac_cv_use_resources='wxUSE_RESOURCES=no'
6910                           fi
6911
6912 else
6913
6914                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6915                           if test "x$LINE" != x ; then
6916                             eval "DEFAULT_$LINE"
6917                           else
6918                             no_cache=1
6919                           fi
6920
6921                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6922
6923 fi;
6924
6925           eval "$ac_cv_use_resources"
6926           if test "$no_cache" != 1; then
6927             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6928           fi
6929
6930           if test "$wxUSE_RESOURCES" = yes; then
6931             echo "$as_me:$LINENO: result: yes" >&5
6932 echo "${ECHO_T}yes" >&6
6933           else
6934             echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6
6936           fi
6937
6938
6939
6940
6941           enablestring=
6942           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6943 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6944           no_cache=0
6945           # Check whether --enable-clipboard or --disable-clipboard was given.
6946 if test "${enable_clipboard+set}" = set; then
6947   enableval="$enable_clipboard"
6948
6949                           if test "$enableval" = yes; then
6950                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6951                           else
6952                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6953                           fi
6954
6955 else
6956
6957                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6958                           if test "x$LINE" != x ; then
6959                             eval "DEFAULT_$LINE"
6960                           else
6961                             no_cache=1
6962                           fi
6963
6964                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6965
6966 fi;
6967
6968           eval "$ac_cv_use_clipboard"
6969           if test "$no_cache" != 1; then
6970             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6971           fi
6972
6973           if test "$wxUSE_CLIPBOARD" = yes; then
6974             echo "$as_me:$LINENO: result: yes" >&5
6975 echo "${ECHO_T}yes" >&6
6976           else
6977             echo "$as_me:$LINENO: result: no" >&5
6978 echo "${ECHO_T}no" >&6
6979           fi
6980
6981
6982           enablestring=
6983           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6984 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6985           no_cache=0
6986           # Check whether --enable-dnd or --disable-dnd was given.
6987 if test "${enable_dnd+set}" = set; then
6988   enableval="$enable_dnd"
6989
6990                           if test "$enableval" = yes; then
6991                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6992                           else
6993                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6994                           fi
6995
6996 else
6997
6998                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6999                           if test "x$LINE" != x ; then
7000                             eval "DEFAULT_$LINE"
7001                           else
7002                             no_cache=1
7003                           fi
7004
7005                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7006
7007 fi;
7008
7009           eval "$ac_cv_use_dnd"
7010           if test "$no_cache" != 1; then
7011             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7012           fi
7013
7014           if test "$wxUSE_DRAG_AND_DROP" = yes; then
7015             echo "$as_me:$LINENO: result: yes" >&5
7016 echo "${ECHO_T}yes" >&6
7017           else
7018             echo "$as_me:$LINENO: result: no" >&5
7019 echo "${ECHO_T}no" >&6
7020           fi
7021
7022
7023           enablestring=
7024           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7025 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7026           no_cache=0
7027           # Check whether --enable-metafile or --disable-metafile was given.
7028 if test "${enable_metafile+set}" = set; then
7029   enableval="$enable_metafile"
7030
7031                           if test "$enableval" = yes; then
7032                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
7033                           else
7034                             ac_cv_use_metafile='wxUSE_METAFILE=no'
7035                           fi
7036
7037 else
7038
7039                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7040                           if test "x$LINE" != x ; then
7041                             eval "DEFAULT_$LINE"
7042                           else
7043                             no_cache=1
7044                           fi
7045
7046                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7047
7048 fi;
7049
7050           eval "$ac_cv_use_metafile"
7051           if test "$no_cache" != 1; then
7052             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7053           fi
7054
7055           if test "$wxUSE_METAFILE" = yes; then
7056             echo "$as_me:$LINENO: result: yes" >&5
7057 echo "${ECHO_T}yes" >&6
7058           else
7059             echo "$as_me:$LINENO: result: no" >&5
7060 echo "${ECHO_T}no" >&6
7061           fi
7062
7063
7064
7065
7066
7067           enablestring=
7068           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7069 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7070           no_cache=0
7071           # Check whether --enable-controls or --disable-controls was given.
7072 if test "${enable_controls+set}" = set; then
7073   enableval="$enable_controls"
7074
7075                           if test "$enableval" = yes; then
7076                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
7077                           else
7078                             ac_cv_use_controls='wxUSE_CONTROLS=no'
7079                           fi
7080
7081 else
7082
7083                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7084                           if test "x$LINE" != x ; then
7085                             eval "DEFAULT_$LINE"
7086                           else
7087                             no_cache=1
7088                           fi
7089
7090                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7091
7092 fi;
7093
7094           eval "$ac_cv_use_controls"
7095           if test "$no_cache" != 1; then
7096             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7097           fi
7098
7099           if test "$wxUSE_CONTROLS" = yes; then
7100             echo "$as_me:$LINENO: result: yes" >&5
7101 echo "${ECHO_T}yes" >&6
7102           else
7103             echo "$as_me:$LINENO: result: no" >&5
7104 echo "${ECHO_T}no" >&6
7105           fi
7106
7107
7108 if test "$wxUSE_CONTROLS" = "yes"; then
7109   DEFAULT_wxUSE_ACCEL=yes
7110   DEFAULT_wxUSE_BMPBUTTON=yes
7111   DEFAULT_wxUSE_BUTTON=yes
7112   DEFAULT_wxUSE_CALCTRL=yes
7113   DEFAULT_wxUSE_CARET=yes
7114   DEFAULT_wxUSE_COMBOBOX=yes
7115   DEFAULT_wxUSE_CHECKBOX=yes
7116   DEFAULT_wxUSE_CHECKLISTBOX=yes
7117   DEFAULT_wxUSE_CHOICE=yes
7118   DEFAULT_wxUSE_CHOICEBOOK=yes
7119   DEFAULT_wxUSE_DATEPICKCTRL=yes
7120   DEFAULT_wxUSE_GAUGE=yes
7121   DEFAULT_wxUSE_GRID=yes
7122   DEFAULT_wxUSE_IMAGLIST=yes
7123   DEFAULT_wxUSE_LISTBOOK=yes
7124   DEFAULT_wxUSE_LISTBOX=yes
7125   DEFAULT_wxUSE_LISTCTRL=yes
7126   DEFAULT_wxUSE_NOTEBOOK=yes
7127   DEFAULT_wxUSE_RADIOBOX=yes
7128   DEFAULT_wxUSE_RADIOBTN=yes
7129   DEFAULT_wxUSE_SASH=yes
7130   DEFAULT_wxUSE_SCROLLBAR=yes
7131   DEFAULT_wxUSE_SLIDER=yes
7132   DEFAULT_wxUSE_SPINBTN=yes
7133   DEFAULT_wxUSE_SPINCTRL=yes
7134   DEFAULT_wxUSE_SPLITTER=yes
7135   DEFAULT_wxUSE_STATBMP=yes
7136   DEFAULT_wxUSE_STATBOX=yes
7137   DEFAULT_wxUSE_STATLINE=yes
7138   DEFAULT_wxUSE_STATUSBAR=yes
7139   DEFAULT_wxUSE_TAB_DIALOG=yes
7140   DEFAULT_wxUSE_TOGGLEBTN=yes
7141   DEFAULT_wxUSE_TOOLBAR=yes
7142   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7143   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7144   DEFAULT_wxUSE_TOOLTIPS=yes
7145   DEFAULT_wxUSE_TREECTRL=yes
7146   DEFAULT_wxUSE_POPUPWIN=yes
7147   DEFAULT_wxUSE_TIPWINDOW=yes
7148 elif test "$wxUSE_CONTROLS" = "no"; then
7149   DEFAULT_wxUSE_ACCEL=no
7150   DEFAULT_wxUSE_BMPBUTTON=no
7151   DEFAULT_wxUSE_BUTTON=no
7152   DEFAULT_wxUSE_CALCTRL=no
7153   DEFAULT_wxUSE_CARET=no
7154   DEFAULT_wxUSE_COMBOBOX=no
7155   DEFAULT_wxUSE_CHECKBOX=no
7156   DEFAULT_wxUSE_CHECKLISTBOX=no
7157   DEFAULT_wxUSE_CHOICE=no
7158   DEFAULT_wxUSE_CHOICEBOOK=no
7159   DEFAULT_wxUSE_DATEPICKCTRL=no
7160   DEFAULT_wxUSE_GAUGE=no
7161   DEFAULT_wxUSE_GRID=no
7162   DEFAULT_wxUSE_IMAGLIST=no
7163   DEFAULT_wxUSE_LISTBOOK=no
7164   DEFAULT_wxUSE_LISTBOX=no
7165   DEFAULT_wxUSE_LISTCTRL=no
7166   DEFAULT_wxUSE_NOTEBOOK=no
7167   DEFAULT_wxUSE_RADIOBOX=no
7168   DEFAULT_wxUSE_RADIOBTN=no
7169   DEFAULT_wxUSE_SASH=no
7170   DEFAULT_wxUSE_SCROLLBAR=no
7171   DEFAULT_wxUSE_SLIDER=no
7172   DEFAULT_wxUSE_SPINBTN=no
7173   DEFAULT_wxUSE_SPINCTRL=no
7174   DEFAULT_wxUSE_SPLITTER=no
7175   DEFAULT_wxUSE_STATBMP=no
7176   DEFAULT_wxUSE_STATBOX=no
7177   DEFAULT_wxUSE_STATLINE=no
7178   DEFAULT_wxUSE_STATUSBAR=no
7179   DEFAULT_wxUSE_TAB_DIALOG=no
7180   DEFAULT_wxUSE_TOGGLEBTN=no
7181   DEFAULT_wxUSE_TOOLBAR=no
7182   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7183   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7184   DEFAULT_wxUSE_TOOLTIPS=no
7185   DEFAULT_wxUSE_TREECTRL=no
7186   DEFAULT_wxUSE_POPUPWIN=no
7187   DEFAULT_wxUSE_TIPWINDOW=no
7188 fi
7189
7190
7191           enablestring=
7192           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7193 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7194           no_cache=0
7195           # Check whether --enable-accel or --disable-accel was given.
7196 if test "${enable_accel+set}" = set; then
7197   enableval="$enable_accel"
7198
7199                           if test "$enableval" = yes; then
7200                             ac_cv_use_accel='wxUSE_ACCEL=yes'
7201                           else
7202                             ac_cv_use_accel='wxUSE_ACCEL=no'
7203                           fi
7204
7205 else
7206
7207                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7208                           if test "x$LINE" != x ; then
7209                             eval "DEFAULT_$LINE"
7210                           else
7211                             no_cache=1
7212                           fi
7213
7214                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7215
7216 fi;
7217
7218           eval "$ac_cv_use_accel"
7219           if test "$no_cache" != 1; then
7220             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7221           fi
7222
7223           if test "$wxUSE_ACCEL" = yes; then
7224             echo "$as_me:$LINENO: result: yes" >&5
7225 echo "${ECHO_T}yes" >&6
7226           else
7227             echo "$as_me:$LINENO: result: no" >&5
7228 echo "${ECHO_T}no" >&6
7229           fi
7230
7231
7232           enablestring=
7233           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7234 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7235           no_cache=0
7236           # Check whether --enable-button or --disable-button was given.
7237 if test "${enable_button+set}" = set; then
7238   enableval="$enable_button"
7239
7240                           if test "$enableval" = yes; then
7241                             ac_cv_use_button='wxUSE_BUTTON=yes'
7242                           else
7243                             ac_cv_use_button='wxUSE_BUTTON=no'
7244                           fi
7245
7246 else
7247
7248                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7249                           if test "x$LINE" != x ; then
7250                             eval "DEFAULT_$LINE"
7251                           else
7252                             no_cache=1
7253                           fi
7254
7255                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7256
7257 fi;
7258
7259           eval "$ac_cv_use_button"
7260           if test "$no_cache" != 1; then
7261             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7262           fi
7263
7264           if test "$wxUSE_BUTTON" = yes; then
7265             echo "$as_me:$LINENO: result: yes" >&5
7266 echo "${ECHO_T}yes" >&6
7267           else
7268             echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6
7270           fi
7271
7272
7273           enablestring=
7274           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7275 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7276           no_cache=0
7277           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7278 if test "${enable_bmpbutton+set}" = set; then
7279   enableval="$enable_bmpbutton"
7280
7281                           if test "$enableval" = yes; then
7282                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7283                           else
7284                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7285                           fi
7286
7287 else
7288
7289                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7290                           if test "x$LINE" != x ; then
7291                             eval "DEFAULT_$LINE"
7292                           else
7293                             no_cache=1
7294                           fi
7295
7296                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7297
7298 fi;
7299
7300           eval "$ac_cv_use_bmpbutton"
7301           if test "$no_cache" != 1; then
7302             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7303           fi
7304
7305           if test "$wxUSE_BMPBUTTON" = yes; then
7306             echo "$as_me:$LINENO: result: yes" >&5
7307 echo "${ECHO_T}yes" >&6
7308           else
7309             echo "$as_me:$LINENO: result: no" >&5
7310 echo "${ECHO_T}no" >&6
7311           fi
7312
7313
7314           enablestring=
7315           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7316 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7317           no_cache=0
7318           # Check whether --enable-calendar or --disable-calendar was given.
7319 if test "${enable_calendar+set}" = set; then
7320   enableval="$enable_calendar"
7321
7322                           if test "$enableval" = yes; then
7323                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7324                           else
7325                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
7326                           fi
7327
7328 else
7329
7330                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7331                           if test "x$LINE" != x ; then
7332                             eval "DEFAULT_$LINE"
7333                           else
7334                             no_cache=1
7335                           fi
7336
7337                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7338
7339 fi;
7340
7341           eval "$ac_cv_use_calendar"
7342           if test "$no_cache" != 1; then
7343             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7344           fi
7345
7346           if test "$wxUSE_CALCTRL" = yes; then
7347             echo "$as_me:$LINENO: result: yes" >&5
7348 echo "${ECHO_T}yes" >&6
7349           else
7350             echo "$as_me:$LINENO: result: no" >&5
7351 echo "${ECHO_T}no" >&6
7352           fi
7353
7354
7355           enablestring=
7356           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7357 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7358           no_cache=0
7359           # Check whether --enable-caret or --disable-caret was given.
7360 if test "${enable_caret+set}" = set; then
7361   enableval="$enable_caret"
7362
7363                           if test "$enableval" = yes; then
7364                             ac_cv_use_caret='wxUSE_CARET=yes'
7365                           else
7366                             ac_cv_use_caret='wxUSE_CARET=no'
7367                           fi
7368
7369 else
7370
7371                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7372                           if test "x$LINE" != x ; then
7373                             eval "DEFAULT_$LINE"
7374                           else
7375                             no_cache=1
7376                           fi
7377
7378                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7379
7380 fi;
7381
7382           eval "$ac_cv_use_caret"
7383           if test "$no_cache" != 1; then
7384             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7385           fi
7386
7387           if test "$wxUSE_CARET" = yes; then
7388             echo "$as_me:$LINENO: result: yes" >&5
7389 echo "${ECHO_T}yes" >&6
7390           else
7391             echo "$as_me:$LINENO: result: no" >&5
7392 echo "${ECHO_T}no" >&6
7393           fi
7394
7395
7396           enablestring=
7397           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7398 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7399           no_cache=0
7400           # Check whether --enable-checkbox or --disable-checkbox was given.
7401 if test "${enable_checkbox+set}" = set; then
7402   enableval="$enable_checkbox"
7403
7404                           if test "$enableval" = yes; then
7405                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7406                           else
7407                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7408                           fi
7409
7410 else
7411
7412                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7413                           if test "x$LINE" != x ; then
7414                             eval "DEFAULT_$LINE"
7415                           else
7416                             no_cache=1
7417                           fi
7418
7419                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7420
7421 fi;
7422
7423           eval "$ac_cv_use_checkbox"
7424           if test "$no_cache" != 1; then
7425             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7426           fi
7427
7428           if test "$wxUSE_CHECKBOX" = yes; then
7429             echo "$as_me:$LINENO: result: yes" >&5
7430 echo "${ECHO_T}yes" >&6
7431           else
7432             echo "$as_me:$LINENO: result: no" >&5
7433 echo "${ECHO_T}no" >&6
7434           fi
7435
7436
7437           enablestring=
7438           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7439 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7440           no_cache=0
7441           # Check whether --enable-checklst or --disable-checklst was given.
7442 if test "${enable_checklst+set}" = set; then
7443   enableval="$enable_checklst"
7444
7445                           if test "$enableval" = yes; then
7446                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7447                           else
7448                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
7449                           fi
7450
7451 else
7452
7453                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7454                           if test "x$LINE" != x ; then
7455                             eval "DEFAULT_$LINE"
7456                           else
7457                             no_cache=1
7458                           fi
7459
7460                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7461
7462 fi;
7463
7464           eval "$ac_cv_use_checklst"
7465           if test "$no_cache" != 1; then
7466             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7467           fi
7468
7469           if test "$wxUSE_CHECKLST" = yes; then
7470             echo "$as_me:$LINENO: result: yes" >&5
7471 echo "${ECHO_T}yes" >&6
7472           else
7473             echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6
7475           fi
7476
7477
7478           enablestring=
7479           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7480 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7481           no_cache=0
7482           # Check whether --enable-choice or --disable-choice was given.
7483 if test "${enable_choice+set}" = set; then
7484   enableval="$enable_choice"
7485
7486                           if test "$enableval" = yes; then
7487                             ac_cv_use_choice='wxUSE_CHOICE=yes'
7488                           else
7489                             ac_cv_use_choice='wxUSE_CHOICE=no'
7490                           fi
7491
7492 else
7493
7494                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7495                           if test "x$LINE" != x ; then
7496                             eval "DEFAULT_$LINE"
7497                           else
7498                             no_cache=1
7499                           fi
7500
7501                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7502
7503 fi;
7504
7505           eval "$ac_cv_use_choice"
7506           if test "$no_cache" != 1; then
7507             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7508           fi
7509
7510           if test "$wxUSE_CHOICE" = yes; then
7511             echo "$as_me:$LINENO: result: yes" >&5
7512 echo "${ECHO_T}yes" >&6
7513           else
7514             echo "$as_me:$LINENO: result: no" >&5
7515 echo "${ECHO_T}no" >&6
7516           fi
7517
7518
7519           enablestring=
7520           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7521 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7522           no_cache=0
7523           # Check whether --enable-choicebook or --disable-choicebook was given.
7524 if test "${enable_choicebook+set}" = set; then
7525   enableval="$enable_choicebook"
7526
7527                           if test "$enableval" = yes; then
7528                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7529                           else
7530                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7531                           fi
7532
7533 else
7534
7535                           LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7536                           if test "x$LINE" != x ; then
7537                             eval "DEFAULT_$LINE"
7538                           else
7539                             no_cache=1
7540                           fi
7541
7542                           ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7543
7544 fi;
7545
7546           eval "$ac_cv_use_choicebook"
7547           if test "$no_cache" != 1; then
7548             echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7549           fi
7550
7551           if test "$wxUSE_CHOICEBOOK" = yes; then
7552             echo "$as_me:$LINENO: result: yes" >&5
7553 echo "${ECHO_T}yes" >&6
7554           else
7555             echo "$as_me:$LINENO: result: no" >&5
7556 echo "${ECHO_T}no" >&6
7557           fi
7558
7559
7560           enablestring=
7561           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7562 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7563           no_cache=0
7564           # Check whether --enable-combobox or --disable-combobox was given.
7565 if test "${enable_combobox+set}" = set; then
7566   enableval="$enable_combobox"
7567
7568                           if test "$enableval" = yes; then
7569                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7570                           else
7571                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7572                           fi
7573
7574 else
7575
7576                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7577                           if test "x$LINE" != x ; then
7578                             eval "DEFAULT_$LINE"
7579                           else
7580                             no_cache=1
7581                           fi
7582
7583                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7584
7585 fi;
7586
7587           eval "$ac_cv_use_combobox"
7588           if test "$no_cache" != 1; then
7589             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7590           fi
7591
7592           if test "$wxUSE_COMBOBOX" = yes; then
7593             echo "$as_me:$LINENO: result: yes" >&5
7594 echo "${ECHO_T}yes" >&6
7595           else
7596             echo "$as_me:$LINENO: result: no" >&5
7597 echo "${ECHO_T}no" >&6
7598           fi
7599
7600
7601           enablestring=
7602           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7603 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7604           no_cache=0
7605           # Check whether --enable-datepick or --disable-datepick was given.
7606 if test "${enable_datepick+set}" = set; then
7607   enableval="$enable_datepick"
7608
7609                           if test "$enableval" = yes; then
7610                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7611                           else
7612                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7613                           fi
7614
7615 else
7616
7617                           LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7618                           if test "x$LINE" != x ; then
7619                             eval "DEFAULT_$LINE"
7620                           else
7621                             no_cache=1
7622                           fi
7623
7624                           ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7625
7626 fi;
7627
7628           eval "$ac_cv_use_datepick"
7629           if test "$no_cache" != 1; then
7630             echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7631           fi
7632
7633           if test "$wxUSE_DATEPICKCTRL" = yes; then
7634             echo "$as_me:$LINENO: result: yes" >&5
7635 echo "${ECHO_T}yes" >&6
7636           else
7637             echo "$as_me:$LINENO: result: no" >&5
7638 echo "${ECHO_T}no" >&6
7639           fi
7640
7641
7642           enablestring=
7643           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7644 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7645           no_cache=0
7646           # Check whether --enable-display or --disable-display was given.
7647 if test "${enable_display+set}" = set; then
7648   enableval="$enable_display"
7649
7650                           if test "$enableval" = yes; then
7651                             ac_cv_use_display='wxUSE_DISPLAY=yes'
7652                           else
7653                             ac_cv_use_display='wxUSE_DISPLAY=no'
7654                           fi
7655
7656 else
7657
7658                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7659                           if test "x$LINE" != x ; then
7660                             eval "DEFAULT_$LINE"
7661                           else
7662                             no_cache=1
7663                           fi
7664
7665                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7666
7667 fi;
7668
7669           eval "$ac_cv_use_display"
7670           if test "$no_cache" != 1; then
7671             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7672           fi
7673
7674           if test "$wxUSE_DISPLAY" = yes; then
7675             echo "$as_me:$LINENO: result: yes" >&5
7676 echo "${ECHO_T}yes" >&6
7677           else
7678             echo "$as_me:$LINENO: result: no" >&5
7679 echo "${ECHO_T}no" >&6
7680           fi
7681
7682
7683           enablestring=
7684           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7685 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7686           no_cache=0
7687           # Check whether --enable-gauge or --disable-gauge was given.
7688 if test "${enable_gauge+set}" = set; then
7689   enableval="$enable_gauge"
7690
7691                           if test "$enableval" = yes; then
7692                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
7693                           else
7694                             ac_cv_use_gauge='wxUSE_GAUGE=no'
7695                           fi
7696
7697 else
7698
7699                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7700                           if test "x$LINE" != x ; then
7701                             eval "DEFAULT_$LINE"
7702                           else
7703                             no_cache=1
7704                           fi
7705
7706                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7707
7708 fi;
7709
7710           eval "$ac_cv_use_gauge"
7711           if test "$no_cache" != 1; then
7712             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7713           fi
7714
7715           if test "$wxUSE_GAUGE" = yes; then
7716             echo "$as_me:$LINENO: result: yes" >&5
7717 echo "${ECHO_T}yes" >&6
7718           else
7719             echo "$as_me:$LINENO: result: no" >&5
7720 echo "${ECHO_T}no" >&6
7721           fi
7722
7723
7724           enablestring=
7725           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7726 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7727           no_cache=0
7728           # Check whether --enable-grid or --disable-grid was given.
7729 if test "${enable_grid+set}" = set; then
7730   enableval="$enable_grid"
7731
7732                           if test "$enableval" = yes; then
7733                             ac_cv_use_grid='wxUSE_GRID=yes'
7734                           else
7735                             ac_cv_use_grid='wxUSE_GRID=no'
7736                           fi
7737
7738 else
7739
7740                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7741                           if test "x$LINE" != x ; then
7742                             eval "DEFAULT_$LINE"
7743                           else
7744                             no_cache=1
7745                           fi
7746
7747                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7748
7749 fi;
7750
7751           eval "$ac_cv_use_grid"
7752           if test "$no_cache" != 1; then
7753             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7754           fi
7755
7756           if test "$wxUSE_GRID" = yes; then
7757             echo "$as_me:$LINENO: result: yes" >&5
7758 echo "${ECHO_T}yes" >&6
7759           else
7760             echo "$as_me:$LINENO: result: no" >&5
7761 echo "${ECHO_T}no" >&6
7762           fi
7763
7764
7765           enablestring=
7766           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7767 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7768           no_cache=0
7769           # Check whether --enable-imaglist or --disable-imaglist was given.
7770 if test "${enable_imaglist+set}" = set; then
7771   enableval="$enable_imaglist"
7772
7773                           if test "$enableval" = yes; then
7774                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7775                           else
7776                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7777                           fi
7778
7779 else
7780
7781                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7782                           if test "x$LINE" != x ; then
7783                             eval "DEFAULT_$LINE"
7784                           else
7785                             no_cache=1
7786                           fi
7787
7788                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7789
7790 fi;
7791
7792           eval "$ac_cv_use_imaglist"
7793           if test "$no_cache" != 1; then
7794             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7795           fi
7796
7797           if test "$wxUSE_IMAGLIST" = yes; then
7798             echo "$as_me:$LINENO: result: yes" >&5
7799 echo "${ECHO_T}yes" >&6
7800           else
7801             echo "$as_me:$LINENO: result: no" >&5
7802 echo "${ECHO_T}no" >&6
7803           fi
7804
7805
7806           enablestring=
7807           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7808 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7809           no_cache=0
7810           # Check whether --enable-listbook or --disable-listbook was given.
7811 if test "${enable_listbook+set}" = set; then
7812   enableval="$enable_listbook"
7813
7814                           if test "$enableval" = yes; then
7815                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7816                           else
7817                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7818                           fi
7819
7820 else
7821
7822                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7823                           if test "x$LINE" != x ; then
7824                             eval "DEFAULT_$LINE"
7825                           else
7826                             no_cache=1
7827                           fi
7828
7829                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7830
7831 fi;
7832
7833           eval "$ac_cv_use_listbook"
7834           if test "$no_cache" != 1; then
7835             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7836           fi
7837
7838           if test "$wxUSE_LISTBOOK" = yes; then
7839             echo "$as_me:$LINENO: result: yes" >&5
7840 echo "${ECHO_T}yes" >&6
7841           else
7842             echo "$as_me:$LINENO: result: no" >&5
7843 echo "${ECHO_T}no" >&6
7844           fi
7845
7846
7847           enablestring=
7848           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7849 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7850           no_cache=0
7851           # Check whether --enable-listbox or --disable-listbox was given.
7852 if test "${enable_listbox+set}" = set; then
7853   enableval="$enable_listbox"
7854
7855                           if test "$enableval" = yes; then
7856                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7857                           else
7858                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
7859                           fi
7860
7861 else
7862
7863                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7864                           if test "x$LINE" != x ; then
7865                             eval "DEFAULT_$LINE"
7866                           else
7867                             no_cache=1
7868                           fi
7869
7870                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7871
7872 fi;
7873
7874           eval "$ac_cv_use_listbox"
7875           if test "$no_cache" != 1; then
7876             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7877           fi
7878
7879           if test "$wxUSE_LISTBOX" = yes; then
7880             echo "$as_me:$LINENO: result: yes" >&5
7881 echo "${ECHO_T}yes" >&6
7882           else
7883             echo "$as_me:$LINENO: result: no" >&5
7884 echo "${ECHO_T}no" >&6
7885           fi
7886
7887
7888           enablestring=
7889           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7890 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7891           no_cache=0
7892           # Check whether --enable-listctrl or --disable-listctrl was given.
7893 if test "${enable_listctrl+set}" = set; then
7894   enableval="$enable_listctrl"
7895
7896                           if test "$enableval" = yes; then
7897                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7898                           else
7899                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7900                           fi
7901
7902 else
7903
7904                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7905                           if test "x$LINE" != x ; then
7906                             eval "DEFAULT_$LINE"
7907                           else
7908                             no_cache=1
7909                           fi
7910
7911                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7912
7913 fi;
7914
7915           eval "$ac_cv_use_listctrl"
7916           if test "$no_cache" != 1; then
7917             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7918           fi
7919
7920           if test "$wxUSE_LISTCTRL" = yes; then
7921             echo "$as_me:$LINENO: result: yes" >&5
7922 echo "${ECHO_T}yes" >&6
7923           else
7924             echo "$as_me:$LINENO: result: no" >&5
7925 echo "${ECHO_T}no" >&6
7926           fi
7927
7928
7929           enablestring=
7930           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7931 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7932           no_cache=0
7933           # Check whether --enable-notebook or --disable-notebook was given.
7934 if test "${enable_notebook+set}" = set; then
7935   enableval="$enable_notebook"
7936
7937                           if test "$enableval" = yes; then
7938                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7939                           else
7940                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7941                           fi
7942
7943 else
7944
7945                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7946                           if test "x$LINE" != x ; then
7947                             eval "DEFAULT_$LINE"
7948                           else
7949                             no_cache=1
7950                           fi
7951
7952                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7953
7954 fi;
7955
7956           eval "$ac_cv_use_notebook"
7957           if test "$no_cache" != 1; then
7958             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7959           fi
7960
7961           if test "$wxUSE_NOTEBOOK" = yes; then
7962             echo "$as_me:$LINENO: result: yes" >&5
7963 echo "${ECHO_T}yes" >&6
7964           else
7965             echo "$as_me:$LINENO: result: no" >&5
7966 echo "${ECHO_T}no" >&6
7967           fi
7968
7969
7970           enablestring=
7971           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7972 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7973           no_cache=0
7974           # Check whether --enable-radiobox or --disable-radiobox was given.
7975 if test "${enable_radiobox+set}" = set; then
7976   enableval="$enable_radiobox"
7977
7978                           if test "$enableval" = yes; then
7979                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7980                           else
7981                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7982                           fi
7983
7984 else
7985
7986                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7987                           if test "x$LINE" != x ; then
7988                             eval "DEFAULT_$LINE"
7989                           else
7990                             no_cache=1
7991                           fi
7992
7993                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7994
7995 fi;
7996
7997           eval "$ac_cv_use_radiobox"
7998           if test "$no_cache" != 1; then
7999             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8000           fi
8001
8002           if test "$wxUSE_RADIOBOX" = yes; then
8003             echo "$as_me:$LINENO: result: yes" >&5
8004 echo "${ECHO_T}yes" >&6
8005           else
8006             echo "$as_me:$LINENO: result: no" >&5
8007 echo "${ECHO_T}no" >&6
8008           fi
8009
8010
8011           enablestring=
8012           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8013 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8014           no_cache=0
8015           # Check whether --enable-radiobtn or --disable-radiobtn was given.
8016 if test "${enable_radiobtn+set}" = set; then
8017   enableval="$enable_radiobtn"
8018
8019                           if test "$enableval" = yes; then
8020                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8021                           else
8022                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8023                           fi
8024
8025 else
8026
8027                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8028                           if test "x$LINE" != x ; then
8029                             eval "DEFAULT_$LINE"
8030                           else
8031                             no_cache=1
8032                           fi
8033
8034                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8035
8036 fi;
8037
8038           eval "$ac_cv_use_radiobtn"
8039           if test "$no_cache" != 1; then
8040             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8041           fi
8042
8043           if test "$wxUSE_RADIOBTN" = yes; then
8044             echo "$as_me:$LINENO: result: yes" >&5
8045 echo "${ECHO_T}yes" >&6
8046           else
8047             echo "$as_me:$LINENO: result: no" >&5
8048 echo "${ECHO_T}no" >&6
8049           fi
8050
8051
8052           enablestring=
8053           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8054 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8055           no_cache=0
8056           # Check whether --enable-sash or --disable-sash was given.
8057 if test "${enable_sash+set}" = set; then
8058   enableval="$enable_sash"
8059
8060                           if test "$enableval" = yes; then
8061                             ac_cv_use_sash='wxUSE_SASH=yes'
8062                           else
8063                             ac_cv_use_sash='wxUSE_SASH=no'
8064                           fi
8065
8066 else
8067
8068                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8069                           if test "x$LINE" != x ; then
8070                             eval "DEFAULT_$LINE"
8071                           else
8072                             no_cache=1
8073                           fi
8074
8075                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8076
8077 fi;
8078
8079           eval "$ac_cv_use_sash"
8080           if test "$no_cache" != 1; then
8081             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8082           fi
8083
8084           if test "$wxUSE_SASH" = yes; then
8085             echo "$as_me:$LINENO: result: yes" >&5
8086 echo "${ECHO_T}yes" >&6
8087           else
8088             echo "$as_me:$LINENO: result: no" >&5
8089 echo "${ECHO_T}no" >&6
8090           fi
8091
8092
8093           enablestring=
8094           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8095 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8096           no_cache=0
8097           # Check whether --enable-scrollbar or --disable-scrollbar was given.
8098 if test "${enable_scrollbar+set}" = set; then
8099   enableval="$enable_scrollbar"
8100
8101                           if test "$enableval" = yes; then
8102                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8103                           else
8104                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8105                           fi
8106
8107 else
8108
8109                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8110                           if test "x$LINE" != x ; then
8111                             eval "DEFAULT_$LINE"
8112                           else
8113                             no_cache=1
8114                           fi
8115
8116                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8117
8118 fi;
8119
8120           eval "$ac_cv_use_scrollbar"
8121           if test "$no_cache" != 1; then
8122             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8123           fi
8124
8125           if test "$wxUSE_SCROLLBAR" = yes; then
8126             echo "$as_me:$LINENO: result: yes" >&5
8127 echo "${ECHO_T}yes" >&6
8128           else
8129             echo "$as_me:$LINENO: result: no" >&5
8130 echo "${ECHO_T}no" >&6
8131           fi
8132
8133
8134           enablestring=
8135           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8136 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8137           no_cache=0
8138           # Check whether --enable-slider or --disable-slider was given.
8139 if test "${enable_slider+set}" = set; then
8140   enableval="$enable_slider"
8141
8142                           if test "$enableval" = yes; then
8143                             ac_cv_use_slider='wxUSE_SLIDER=yes'
8144                           else
8145                             ac_cv_use_slider='wxUSE_SLIDER=no'
8146                           fi
8147
8148 else
8149
8150                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8151                           if test "x$LINE" != x ; then
8152                             eval "DEFAULT_$LINE"
8153                           else
8154                             no_cache=1
8155                           fi
8156
8157                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8158
8159 fi;
8160
8161           eval "$ac_cv_use_slider"
8162           if test "$no_cache" != 1; then
8163             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8164           fi
8165
8166           if test "$wxUSE_SLIDER" = yes; then
8167             echo "$as_me:$LINENO: result: yes" >&5
8168 echo "${ECHO_T}yes" >&6
8169           else
8170             echo "$as_me:$LINENO: result: no" >&5
8171 echo "${ECHO_T}no" >&6
8172           fi
8173
8174
8175           enablestring=
8176           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8177 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8178           no_cache=0
8179           # Check whether --enable-spinbtn or --disable-spinbtn was given.
8180 if test "${enable_spinbtn+set}" = set; then
8181   enableval="$enable_spinbtn"
8182
8183                           if test "$enableval" = yes; then
8184                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8185                           else
8186                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8187                           fi
8188
8189 else
8190
8191                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8192                           if test "x$LINE" != x ; then
8193                             eval "DEFAULT_$LINE"
8194                           else
8195                             no_cache=1
8196                           fi
8197
8198                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8199
8200 fi;
8201
8202           eval "$ac_cv_use_spinbtn"
8203           if test "$no_cache" != 1; then
8204             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8205           fi
8206
8207           if test "$wxUSE_SPINBTN" = yes; then
8208             echo "$as_me:$LINENO: result: yes" >&5
8209 echo "${ECHO_T}yes" >&6
8210           else
8211             echo "$as_me:$LINENO: result: no" >&5
8212 echo "${ECHO_T}no" >&6
8213           fi
8214
8215
8216           enablestring=
8217           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8218 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8219           no_cache=0
8220           # Check whether --enable-spinctrl or --disable-spinctrl was given.
8221 if test "${enable_spinctrl+set}" = set; then
8222   enableval="$enable_spinctrl"
8223
8224                           if test "$enableval" = yes; then
8225                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8226                           else
8227                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8228                           fi
8229
8230 else
8231
8232                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8233                           if test "x$LINE" != x ; then
8234                             eval "DEFAULT_$LINE"
8235                           else
8236                             no_cache=1
8237                           fi
8238
8239                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8240
8241 fi;
8242
8243           eval "$ac_cv_use_spinctrl"
8244           if test "$no_cache" != 1; then
8245             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8246           fi
8247
8248           if test "$wxUSE_SPINCTRL" = yes; then
8249             echo "$as_me:$LINENO: result: yes" >&5
8250 echo "${ECHO_T}yes" >&6
8251           else
8252             echo "$as_me:$LINENO: result: no" >&5
8253 echo "${ECHO_T}no" >&6
8254           fi
8255
8256
8257           enablestring=
8258           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8259 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8260           no_cache=0
8261           # Check whether --enable-splitter or --disable-splitter was given.
8262 if test "${enable_splitter+set}" = set; then
8263   enableval="$enable_splitter"
8264
8265                           if test "$enableval" = yes; then
8266                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8267                           else
8268                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
8269                           fi
8270
8271 else
8272
8273                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8274                           if test "x$LINE" != x ; then
8275                             eval "DEFAULT_$LINE"
8276                           else
8277                             no_cache=1
8278                           fi
8279
8280                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8281
8282 fi;
8283
8284           eval "$ac_cv_use_splitter"
8285           if test "$no_cache" != 1; then
8286             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8287           fi
8288
8289           if test "$wxUSE_SPLITTER" = yes; then
8290             echo "$as_me:$LINENO: result: yes" >&5
8291 echo "${ECHO_T}yes" >&6
8292           else
8293             echo "$as_me:$LINENO: result: no" >&5
8294 echo "${ECHO_T}no" >&6
8295           fi
8296
8297
8298           enablestring=
8299           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8300 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8301           no_cache=0
8302           # Check whether --enable-statbmp or --disable-statbmp was given.
8303 if test "${enable_statbmp+set}" = set; then
8304   enableval="$enable_statbmp"
8305
8306                           if test "$enableval" = yes; then
8307                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8308                           else
8309                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
8310                           fi
8311
8312 else
8313
8314                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8315                           if test "x$LINE" != x ; then
8316                             eval "DEFAULT_$LINE"
8317                           else
8318                             no_cache=1
8319                           fi
8320
8321                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8322
8323 fi;
8324
8325           eval "$ac_cv_use_statbmp"
8326           if test "$no_cache" != 1; then
8327             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8328           fi
8329
8330           if test "$wxUSE_STATBMP" = yes; then
8331             echo "$as_me:$LINENO: result: yes" >&5
8332 echo "${ECHO_T}yes" >&6
8333           else
8334             echo "$as_me:$LINENO: result: no" >&5
8335 echo "${ECHO_T}no" >&6
8336           fi
8337
8338
8339           enablestring=
8340           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8341 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8342           no_cache=0
8343           # Check whether --enable-statbox or --disable-statbox was given.
8344 if test "${enable_statbox+set}" = set; then
8345   enableval="$enable_statbox"
8346
8347                           if test "$enableval" = yes; then
8348                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
8349                           else
8350                             ac_cv_use_statbox='wxUSE_STATBOX=no'
8351                           fi
8352
8353 else
8354
8355                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8356                           if test "x$LINE" != x ; then
8357                             eval "DEFAULT_$LINE"
8358                           else
8359                             no_cache=1
8360                           fi
8361
8362                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8363
8364 fi;
8365
8366           eval "$ac_cv_use_statbox"
8367           if test "$no_cache" != 1; then
8368             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8369           fi
8370
8371           if test "$wxUSE_STATBOX" = yes; then
8372             echo "$as_me:$LINENO: result: yes" >&5
8373 echo "${ECHO_T}yes" >&6
8374           else
8375             echo "$as_me:$LINENO: result: no" >&5
8376 echo "${ECHO_T}no" >&6
8377           fi
8378
8379
8380           enablestring=
8381           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8382 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8383           no_cache=0
8384           # Check whether --enable-statline or --disable-statline was given.
8385 if test "${enable_statline+set}" = set; then
8386   enableval="$enable_statline"
8387
8388                           if test "$enableval" = yes; then
8389                             ac_cv_use_statline='wxUSE_STATLINE=yes'
8390                           else
8391                             ac_cv_use_statline='wxUSE_STATLINE=no'
8392                           fi
8393
8394 else
8395
8396                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8397                           if test "x$LINE" != x ; then
8398                             eval "DEFAULT_$LINE"
8399                           else
8400                             no_cache=1
8401                           fi
8402
8403                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8404
8405 fi;
8406
8407           eval "$ac_cv_use_statline"
8408           if test "$no_cache" != 1; then
8409             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8410           fi
8411
8412           if test "$wxUSE_STATLINE" = yes; then
8413             echo "$as_me:$LINENO: result: yes" >&5
8414 echo "${ECHO_T}yes" >&6
8415           else
8416             echo "$as_me:$LINENO: result: no" >&5
8417 echo "${ECHO_T}no" >&6
8418           fi
8419
8420
8421           enablestring=
8422           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8423 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8424           no_cache=0
8425           # Check whether --enable-stattext or --disable-stattext was given.
8426 if test "${enable_stattext+set}" = set; then
8427   enableval="$enable_stattext"
8428
8429                           if test "$enableval" = yes; then
8430                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8431                           else
8432                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
8433                           fi
8434
8435 else
8436
8437                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8438                           if test "x$LINE" != x ; then
8439                             eval "DEFAULT_$LINE"
8440                           else
8441                             no_cache=1
8442                           fi
8443
8444                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8445
8446 fi;
8447
8448           eval "$ac_cv_use_stattext"
8449           if test "$no_cache" != 1; then
8450             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8451           fi
8452
8453           if test "$wxUSE_STATTEXT" = yes; then
8454             echo "$as_me:$LINENO: result: yes" >&5
8455 echo "${ECHO_T}yes" >&6
8456           else
8457             echo "$as_me:$LINENO: result: no" >&5
8458 echo "${ECHO_T}no" >&6
8459           fi
8460
8461
8462           enablestring=
8463           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8464 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8465           no_cache=0
8466           # Check whether --enable-statusbar or --disable-statusbar was given.
8467 if test "${enable_statusbar+set}" = set; then
8468   enableval="$enable_statusbar"
8469
8470                           if test "$enableval" = yes; then
8471                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8472                           else
8473                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8474                           fi
8475
8476 else
8477
8478                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8479                           if test "x$LINE" != x ; then
8480                             eval "DEFAULT_$LINE"
8481                           else
8482                             no_cache=1
8483                           fi
8484
8485                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8486
8487 fi;
8488
8489           eval "$ac_cv_use_statusbar"
8490           if test "$no_cache" != 1; then
8491             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8492           fi
8493
8494           if test "$wxUSE_STATUSBAR" = yes; then
8495             echo "$as_me:$LINENO: result: yes" >&5
8496 echo "${ECHO_T}yes" >&6
8497           else
8498             echo "$as_me:$LINENO: result: no" >&5
8499 echo "${ECHO_T}no" >&6
8500           fi
8501
8502
8503           enablestring=
8504           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8505 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8506           no_cache=0
8507           # Check whether --enable-tabdialog or --disable-tabdialog was given.
8508 if test "${enable_tabdialog+set}" = set; then
8509   enableval="$enable_tabdialog"
8510
8511                           if test "$enableval" = yes; then
8512                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8513                           else
8514                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8515                           fi
8516
8517 else
8518
8519                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8520                           if test "x$LINE" != x ; then
8521                             eval "DEFAULT_$LINE"
8522                           else
8523                             no_cache=1
8524                           fi
8525
8526                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8527
8528 fi;
8529
8530           eval "$ac_cv_use_tabdialog"
8531           if test "$no_cache" != 1; then
8532             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8533           fi
8534
8535           if test "$wxUSE_TABDIALOG" = yes; then
8536             echo "$as_me:$LINENO: result: yes" >&5
8537 echo "${ECHO_T}yes" >&6
8538           else
8539             echo "$as_me:$LINENO: result: no" >&5
8540 echo "${ECHO_T}no" >&6
8541           fi
8542
8543
8544           enablestring=
8545           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8546 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8547           no_cache=0
8548           # Check whether --enable-textctrl or --disable-textctrl was given.
8549 if test "${enable_textctrl+set}" = set; then
8550   enableval="$enable_textctrl"
8551
8552                           if test "$enableval" = yes; then
8553                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8554                           else
8555                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8556                           fi
8557
8558 else
8559
8560                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8561                           if test "x$LINE" != x ; then
8562                             eval "DEFAULT_$LINE"
8563                           else
8564                             no_cache=1
8565                           fi
8566
8567                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8568
8569 fi;
8570
8571           eval "$ac_cv_use_textctrl"
8572           if test "$no_cache" != 1; then
8573             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8574           fi
8575
8576           if test "$wxUSE_TEXTCTRL" = yes; then
8577             echo "$as_me:$LINENO: result: yes" >&5
8578 echo "${ECHO_T}yes" >&6
8579           else
8580             echo "$as_me:$LINENO: result: no" >&5
8581 echo "${ECHO_T}no" >&6
8582           fi
8583
8584
8585           enablestring=
8586           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8587 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8588           no_cache=0
8589           # Check whether --enable-togglebtn or --disable-togglebtn was given.
8590 if test "${enable_togglebtn+set}" = set; then
8591   enableval="$enable_togglebtn"
8592
8593                           if test "$enableval" = yes; then
8594                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8595                           else
8596                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8597                           fi
8598
8599 else
8600
8601                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8602                           if test "x$LINE" != x ; then
8603                             eval "DEFAULT_$LINE"
8604                           else
8605                             no_cache=1
8606                           fi
8607
8608                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8609
8610 fi;
8611
8612           eval "$ac_cv_use_togglebtn"
8613           if test "$no_cache" != 1; then
8614             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8615           fi
8616
8617           if test "$wxUSE_TOGGLEBTN" = yes; then
8618             echo "$as_me:$LINENO: result: yes" >&5
8619 echo "${ECHO_T}yes" >&6
8620           else
8621             echo "$as_me:$LINENO: result: no" >&5
8622 echo "${ECHO_T}no" >&6
8623           fi
8624
8625
8626           enablestring=
8627           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8628 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8629           no_cache=0
8630           # Check whether --enable-toolbar or --disable-toolbar was given.
8631 if test "${enable_toolbar+set}" = set; then
8632   enableval="$enable_toolbar"
8633
8634                           if test "$enableval" = yes; then
8635                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8636                           else
8637                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8638                           fi
8639
8640 else
8641
8642                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8643                           if test "x$LINE" != x ; then
8644                             eval "DEFAULT_$LINE"
8645                           else
8646                             no_cache=1
8647                           fi
8648
8649                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8650
8651 fi;
8652
8653           eval "$ac_cv_use_toolbar"
8654           if test "$no_cache" != 1; then
8655             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8656           fi
8657
8658           if test "$wxUSE_TOOLBAR" = yes; then
8659             echo "$as_me:$LINENO: result: yes" >&5
8660 echo "${ECHO_T}yes" >&6
8661           else
8662             echo "$as_me:$LINENO: result: no" >&5
8663 echo "${ECHO_T}no" >&6
8664           fi
8665
8666
8667           enablestring=
8668           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8669 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8670           no_cache=0
8671           # Check whether --enable-tbarnative or --disable-tbarnative was given.
8672 if test "${enable_tbarnative+set}" = set; then
8673   enableval="$enable_tbarnative"
8674
8675                           if test "$enableval" = yes; then
8676                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8677                           else
8678                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8679                           fi
8680
8681 else
8682
8683                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8684                           if test "x$LINE" != x ; then
8685                             eval "DEFAULT_$LINE"
8686                           else
8687                             no_cache=1
8688                           fi
8689
8690                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8691
8692 fi;
8693
8694           eval "$ac_cv_use_tbarnative"
8695           if test "$no_cache" != 1; then
8696             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8697           fi
8698
8699           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8700             echo "$as_me:$LINENO: result: yes" >&5
8701 echo "${ECHO_T}yes" >&6
8702           else
8703             echo "$as_me:$LINENO: result: no" >&5
8704 echo "${ECHO_T}no" >&6
8705           fi
8706
8707
8708           enablestring=
8709           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8710 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8711           no_cache=0
8712           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8713 if test "${enable_tbarsmpl+set}" = set; then
8714   enableval="$enable_tbarsmpl"
8715
8716                           if test "$enableval" = yes; then
8717                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8718                           else
8719                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8720                           fi
8721
8722 else
8723
8724                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8725                           if test "x$LINE" != x ; then
8726                             eval "DEFAULT_$LINE"
8727                           else
8728                             no_cache=1
8729                           fi
8730
8731                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8732
8733 fi;
8734
8735           eval "$ac_cv_use_tbarsmpl"
8736           if test "$no_cache" != 1; then
8737             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8738           fi
8739
8740           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8741             echo "$as_me:$LINENO: result: yes" >&5
8742 echo "${ECHO_T}yes" >&6
8743           else
8744             echo "$as_me:$LINENO: result: no" >&5
8745 echo "${ECHO_T}no" >&6
8746           fi
8747
8748
8749           enablestring=
8750           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8751 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8752           no_cache=0
8753           # Check whether --enable-treectrl or --disable-treectrl was given.
8754 if test "${enable_treectrl+set}" = set; then
8755   enableval="$enable_treectrl"
8756
8757                           if test "$enableval" = yes; then
8758                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8759                           else
8760                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8761                           fi
8762
8763 else
8764
8765                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8766                           if test "x$LINE" != x ; then
8767                             eval "DEFAULT_$LINE"
8768                           else
8769                             no_cache=1
8770                           fi
8771
8772                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8773
8774 fi;
8775
8776           eval "$ac_cv_use_treectrl"
8777           if test "$no_cache" != 1; then
8778             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8779           fi
8780
8781           if test "$wxUSE_TREECTRL" = yes; then
8782             echo "$as_me:$LINENO: result: yes" >&5
8783 echo "${ECHO_T}yes" >&6
8784           else
8785             echo "$as_me:$LINENO: result: no" >&5
8786 echo "${ECHO_T}no" >&6
8787           fi
8788
8789
8790           enablestring=
8791           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8792 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8793           no_cache=0
8794           # Check whether --enable-tipwindow or --disable-tipwindow was given.
8795 if test "${enable_tipwindow+set}" = set; then
8796   enableval="$enable_tipwindow"
8797
8798                           if test "$enableval" = yes; then
8799                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8800                           else
8801                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8802                           fi
8803
8804 else
8805
8806                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8807                           if test "x$LINE" != x ; then
8808                             eval "DEFAULT_$LINE"
8809                           else
8810                             no_cache=1
8811                           fi
8812
8813                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8814
8815 fi;
8816
8817           eval "$ac_cv_use_tipwindow"
8818           if test "$no_cache" != 1; then
8819             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8820           fi
8821
8822           if test "$wxUSE_TIPWINDOW" = yes; then
8823             echo "$as_me:$LINENO: result: yes" >&5
8824 echo "${ECHO_T}yes" >&6
8825           else
8826             echo "$as_me:$LINENO: result: no" >&5
8827 echo "${ECHO_T}no" >&6
8828           fi
8829
8830
8831           enablestring=
8832           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8833 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8834           no_cache=0
8835           # Check whether --enable-popupwin or --disable-popupwin was given.
8836 if test "${enable_popupwin+set}" = set; then
8837   enableval="$enable_popupwin"
8838
8839                           if test "$enableval" = yes; then
8840                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8841                           else
8842                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8843                           fi
8844
8845 else
8846
8847                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8848                           if test "x$LINE" != x ; then
8849                             eval "DEFAULT_$LINE"
8850                           else
8851                             no_cache=1
8852                           fi
8853
8854                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8855
8856 fi;
8857
8858           eval "$ac_cv_use_popupwin"
8859           if test "$no_cache" != 1; then
8860             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8861           fi
8862
8863           if test "$wxUSE_POPUPWIN" = yes; then
8864             echo "$as_me:$LINENO: result: yes" >&5
8865 echo "${ECHO_T}yes" >&6
8866           else
8867             echo "$as_me:$LINENO: result: no" >&5
8868 echo "${ECHO_T}no" >&6
8869           fi
8870
8871
8872
8873
8874           enablestring=
8875           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8876 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8877           no_cache=0
8878           # Check whether --enable-commondlg or --disable-commondlg was given.
8879 if test "${enable_commondlg+set}" = set; then
8880   enableval="$enable_commondlg"
8881
8882                           if test "$enableval" = yes; then
8883                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8884                           else
8885                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8886                           fi
8887
8888 else
8889
8890                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8891                           if test "x$LINE" != x ; then
8892                             eval "DEFAULT_$LINE"
8893                           else
8894                             no_cache=1
8895                           fi
8896
8897                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8898
8899 fi;
8900
8901           eval "$ac_cv_use_commondlg"
8902           if test "$no_cache" != 1; then
8903             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8904           fi
8905
8906           if test "$wxUSE_COMMONDLGS" = yes; then
8907             echo "$as_me:$LINENO: result: yes" >&5
8908 echo "${ECHO_T}yes" >&6
8909           else
8910             echo "$as_me:$LINENO: result: no" >&5
8911 echo "${ECHO_T}no" >&6
8912           fi
8913
8914
8915           enablestring=
8916           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8917 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8918           no_cache=0
8919           # Check whether --enable-choicedlg or --disable-choicedlg was given.
8920 if test "${enable_choicedlg+set}" = set; then
8921   enableval="$enable_choicedlg"
8922
8923                           if test "$enableval" = yes; then
8924                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8925                           else
8926                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8927                           fi
8928
8929 else
8930
8931                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8932                           if test "x$LINE" != x ; then
8933                             eval "DEFAULT_$LINE"
8934                           else
8935                             no_cache=1
8936                           fi
8937
8938                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8939
8940 fi;
8941
8942           eval "$ac_cv_use_choicedlg"
8943           if test "$no_cache" != 1; then
8944             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8945           fi
8946
8947           if test "$wxUSE_CHOICEDLG" = yes; then
8948             echo "$as_me:$LINENO: result: yes" >&5
8949 echo "${ECHO_T}yes" >&6
8950           else
8951             echo "$as_me:$LINENO: result: no" >&5
8952 echo "${ECHO_T}no" >&6
8953           fi
8954
8955
8956           enablestring=
8957           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8958 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8959           no_cache=0
8960           # Check whether --enable-coldlg or --disable-coldlg was given.
8961 if test "${enable_coldlg+set}" = set; then
8962   enableval="$enable_coldlg"
8963
8964                           if test "$enableval" = yes; then
8965                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8966                           else
8967                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8968                           fi
8969
8970 else
8971
8972                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8973                           if test "x$LINE" != x ; then
8974                             eval "DEFAULT_$LINE"
8975                           else
8976                             no_cache=1
8977                           fi
8978
8979                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8980
8981 fi;
8982
8983           eval "$ac_cv_use_coldlg"
8984           if test "$no_cache" != 1; then
8985             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8986           fi
8987
8988           if test "$wxUSE_COLOURDLG" = yes; then
8989             echo "$as_me:$LINENO: result: yes" >&5
8990 echo "${ECHO_T}yes" >&6
8991           else
8992             echo "$as_me:$LINENO: result: no" >&5
8993 echo "${ECHO_T}no" >&6
8994           fi
8995
8996
8997           enablestring=
8998           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8999 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9000           no_cache=0
9001           # Check whether --enable-filedlg or --disable-filedlg was given.
9002 if test "${enable_filedlg+set}" = set; then
9003   enableval="$enable_filedlg"
9004
9005                           if test "$enableval" = yes; then
9006                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9007                           else
9008                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9009                           fi
9010
9011 else
9012
9013                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9014                           if test "x$LINE" != x ; then
9015                             eval "DEFAULT_$LINE"
9016                           else
9017                             no_cache=1
9018                           fi
9019
9020                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9021
9022 fi;
9023
9024           eval "$ac_cv_use_filedlg"
9025           if test "$no_cache" != 1; then
9026             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9027           fi
9028
9029           if test "$wxUSE_FILEDLG" = yes; then
9030             echo "$as_me:$LINENO: result: yes" >&5
9031 echo "${ECHO_T}yes" >&6
9032           else
9033             echo "$as_me:$LINENO: result: no" >&5
9034 echo "${ECHO_T}no" >&6
9035           fi
9036
9037
9038           enablestring=
9039           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9040 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9041           no_cache=0
9042           # Check whether --enable-finddlg or --disable-finddlg was given.
9043 if test "${enable_finddlg+set}" = set; then
9044   enableval="$enable_finddlg"
9045
9046                           if test "$enableval" = yes; then
9047                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9048                           else
9049                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9050                           fi
9051
9052 else
9053
9054                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9055                           if test "x$LINE" != x ; then
9056                             eval "DEFAULT_$LINE"
9057                           else
9058                             no_cache=1
9059                           fi
9060
9061                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9062
9063 fi;
9064
9065           eval "$ac_cv_use_finddlg"
9066           if test "$no_cache" != 1; then
9067             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9068           fi
9069
9070           if test "$wxUSE_FINDREPLDLG" = yes; then
9071             echo "$as_me:$LINENO: result: yes" >&5
9072 echo "${ECHO_T}yes" >&6
9073           else
9074             echo "$as_me:$LINENO: result: no" >&5
9075 echo "${ECHO_T}no" >&6
9076           fi
9077
9078
9079           enablestring=
9080           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9081 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9082           no_cache=0
9083           # Check whether --enable-fontdlg or --disable-fontdlg was given.
9084 if test "${enable_fontdlg+set}" = set; then
9085   enableval="$enable_fontdlg"
9086
9087                           if test "$enableval" = yes; then
9088                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9089                           else
9090                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9091                           fi
9092
9093 else
9094
9095                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9096                           if test "x$LINE" != x ; then
9097                             eval "DEFAULT_$LINE"
9098                           else
9099                             no_cache=1
9100                           fi
9101
9102                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9103
9104 fi;
9105
9106           eval "$ac_cv_use_fontdlg"
9107           if test "$no_cache" != 1; then
9108             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9109           fi
9110
9111           if test "$wxUSE_FONTDLG" = yes; then
9112             echo "$as_me:$LINENO: result: yes" >&5
9113 echo "${ECHO_T}yes" >&6
9114           else
9115             echo "$as_me:$LINENO: result: no" >&5
9116 echo "${ECHO_T}no" >&6
9117           fi
9118
9119
9120           enablestring=
9121           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9122 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9123           no_cache=0
9124           # Check whether --enable-dirdlg or --disable-dirdlg was given.
9125 if test "${enable_dirdlg+set}" = set; then
9126   enableval="$enable_dirdlg"
9127
9128                           if test "$enableval" = yes; then
9129                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9130                           else
9131                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9132                           fi
9133
9134 else
9135
9136                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9137                           if test "x$LINE" != x ; then
9138                             eval "DEFAULT_$LINE"
9139                           else
9140                             no_cache=1
9141                           fi
9142
9143                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9144
9145 fi;
9146
9147           eval "$ac_cv_use_dirdlg"
9148           if test "$no_cache" != 1; then
9149             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9150           fi
9151
9152           if test "$wxUSE_DIRDLG" = yes; then
9153             echo "$as_me:$LINENO: result: yes" >&5
9154 echo "${ECHO_T}yes" >&6
9155           else
9156             echo "$as_me:$LINENO: result: no" >&5
9157 echo "${ECHO_T}no" >&6
9158           fi
9159
9160
9161           enablestring=
9162           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9163 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9164           no_cache=0
9165           # Check whether --enable-msgdlg or --disable-msgdlg was given.
9166 if test "${enable_msgdlg+set}" = set; then
9167   enableval="$enable_msgdlg"
9168
9169                           if test "$enableval" = yes; then
9170                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9171                           else
9172                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9173                           fi
9174
9175 else
9176
9177                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9178                           if test "x$LINE" != x ; then
9179                             eval "DEFAULT_$LINE"
9180                           else
9181                             no_cache=1
9182                           fi
9183
9184                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9185
9186 fi;
9187
9188           eval "$ac_cv_use_msgdlg"
9189           if test "$no_cache" != 1; then
9190             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9191           fi
9192
9193           if test "$wxUSE_MSGDLG" = yes; then
9194             echo "$as_me:$LINENO: result: yes" >&5
9195 echo "${ECHO_T}yes" >&6
9196           else
9197             echo "$as_me:$LINENO: result: no" >&5
9198 echo "${ECHO_T}no" >&6
9199           fi
9200
9201
9202           enablestring=
9203           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9204 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9205           no_cache=0
9206           # Check whether --enable-numberdlg or --disable-numberdlg was given.
9207 if test "${enable_numberdlg+set}" = set; then
9208   enableval="$enable_numberdlg"
9209
9210                           if test "$enableval" = yes; then
9211                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9212                           else
9213                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9214                           fi
9215
9216 else
9217
9218                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9219                           if test "x$LINE" != x ; then
9220                             eval "DEFAULT_$LINE"
9221                           else
9222                             no_cache=1
9223                           fi
9224
9225                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9226
9227 fi;
9228
9229           eval "$ac_cv_use_numberdlg"
9230           if test "$no_cache" != 1; then
9231             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9232           fi
9233
9234           if test "$wxUSE_NUMBERDLG" = yes; then
9235             echo "$as_me:$LINENO: result: yes" >&5
9236 echo "${ECHO_T}yes" >&6
9237           else
9238             echo "$as_me:$LINENO: result: no" >&5
9239 echo "${ECHO_T}no" >&6
9240           fi
9241
9242
9243           enablestring=
9244           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9245 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9246           no_cache=0
9247           # Check whether --enable-splash or --disable-splash was given.
9248 if test "${enable_splash+set}" = set; then
9249   enableval="$enable_splash"
9250
9251                           if test "$enableval" = yes; then
9252                             ac_cv_use_splash='wxUSE_SPLASH=yes'
9253                           else
9254                             ac_cv_use_splash='wxUSE_SPLASH=no'
9255                           fi
9256
9257 else
9258
9259                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9260                           if test "x$LINE" != x ; then
9261                             eval "DEFAULT_$LINE"
9262                           else
9263                             no_cache=1
9264                           fi
9265
9266                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9267
9268 fi;
9269
9270           eval "$ac_cv_use_splash"
9271           if test "$no_cache" != 1; then
9272             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9273           fi
9274
9275           if test "$wxUSE_SPLASH" = yes; then
9276             echo "$as_me:$LINENO: result: yes" >&5
9277 echo "${ECHO_T}yes" >&6
9278           else
9279             echo "$as_me:$LINENO: result: no" >&5
9280 echo "${ECHO_T}no" >&6
9281           fi
9282
9283
9284           enablestring=
9285           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9286 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9287           no_cache=0
9288           # Check whether --enable-textdlg or --disable-textdlg was given.
9289 if test "${enable_textdlg+set}" = set; then
9290   enableval="$enable_textdlg"
9291
9292                           if test "$enableval" = yes; then
9293                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9294                           else
9295                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9296                           fi
9297
9298 else
9299
9300                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9301                           if test "x$LINE" != x ; then
9302                             eval "DEFAULT_$LINE"
9303                           else
9304                             no_cache=1
9305                           fi
9306
9307                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9308
9309 fi;
9310
9311           eval "$ac_cv_use_textdlg"
9312           if test "$no_cache" != 1; then
9313             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9314           fi
9315
9316           if test "$wxUSE_TEXTDLG" = yes; then
9317             echo "$as_me:$LINENO: result: yes" >&5
9318 echo "${ECHO_T}yes" >&6
9319           else
9320             echo "$as_me:$LINENO: result: no" >&5
9321 echo "${ECHO_T}no" >&6
9322           fi
9323
9324
9325           enablestring=
9326           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9327 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9328           no_cache=0
9329           # Check whether --enable-tipdlg or --disable-tipdlg was given.
9330 if test "${enable_tipdlg+set}" = set; then
9331   enableval="$enable_tipdlg"
9332
9333                           if test "$enableval" = yes; then
9334                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9335                           else
9336                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9337                           fi
9338
9339 else
9340
9341                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9342                           if test "x$LINE" != x ; then
9343                             eval "DEFAULT_$LINE"
9344                           else
9345                             no_cache=1
9346                           fi
9347
9348                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9349
9350 fi;
9351
9352           eval "$ac_cv_use_tipdlg"
9353           if test "$no_cache" != 1; then
9354             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9355           fi
9356
9357           if test "$wxUSE_STARTUP_TIPS" = yes; then
9358             echo "$as_me:$LINENO: result: yes" >&5
9359 echo "${ECHO_T}yes" >&6
9360           else
9361             echo "$as_me:$LINENO: result: no" >&5
9362 echo "${ECHO_T}no" >&6
9363           fi
9364
9365
9366           enablestring=
9367           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9368 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9369           no_cache=0
9370           # Check whether --enable-progressdlg or --disable-progressdlg was given.
9371 if test "${enable_progressdlg+set}" = set; then
9372   enableval="$enable_progressdlg"
9373
9374                           if test "$enableval" = yes; then
9375                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9376                           else
9377                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9378                           fi
9379
9380 else
9381
9382                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9383                           if test "x$LINE" != x ; then
9384                             eval "DEFAULT_$LINE"
9385                           else
9386                             no_cache=1
9387                           fi
9388
9389                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9390
9391 fi;
9392
9393           eval "$ac_cv_use_progressdlg"
9394           if test "$no_cache" != 1; then
9395             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9396           fi
9397
9398           if test "$wxUSE_PROGRESSDLG" = yes; then
9399             echo "$as_me:$LINENO: result: yes" >&5
9400 echo "${ECHO_T}yes" >&6
9401           else
9402             echo "$as_me:$LINENO: result: no" >&5
9403 echo "${ECHO_T}no" >&6
9404           fi
9405
9406
9407           enablestring=
9408           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9409 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9410           no_cache=0
9411           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9412 if test "${enable_wizarddlg+set}" = set; then
9413   enableval="$enable_wizarddlg"
9414
9415                           if test "$enableval" = yes; then
9416                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9417                           else
9418                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9419                           fi
9420
9421 else
9422
9423                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9424                           if test "x$LINE" != x ; then
9425                             eval "DEFAULT_$LINE"
9426                           else
9427                             no_cache=1
9428                           fi
9429
9430                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9431
9432 fi;
9433
9434           eval "$ac_cv_use_wizarddlg"
9435           if test "$no_cache" != 1; then
9436             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9437           fi
9438
9439           if test "$wxUSE_WIZARDDLG" = yes; then
9440             echo "$as_me:$LINENO: result: yes" >&5
9441 echo "${ECHO_T}yes" >&6
9442           else
9443             echo "$as_me:$LINENO: result: no" >&5
9444 echo "${ECHO_T}no" >&6
9445           fi
9446
9447
9448
9449
9450           enablestring=
9451           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9452 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9453           no_cache=0
9454           # Check whether --enable-menus or --disable-menus was given.
9455 if test "${enable_menus+set}" = set; then
9456   enableval="$enable_menus"
9457
9458                           if test "$enableval" = yes; then
9459                             ac_cv_use_menus='wxUSE_MENUS=yes'
9460                           else
9461                             ac_cv_use_menus='wxUSE_MENUS=no'
9462                           fi
9463
9464 else
9465
9466                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9467                           if test "x$LINE" != x ; then
9468                             eval "DEFAULT_$LINE"
9469                           else
9470                             no_cache=1
9471                           fi
9472
9473                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9474
9475 fi;
9476
9477           eval "$ac_cv_use_menus"
9478           if test "$no_cache" != 1; then
9479             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9480           fi
9481
9482           if test "$wxUSE_MENUS" = yes; then
9483             echo "$as_me:$LINENO: result: yes" >&5
9484 echo "${ECHO_T}yes" >&6
9485           else
9486             echo "$as_me:$LINENO: result: no" >&5
9487 echo "${ECHO_T}no" >&6
9488           fi
9489
9490
9491           enablestring=
9492           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9493 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9494           no_cache=0
9495           # Check whether --enable-miniframe or --disable-miniframe was given.
9496 if test "${enable_miniframe+set}" = set; then
9497   enableval="$enable_miniframe"
9498
9499                           if test "$enableval" = yes; then
9500                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9501                           else
9502                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9503                           fi
9504
9505 else
9506
9507                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9508                           if test "x$LINE" != x ; then
9509                             eval "DEFAULT_$LINE"
9510                           else
9511                             no_cache=1
9512                           fi
9513
9514                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9515
9516 fi;
9517
9518           eval "$ac_cv_use_miniframe"
9519           if test "$no_cache" != 1; then
9520             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9521           fi
9522
9523           if test "$wxUSE_MINIFRAME" = yes; then
9524             echo "$as_me:$LINENO: result: yes" >&5
9525 echo "${ECHO_T}yes" >&6
9526           else
9527             echo "$as_me:$LINENO: result: no" >&5
9528 echo "${ECHO_T}no" >&6
9529           fi
9530
9531
9532           enablestring=
9533           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9534 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9535           no_cache=0
9536           # Check whether --enable-tooltips or --disable-tooltips was given.
9537 if test "${enable_tooltips+set}" = set; then
9538   enableval="$enable_tooltips"
9539
9540                           if test "$enableval" = yes; then
9541                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9542                           else
9543                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9544                           fi
9545
9546 else
9547
9548                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9549                           if test "x$LINE" != x ; then
9550                             eval "DEFAULT_$LINE"
9551                           else
9552                             no_cache=1
9553                           fi
9554
9555                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9556
9557 fi;
9558
9559           eval "$ac_cv_use_tooltips"
9560           if test "$no_cache" != 1; then
9561             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9562           fi
9563
9564           if test "$wxUSE_TOOLTIPS" = yes; then
9565             echo "$as_me:$LINENO: result: yes" >&5
9566 echo "${ECHO_T}yes" >&6
9567           else
9568             echo "$as_me:$LINENO: result: no" >&5
9569 echo "${ECHO_T}no" >&6
9570           fi
9571
9572
9573           enablestring=
9574           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9575 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9576           no_cache=0
9577           # Check whether --enable-splines or --disable-splines was given.
9578 if test "${enable_splines+set}" = set; then
9579   enableval="$enable_splines"
9580
9581                           if test "$enableval" = yes; then
9582                             ac_cv_use_splines='wxUSE_SPLINES=yes'
9583                           else
9584                             ac_cv_use_splines='wxUSE_SPLINES=no'
9585                           fi
9586
9587 else
9588
9589                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9590                           if test "x$LINE" != x ; then
9591                             eval "DEFAULT_$LINE"
9592                           else
9593                             no_cache=1
9594                           fi
9595
9596                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9597
9598 fi;
9599
9600           eval "$ac_cv_use_splines"
9601           if test "$no_cache" != 1; then
9602             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9603           fi
9604
9605           if test "$wxUSE_SPLINES" = yes; then
9606             echo "$as_me:$LINENO: result: yes" >&5
9607 echo "${ECHO_T}yes" >&6
9608           else
9609             echo "$as_me:$LINENO: result: no" >&5
9610 echo "${ECHO_T}no" >&6
9611           fi
9612
9613
9614           enablestring=
9615           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9616 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9617           no_cache=0
9618           # Check whether --enable-validators or --disable-validators was given.
9619 if test "${enable_validators+set}" = set; then
9620   enableval="$enable_validators"
9621
9622                           if test "$enableval" = yes; then
9623                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9624                           else
9625                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
9626                           fi
9627
9628 else
9629
9630                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9631                           if test "x$LINE" != x ; then
9632                             eval "DEFAULT_$LINE"
9633                           else
9634                             no_cache=1
9635                           fi
9636
9637                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9638
9639 fi;
9640
9641           eval "$ac_cv_use_validators"
9642           if test "$no_cache" != 1; then
9643             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9644           fi
9645
9646           if test "$wxUSE_VALIDATORS" = yes; then
9647             echo "$as_me:$LINENO: result: yes" >&5
9648 echo "${ECHO_T}yes" >&6
9649           else
9650             echo "$as_me:$LINENO: result: no" >&5
9651 echo "${ECHO_T}no" >&6
9652           fi
9653
9654
9655           enablestring=
9656           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9657 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9658           no_cache=0
9659           # Check whether --enable-busyinfo or --disable-busyinfo was given.
9660 if test "${enable_busyinfo+set}" = set; then
9661   enableval="$enable_busyinfo"
9662
9663                           if test "$enableval" = yes; then
9664                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9665                           else
9666                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9667                           fi
9668
9669 else
9670
9671                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9672                           if test "x$LINE" != x ; then
9673                             eval "DEFAULT_$LINE"
9674                           else
9675                             no_cache=1
9676                           fi
9677
9678                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9679
9680 fi;
9681
9682           eval "$ac_cv_use_busyinfo"
9683           if test "$no_cache" != 1; then
9684             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9685           fi
9686
9687           if test "$wxUSE_BUSYINFO" = yes; then
9688             echo "$as_me:$LINENO: result: yes" >&5
9689 echo "${ECHO_T}yes" >&6
9690           else
9691             echo "$as_me:$LINENO: result: no" >&5
9692 echo "${ECHO_T}no" >&6
9693           fi
9694
9695
9696           enablestring=
9697           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9698 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9699           no_cache=0
9700           # Check whether --enable-joystick or --disable-joystick was given.
9701 if test "${enable_joystick+set}" = set; then
9702   enableval="$enable_joystick"
9703
9704                           if test "$enableval" = yes; then
9705                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9706                           else
9707                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9708                           fi
9709
9710 else
9711
9712                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9713                           if test "x$LINE" != x ; then
9714                             eval "DEFAULT_$LINE"
9715                           else
9716                             no_cache=1
9717                           fi
9718
9719                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9720
9721 fi;
9722
9723           eval "$ac_cv_use_joystick"
9724           if test "$no_cache" != 1; then
9725             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9726           fi
9727
9728           if test "$wxUSE_JOYSTICK" = yes; then
9729             echo "$as_me:$LINENO: result: yes" >&5
9730 echo "${ECHO_T}yes" >&6
9731           else
9732             echo "$as_me:$LINENO: result: no" >&5
9733 echo "${ECHO_T}no" >&6
9734           fi
9735
9736
9737           enablestring=
9738           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9739 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9740           no_cache=0
9741           # Check whether --enable-metafile or --disable-metafile was given.
9742 if test "${enable_metafile+set}" = set; then
9743   enableval="$enable_metafile"
9744
9745                           if test "$enableval" = yes; then
9746                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
9747                           else
9748                             ac_cv_use_metafile='wxUSE_METAFILE=no'
9749                           fi
9750
9751 else
9752
9753                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9754                           if test "x$LINE" != x ; then
9755                             eval "DEFAULT_$LINE"
9756                           else
9757                             no_cache=1
9758                           fi
9759
9760                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9761
9762 fi;
9763
9764           eval "$ac_cv_use_metafile"
9765           if test "$no_cache" != 1; then
9766             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9767           fi
9768
9769           if test "$wxUSE_METAFILE" = yes; then
9770             echo "$as_me:$LINENO: result: yes" >&5
9771 echo "${ECHO_T}yes" >&6
9772           else
9773             echo "$as_me:$LINENO: result: no" >&5
9774 echo "${ECHO_T}no" >&6
9775           fi
9776
9777
9778           enablestring=
9779           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9780 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9781           no_cache=0
9782           # Check whether --enable-dragimage or --disable-dragimage was given.
9783 if test "${enable_dragimage+set}" = set; then
9784   enableval="$enable_dragimage"
9785
9786                           if test "$enableval" = yes; then
9787                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9788                           else
9789                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9790                           fi
9791
9792 else
9793
9794                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9795                           if test "x$LINE" != x ; then
9796                             eval "DEFAULT_$LINE"
9797                           else
9798                             no_cache=1
9799                           fi
9800
9801                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9802
9803 fi;
9804
9805           eval "$ac_cv_use_dragimage"
9806           if test "$no_cache" != 1; then
9807             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9808           fi
9809
9810           if test "$wxUSE_DRAGIMAGE" = yes; then
9811             echo "$as_me:$LINENO: result: yes" >&5
9812 echo "${ECHO_T}yes" >&6
9813           else
9814             echo "$as_me:$LINENO: result: no" >&5
9815 echo "${ECHO_T}no" >&6
9816           fi
9817
9818
9819           enablestring=
9820           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9821 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9822           no_cache=0
9823           # Check whether --enable-accessibility or --disable-accessibility was given.
9824 if test "${enable_accessibility+set}" = set; then
9825   enableval="$enable_accessibility"
9826
9827                           if test "$enableval" = yes; then
9828                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9829                           else
9830                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9831                           fi
9832
9833 else
9834
9835                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9836                           if test "x$LINE" != x ; then
9837                             eval "DEFAULT_$LINE"
9838                           else
9839                             no_cache=1
9840                           fi
9841
9842                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9843
9844 fi;
9845
9846           eval "$ac_cv_use_accessibility"
9847           if test "$no_cache" != 1; then
9848             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9849           fi
9850
9851           if test "$wxUSE_ACCESSIBILITY" = yes; then
9852             echo "$as_me:$LINENO: result: yes" >&5
9853 echo "${ECHO_T}yes" >&6
9854           else
9855             echo "$as_me:$LINENO: result: no" >&5
9856 echo "${ECHO_T}no" >&6
9857           fi
9858
9859
9860
9861
9862           enablestring=
9863           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9864 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9865           no_cache=0
9866           # Check whether --enable-palette or --disable-palette was given.
9867 if test "${enable_palette+set}" = set; then
9868   enableval="$enable_palette"
9869
9870                           if test "$enableval" = yes; then
9871                             ac_cv_use_palette='wxUSE_PALETTE=yes'
9872                           else
9873                             ac_cv_use_palette='wxUSE_PALETTE=no'
9874                           fi
9875
9876 else
9877
9878                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9879                           if test "x$LINE" != x ; then
9880                             eval "DEFAULT_$LINE"
9881                           else
9882                             no_cache=1
9883                           fi
9884
9885                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9886
9887 fi;
9888
9889           eval "$ac_cv_use_palette"
9890           if test "$no_cache" != 1; then
9891             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9892           fi
9893
9894           if test "$wxUSE_PALETTE" = yes; then
9895             echo "$as_me:$LINENO: result: yes" >&5
9896 echo "${ECHO_T}yes" >&6
9897           else
9898             echo "$as_me:$LINENO: result: no" >&5
9899 echo "${ECHO_T}no" >&6
9900           fi
9901
9902
9903           enablestring=
9904           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9905 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9906           no_cache=0
9907           # Check whether --enable-image or --disable-image was given.
9908 if test "${enable_image+set}" = set; then
9909   enableval="$enable_image"
9910
9911                           if test "$enableval" = yes; then
9912                             ac_cv_use_image='wxUSE_IMAGE=yes'
9913                           else
9914                             ac_cv_use_image='wxUSE_IMAGE=no'
9915                           fi
9916
9917 else
9918
9919                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9920                           if test "x$LINE" != x ; then
9921                             eval "DEFAULT_$LINE"
9922                           else
9923                             no_cache=1
9924                           fi
9925
9926                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9927
9928 fi;
9929
9930           eval "$ac_cv_use_image"
9931           if test "$no_cache" != 1; then
9932             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9933           fi
9934
9935           if test "$wxUSE_IMAGE" = yes; then
9936             echo "$as_me:$LINENO: result: yes" >&5
9937 echo "${ECHO_T}yes" >&6
9938           else
9939             echo "$as_me:$LINENO: result: no" >&5
9940 echo "${ECHO_T}no" >&6
9941           fi
9942
9943
9944           enablestring=
9945           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9946 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9947           no_cache=0
9948           # Check whether --enable-gif or --disable-gif was given.
9949 if test "${enable_gif+set}" = set; then
9950   enableval="$enable_gif"
9951
9952                           if test "$enableval" = yes; then
9953                             ac_cv_use_gif='wxUSE_GIF=yes'
9954                           else
9955                             ac_cv_use_gif='wxUSE_GIF=no'
9956                           fi
9957
9958 else
9959
9960                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9961                           if test "x$LINE" != x ; then
9962                             eval "DEFAULT_$LINE"
9963                           else
9964                             no_cache=1
9965                           fi
9966
9967                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9968
9969 fi;
9970
9971           eval "$ac_cv_use_gif"
9972           if test "$no_cache" != 1; then
9973             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9974           fi
9975
9976           if test "$wxUSE_GIF" = yes; then
9977             echo "$as_me:$LINENO: result: yes" >&5
9978 echo "${ECHO_T}yes" >&6
9979           else
9980             echo "$as_me:$LINENO: result: no" >&5
9981 echo "${ECHO_T}no" >&6
9982           fi
9983
9984
9985           enablestring=
9986           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9987 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9988           no_cache=0
9989           # Check whether --enable-pcx or --disable-pcx was given.
9990 if test "${enable_pcx+set}" = set; then
9991   enableval="$enable_pcx"
9992
9993                           if test "$enableval" = yes; then
9994                             ac_cv_use_pcx='wxUSE_PCX=yes'
9995                           else
9996                             ac_cv_use_pcx='wxUSE_PCX=no'
9997                           fi
9998
9999 else
10000
10001                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10002                           if test "x$LINE" != x ; then
10003                             eval "DEFAULT_$LINE"
10004                           else
10005                             no_cache=1
10006                           fi
10007
10008                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10009
10010 fi;
10011
10012           eval "$ac_cv_use_pcx"
10013           if test "$no_cache" != 1; then
10014             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10015           fi
10016
10017           if test "$wxUSE_PCX" = yes; then
10018             echo "$as_me:$LINENO: result: yes" >&5
10019 echo "${ECHO_T}yes" >&6
10020           else
10021             echo "$as_me:$LINENO: result: no" >&5
10022 echo "${ECHO_T}no" >&6
10023           fi
10024
10025
10026           enablestring=
10027           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10028 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10029           no_cache=0
10030           # Check whether --enable-iff or --disable-iff was given.
10031 if test "${enable_iff+set}" = set; then
10032   enableval="$enable_iff"
10033
10034                           if test "$enableval" = yes; then
10035                             ac_cv_use_iff='wxUSE_IFF=yes'
10036                           else
10037                             ac_cv_use_iff='wxUSE_IFF=no'
10038                           fi
10039
10040 else
10041
10042                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10043                           if test "x$LINE" != x ; then
10044                             eval "DEFAULT_$LINE"
10045                           else
10046                             no_cache=1
10047                           fi
10048
10049                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10050
10051 fi;
10052
10053           eval "$ac_cv_use_iff"
10054           if test "$no_cache" != 1; then
10055             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10056           fi
10057
10058           if test "$wxUSE_IFF" = yes; then
10059             echo "$as_me:$LINENO: result: yes" >&5
10060 echo "${ECHO_T}yes" >&6
10061           else
10062             echo "$as_me:$LINENO: result: no" >&5
10063 echo "${ECHO_T}no" >&6
10064           fi
10065
10066
10067           enablestring=
10068           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10069 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10070           no_cache=0
10071           # Check whether --enable-pnm or --disable-pnm was given.
10072 if test "${enable_pnm+set}" = set; then
10073   enableval="$enable_pnm"
10074
10075                           if test "$enableval" = yes; then
10076                             ac_cv_use_pnm='wxUSE_PNM=yes'
10077                           else
10078                             ac_cv_use_pnm='wxUSE_PNM=no'
10079                           fi
10080
10081 else
10082
10083                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10084                           if test "x$LINE" != x ; then
10085                             eval "DEFAULT_$LINE"
10086                           else
10087                             no_cache=1
10088                           fi
10089
10090                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10091
10092 fi;
10093
10094           eval "$ac_cv_use_pnm"
10095           if test "$no_cache" != 1; then
10096             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10097           fi
10098
10099           if test "$wxUSE_PNM" = yes; then
10100             echo "$as_me:$LINENO: result: yes" >&5
10101 echo "${ECHO_T}yes" >&6
10102           else
10103             echo "$as_me:$LINENO: result: no" >&5
10104 echo "${ECHO_T}no" >&6
10105           fi
10106
10107
10108           enablestring=
10109           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10110 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10111           no_cache=0
10112           # Check whether --enable-xpm or --disable-xpm was given.
10113 if test "${enable_xpm+set}" = set; then
10114   enableval="$enable_xpm"
10115
10116                           if test "$enableval" = yes; then
10117                             ac_cv_use_xpm='wxUSE_XPM=yes'
10118                           else
10119                             ac_cv_use_xpm='wxUSE_XPM=no'
10120                           fi
10121
10122 else
10123
10124                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10125                           if test "x$LINE" != x ; then
10126                             eval "DEFAULT_$LINE"
10127                           else
10128                             no_cache=1
10129                           fi
10130
10131                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10132
10133 fi;
10134
10135           eval "$ac_cv_use_xpm"
10136           if test "$no_cache" != 1; then
10137             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10138           fi
10139
10140           if test "$wxUSE_XPM" = yes; then
10141             echo "$as_me:$LINENO: result: yes" >&5
10142 echo "${ECHO_T}yes" >&6
10143           else
10144             echo "$as_me:$LINENO: result: no" >&5
10145 echo "${ECHO_T}no" >&6
10146           fi
10147
10148
10149           enablestring=
10150           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10151 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10152           no_cache=0
10153           # Check whether --enable-ico_cur or --disable-ico_cur was given.
10154 if test "${enable_ico_cur+set}" = set; then
10155   enableval="$enable_ico_cur"
10156
10157                           if test "$enableval" = yes; then
10158                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10159                           else
10160                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10161                           fi
10162
10163 else
10164
10165                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10166                           if test "x$LINE" != x ; then
10167                             eval "DEFAULT_$LINE"
10168                           else
10169                             no_cache=1
10170                           fi
10171
10172                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10173
10174 fi;
10175
10176           eval "$ac_cv_use_ico_cur"
10177           if test "$no_cache" != 1; then
10178             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10179           fi
10180
10181           if test "$wxUSE_ICO_CUR" = yes; then
10182             echo "$as_me:$LINENO: result: yes" >&5
10183 echo "${ECHO_T}yes" >&6
10184           else
10185             echo "$as_me:$LINENO: result: no" >&5
10186 echo "${ECHO_T}no" >&6
10187           fi
10188
10189
10190 fi
10191
10192
10193
10194 # Check whether --with-flavour or --without-flavour was given.
10195 if test "${with_flavour+set}" = set; then
10196   withval="$with_flavour"
10197   WX_FLAVOUR="$withval"
10198 fi;
10199
10200
10201
10202           enablestring=
10203           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10204 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10205           no_cache=0
10206           # Check whether --enable-official_build or --disable-official_build was given.
10207 if test "${enable_official_build+set}" = set; then
10208   enableval="$enable_official_build"
10209
10210                           if test "$enableval" = yes; then
10211                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10212                           else
10213                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10214                           fi
10215
10216 else
10217
10218                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10219                           if test "x$LINE" != x ; then
10220                             eval "DEFAULT_$LINE"
10221                           else
10222                             no_cache=1
10223                           fi
10224
10225                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10226
10227 fi;
10228
10229           eval "$ac_cv_use_official_build"
10230           if test "$no_cache" != 1; then
10231             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10232           fi
10233
10234           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10235             echo "$as_me:$LINENO: result: yes" >&5
10236 echo "${ECHO_T}yes" >&6
10237           else
10238             echo "$as_me:$LINENO: result: no" >&5
10239 echo "${ECHO_T}no" >&6
10240           fi
10241
10242 # Check whether --enable-vendor or --disable-vendor was given.
10243 if test "${enable_vendor+set}" = set; then
10244   enableval="$enable_vendor"
10245   VENDOR="$enableval"
10246 fi;
10247 if test "x$VENDOR" = "x"; then
10248     VENDOR="custom"
10249 fi
10250
10251
10252
10253
10254           echo "saving argument cache $wx_arg_cache_file"
10255           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10256
10257
10258
10259 echo "$as_me:$LINENO: checking for toolkit" >&5
10260 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10261
10262 # In Wine, we need to default to MSW, not GTK or MOTIF
10263 if test "$wxUSE_WINE" = "yes"; then
10264     DEFAULT_DEFAULT_wxUSE_GTK=0
10265     DEFAULT_DEFAULT_wxUSE_MOTIF=0
10266     DEFAULT_DEFAULT_wxUSE_MSW=1
10267     wxUSE_SHARED=no
10268 fi
10269
10270 if test "$wxUSE_GUI" = "yes"; then
10271
10272     if test "$USE_BEOS" = 1; then
10273         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10274 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10275    { (exit 1); exit 1; }; }
10276     fi
10277
10278     if test "$TOOLKIT_GIVEN" = 1; then
10279             for toolkit in `echo $ALL_TOOLKITS`; do
10280         var=wxUSE_$toolkit
10281         eval "value=\$${var}"
10282         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10283       done
10284     else
10285             for toolkit in `echo $ALL_TOOLKITS`; do
10286         if test "$has_toolkit_in_cache" != 1; then
10287           var=DEFAULT_DEFAULT_wxUSE_$toolkit
10288         else
10289           var=DEFAULT_wxUSE_$toolkit
10290         fi
10291         eval "wxUSE_$toolkit=\$${var}"
10292       done
10293     fi
10294
10295             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10296                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10297                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10298
10299         case "${host}" in
10300       *-pc-os2_emx | *-pc-os2-emx )
10301         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10302     esac
10303
10304     case "$NUM_TOOLKITS" in
10305       1)
10306       ;;
10307       0)
10308         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10309 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10310    { (exit 1); exit 1; }; }
10311       ;;
10312       *)
10313         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10314 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10315    { (exit 1); exit 1; }; }
10316     esac
10317
10318         for toolkit in `echo $ALL_TOOLKITS`; do
10319       var=wxUSE_$toolkit
10320       eval "value=\$${var}"
10321       if test "x$value" != x; then
10322         cache_var=CACHE_$toolkit
10323         eval "cache=\$${cache_var}"
10324         if test "$cache" = 1; then
10325           echo "$var=$value" >> ${wx_arg_cache_file}
10326         fi
10327         if test "$value" = 1; then
10328           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10329           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10330 echo "${ECHO_T}$toolkit_echo" >&6
10331         fi
10332       fi
10333     done
10334 else
10335     if test "x$host_alias" != "x"; then
10336         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10337 echo "${ECHO_T}base ($host_alias hosted) only" >&6
10338     else
10339         echo "$as_me:$LINENO: result: base only" >&5
10340 echo "${ECHO_T}base only" >&6
10341     fi
10342 fi
10343
10344 wants_win32=0
10345 doesnt_want_win32=0
10346 case "${host}" in
10347   *-*-cygwin*)
10348       if test "$wxUSE_MSW" = 1 ; then
10349         wants_win32=1
10350       else
10351         doesnt_want_win32=1
10352       fi
10353   ;;
10354   *-*-mingw*)
10355       wants_win32=1
10356   ;;
10357 esac
10358
10359 if test "$wxUSE_WINE" = "yes"; then
10360     wants_win32=1
10361         CC=winegcc
10362     CXX=wineg++
10363     RESCOMP=wrc
10364     LDFLAGS_GUI="-mwindows"
10365 fi
10366
10367 if test "$wants_win32" = 1 ; then
10368     USE_UNIX=0
10369     USE_WIN32=1
10370     cat >>confdefs.h <<\_ACEOF
10371 #define __WIN32__ 1
10372 _ACEOF
10373
10374     cat >>confdefs.h <<\_ACEOF
10375 #define __WIN95__ 1
10376 _ACEOF
10377
10378     cat >>confdefs.h <<\_ACEOF
10379 #define __WINDOWS__ 1
10380 _ACEOF
10381
10382     cat >>confdefs.h <<\_ACEOF
10383 #define __GNUWIN32__ 1
10384 _ACEOF
10385
10386     cat >>confdefs.h <<\_ACEOF
10387 #define STRICT 1
10388 _ACEOF
10389
10390     cat >>confdefs.h <<\_ACEOF
10391 #define WINVER 0x0400
10392 _ACEOF
10393
10394 fi
10395 if test "$doesnt_want_win32" = 1 ; then
10396     USE_UNIX=1
10397     USE_WIN32=0
10398 fi
10399
10400 if test "$USE_UNIX" = 1 ; then
10401     wxUSE_UNIX=yes
10402     cat >>confdefs.h <<\_ACEOF
10403 #define __UNIX__ 1
10404 _ACEOF
10405
10406 fi
10407
10408
10409 cat >confcache <<\_ACEOF
10410 # This file is a shell script that caches the results of configure
10411 # tests run on this system so they can be shared between configure
10412 # scripts and configure runs, see configure's option --config-cache.
10413 # It is not useful on other systems.  If it contains results you don't
10414 # want to keep, you may remove or edit it.
10415 #
10416 # config.status only pays attention to the cache file if you give it
10417 # the --recheck option to rerun configure.
10418 #
10419 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10420 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10421 # following values.
10422
10423 _ACEOF
10424
10425 # The following way of writing the cache mishandles newlines in values,
10426 # but we know of no workaround that is simple, portable, and efficient.
10427 # So, don't put newlines in cache variables' values.
10428 # Ultrix sh set writes to stderr and can't be redirected directly,
10429 # and sets the high bit in the cache file unless we assign to the vars.
10430 {
10431   (set) 2>&1 |
10432     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10433     *ac_space=\ *)
10434       # `set' does not quote correctly, so add quotes (double-quote
10435       # substitution turns \\\\ into \\, and sed turns \\ into \).
10436       sed -n \
10437         "s/'/'\\\\''/g;
10438           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10439       ;;
10440     *)
10441       # `set' quotes correctly as required by POSIX, so do not add quotes.
10442       sed -n \
10443         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10444       ;;
10445     esac;
10446 } |
10447   sed '
10448      t clear
10449      : clear
10450      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10451      t end
10452      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10453      : end' >>confcache
10454 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10455   if test -w $cache_file; then
10456     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10457     cat confcache >$cache_file
10458   else
10459     echo "not updating unwritable cache $cache_file"
10460   fi
10461 fi
10462 rm -f confcache
10463
10464 if test "$build" != "$host" ; then
10465     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
10466         CC=$host_alias-gcc
10467         CXX=$host_alias-c++
10468         AR=$host_alias-ar
10469         RANLIB=$host_alias-ranlib
10470         DLLTOOL=$host_alias-dlltool
10471         RESCOMP=$host_alias-windres
10472         STRIP=$host_alias-strip
10473     elif test "x$CC" '!=' "x"; then
10474         echo "You set CC, I assume you know what you are doing."
10475     else
10476         { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10477 echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10478    { (exit 1); exit 1; }; }
10479     fi
10480 fi
10481
10482 CFLAGS=${CFLAGS:=}
10483 ac_ext=c
10484 ac_cpp='$CPP $CPPFLAGS'
10485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10488 if test -n "$ac_tool_prefix"; then
10489   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10490 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10491 echo "$as_me:$LINENO: checking for $ac_word" >&5
10492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10493 if test "${ac_cv_prog_CC+set}" = set; then
10494   echo $ECHO_N "(cached) $ECHO_C" >&6
10495 else
10496   if test -n "$CC"; then
10497   ac_cv_prog_CC="$CC" # Let the user override the test.
10498 else
10499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500 for as_dir in $PATH
10501 do
10502   IFS=$as_save_IFS
10503   test -z "$as_dir" && as_dir=.
10504   for ac_exec_ext in '' $ac_executable_extensions; do
10505   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10506     ac_cv_prog_CC="${ac_tool_prefix}gcc"
10507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10508     break 2
10509   fi
10510 done
10511 done
10512
10513 fi
10514 fi
10515 CC=$ac_cv_prog_CC
10516 if test -n "$CC"; then
10517   echo "$as_me:$LINENO: result: $CC" >&5
10518 echo "${ECHO_T}$CC" >&6
10519 else
10520   echo "$as_me:$LINENO: result: no" >&5
10521 echo "${ECHO_T}no" >&6
10522 fi
10523
10524 fi
10525 if test -z "$ac_cv_prog_CC"; then
10526   ac_ct_CC=$CC
10527   # Extract the first word of "gcc", so it can be a program name with args.
10528 set dummy gcc; ac_word=$2
10529 echo "$as_me:$LINENO: checking for $ac_word" >&5
10530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10531 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10532   echo $ECHO_N "(cached) $ECHO_C" >&6
10533 else
10534   if test -n "$ac_ct_CC"; then
10535   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10536 else
10537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10538 for as_dir in $PATH
10539 do
10540   IFS=$as_save_IFS
10541   test -z "$as_dir" && as_dir=.
10542   for ac_exec_ext in '' $ac_executable_extensions; do
10543   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10544     ac_cv_prog_ac_ct_CC="gcc"
10545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10546     break 2
10547   fi
10548 done
10549 done
10550
10551 fi
10552 fi
10553 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10554 if test -n "$ac_ct_CC"; then
10555   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10556 echo "${ECHO_T}$ac_ct_CC" >&6
10557 else
10558   echo "$as_me:$LINENO: result: no" >&5
10559 echo "${ECHO_T}no" >&6
10560 fi
10561
10562   CC=$ac_ct_CC
10563 else
10564   CC="$ac_cv_prog_CC"
10565 fi
10566
10567 if test -z "$CC"; then
10568   if test -n "$ac_tool_prefix"; then
10569   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10570 set dummy ${ac_tool_prefix}cc; ac_word=$2
10571 echo "$as_me:$LINENO: checking for $ac_word" >&5
10572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10573 if test "${ac_cv_prog_CC+set}" = set; then
10574   echo $ECHO_N "(cached) $ECHO_C" >&6
10575 else
10576   if test -n "$CC"; then
10577   ac_cv_prog_CC="$CC" # Let the user override the test.
10578 else
10579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580 for as_dir in $PATH
10581 do
10582   IFS=$as_save_IFS
10583   test -z "$as_dir" && as_dir=.
10584   for ac_exec_ext in '' $ac_executable_extensions; do
10585   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10586     ac_cv_prog_CC="${ac_tool_prefix}cc"
10587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10588     break 2
10589   fi
10590 done
10591 done
10592
10593 fi
10594 fi
10595 CC=$ac_cv_prog_CC
10596 if test -n "$CC"; then
10597   echo "$as_me:$LINENO: result: $CC" >&5
10598 echo "${ECHO_T}$CC" >&6
10599 else
10600   echo "$as_me:$LINENO: result: no" >&5
10601 echo "${ECHO_T}no" >&6
10602 fi
10603
10604 fi
10605 if test -z "$ac_cv_prog_CC"; then
10606   ac_ct_CC=$CC
10607   # Extract the first word of "cc", so it can be a program name with args.
10608 set dummy cc; ac_word=$2
10609 echo "$as_me:$LINENO: checking for $ac_word" >&5
10610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10611 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10612   echo $ECHO_N "(cached) $ECHO_C" >&6
10613 else
10614   if test -n "$ac_ct_CC"; then
10615   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10616 else
10617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10618 for as_dir in $PATH
10619 do
10620   IFS=$as_save_IFS
10621   test -z "$as_dir" && as_dir=.
10622   for ac_exec_ext in '' $ac_executable_extensions; do
10623   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10624     ac_cv_prog_ac_ct_CC="cc"
10625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10626     break 2
10627   fi
10628 done
10629 done
10630
10631 fi
10632 fi
10633 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10634 if test -n "$ac_ct_CC"; then
10635   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10636 echo "${ECHO_T}$ac_ct_CC" >&6
10637 else
10638   echo "$as_me:$LINENO: result: no" >&5
10639 echo "${ECHO_T}no" >&6
10640 fi
10641
10642   CC=$ac_ct_CC
10643 else
10644   CC="$ac_cv_prog_CC"
10645 fi
10646
10647 fi
10648 if test -z "$CC"; then
10649   # Extract the first word of "cc", so it can be a program name with args.
10650 set dummy cc; ac_word=$2
10651 echo "$as_me:$LINENO: checking for $ac_word" >&5
10652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10653 if test "${ac_cv_prog_CC+set}" = set; then
10654   echo $ECHO_N "(cached) $ECHO_C" >&6
10655 else
10656   if test -n "$CC"; then
10657   ac_cv_prog_CC="$CC" # Let the user override the test.
10658 else
10659   ac_prog_rejected=no
10660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661 for as_dir in $PATH
10662 do
10663   IFS=$as_save_IFS
10664   test -z "$as_dir" && as_dir=.
10665   for ac_exec_ext in '' $ac_executable_extensions; do
10666   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10667     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10668        ac_prog_rejected=yes
10669        continue
10670      fi
10671     ac_cv_prog_CC="cc"
10672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10673     break 2
10674   fi
10675 done
10676 done
10677
10678 if test $ac_prog_rejected = yes; then
10679   # We found a bogon in the path, so make sure we never use it.
10680   set dummy $ac_cv_prog_CC
10681   shift
10682   if test $# != 0; then
10683     # We chose a different compiler from the bogus one.
10684     # However, it has the same basename, so the bogon will be chosen
10685     # first if we set CC to just the basename; use the full file name.
10686     shift
10687     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10688   fi
10689 fi
10690 fi
10691 fi
10692 CC=$ac_cv_prog_CC
10693 if test -n "$CC"; then
10694   echo "$as_me:$LINENO: result: $CC" >&5
10695 echo "${ECHO_T}$CC" >&6
10696 else
10697   echo "$as_me:$LINENO: result: no" >&5
10698 echo "${ECHO_T}no" >&6
10699 fi
10700
10701 fi
10702 if test -z "$CC"; then
10703   if test -n "$ac_tool_prefix"; then
10704   for ac_prog in cl
10705   do
10706     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10708 echo "$as_me:$LINENO: checking for $ac_word" >&5
10709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10710 if test "${ac_cv_prog_CC+set}" = set; then
10711   echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713   if test -n "$CC"; then
10714   ac_cv_prog_CC="$CC" # Let the user override the test.
10715 else
10716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717 for as_dir in $PATH
10718 do
10719   IFS=$as_save_IFS
10720   test -z "$as_dir" && as_dir=.
10721   for ac_exec_ext in '' $ac_executable_extensions; do
10722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10723     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10725     break 2
10726   fi
10727 done
10728 done
10729
10730 fi
10731 fi
10732 CC=$ac_cv_prog_CC
10733 if test -n "$CC"; then
10734   echo "$as_me:$LINENO: result: $CC" >&5
10735 echo "${ECHO_T}$CC" >&6
10736 else
10737   echo "$as_me:$LINENO: result: no" >&5
10738 echo "${ECHO_T}no" >&6
10739 fi
10740
10741     test -n "$CC" && break
10742   done
10743 fi
10744 if test -z "$CC"; then
10745   ac_ct_CC=$CC
10746   for ac_prog in cl
10747 do
10748   # Extract the first word of "$ac_prog", so it can be a program name with args.
10749 set dummy $ac_prog; ac_word=$2
10750 echo "$as_me:$LINENO: checking for $ac_word" >&5
10751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10752 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10753   echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755   if test -n "$ac_ct_CC"; then
10756   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10757 else
10758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759 for as_dir in $PATH
10760 do
10761   IFS=$as_save_IFS
10762   test -z "$as_dir" && as_dir=.
10763   for ac_exec_ext in '' $ac_executable_extensions; do
10764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10765     ac_cv_prog_ac_ct_CC="$ac_prog"
10766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10767     break 2
10768   fi
10769 done
10770 done
10771
10772 fi
10773 fi
10774 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10775 if test -n "$ac_ct_CC"; then
10776   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10777 echo "${ECHO_T}$ac_ct_CC" >&6
10778 else
10779   echo "$as_me:$LINENO: result: no" >&5
10780 echo "${ECHO_T}no" >&6
10781 fi
10782
10783   test -n "$ac_ct_CC" && break
10784 done
10785
10786   CC=$ac_ct_CC
10787 fi
10788
10789 fi
10790
10791
10792 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10793 See \`config.log' for more details." >&5
10794 echo "$as_me: error: no acceptable C compiler found in \$PATH
10795 See \`config.log' for more details." >&2;}
10796    { (exit 1); exit 1; }; }
10797
10798 # Provide some information about the compiler.
10799 echo "$as_me:$LINENO:" \
10800      "checking for C compiler version" >&5
10801 ac_compiler=`set X $ac_compile; echo $2`
10802 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10803   (eval $ac_compiler --version </dev/null >&5) 2>&5
10804   ac_status=$?
10805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806   (exit $ac_status); }
10807 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10808   (eval $ac_compiler -v </dev/null >&5) 2>&5
10809   ac_status=$?
10810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811   (exit $ac_status); }
10812 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10813   (eval $ac_compiler -V </dev/null >&5) 2>&5
10814   ac_status=$?
10815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816   (exit $ac_status); }
10817
10818 cat >conftest.$ac_ext <<_ACEOF
10819 /* confdefs.h.  */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h.  */
10824
10825 int
10826 main ()
10827 {
10828
10829   ;
10830   return 0;
10831 }
10832 _ACEOF
10833 ac_clean_files_save=$ac_clean_files
10834 ac_clean_files="$ac_clean_files a.out a.exe b.out"
10835 # Try to create an executable without -o first, disregard a.out.
10836 # It will help us diagnose broken compilers, and finding out an intuition
10837 # of exeext.
10838 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10839 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
10840 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10841 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10842   (eval $ac_link_default) 2>&5
10843   ac_status=$?
10844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845   (exit $ac_status); }; then
10846   # Find the output, starting from the most likely.  This scheme is
10847 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
10848 # resort.
10849
10850 # Be careful to initialize this variable, since it used to be cached.
10851 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10852 ac_cv_exeext=
10853 # b.out is created by i960 compilers.
10854 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10855 do
10856   test -f "$ac_file" || continue
10857   case $ac_file in
10858     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10859         ;;
10860     conftest.$ac_ext )
10861         # This is the source file.
10862         ;;
10863     [ab].out )
10864         # We found the default executable, but exeext='' is most
10865         # certainly right.
10866         break;;
10867     *.* )
10868         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10869         # FIXME: I believe we export ac_cv_exeext for Libtool,
10870         # but it would be cool to find out if it's true.  Does anybody
10871         # maintain Libtool? --akim.
10872         export ac_cv_exeext
10873         break;;
10874     * )
10875         break;;
10876   esac
10877 done
10878 else
10879   echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.$ac_ext >&5
10881
10882 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
10883 See \`config.log' for more details." >&5
10884 echo "$as_me: error: C compiler cannot create executables
10885 See \`config.log' for more details." >&2;}
10886    { (exit 77); exit 77; }; }
10887 fi
10888
10889 ac_exeext=$ac_cv_exeext
10890 echo "$as_me:$LINENO: result: $ac_file" >&5
10891 echo "${ECHO_T}$ac_file" >&6
10892
10893 # Check the compiler produces executables we can run.  If not, either
10894 # the compiler is broken, or we cross compile.
10895 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10896 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10897 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10898 # If not cross compiling, check that we can run a simple program.
10899 if test "$cross_compiling" != yes; then
10900   if { ac_try='./$ac_file'
10901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902   (eval $ac_try) 2>&5
10903   ac_status=$?
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); }; }; then
10906     cross_compiling=no
10907   else
10908     if test "$cross_compiling" = maybe; then
10909         cross_compiling=yes
10910     else
10911         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10912 If you meant to cross compile, use \`--host'.
10913 See \`config.log' for more details." >&5
10914 echo "$as_me: error: cannot run C compiled programs.
10915 If you meant to cross compile, use \`--host'.
10916 See \`config.log' for more details." >&2;}
10917    { (exit 1); exit 1; }; }
10918     fi
10919   fi
10920 fi
10921 echo "$as_me:$LINENO: result: yes" >&5
10922 echo "${ECHO_T}yes" >&6
10923
10924 rm -f a.out a.exe conftest$ac_cv_exeext b.out
10925 ac_clean_files=$ac_clean_files_save
10926 # Check the compiler produces executables we can run.  If not, either
10927 # the compiler is broken, or we cross compile.
10928 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10929 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10930 echo "$as_me:$LINENO: result: $cross_compiling" >&5
10931 echo "${ECHO_T}$cross_compiling" >&6
10932
10933 echo "$as_me:$LINENO: checking for suffix of executables" >&5
10934 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10936   (eval $ac_link) 2>&5
10937   ac_status=$?
10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); }; then
10940   # If both `conftest.exe' and `conftest' are `present' (well, observable)
10941 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
10942 # work properly (i.e., refer to `conftest.exe'), while it won't with
10943 # `rm'.
10944 for ac_file in conftest.exe conftest conftest.*; do
10945   test -f "$ac_file" || continue
10946   case $ac_file in
10947     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10948     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10949           export ac_cv_exeext
10950           break;;
10951     * ) break;;
10952   esac
10953 done
10954 else
10955   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10956 See \`config.log' for more details." >&5
10957 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10958 See \`config.log' for more details." >&2;}
10959    { (exit 1); exit 1; }; }
10960 fi
10961
10962 rm -f conftest$ac_cv_exeext
10963 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10964 echo "${ECHO_T}$ac_cv_exeext" >&6
10965
10966 rm -f conftest.$ac_ext
10967 EXEEXT=$ac_cv_exeext
10968 ac_exeext=$EXEEXT
10969 echo "$as_me:$LINENO: checking for suffix of object files" >&5
10970 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10971 if test "${ac_cv_objext+set}" = set; then
10972   echo $ECHO_N "(cached) $ECHO_C" >&6
10973 else
10974   cat >conftest.$ac_ext <<_ACEOF
10975 /* confdefs.h.  */
10976 _ACEOF
10977 cat confdefs.h >>conftest.$ac_ext
10978 cat >>conftest.$ac_ext <<_ACEOF
10979 /* end confdefs.h.  */
10980
10981 int
10982 main ()
10983 {
10984
10985   ;
10986   return 0;
10987 }
10988 _ACEOF
10989 rm -f conftest.o conftest.obj
10990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10991   (eval $ac_compile) 2>&5
10992   ac_status=$?
10993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994   (exit $ac_status); }; then
10995   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10996   case $ac_file in
10997     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10998     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10999        break;;
11000   esac
11001 done
11002 else
11003   echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11005
11006 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11007 See \`config.log' for more details." >&5
11008 echo "$as_me: error: cannot compute suffix of object files: cannot compile
11009 See \`config.log' for more details." >&2;}
11010    { (exit 1); exit 1; }; }
11011 fi
11012
11013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
11014 fi
11015 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11016 echo "${ECHO_T}$ac_cv_objext" >&6
11017 OBJEXT=$ac_cv_objext
11018 ac_objext=$OBJEXT
11019 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11020 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11021 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11022   echo $ECHO_N "(cached) $ECHO_C" >&6
11023 else
11024   cat >conftest.$ac_ext <<_ACEOF
11025 /* confdefs.h.  */
11026 _ACEOF
11027 cat confdefs.h >>conftest.$ac_ext
11028 cat >>conftest.$ac_ext <<_ACEOF
11029 /* end confdefs.h.  */
11030
11031 int
11032 main ()
11033 {
11034 #ifndef __GNUC__
11035        choke me
11036 #endif
11037
11038   ;
11039   return 0;
11040 }
11041 _ACEOF
11042 rm -f conftest.$ac_objext
11043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044   (eval $ac_compile) 2>conftest.er1
11045   ac_status=$?
11046   grep -v '^ *+' conftest.er1 >conftest.err
11047   rm -f conftest.er1
11048   cat conftest.err >&5
11049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); } &&
11051          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053   (eval $ac_try) 2>&5
11054   ac_status=$?
11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); }; } &&
11057          { ac_try='test -s conftest.$ac_objext'
11058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059   (eval $ac_try) 2>&5
11060   ac_status=$?
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); }; }; then
11063   ac_compiler_gnu=yes
11064 else
11065   echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11067
11068 ac_compiler_gnu=no
11069 fi
11070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11071 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11072
11073 fi
11074 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11075 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11076 GCC=`test $ac_compiler_gnu = yes && echo yes`
11077 ac_test_CFLAGS=${CFLAGS+set}
11078 ac_save_CFLAGS=$CFLAGS
11079 CFLAGS="-g"
11080 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11081 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11082 if test "${ac_cv_prog_cc_g+set}" = set; then
11083   echo $ECHO_N "(cached) $ECHO_C" >&6
11084 else
11085   cat >conftest.$ac_ext <<_ACEOF
11086 /* confdefs.h.  */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h.  */
11091
11092 int
11093 main ()
11094 {
11095
11096   ;
11097   return 0;
11098 }
11099 _ACEOF
11100 rm -f conftest.$ac_objext
11101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11102   (eval $ac_compile) 2>conftest.er1
11103   ac_status=$?
11104   grep -v '^ *+' conftest.er1 >conftest.err
11105   rm -f conftest.er1
11106   cat conftest.err >&5
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); } &&
11109          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111   (eval $ac_try) 2>&5
11112   ac_status=$?
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); }; } &&
11115          { ac_try='test -s conftest.$ac_objext'
11116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117   (eval $ac_try) 2>&5
11118   ac_status=$?
11119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); }; }; then
11121   ac_cv_prog_cc_g=yes
11122 else
11123   echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11125
11126 ac_cv_prog_cc_g=no
11127 fi
11128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11129 fi
11130 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11131 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11132 if test "$ac_test_CFLAGS" = set; then
11133   CFLAGS=$ac_save_CFLAGS
11134 elif test $ac_cv_prog_cc_g = yes; then
11135   if test "$GCC" = yes; then
11136     CFLAGS="-g -O2"
11137   else
11138     CFLAGS="-g"
11139   fi
11140 else
11141   if test "$GCC" = yes; then
11142     CFLAGS="-O2"
11143   else
11144     CFLAGS=
11145   fi
11146 fi
11147 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11148 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11149 if test "${ac_cv_prog_cc_stdc+set}" = set; then
11150   echo $ECHO_N "(cached) $ECHO_C" >&6
11151 else
11152   ac_cv_prog_cc_stdc=no
11153 ac_save_CC=$CC
11154 cat >conftest.$ac_ext <<_ACEOF
11155 /* confdefs.h.  */
11156 _ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h.  */
11160 #include <stdarg.h>
11161 #include <stdio.h>
11162 #include <sys/types.h>
11163 #include <sys/stat.h>
11164 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11165 struct buf { int x; };
11166 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11167 static char *e (p, i)
11168      char **p;
11169      int i;
11170 {
11171   return p[i];
11172 }
11173 static char *f (char * (*g) (char **, int), char **p, ...)
11174 {
11175   char *s;
11176   va_list v;
11177   va_start (v,p);
11178   s = g (p, va_arg (v,int));
11179   va_end (v);
11180   return s;
11181 }
11182
11183 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11184    function prototypes and stuff, but not '\xHH' hex character constants.
11185    These don't provoke an error unfortunately, instead are silently treated
11186    as 'x'.  The following induces an error, until -std1 is added to get
11187    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11188    array size at least.  It's necessary to write '\x00'==0 to get something
11189    that's true only with -std1.  */
11190 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11191
11192 int test (int i, double x);
11193 struct s1 {int (*f) (int a);};
11194 struct s2 {int (*f) (double a);};
11195 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11196 int argc;
11197 char **argv;
11198 int
11199 main ()
11200 {
11201 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11202   ;
11203   return 0;
11204 }
11205 _ACEOF
11206 # Don't try gcc -ansi; that turns off useful extensions and
11207 # breaks some systems' header files.
11208 # AIX                   -qlanglvl=ansi
11209 # Ultrix and OSF/1      -std1
11210 # HP-UX 10.20 and later -Ae
11211 # HP-UX older versions  -Aa -D_HPUX_SOURCE
11212 # SVR4                  -Xc -D__EXTENSIONS__
11213 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11214 do
11215   CC="$ac_save_CC $ac_arg"
11216   rm -f conftest.$ac_objext
11217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11218   (eval $ac_compile) 2>conftest.er1
11219   ac_status=$?
11220   grep -v '^ *+' conftest.er1 >conftest.err
11221   rm -f conftest.er1
11222   cat conftest.err >&5
11223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224   (exit $ac_status); } &&
11225          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227   (eval $ac_try) 2>&5
11228   ac_status=$?
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); }; } &&
11231          { ac_try='test -s conftest.$ac_objext'
11232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233   (eval $ac_try) 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); }; }; then
11237   ac_cv_prog_cc_stdc=$ac_arg
11238 break
11239 else
11240   echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11242
11243 fi
11244 rm -f conftest.err conftest.$ac_objext
11245 done
11246 rm -f conftest.$ac_ext conftest.$ac_objext
11247 CC=$ac_save_CC
11248
11249 fi
11250
11251 case "x$ac_cv_prog_cc_stdc" in
11252   x|xno)
11253     echo "$as_me:$LINENO: result: none needed" >&5
11254 echo "${ECHO_T}none needed" >&6 ;;
11255   *)
11256     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11257 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11258     CC="$CC $ac_cv_prog_cc_stdc" ;;
11259 esac
11260
11261 # Some people use a C++ compiler to compile C.  Since we use `exit',
11262 # in C++ we need to declare it.  In case someone uses the same compiler
11263 # for both compiling C and C++ we need to have the C++ compiler decide
11264 # the declaration of exit, since it's the most demanding environment.
11265 cat >conftest.$ac_ext <<_ACEOF
11266 #ifndef __cplusplus
11267   choke me
11268 #endif
11269 _ACEOF
11270 rm -f conftest.$ac_objext
11271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11272   (eval $ac_compile) 2>conftest.er1
11273   ac_status=$?
11274   grep -v '^ *+' conftest.er1 >conftest.err
11275   rm -f conftest.er1
11276   cat conftest.err >&5
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   (exit $ac_status); } &&
11279          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281   (eval $ac_try) 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); }; } &&
11285          { ac_try='test -s conftest.$ac_objext'
11286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287   (eval $ac_try) 2>&5
11288   ac_status=$?
11289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290   (exit $ac_status); }; }; then
11291   for ac_declaration in \
11292    '' \
11293    'extern "C" void std::exit (int) throw (); using std::exit;' \
11294    'extern "C" void std::exit (int); using std::exit;' \
11295    'extern "C" void exit (int) throw ();' \
11296    'extern "C" void exit (int);' \
11297    'void exit (int);'
11298 do
11299   cat >conftest.$ac_ext <<_ACEOF
11300 /* confdefs.h.  */
11301 _ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h.  */
11305 $ac_declaration
11306 #include <stdlib.h>
11307 int
11308 main ()
11309 {
11310 exit (42);
11311   ;
11312   return 0;
11313 }
11314 _ACEOF
11315 rm -f conftest.$ac_objext
11316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11317   (eval $ac_compile) 2>conftest.er1
11318   ac_status=$?
11319   grep -v '^ *+' conftest.er1 >conftest.err
11320   rm -f conftest.er1
11321   cat conftest.err >&5
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); } &&
11324          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326   (eval $ac_try) 2>&5
11327   ac_status=$?
11328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329   (exit $ac_status); }; } &&
11330          { ac_try='test -s conftest.$ac_objext'
11331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332   (eval $ac_try) 2>&5
11333   ac_status=$?
11334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335   (exit $ac_status); }; }; then
11336   :
11337 else
11338   echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11340
11341 continue
11342 fi
11343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11344   cat >conftest.$ac_ext <<_ACEOF
11345 /* confdefs.h.  */
11346 _ACEOF
11347 cat confdefs.h >>conftest.$ac_ext
11348 cat >>conftest.$ac_ext <<_ACEOF
11349 /* end confdefs.h.  */
11350 $ac_declaration
11351 int
11352 main ()
11353 {
11354 exit (42);
11355   ;
11356   return 0;
11357 }
11358 _ACEOF
11359 rm -f conftest.$ac_objext
11360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11361   (eval $ac_compile) 2>conftest.er1
11362   ac_status=$?
11363   grep -v '^ *+' conftest.er1 >conftest.err
11364   rm -f conftest.er1
11365   cat conftest.err >&5
11366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367   (exit $ac_status); } &&
11368          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11370   (eval $ac_try) 2>&5
11371   ac_status=$?
11372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373   (exit $ac_status); }; } &&
11374          { ac_try='test -s conftest.$ac_objext'
11375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376   (eval $ac_try) 2>&5
11377   ac_status=$?
11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379   (exit $ac_status); }; }; then
11380   break
11381 else
11382   echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11384
11385 fi
11386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11387 done
11388 rm -f conftest*
11389 if test -n "$ac_declaration"; then
11390   echo '#ifdef __cplusplus' >>confdefs.h
11391   echo $ac_declaration      >>confdefs.h
11392   echo '#endif'             >>confdefs.h
11393 fi
11394
11395 else
11396   echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11398
11399 fi
11400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11401 ac_ext=c
11402 ac_cpp='$CPP $CPPFLAGS'
11403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11406
11407
11408 ac_ext=c
11409 ac_cpp='$CPP $CPPFLAGS'
11410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11413
11414 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11415 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11416 if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11417   echo $ECHO_N "(cached) $ECHO_C" >&6
11418 else
11419   cat >conftest.$ac_ext <<_ACEOF
11420 /* confdefs.h.  */
11421 _ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h.  */
11425
11426 int
11427 main ()
11428 {
11429 #ifndef __MWERKS__
11430        choke me
11431 #endif
11432
11433   ;
11434   return 0;
11435 }
11436 _ACEOF
11437 rm -f conftest.$ac_objext
11438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11439   (eval $ac_compile) 2>conftest.er1
11440   ac_status=$?
11441   grep -v '^ *+' conftest.er1 >conftest.err
11442   rm -f conftest.er1
11443   cat conftest.err >&5
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); } &&
11446          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448   (eval $ac_try) 2>&5
11449   ac_status=$?
11450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451   (exit $ac_status); }; } &&
11452          { ac_try='test -s conftest.$ac_objext'
11453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454   (eval $ac_try) 2>&5
11455   ac_status=$?
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); }; }; then
11458   bakefile_compiler_mwerks=yes
11459 else
11460   echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11462
11463 bakefile_compiler_mwerks=no
11464 fi
11465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11466     bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11467
11468 fi
11469 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11470 echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11471
11472 MWCC=`test $bakefile_compiler_mwerks = yes && echo yes`
11473 ac_ext=c
11474 ac_cpp='$CPP $CPPFLAGS'
11475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11478
11479
11480
11481 ac_ext=c
11482 ac_cpp='$CPP $CPPFLAGS'
11483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11486 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11487 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11488 # On Suns, sometimes $CPP names a directory.
11489 if test -n "$CPP" && test -d "$CPP"; then
11490   CPP=
11491 fi
11492 if test -z "$CPP"; then
11493   if test "${ac_cv_prog_CPP+set}" = set; then
11494   echo $ECHO_N "(cached) $ECHO_C" >&6
11495 else
11496       # Double quotes because CPP needs to be expanded
11497     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11498     do
11499       ac_preproc_ok=false
11500 for ac_c_preproc_warn_flag in '' yes
11501 do
11502   # Use a header file that comes with gcc, so configuring glibc
11503   # with a fresh cross-compiler works.
11504   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11505   # <limits.h> exists even on freestanding compilers.
11506   # On the NeXT, cc -E runs the code through the compiler's parser,
11507   # not just through cpp. "Syntax error" is here to catch this case.
11508   cat >conftest.$ac_ext <<_ACEOF
11509 /* confdefs.h.  */
11510 _ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h.  */
11514 #ifdef __STDC__
11515 # include <limits.h>
11516 #else
11517 # include <assert.h>
11518 #endif
11519                      Syntax error
11520 _ACEOF
11521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11522   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11523   ac_status=$?
11524   grep -v '^ *+' conftest.er1 >conftest.err
11525   rm -f conftest.er1
11526   cat conftest.err >&5
11527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528   (exit $ac_status); } >/dev/null; then
11529   if test -s conftest.err; then
11530     ac_cpp_err=$ac_c_preproc_warn_flag
11531     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11532   else
11533     ac_cpp_err=
11534   fi
11535 else
11536   ac_cpp_err=yes
11537 fi
11538 if test -z "$ac_cpp_err"; then
11539   :
11540 else
11541   echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11543
11544   # Broken: fails on valid input.
11545 continue
11546 fi
11547 rm -f conftest.err conftest.$ac_ext
11548
11549   # OK, works on sane cases.  Now check whether non-existent headers
11550   # can be detected and how.
11551   cat >conftest.$ac_ext <<_ACEOF
11552 /* confdefs.h.  */
11553 _ACEOF
11554 cat confdefs.h >>conftest.$ac_ext
11555 cat >>conftest.$ac_ext <<_ACEOF
11556 /* end confdefs.h.  */
11557 #include <ac_nonexistent.h>
11558 _ACEOF
11559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11560   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11561   ac_status=$?
11562   grep -v '^ *+' conftest.er1 >conftest.err
11563   rm -f conftest.er1
11564   cat conftest.err >&5
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); } >/dev/null; then
11567   if test -s conftest.err; then
11568     ac_cpp_err=$ac_c_preproc_warn_flag
11569     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11570   else
11571     ac_cpp_err=
11572   fi
11573 else
11574   ac_cpp_err=yes
11575 fi
11576 if test -z "$ac_cpp_err"; then
11577   # Broken: success on invalid input.
11578 continue
11579 else
11580   echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11582
11583   # Passes both tests.
11584 ac_preproc_ok=:
11585 break
11586 fi
11587 rm -f conftest.err conftest.$ac_ext
11588
11589 done
11590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11591 rm -f conftest.err conftest.$ac_ext
11592 if $ac_preproc_ok; then
11593   break
11594 fi
11595
11596     done
11597     ac_cv_prog_CPP=$CPP
11598
11599 fi
11600   CPP=$ac_cv_prog_CPP
11601 else
11602   ac_cv_prog_CPP=$CPP
11603 fi
11604 echo "$as_me:$LINENO: result: $CPP" >&5
11605 echo "${ECHO_T}$CPP" >&6
11606 ac_preproc_ok=false
11607 for ac_c_preproc_warn_flag in '' yes
11608 do
11609   # Use a header file that comes with gcc, so configuring glibc
11610   # with a fresh cross-compiler works.
11611   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11612   # <limits.h> exists even on freestanding compilers.
11613   # On the NeXT, cc -E runs the code through the compiler's parser,
11614   # not just through cpp. "Syntax error" is here to catch this case.
11615   cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h.  */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h.  */
11621 #ifdef __STDC__
11622 # include <limits.h>
11623 #else
11624 # include <assert.h>
11625 #endif
11626                      Syntax error
11627 _ACEOF
11628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11629   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11630   ac_status=$?
11631   grep -v '^ *+' conftest.er1 >conftest.err
11632   rm -f conftest.er1
11633   cat conftest.err >&5
11634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635   (exit $ac_status); } >/dev/null; then
11636   if test -s conftest.err; then
11637     ac_cpp_err=$ac_c_preproc_warn_flag
11638     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11639   else
11640     ac_cpp_err=
11641   fi
11642 else
11643   ac_cpp_err=yes
11644 fi
11645 if test -z "$ac_cpp_err"; then
11646   :
11647 else
11648   echo "$as_me: failed program was:" >&5
11649 sed 's/^/| /' conftest.$ac_ext >&5
11650
11651   # Broken: fails on valid input.
11652 continue
11653 fi
11654 rm -f conftest.err conftest.$ac_ext
11655
11656   # OK, works on sane cases.  Now check whether non-existent headers
11657   # can be detected and how.
11658   cat >conftest.$ac_ext <<_ACEOF
11659 /* confdefs.h.  */
11660 _ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h.  */
11664 #include <ac_nonexistent.h>
11665 _ACEOF
11666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11667   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11668   ac_status=$?
11669   grep -v '^ *+' conftest.er1 >conftest.err
11670   rm -f conftest.er1
11671   cat conftest.err >&5
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); } >/dev/null; then
11674   if test -s conftest.err; then
11675     ac_cpp_err=$ac_c_preproc_warn_flag
11676     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11677   else
11678     ac_cpp_err=
11679   fi
11680 else
11681   ac_cpp_err=yes
11682 fi
11683 if test -z "$ac_cpp_err"; then
11684   # Broken: success on invalid input.
11685 continue
11686 else
11687   echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11689
11690   # Passes both tests.
11691 ac_preproc_ok=:
11692 break
11693 fi
11694 rm -f conftest.err conftest.$ac_ext
11695
11696 done
11697 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11698 rm -f conftest.err conftest.$ac_ext
11699 if $ac_preproc_ok; then
11700   :
11701 else
11702   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11703 See \`config.log' for more details." >&5
11704 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11705 See \`config.log' for more details." >&2;}
11706    { (exit 1); exit 1; }; }
11707 fi
11708
11709 ac_ext=c
11710 ac_cpp='$CPP $CPPFLAGS'
11711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11714
11715
11716 echo "$as_me:$LINENO: checking for egrep" >&5
11717 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11718 if test "${ac_cv_prog_egrep+set}" = set; then
11719   echo $ECHO_N "(cached) $ECHO_C" >&6
11720 else
11721   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11722     then ac_cv_prog_egrep='grep -E'
11723     else ac_cv_prog_egrep='egrep'
11724     fi
11725 fi
11726 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11727 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11728  EGREP=$ac_cv_prog_egrep
11729
11730
11731 if test $ac_cv_c_compiler_gnu = yes; then
11732     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11733 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11734 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11735   echo $ECHO_N "(cached) $ECHO_C" >&6
11736 else
11737     ac_pattern="Autoconf.*'x'"
11738   cat >conftest.$ac_ext <<_ACEOF
11739 /* confdefs.h.  */
11740 _ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h.  */
11744 #include <sgtty.h>
11745 Autoconf TIOCGETP
11746 _ACEOF
11747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11748   $EGREP "$ac_pattern" >/dev/null 2>&1; then
11749   ac_cv_prog_gcc_traditional=yes
11750 else
11751   ac_cv_prog_gcc_traditional=no
11752 fi
11753 rm -f conftest*
11754
11755
11756   if test $ac_cv_prog_gcc_traditional = no; then
11757     cat >conftest.$ac_ext <<_ACEOF
11758 /* confdefs.h.  */
11759 _ACEOF
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h.  */
11763 #include <termio.h>
11764 Autoconf TCGETA
11765 _ACEOF
11766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11767   $EGREP "$ac_pattern" >/dev/null 2>&1; then
11768   ac_cv_prog_gcc_traditional=yes
11769 fi
11770 rm -f conftest*
11771
11772   fi
11773 fi
11774 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11775 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11776   if test $ac_cv_prog_gcc_traditional = yes; then
11777     CC="$CC -traditional"
11778   fi
11779 fi
11780
11781
11782
11783
11784 ac_ext=cc
11785 ac_cpp='$CXXCPP $CPPFLAGS'
11786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11789
11790
11791 CXXFLAGS=${CXXFLAGS:=}
11792 ac_ext=cc
11793 ac_cpp='$CXXCPP $CPPFLAGS'
11794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11797 if test -n "$ac_tool_prefix"; then
11798   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11799   do
11800     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11802 echo "$as_me:$LINENO: checking for $ac_word" >&5
11803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11804 if test "${ac_cv_prog_CXX+set}" = set; then
11805   echo $ECHO_N "(cached) $ECHO_C" >&6
11806 else
11807   if test -n "$CXX"; then
11808   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11809 else
11810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811 for as_dir in $PATH
11812 do
11813   IFS=$as_save_IFS
11814   test -z "$as_dir" && as_dir=.
11815   for ac_exec_ext in '' $ac_executable_extensions; do
11816   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11817     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11819     break 2
11820   fi
11821 done
11822 done
11823
11824 fi
11825 fi
11826 CXX=$ac_cv_prog_CXX
11827 if test -n "$CXX"; then
11828   echo "$as_me:$LINENO: result: $CXX" >&5
11829 echo "${ECHO_T}$CXX" >&6
11830 else
11831   echo "$as_me:$LINENO: result: no" >&5
11832 echo "${ECHO_T}no" >&6
11833 fi
11834
11835     test -n "$CXX" && break
11836   done
11837 fi
11838 if test -z "$CXX"; then
11839   ac_ct_CXX=$CXX
11840   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11841 do
11842   # Extract the first word of "$ac_prog", so it can be a program name with args.
11843 set dummy $ac_prog; ac_word=$2
11844 echo "$as_me:$LINENO: checking for $ac_word" >&5
11845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11846 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11847   echo $ECHO_N "(cached) $ECHO_C" >&6
11848 else
11849   if test -n "$ac_ct_CXX"; then
11850   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11851 else
11852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11853 for as_dir in $PATH
11854 do
11855   IFS=$as_save_IFS
11856   test -z "$as_dir" && as_dir=.
11857   for ac_exec_ext in '' $ac_executable_extensions; do
11858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11859     ac_cv_prog_ac_ct_CXX="$ac_prog"
11860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11861     break 2
11862   fi
11863 done
11864 done
11865
11866 fi
11867 fi
11868 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11869 if test -n "$ac_ct_CXX"; then
11870   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11871 echo "${ECHO_T}$ac_ct_CXX" >&6
11872 else
11873   echo "$as_me:$LINENO: result: no" >&5
11874 echo "${ECHO_T}no" >&6
11875 fi
11876
11877   test -n "$ac_ct_CXX" && break
11878 done
11879 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11880
11881   CXX=$ac_ct_CXX
11882 fi
11883
11884
11885 # Provide some information about the compiler.
11886 echo "$as_me:$LINENO:" \
11887      "checking for C++ compiler version" >&5
11888 ac_compiler=`set X $ac_compile; echo $2`
11889 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11890   (eval $ac_compiler --version </dev/null >&5) 2>&5
11891   ac_status=$?
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); }
11894 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11895   (eval $ac_compiler -v </dev/null >&5) 2>&5
11896   ac_status=$?
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); }
11899 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11900   (eval $ac_compiler -V </dev/null >&5) 2>&5
11901   ac_status=$?
11902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903   (exit $ac_status); }
11904
11905 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11906 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11907 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11908   echo $ECHO_N "(cached) $ECHO_C" >&6
11909 else
11910   cat >conftest.$ac_ext <<_ACEOF
11911 /* confdefs.h.  */
11912 _ACEOF
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h.  */
11916
11917 int
11918 main ()
11919 {
11920 #ifndef __GNUC__
11921        choke me
11922 #endif
11923
11924   ;
11925   return 0;
11926 }
11927 _ACEOF
11928 rm -f conftest.$ac_objext
11929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11930   (eval $ac_compile) 2>conftest.er1
11931   ac_status=$?
11932   grep -v '^ *+' conftest.er1 >conftest.err
11933   rm -f conftest.er1
11934   cat conftest.err >&5
11935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936   (exit $ac_status); } &&
11937          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939   (eval $ac_try) 2>&5
11940   ac_status=$?
11941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942   (exit $ac_status); }; } &&
11943          { ac_try='test -s conftest.$ac_objext'
11944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945   (eval $ac_try) 2>&5
11946   ac_status=$?
11947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948   (exit $ac_status); }; }; then
11949   ac_compiler_gnu=yes
11950 else
11951   echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11953
11954 ac_compiler_gnu=no
11955 fi
11956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11957 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11958
11959 fi
11960 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11961 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11962 GXX=`test $ac_compiler_gnu = yes && echo yes`
11963 ac_test_CXXFLAGS=${CXXFLAGS+set}
11964 ac_save_CXXFLAGS=$CXXFLAGS
11965 CXXFLAGS="-g"
11966 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11967 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11968 if test "${ac_cv_prog_cxx_g+set}" = set; then
11969   echo $ECHO_N "(cached) $ECHO_C" >&6
11970 else
11971   cat >conftest.$ac_ext <<_ACEOF
11972 /* confdefs.h.  */
11973 _ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h.  */
11977
11978 int
11979 main ()
11980 {
11981
11982   ;
11983   return 0;
11984 }
11985 _ACEOF
11986 rm -f conftest.$ac_objext
11987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11988   (eval $ac_compile) 2>conftest.er1
11989   ac_status=$?
11990   grep -v '^ *+' conftest.er1 >conftest.err
11991   rm -f conftest.er1
11992   cat conftest.err >&5
11993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   (exit $ac_status); } &&
11995          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997   (eval $ac_try) 2>&5
11998   ac_status=$?
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); }; } &&
12001          { ac_try='test -s conftest.$ac_objext'
12002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003   (eval $ac_try) 2>&5
12004   ac_status=$?
12005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006   (exit $ac_status); }; }; then
12007   ac_cv_prog_cxx_g=yes
12008 else
12009   echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12011
12012 ac_cv_prog_cxx_g=no
12013 fi
12014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12015 fi
12016 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12017 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12018 if test "$ac_test_CXXFLAGS" = set; then
12019   CXXFLAGS=$ac_save_CXXFLAGS
12020 elif test $ac_cv_prog_cxx_g = yes; then
12021   if test "$GXX" = yes; then
12022     CXXFLAGS="-g -O2"
12023   else
12024     CXXFLAGS="-g"
12025   fi
12026 else
12027   if test "$GXX" = yes; then
12028     CXXFLAGS="-O2"
12029   else
12030     CXXFLAGS=
12031   fi
12032 fi
12033 for ac_declaration in \
12034    '' \
12035    'extern "C" void std::exit (int) throw (); using std::exit;' \
12036    'extern "C" void std::exit (int); using std::exit;' \
12037    'extern "C" void exit (int) throw ();' \
12038    'extern "C" void exit (int);' \
12039    'void exit (int);'
12040 do
12041   cat >conftest.$ac_ext <<_ACEOF
12042 /* confdefs.h.  */
12043 _ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h.  */
12047 $ac_declaration
12048 #include <stdlib.h>
12049 int
12050 main ()
12051 {
12052 exit (42);
12053   ;
12054   return 0;
12055 }
12056 _ACEOF
12057 rm -f conftest.$ac_objext
12058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12059   (eval $ac_compile) 2>conftest.er1
12060   ac_status=$?
12061   grep -v '^ *+' conftest.er1 >conftest.err
12062   rm -f conftest.er1
12063   cat conftest.err >&5
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); } &&
12066          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068   (eval $ac_try) 2>&5
12069   ac_status=$?
12070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071   (exit $ac_status); }; } &&
12072          { ac_try='test -s conftest.$ac_objext'
12073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074   (eval $ac_try) 2>&5
12075   ac_status=$?
12076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077   (exit $ac_status); }; }; then
12078   :
12079 else
12080   echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12082
12083 continue
12084 fi
12085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12086   cat >conftest.$ac_ext <<_ACEOF
12087 /* confdefs.h.  */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h.  */
12092 $ac_declaration
12093 int
12094 main ()
12095 {
12096 exit (42);
12097   ;
12098   return 0;
12099 }
12100 _ACEOF
12101 rm -f conftest.$ac_objext
12102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12103   (eval $ac_compile) 2>conftest.er1
12104   ac_status=$?
12105   grep -v '^ *+' conftest.er1 >conftest.err
12106   rm -f conftest.er1
12107   cat conftest.err >&5
12108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109   (exit $ac_status); } &&
12110          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112   (eval $ac_try) 2>&5
12113   ac_status=$?
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); }; } &&
12116          { ac_try='test -s conftest.$ac_objext'
12117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118   (eval $ac_try) 2>&5
12119   ac_status=$?
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); }; }; then
12122   break
12123 else
12124   echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127 fi
12128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12129 done
12130 rm -f conftest*
12131 if test -n "$ac_declaration"; then
12132   echo '#ifdef __cplusplus' >>confdefs.h
12133   echo $ac_declaration      >>confdefs.h
12134   echo '#endif'             >>confdefs.h
12135 fi
12136
12137 ac_ext=cc
12138 ac_cpp='$CXXCPP $CPPFLAGS'
12139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12142
12143
12144 ac_ext=cc
12145 ac_cpp='$CXXCPP $CPPFLAGS'
12146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12149
12150 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12151 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12152 if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12153   echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155   cat >conftest.$ac_ext <<_ACEOF
12156 /* confdefs.h.  */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h.  */
12161
12162 int
12163 main ()
12164 {
12165 #ifndef __MWERKS__
12166        choke me
12167 #endif
12168
12169   ;
12170   return 0;
12171 }
12172 _ACEOF
12173 rm -f conftest.$ac_objext
12174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12175   (eval $ac_compile) 2>conftest.er1
12176   ac_status=$?
12177   grep -v '^ *+' conftest.er1 >conftest.err
12178   rm -f conftest.er1
12179   cat conftest.err >&5
12180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181   (exit $ac_status); } &&
12182          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184   (eval $ac_try) 2>&5
12185   ac_status=$?
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); }; } &&
12188          { ac_try='test -s conftest.$ac_objext'
12189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190   (eval $ac_try) 2>&5
12191   ac_status=$?
12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); }; }; then
12194   bakefile_compiler_mwerks=yes
12195 else
12196   echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12198
12199 bakefile_compiler_mwerks=no
12200 fi
12201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12202     bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12203
12204 fi
12205 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12206 echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12207
12208 MWCXX=`test $bakefile_compiler_mwerks = yes && echo yes`
12209 ac_ext=cc
12210 ac_cpp='$CXXCPP $CPPFLAGS'
12211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12214
12215
12216
12217 ac_ext=c
12218 ac_cpp='$CPP $CPPFLAGS'
12219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12222
12223
12224 if test -n "$ac_tool_prefix"; then
12225   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12226 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12227 echo "$as_me:$LINENO: checking for $ac_word" >&5
12228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12229 if test "${ac_cv_prog_RANLIB+set}" = set; then
12230   echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232   if test -n "$RANLIB"; then
12233   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12234 else
12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12237 do
12238   IFS=$as_save_IFS
12239   test -z "$as_dir" && as_dir=.
12240   for ac_exec_ext in '' $ac_executable_extensions; do
12241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12242     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12244     break 2
12245   fi
12246 done
12247 done
12248
12249 fi
12250 fi
12251 RANLIB=$ac_cv_prog_RANLIB
12252 if test -n "$RANLIB"; then
12253   echo "$as_me:$LINENO: result: $RANLIB" >&5
12254 echo "${ECHO_T}$RANLIB" >&6
12255 else
12256   echo "$as_me:$LINENO: result: no" >&5
12257 echo "${ECHO_T}no" >&6
12258 fi
12259
12260 fi
12261 if test -z "$ac_cv_prog_RANLIB"; then
12262   ac_ct_RANLIB=$RANLIB
12263   # Extract the first word of "ranlib", so it can be a program name with args.
12264 set dummy ranlib; ac_word=$2
12265 echo "$as_me:$LINENO: checking for $ac_word" >&5
12266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12267 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12268   echo $ECHO_N "(cached) $ECHO_C" >&6
12269 else
12270   if test -n "$ac_ct_RANLIB"; then
12271   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12272 else
12273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12274 for as_dir in $PATH
12275 do
12276   IFS=$as_save_IFS
12277   test -z "$as_dir" && as_dir=.
12278   for ac_exec_ext in '' $ac_executable_extensions; do
12279   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12280     ac_cv_prog_ac_ct_RANLIB="ranlib"
12281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12282     break 2
12283   fi
12284 done
12285 done
12286
12287   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12288 fi
12289 fi
12290 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12291 if test -n "$ac_ct_RANLIB"; then
12292   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12293 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12294 else
12295   echo "$as_me:$LINENO: result: no" >&5
12296 echo "${ECHO_T}no" >&6
12297 fi
12298
12299   RANLIB=$ac_ct_RANLIB
12300 else
12301   RANLIB="$ac_cv_prog_RANLIB"
12302 fi
12303
12304
12305 # Extract the first word of "ar", so it can be a program name with args.
12306 set dummy ar; ac_word=$2
12307 echo "$as_me:$LINENO: checking for $ac_word" >&5
12308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12309 if test "${ac_cv_prog_AR+set}" = set; then
12310   echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312   if test -n "$AR"; then
12313   ac_cv_prog_AR="$AR" # Let the user override the test.
12314 else
12315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 for as_dir in $PATH
12317 do
12318   IFS=$as_save_IFS
12319   test -z "$as_dir" && as_dir=.
12320   for ac_exec_ext in '' $ac_executable_extensions; do
12321   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12322     ac_cv_prog_AR="ar"
12323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12324     break 2
12325   fi
12326 done
12327 done
12328
12329 fi
12330 fi
12331 AR=$ac_cv_prog_AR
12332 if test -n "$AR"; then
12333   echo "$as_me:$LINENO: result: $AR" >&5
12334 echo "${ECHO_T}$AR" >&6
12335 else
12336   echo "$as_me:$LINENO: result: no" >&5
12337 echo "${ECHO_T}no" >&6
12338 fi
12339
12340 if test "x$AR" = "x" ; then
12341     { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12342 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
12343    { (exit 1); exit 1; }; }
12344 fi
12345
12346 # Find a good install program.  We prefer a C program (faster),
12347 # so one script is as good as another.  But avoid the broken or
12348 # incompatible versions:
12349 # SysV /etc/install, /usr/sbin/install
12350 # SunOS /usr/etc/install
12351 # IRIX /sbin/install
12352 # AIX /bin/install
12353 # AmigaOS /C/install, which installs bootblocks on floppy discs
12354 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12355 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12356 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12357 # OS/2's system install, which has a completely different semantic
12358 # ./install, which can be erroneously created by make from ./install.sh.
12359 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12360 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12361 if test -z "$INSTALL"; then
12362 if test "${ac_cv_path_install+set}" = set; then
12363   echo $ECHO_N "(cached) $ECHO_C" >&6
12364 else
12365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12366 for as_dir in $PATH
12367 do
12368   IFS=$as_save_IFS
12369   test -z "$as_dir" && as_dir=.
12370   # Account for people who put trailing slashes in PATH elements.
12371 case $as_dir/ in
12372   ./ | .// | /cC/* | \
12373   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12374   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12375   /usr/ucb/* ) ;;
12376   *)
12377     # OSF1 and SCO ODT 3.0 have their own names for install.
12378     # Don't use installbsd from OSF since it installs stuff as root
12379     # by default.
12380     for ac_prog in ginstall scoinst install; do
12381       for ac_exec_ext in '' $ac_executable_extensions; do
12382         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12383           if test $ac_prog = install &&
12384             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12385             # AIX install.  It has an incompatible calling convention.
12386             :
12387           elif test $ac_prog = install &&
12388             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12389             # program-specific install script used by HP pwplus--don't use.
12390             :
12391           else
12392             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12393             break 3
12394           fi
12395         fi
12396       done
12397     done
12398     ;;
12399 esac
12400 done
12401
12402
12403 fi
12404   if test "${ac_cv_path_install+set}" = set; then
12405     INSTALL=$ac_cv_path_install
12406   else
12407     # As a last resort, use the slow shell script.  We don't cache a
12408     # path for INSTALL within a source directory, because that will
12409     # break other packages using the cache if that directory is
12410     # removed, or if the path is relative.
12411     INSTALL=$ac_install_sh
12412   fi
12413 fi
12414 echo "$as_me:$LINENO: result: $INSTALL" >&5
12415 echo "${ECHO_T}$INSTALL" >&6
12416
12417 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12418 # It thinks the first close brace ends the variable substitution.
12419 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12420
12421 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12422
12423 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12424
12425
12426 case ${INSTALL} in
12427   /* ) # Absolute
12428      ;;
12429   ?:* ) # Drive letter, considered as absolute.
12430      ;;
12431   *)
12432      INSTALL=`pwd`/${INSTALL} ;;
12433 esac
12434
12435
12436 case "${host}" in
12437
12438                 powerpc-*-darwin* )
12439         INSTALL_PROGRAM="cp -fp"
12440         INSTALL_DATA="cp -fp"
12441         ;;
12442     *)
12443         ;;
12444 esac
12445
12446 # Extract the first word of "strip", so it can be a program name with args.
12447 set dummy strip; ac_word=$2
12448 echo "$as_me:$LINENO: checking for $ac_word" >&5
12449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12450 if test "${ac_cv_prog_STRIP+set}" = set; then
12451   echo $ECHO_N "(cached) $ECHO_C" >&6
12452 else
12453   if test -n "$STRIP"; then
12454   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12455 else
12456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12457 for as_dir in $PATH
12458 do
12459   IFS=$as_save_IFS
12460   test -z "$as_dir" && as_dir=.
12461   for ac_exec_ext in '' $ac_executable_extensions; do
12462   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12463     ac_cv_prog_STRIP="strip"
12464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12465     break 2
12466   fi
12467 done
12468 done
12469
12470   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12471 fi
12472 fi
12473 STRIP=$ac_cv_prog_STRIP
12474 if test -n "$STRIP"; then
12475   echo "$as_me:$LINENO: result: $STRIP" >&5
12476 echo "${ECHO_T}$STRIP" >&6
12477 else
12478   echo "$as_me:$LINENO: result: no" >&5
12479 echo "${ECHO_T}no" >&6
12480 fi
12481
12482
12483 echo "$as_me:$LINENO: checking if make is GNU make" >&5
12484 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12485 if test "${wx_cv_prog_makeisgnu+set}" = set; then
12486   echo $ECHO_N "(cached) $ECHO_C" >&6
12487 else
12488
12489     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12490             egrep -s GNU > /dev/null); then
12491         wx_cv_prog_makeisgnu="yes"
12492     else
12493         wx_cv_prog_makeisgnu="no"
12494     fi
12495
12496 fi
12497 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12498 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12499
12500 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12501     IF_GNU_MAKE=""
12502 else
12503     IF_GNU_MAKE="#"
12504 fi
12505
12506
12507
12508 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12509 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12510 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12511 if test "${wx_cv_prog_makevpath+set}" = set; then
12512   echo $ECHO_N "(cached) $ECHO_C" >&6
12513 else
12514
12515 cat - << EOF > confMake
12516 check : file
12517         cp \$? \$@
12518         cp \$? final_file
12519 EOF
12520
12521 if test ! -d sub ; then
12522   mkdir sub
12523 fi
12524 echo dummy > sub/file
12525 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12526 RESULT=$?
12527 rm -f sub/file check final_file confMake
12528 rmdir sub
12529 if test "$RESULT" = 0; then
12530   wx_cv_prog_makevpath="yes"
12531 else
12532   wx_cv_prog_makevpath="no"
12533 fi
12534
12535 fi
12536 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12537 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12538
12539 if test "x$wx_cv_prog_makevpath" != "xyes"; then
12540 { { echo "$as_me:$LINENO: error:
12541 You need a make-utility that is able to use the variable
12542 VPATH correctly.
12543 If your version of make does not support VPATH correctly,
12544 please install GNU-make (possibly as gmake), and start
12545 configure with the following command:
12546 export MAKE=gmake; ./configure  for sh-type shells
12547 setenv MAKE gmake; ./configure  for csh-type shells
12548 Also please do remember to use gmake in this case every time
12549 you are trying to compile.
12550 " >&5
12551 echo "$as_me: error:
12552 You need a make-utility that is able to use the variable
12553 VPATH correctly.
12554 If your version of make does not support VPATH correctly,
12555 please install GNU-make (possibly as gmake), and start
12556 configure with the following command:
12557 export MAKE=gmake; ./configure  for sh-type shells
12558 setenv MAKE gmake; ./configure  for csh-type shells
12559 Also please do remember to use gmake in this case every time
12560 you are trying to compile.
12561 " >&2;}
12562    { (exit 1); exit 1; }; }
12563 fi fi
12564 echo "$as_me:$LINENO: checking whether ln -s works" >&5
12565 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12566 LN_S=$as_ln_s
12567 if test "$LN_S" = "ln -s"; then
12568   echo "$as_me:$LINENO: result: yes" >&5
12569 echo "${ECHO_T}yes" >&6
12570 else
12571   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12572 echo "${ECHO_T}no, using $LN_S" >&6
12573 fi
12574
12575
12576
12577 case "${host}" in
12578   *-pc-os2_emx | *-pc-os2-emx )
12579                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12580                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12581 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12582 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12583   echo $ECHO_N "(cached) $ECHO_C" >&6
12584 else
12585   ac_check_lib_save_LIBS=$LIBS
12586 LIBS="-lcExt  $LIBS"
12587 cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h.  */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h.  */
12593
12594 /* Override any gcc2 internal prototype to avoid an error.  */
12595 #ifdef __cplusplus
12596 extern "C"
12597 #endif
12598 /* We use char because int might match the return type of a gcc2
12599    builtin and then its argument prototype would still apply.  */
12600 char drand48 ();
12601 int
12602 main ()
12603 {
12604 drand48 ();
12605   ;
12606   return 0;
12607 }
12608 _ACEOF
12609 rm -f conftest.$ac_objext conftest$ac_exeext
12610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12611   (eval $ac_link) 2>conftest.er1
12612   ac_status=$?
12613   grep -v '^ *+' conftest.er1 >conftest.err
12614   rm -f conftest.er1
12615   cat conftest.err >&5
12616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617   (exit $ac_status); } &&
12618          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620   (eval $ac_try) 2>&5
12621   ac_status=$?
12622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623   (exit $ac_status); }; } &&
12624          { ac_try='test -s conftest$ac_exeext'
12625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626   (eval $ac_try) 2>&5
12627   ac_status=$?
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); }; }; then
12630   ac_cv_lib_cExt_drand48=yes
12631 else
12632   echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12634
12635 ac_cv_lib_cExt_drand48=no
12636 fi
12637 rm -f conftest.err conftest.$ac_objext \
12638       conftest$ac_exeext conftest.$ac_ext
12639 LIBS=$ac_check_lib_save_LIBS
12640 fi
12641 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12642 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12643 if test $ac_cv_lib_cExt_drand48 = yes; then
12644   LIBS="$LIBS -lcExt"
12645 fi
12646
12647       else
12648                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12649       fi
12650       echo "$as_me:$LINENO: checking for gcc version" >&5
12651 echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12652 if test "${wx_cv_gccversion+set}" = set; then
12653   echo $ECHO_N "(cached) $ECHO_C" >&6
12654 else
12655
12656           cat >conftest.$ac_ext <<_ACEOF
12657 /* confdefs.h.  */
12658 _ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h.  */
12662
12663 int
12664 main ()
12665 {
12666
12667                   #if (__GNUC__ < 3)
12668                       #error old gcc
12669                   #endif
12670
12671   ;
12672   return 0;
12673 }
12674 _ACEOF
12675 rm -f conftest.$ac_objext
12676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12677   (eval $ac_compile) 2>conftest.er1
12678   ac_status=$?
12679   grep -v '^ *+' conftest.er1 >conftest.err
12680   rm -f conftest.er1
12681   cat conftest.err >&5
12682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683   (exit $ac_status); } &&
12684          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686   (eval $ac_try) 2>&5
12687   ac_status=$?
12688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689   (exit $ac_status); }; } &&
12690          { ac_try='test -s conftest.$ac_objext'
12691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692   (eval $ac_try) 2>&5
12693   ac_status=$?
12694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695   (exit $ac_status); }; }; then
12696
12697                   cat >conftest.$ac_ext <<_ACEOF
12698 /* confdefs.h.  */
12699 _ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h.  */
12703
12704 int
12705 main ()
12706 {
12707
12708                           #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12709                               #error intermediate gcc
12710                           #endif
12711
12712   ;
12713   return 0;
12714 }
12715 _ACEOF
12716 rm -f conftest.$ac_objext
12717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12718   (eval $ac_compile) 2>conftest.er1
12719   ac_status=$?
12720   grep -v '^ *+' conftest.er1 >conftest.err
12721   rm -f conftest.er1
12722   cat conftest.err >&5
12723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724   (exit $ac_status); } &&
12725          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727   (eval $ac_try) 2>&5
12728   ac_status=$?
12729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730   (exit $ac_status); }; } &&
12731          { ac_try='test -s conftest.$ac_objext'
12732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733   (eval $ac_try) 2>&5
12734   ac_status=$?
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); }; }; then
12737
12738                          wx_cv_gccversion=Innotek
12739
12740 else
12741   echo "$as_me: failed program was:" >&5
12742 sed 's/^/| /' conftest.$ac_ext >&5
12743
12744
12745                          wx_cv_gccversion=3
12746
12747
12748 fi
12749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12750
12751 else
12752   echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12754
12755
12756                   wx_cv_gccversion=2
12757
12758
12759 fi
12760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12761
12762 fi
12763 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12764 echo "${ECHO_T}$wx_cv_gccversion" >&6
12765       if test "$wx_cv_gccversion" = "2"; then
12766           LIBS="$LIBS -lstdcpp"
12767           LDFLAGS="$LDFLAGS -Zsysv-signals"
12768       else
12769           if test "$wx_cv_gccversion" = "3"; then
12770               LIBS="$LIBS -lstdcxx"
12771               LDFLAGS="$LDFLAGS -Zsysv-signals"
12772           else
12773               LIBS="$LIBS -lstdc++"
12774           fi
12775       fi
12776       if test "$wxUSE_OMF" = "yes"; then
12777         LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
12778       fi
12779         ;;
12780   *)
12781
12782
12783
12784       ac_ext=cc
12785 ac_cpp='$CXXCPP $CPPFLAGS'
12786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12789
12790
12791       echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12792 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12793 if test "${ac_cv_string_strcasecmp+set}" = set; then
12794   echo $ECHO_N "(cached) $ECHO_C" >&6
12795 else
12796
12797           cat >conftest.$ac_ext <<_ACEOF
12798 /* confdefs.h.  */
12799 _ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h.  */
12803
12804               #include <string.h>
12805
12806 int
12807 main ()
12808 {
12809
12810                   strcasecmp("foo", "bar");
12811
12812   ;
12813   return 0;
12814 }
12815 _ACEOF
12816 rm -f conftest.$ac_objext conftest$ac_exeext
12817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12818   (eval $ac_link) 2>conftest.er1
12819   ac_status=$?
12820   grep -v '^ *+' conftest.er1 >conftest.err
12821   rm -f conftest.er1
12822   cat conftest.err >&5
12823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824   (exit $ac_status); } &&
12825          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827   (eval $ac_try) 2>&5
12828   ac_status=$?
12829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); }; } &&
12831          { ac_try='test -s conftest$ac_exeext'
12832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833   (eval $ac_try) 2>&5
12834   ac_status=$?
12835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836   (exit $ac_status); }; }; then
12837   ac_cv_string_strcasecmp=yes
12838 else
12839   echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12841
12842 ac_cv_string_strcasecmp=no
12843
12844 fi
12845 rm -f conftest.err conftest.$ac_objext \
12846       conftest$ac_exeext conftest.$ac_ext
12847
12848 fi
12849 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12850 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12851
12852       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12853           cat >>confdefs.h <<\_ACEOF
12854 #define HAVE_STRCASECMP_IN_STRING_H 1
12855 _ACEOF
12856
12857       else
12858           echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12859 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12860 if test "${ac_cv_strings_strcasecmp+set}" = set; then
12861   echo $ECHO_N "(cached) $ECHO_C" >&6
12862 else
12863
12864               cat >conftest.$ac_ext <<_ACEOF
12865 /* confdefs.h.  */
12866 _ACEOF
12867 cat confdefs.h >>conftest.$ac_ext
12868 cat >>conftest.$ac_ext <<_ACEOF
12869 /* end confdefs.h.  */
12870
12871                   #include <strings.h>
12872
12873 int
12874 main ()
12875 {
12876
12877                       strcasecmp("foo", "bar");
12878
12879   ;
12880   return 0;
12881 }
12882 _ACEOF
12883 rm -f conftest.$ac_objext conftest$ac_exeext
12884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12885   (eval $ac_link) 2>conftest.er1
12886   ac_status=$?
12887   grep -v '^ *+' conftest.er1 >conftest.err
12888   rm -f conftest.er1
12889   cat conftest.err >&5
12890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891   (exit $ac_status); } &&
12892          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894   (eval $ac_try) 2>&5
12895   ac_status=$?
12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897   (exit $ac_status); }; } &&
12898          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12904   ac_cv_strings_strcasecmp=yes
12905 else
12906   echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12908
12909 ac_cv_strings_strcasecmp=no
12910
12911 fi
12912 rm -f conftest.err conftest.$ac_objext \
12913       conftest$ac_exeext conftest.$ac_ext
12914
12915 fi
12916 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12917 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12918
12919           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
12920               cat >>confdefs.h <<\_ACEOF
12921 #define HAVE_STRCASECMP_IN_STRINGS_H 1
12922 _ACEOF
12923
12924           else
12925               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12926 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12927    { (exit 1); exit 1; }; }
12928           fi
12929       fi
12930
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 esac
12939
12940
12941 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12942 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12943 if test "${ac_cv_header_stdc+set}" = set; then
12944   echo $ECHO_N "(cached) $ECHO_C" >&6
12945 else
12946   cat >conftest.$ac_ext <<_ACEOF
12947 /* confdefs.h.  */
12948 _ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h.  */
12952 #include <stdlib.h>
12953 #include <stdarg.h>
12954 #include <string.h>
12955 #include <float.h>
12956
12957 int
12958 main ()
12959 {
12960
12961   ;
12962   return 0;
12963 }
12964 _ACEOF
12965 rm -f conftest.$ac_objext
12966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12967   (eval $ac_compile) 2>conftest.er1
12968   ac_status=$?
12969   grep -v '^ *+' conftest.er1 >conftest.err
12970   rm -f conftest.er1
12971   cat conftest.err >&5
12972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973   (exit $ac_status); } &&
12974          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12976   (eval $ac_try) 2>&5
12977   ac_status=$?
12978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); }; } &&
12980          { ac_try='test -s conftest.$ac_objext'
12981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982   (eval $ac_try) 2>&5
12983   ac_status=$?
12984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985   (exit $ac_status); }; }; then
12986   ac_cv_header_stdc=yes
12987 else
12988   echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12990
12991 ac_cv_header_stdc=no
12992 fi
12993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12994
12995 if test $ac_cv_header_stdc = yes; then
12996   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12997   cat >conftest.$ac_ext <<_ACEOF
12998 /* confdefs.h.  */
12999 _ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h.  */
13003 #include <string.h>
13004
13005 _ACEOF
13006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13007   $EGREP "memchr" >/dev/null 2>&1; then
13008   :
13009 else
13010   ac_cv_header_stdc=no
13011 fi
13012 rm -f conftest*
13013
13014 fi
13015
13016 if test $ac_cv_header_stdc = yes; then
13017   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13018   cat >conftest.$ac_ext <<_ACEOF
13019 /* confdefs.h.  */
13020 _ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h.  */
13024 #include <stdlib.h>
13025
13026 _ACEOF
13027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13028   $EGREP "free" >/dev/null 2>&1; then
13029   :
13030 else
13031   ac_cv_header_stdc=no
13032 fi
13033 rm -f conftest*
13034
13035 fi
13036
13037 if test $ac_cv_header_stdc = yes; then
13038   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13039   if test "$cross_compiling" = yes; then
13040   :
13041 else
13042   cat >conftest.$ac_ext <<_ACEOF
13043 /* confdefs.h.  */
13044 _ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h.  */
13048 #include <ctype.h>
13049 #if ((' ' & 0x0FF) == 0x020)
13050 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13051 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13052 #else
13053 # define ISLOWER(c) \
13054                    (('a' <= (c) && (c) <= 'i') \
13055                      || ('j' <= (c) && (c) <= 'r') \
13056                      || ('s' <= (c) && (c) <= 'z'))
13057 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13058 #endif
13059
13060 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13061 int
13062 main ()
13063 {
13064   int i;
13065   for (i = 0; i < 256; i++)
13066     if (XOR (islower (i), ISLOWER (i))
13067         || toupper (i) != TOUPPER (i))
13068       exit(2);
13069   exit (0);
13070 }
13071 _ACEOF
13072 rm -f conftest$ac_exeext
13073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13074   (eval $ac_link) 2>&5
13075   ac_status=$?
13076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079   (eval $ac_try) 2>&5
13080   ac_status=$?
13081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082   (exit $ac_status); }; }; then
13083   :
13084 else
13085   echo "$as_me: program exited with status $ac_status" >&5
13086 echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13088
13089 ( exit $ac_status )
13090 ac_cv_header_stdc=no
13091 fi
13092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13093 fi
13094 fi
13095 fi
13096 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13097 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13098 if test $ac_cv_header_stdc = yes; then
13099
13100 cat >>confdefs.h <<\_ACEOF
13101 #define STDC_HEADERS 1
13102 _ACEOF
13103
13104 fi
13105
13106 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
13117                   inttypes.h stdint.h unistd.h
13118 do
13119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13120 echo "$as_me:$LINENO: checking for $ac_header" >&5
13121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13123   echo $ECHO_N "(cached) $ECHO_C" >&6
13124 else
13125   cat >conftest.$ac_ext <<_ACEOF
13126 /* confdefs.h.  */
13127 _ACEOF
13128 cat confdefs.h >>conftest.$ac_ext
13129 cat >>conftest.$ac_ext <<_ACEOF
13130 /* end confdefs.h.  */
13131 $ac_includes_default
13132
13133 #include <$ac_header>
13134 _ACEOF
13135 rm -f conftest.$ac_objext
13136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13137   (eval $ac_compile) 2>conftest.er1
13138   ac_status=$?
13139   grep -v '^ *+' conftest.er1 >conftest.err
13140   rm -f conftest.er1
13141   cat conftest.err >&5
13142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143   (exit $ac_status); } &&
13144          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146   (eval $ac_try) 2>&5
13147   ac_status=$?
13148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149   (exit $ac_status); }; } &&
13150          { ac_try='test -s conftest.$ac_objext'
13151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152   (eval $ac_try) 2>&5
13153   ac_status=$?
13154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); }; }; then
13156   eval "$as_ac_Header=yes"
13157 else
13158   echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13160
13161 eval "$as_ac_Header=no"
13162 fi
13163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13164 fi
13165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13168   cat >>confdefs.h <<_ACEOF
13169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13170 _ACEOF
13171
13172 fi
13173
13174 done
13175
13176
13177
13178 for ac_header in stdlib.h
13179 do
13180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13182   echo "$as_me:$LINENO: checking for $ac_header" >&5
13183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13185   echo $ECHO_N "(cached) $ECHO_C" >&6
13186 fi
13187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13189 else
13190   # Is the header compilable?
13191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13193 cat >conftest.$ac_ext <<_ACEOF
13194 /* confdefs.h.  */
13195 _ACEOF
13196 cat confdefs.h >>conftest.$ac_ext
13197 cat >>conftest.$ac_ext <<_ACEOF
13198 /* end confdefs.h.  */
13199 $ac_includes_default
13200 #include <$ac_header>
13201 _ACEOF
13202 rm -f conftest.$ac_objext
13203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13204   (eval $ac_compile) 2>conftest.er1
13205   ac_status=$?
13206   grep -v '^ *+' conftest.er1 >conftest.err
13207   rm -f conftest.er1
13208   cat conftest.err >&5
13209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210   (exit $ac_status); } &&
13211          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213   (eval $ac_try) 2>&5
13214   ac_status=$?
13215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216   (exit $ac_status); }; } &&
13217          { ac_try='test -s conftest.$ac_objext'
13218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219   (eval $ac_try) 2>&5
13220   ac_status=$?
13221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222   (exit $ac_status); }; }; then
13223   ac_header_compiler=yes
13224 else
13225   echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13227
13228 ac_header_compiler=no
13229 fi
13230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13231 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13232 echo "${ECHO_T}$ac_header_compiler" >&6
13233
13234 # Is the header present?
13235 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13237 cat >conftest.$ac_ext <<_ACEOF
13238 /* confdefs.h.  */
13239 _ACEOF
13240 cat confdefs.h >>conftest.$ac_ext
13241 cat >>conftest.$ac_ext <<_ACEOF
13242 /* end confdefs.h.  */
13243 #include <$ac_header>
13244 _ACEOF
13245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13246   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13247   ac_status=$?
13248   grep -v '^ *+' conftest.er1 >conftest.err
13249   rm -f conftest.er1
13250   cat conftest.err >&5
13251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252   (exit $ac_status); } >/dev/null; then
13253   if test -s conftest.err; then
13254     ac_cpp_err=$ac_c_preproc_warn_flag
13255     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13256   else
13257     ac_cpp_err=
13258   fi
13259 else
13260   ac_cpp_err=yes
13261 fi
13262 if test -z "$ac_cpp_err"; then
13263   ac_header_preproc=yes
13264 else
13265   echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13267
13268   ac_header_preproc=no
13269 fi
13270 rm -f conftest.err conftest.$ac_ext
13271 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13272 echo "${ECHO_T}$ac_header_preproc" >&6
13273
13274 # So?  What about this header?
13275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13276   yes:no: )
13277     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13278 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13279     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13281     ac_header_preproc=yes
13282     ;;
13283   no:yes:* )
13284     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13286     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13287 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13288     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13289 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13290     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13291 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13294     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13295 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13296     (
13297       cat <<\_ASBOX
13298 ## ----------------------------------------- ##
13299 ## Report this to wx-dev@lists.wxwidgets.org ##
13300 ## ----------------------------------------- ##
13301 _ASBOX
13302     ) |
13303       sed "s/^/$as_me: WARNING:     /" >&2
13304     ;;
13305 esac
13306 echo "$as_me:$LINENO: checking for $ac_header" >&5
13307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13309   echo $ECHO_N "(cached) $ECHO_C" >&6
13310 else
13311   eval "$as_ac_Header=\$ac_header_preproc"
13312 fi
13313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13315
13316 fi
13317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13318   cat >>confdefs.h <<_ACEOF
13319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13320 _ACEOF
13321
13322 fi
13323
13324 done
13325
13326
13327 for ac_header in malloc.h
13328 do
13329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13331   echo "$as_me:$LINENO: checking for $ac_header" >&5
13332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13334   echo $ECHO_N "(cached) $ECHO_C" >&6
13335 fi
13336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13338 else
13339   # Is the header compilable?
13340 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13342 cat >conftest.$ac_ext <<_ACEOF
13343 /* confdefs.h.  */
13344 _ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h.  */
13348 $ac_includes_default
13349 #include <$ac_header>
13350 _ACEOF
13351 rm -f conftest.$ac_objext
13352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13353   (eval $ac_compile) 2>conftest.er1
13354   ac_status=$?
13355   grep -v '^ *+' conftest.er1 >conftest.err
13356   rm -f conftest.er1
13357   cat conftest.err >&5
13358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359   (exit $ac_status); } &&
13360          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362   (eval $ac_try) 2>&5
13363   ac_status=$?
13364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365   (exit $ac_status); }; } &&
13366          { ac_try='test -s conftest.$ac_objext'
13367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368   (eval $ac_try) 2>&5
13369   ac_status=$?
13370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); }; }; then
13372   ac_header_compiler=yes
13373 else
13374   echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13376
13377 ac_header_compiler=no
13378 fi
13379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13381 echo "${ECHO_T}$ac_header_compiler" >&6
13382
13383 # Is the header present?
13384 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13386 cat >conftest.$ac_ext <<_ACEOF
13387 /* confdefs.h.  */
13388 _ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h.  */
13392 #include <$ac_header>
13393 _ACEOF
13394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13395   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13396   ac_status=$?
13397   grep -v '^ *+' conftest.er1 >conftest.err
13398   rm -f conftest.er1
13399   cat conftest.err >&5
13400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401   (exit $ac_status); } >/dev/null; then
13402   if test -s conftest.err; then
13403     ac_cpp_err=$ac_c_preproc_warn_flag
13404     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13405   else
13406     ac_cpp_err=
13407   fi
13408 else
13409   ac_cpp_err=yes
13410 fi
13411 if test -z "$ac_cpp_err"; then
13412   ac_header_preproc=yes
13413 else
13414   echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13416
13417   ac_header_preproc=no
13418 fi
13419 rm -f conftest.err conftest.$ac_ext
13420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13421 echo "${ECHO_T}$ac_header_preproc" >&6
13422
13423 # So?  What about this header?
13424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13425   yes:no: )
13426     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13430     ac_header_preproc=yes
13431     ;;
13432   no:yes:* )
13433     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13435     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13436 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13437     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13439     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13440 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13443     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13445     (
13446       cat <<\_ASBOX
13447 ## ----------------------------------------- ##
13448 ## Report this to wx-dev@lists.wxwidgets.org ##
13449 ## ----------------------------------------- ##
13450 _ASBOX
13451     ) |
13452       sed "s/^/$as_me: WARNING:     /" >&2
13453     ;;
13454 esac
13455 echo "$as_me:$LINENO: checking for $ac_header" >&5
13456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13458   echo $ECHO_N "(cached) $ECHO_C" >&6
13459 else
13460   eval "$as_ac_Header=\$ac_header_preproc"
13461 fi
13462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13464
13465 fi
13466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13467   cat >>confdefs.h <<_ACEOF
13468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13469 _ACEOF
13470
13471 fi
13472
13473 done
13474
13475
13476 for ac_header in unistd.h
13477 do
13478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13480   echo "$as_me:$LINENO: checking for $ac_header" >&5
13481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13483   echo $ECHO_N "(cached) $ECHO_C" >&6
13484 fi
13485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13487 else
13488   # Is the header compilable?
13489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13491 cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h.  */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h.  */
13497 $ac_includes_default
13498 #include <$ac_header>
13499 _ACEOF
13500 rm -f conftest.$ac_objext
13501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13502   (eval $ac_compile) 2>conftest.er1
13503   ac_status=$?
13504   grep -v '^ *+' conftest.er1 >conftest.err
13505   rm -f conftest.er1
13506   cat conftest.err >&5
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); } &&
13509          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13511   (eval $ac_try) 2>&5
13512   ac_status=$?
13513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514   (exit $ac_status); }; } &&
13515          { ac_try='test -s conftest.$ac_objext'
13516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517   (eval $ac_try) 2>&5
13518   ac_status=$?
13519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520   (exit $ac_status); }; }; then
13521   ac_header_compiler=yes
13522 else
13523   echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13525
13526 ac_header_compiler=no
13527 fi
13528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13530 echo "${ECHO_T}$ac_header_compiler" >&6
13531
13532 # Is the header present?
13533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13535 cat >conftest.$ac_ext <<_ACEOF
13536 /* confdefs.h.  */
13537 _ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h.  */
13541 #include <$ac_header>
13542 _ACEOF
13543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13544   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13545   ac_status=$?
13546   grep -v '^ *+' conftest.er1 >conftest.err
13547   rm -f conftest.er1
13548   cat conftest.err >&5
13549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550   (exit $ac_status); } >/dev/null; then
13551   if test -s conftest.err; then
13552     ac_cpp_err=$ac_c_preproc_warn_flag
13553     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13554   else
13555     ac_cpp_err=
13556   fi
13557 else
13558   ac_cpp_err=yes
13559 fi
13560 if test -z "$ac_cpp_err"; then
13561   ac_header_preproc=yes
13562 else
13563   echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13565
13566   ac_header_preproc=no
13567 fi
13568 rm -f conftest.err conftest.$ac_ext
13569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13570 echo "${ECHO_T}$ac_header_preproc" >&6
13571
13572 # So?  What about this header?
13573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13574   yes:no: )
13575     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13579     ac_header_preproc=yes
13580     ;;
13581   no:yes:* )
13582     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13584     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13585 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13586     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13588     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13589 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13592     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13594     (
13595       cat <<\_ASBOX
13596 ## ----------------------------------------- ##
13597 ## Report this to wx-dev@lists.wxwidgets.org ##
13598 ## ----------------------------------------- ##
13599 _ASBOX
13600     ) |
13601       sed "s/^/$as_me: WARNING:     /" >&2
13602     ;;
13603 esac
13604 echo "$as_me:$LINENO: checking for $ac_header" >&5
13605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13607   echo $ECHO_N "(cached) $ECHO_C" >&6
13608 else
13609   eval "$as_ac_Header=\$ac_header_preproc"
13610 fi
13611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13613
13614 fi
13615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13616   cat >>confdefs.h <<_ACEOF
13617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13618 _ACEOF
13619
13620 fi
13621
13622 done
13623
13624
13625 for ac_header in wchar.h
13626 do
13627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13629   echo "$as_me:$LINENO: checking for $ac_header" >&5
13630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13632   echo $ECHO_N "(cached) $ECHO_C" >&6
13633 fi
13634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13636 else
13637   # Is the header compilable?
13638 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13640 cat >conftest.$ac_ext <<_ACEOF
13641 /* confdefs.h.  */
13642 _ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h.  */
13646 $ac_includes_default
13647 #include <$ac_header>
13648 _ACEOF
13649 rm -f conftest.$ac_objext
13650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13651   (eval $ac_compile) 2>conftest.er1
13652   ac_status=$?
13653   grep -v '^ *+' conftest.er1 >conftest.err
13654   rm -f conftest.er1
13655   cat conftest.err >&5
13656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657   (exit $ac_status); } &&
13658          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660   (eval $ac_try) 2>&5
13661   ac_status=$?
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); }; } &&
13664          { ac_try='test -s conftest.$ac_objext'
13665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666   (eval $ac_try) 2>&5
13667   ac_status=$?
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); }; }; then
13670   ac_header_compiler=yes
13671 else
13672   echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13674
13675 ac_header_compiler=no
13676 fi
13677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13679 echo "${ECHO_T}$ac_header_compiler" >&6
13680
13681 # Is the header present?
13682 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13684 cat >conftest.$ac_ext <<_ACEOF
13685 /* confdefs.h.  */
13686 _ACEOF
13687 cat confdefs.h >>conftest.$ac_ext
13688 cat >>conftest.$ac_ext <<_ACEOF
13689 /* end confdefs.h.  */
13690 #include <$ac_header>
13691 _ACEOF
13692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13693   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13694   ac_status=$?
13695   grep -v '^ *+' conftest.er1 >conftest.err
13696   rm -f conftest.er1
13697   cat conftest.err >&5
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); } >/dev/null; then
13700   if test -s conftest.err; then
13701     ac_cpp_err=$ac_c_preproc_warn_flag
13702     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13703   else
13704     ac_cpp_err=
13705   fi
13706 else
13707   ac_cpp_err=yes
13708 fi
13709 if test -z "$ac_cpp_err"; then
13710   ac_header_preproc=yes
13711 else
13712   echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13714
13715   ac_header_preproc=no
13716 fi
13717 rm -f conftest.err conftest.$ac_ext
13718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13719 echo "${ECHO_T}$ac_header_preproc" >&6
13720
13721 # So?  What about this header?
13722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13723   yes:no: )
13724     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13726     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13728     ac_header_preproc=yes
13729     ;;
13730   no:yes:* )
13731     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13733     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13734 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13735     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13737     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13738 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13739     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13741     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13743     (
13744       cat <<\_ASBOX
13745 ## ----------------------------------------- ##
13746 ## Report this to wx-dev@lists.wxwidgets.org ##
13747 ## ----------------------------------------- ##
13748 _ASBOX
13749     ) |
13750       sed "s/^/$as_me: WARNING:     /" >&2
13751     ;;
13752 esac
13753 echo "$as_me:$LINENO: checking for $ac_header" >&5
13754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13756   echo $ECHO_N "(cached) $ECHO_C" >&6
13757 else
13758   eval "$as_ac_Header=\$ac_header_preproc"
13759 fi
13760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13762
13763 fi
13764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13765   cat >>confdefs.h <<_ACEOF
13766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13767 _ACEOF
13768
13769 fi
13770
13771 done
13772
13773
13774 if test "$ac_cv_header_wchar_h" != "yes"; then
13775
13776 for ac_header in wcstr.h
13777 do
13778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13780   echo "$as_me:$LINENO: checking for $ac_header" >&5
13781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13783   echo $ECHO_N "(cached) $ECHO_C" >&6
13784 fi
13785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13787 else
13788   # Is the header compilable?
13789 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13791 cat >conftest.$ac_ext <<_ACEOF
13792 /* confdefs.h.  */
13793 _ACEOF
13794 cat confdefs.h >>conftest.$ac_ext
13795 cat >>conftest.$ac_ext <<_ACEOF
13796 /* end confdefs.h.  */
13797 $ac_includes_default
13798 #include <$ac_header>
13799 _ACEOF
13800 rm -f conftest.$ac_objext
13801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13802   (eval $ac_compile) 2>conftest.er1
13803   ac_status=$?
13804   grep -v '^ *+' conftest.er1 >conftest.err
13805   rm -f conftest.er1
13806   cat conftest.err >&5
13807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808   (exit $ac_status); } &&
13809          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811   (eval $ac_try) 2>&5
13812   ac_status=$?
13813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814   (exit $ac_status); }; } &&
13815          { ac_try='test -s conftest.$ac_objext'
13816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817   (eval $ac_try) 2>&5
13818   ac_status=$?
13819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820   (exit $ac_status); }; }; then
13821   ac_header_compiler=yes
13822 else
13823   echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13825
13826 ac_header_compiler=no
13827 fi
13828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13830 echo "${ECHO_T}$ac_header_compiler" >&6
13831
13832 # Is the header present?
13833 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13835 cat >conftest.$ac_ext <<_ACEOF
13836 /* confdefs.h.  */
13837 _ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h.  */
13841 #include <$ac_header>
13842 _ACEOF
13843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13844   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13845   ac_status=$?
13846   grep -v '^ *+' conftest.er1 >conftest.err
13847   rm -f conftest.er1
13848   cat conftest.err >&5
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); } >/dev/null; then
13851   if test -s conftest.err; then
13852     ac_cpp_err=$ac_c_preproc_warn_flag
13853     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13854   else
13855     ac_cpp_err=
13856   fi
13857 else
13858   ac_cpp_err=yes
13859 fi
13860 if test -z "$ac_cpp_err"; then
13861   ac_header_preproc=yes
13862 else
13863   echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13865
13866   ac_header_preproc=no
13867 fi
13868 rm -f conftest.err conftest.$ac_ext
13869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13870 echo "${ECHO_T}$ac_header_preproc" >&6
13871
13872 # So?  What about this header?
13873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13874   yes:no: )
13875     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13879     ac_header_preproc=yes
13880     ;;
13881   no:yes:* )
13882     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13884     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13885 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13886     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13888     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13889 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13892     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13894     (
13895       cat <<\_ASBOX
13896 ## ----------------------------------------- ##
13897 ## Report this to wx-dev@lists.wxwidgets.org ##
13898 ## ----------------------------------------- ##
13899 _ASBOX
13900     ) |
13901       sed "s/^/$as_me: WARNING:     /" >&2
13902     ;;
13903 esac
13904 echo "$as_me:$LINENO: checking for $ac_header" >&5
13905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13907   echo $ECHO_N "(cached) $ECHO_C" >&6
13908 else
13909   eval "$as_ac_Header=\$ac_header_preproc"
13910 fi
13911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13913
13914 fi
13915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13916   cat >>confdefs.h <<_ACEOF
13917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13918 _ACEOF
13919
13920 fi
13921
13922 done
13923
13924 fi
13925
13926
13927 for ac_header in fnmatch.h
13928 do
13929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13931   echo "$as_me:$LINENO: checking for $ac_header" >&5
13932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13934   echo $ECHO_N "(cached) $ECHO_C" >&6
13935 fi
13936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13938 else
13939   # Is the header compilable?
13940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13942 cat >conftest.$ac_ext <<_ACEOF
13943 /* confdefs.h.  */
13944 _ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h.  */
13948 $ac_includes_default
13949 #include <$ac_header>
13950 _ACEOF
13951 rm -f conftest.$ac_objext
13952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13953   (eval $ac_compile) 2>conftest.er1
13954   ac_status=$?
13955   grep -v '^ *+' conftest.er1 >conftest.err
13956   rm -f conftest.er1
13957   cat conftest.err >&5
13958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); } &&
13960          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962   (eval $ac_try) 2>&5
13963   ac_status=$?
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); }; } &&
13966          { ac_try='test -s conftest.$ac_objext'
13967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968   (eval $ac_try) 2>&5
13969   ac_status=$?
13970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971   (exit $ac_status); }; }; then
13972   ac_header_compiler=yes
13973 else
13974   echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13976
13977 ac_header_compiler=no
13978 fi
13979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13981 echo "${ECHO_T}$ac_header_compiler" >&6
13982
13983 # Is the header present?
13984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13986 cat >conftest.$ac_ext <<_ACEOF
13987 /* confdefs.h.  */
13988 _ACEOF
13989 cat confdefs.h >>conftest.$ac_ext
13990 cat >>conftest.$ac_ext <<_ACEOF
13991 /* end confdefs.h.  */
13992 #include <$ac_header>
13993 _ACEOF
13994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13996   ac_status=$?
13997   grep -v '^ *+' conftest.er1 >conftest.err
13998   rm -f conftest.er1
13999   cat conftest.err >&5
14000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001   (exit $ac_status); } >/dev/null; then
14002   if test -s conftest.err; then
14003     ac_cpp_err=$ac_c_preproc_warn_flag
14004     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14005   else
14006     ac_cpp_err=
14007   fi
14008 else
14009   ac_cpp_err=yes
14010 fi
14011 if test -z "$ac_cpp_err"; then
14012   ac_header_preproc=yes
14013 else
14014   echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14016
14017   ac_header_preproc=no
14018 fi
14019 rm -f conftest.err conftest.$ac_ext
14020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14021 echo "${ECHO_T}$ac_header_preproc" >&6
14022
14023 # So?  What about this header?
14024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14025   yes:no: )
14026     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14030     ac_header_preproc=yes
14031     ;;
14032   no:yes:* )
14033     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14035     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14036 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14037     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14039     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14040 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14043     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14045     (
14046       cat <<\_ASBOX
14047 ## ----------------------------------------- ##
14048 ## Report this to wx-dev@lists.wxwidgets.org ##
14049 ## ----------------------------------------- ##
14050 _ASBOX
14051     ) |
14052       sed "s/^/$as_me: WARNING:     /" >&2
14053     ;;
14054 esac
14055 echo "$as_me:$LINENO: checking for $ac_header" >&5
14056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14058   echo $ECHO_N "(cached) $ECHO_C" >&6
14059 else
14060   eval "$as_ac_Header=\$ac_header_preproc"
14061 fi
14062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14064
14065 fi
14066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14067   cat >>confdefs.h <<_ACEOF
14068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14069 _ACEOF
14070
14071 fi
14072
14073 done
14074
14075
14076 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14077
14078 for ac_func in fnmatch
14079 do
14080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14081 echo "$as_me:$LINENO: checking for $ac_func" >&5
14082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14083 if eval "test \"\${$as_ac_var+set}\" = set"; then
14084   echo $ECHO_N "(cached) $ECHO_C" >&6
14085 else
14086   cat >conftest.$ac_ext <<_ACEOF
14087 /* confdefs.h.  */
14088 _ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h.  */
14092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14094 #define $ac_func innocuous_$ac_func
14095
14096 /* System header to define __stub macros and hopefully few prototypes,
14097     which can conflict with char $ac_func (); below.
14098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14099     <limits.h> exists even on freestanding compilers.  */
14100
14101 #ifdef __STDC__
14102 # include <limits.h>
14103 #else
14104 # include <assert.h>
14105 #endif
14106
14107 #undef $ac_func
14108
14109 /* Override any gcc2 internal prototype to avoid an error.  */
14110 #ifdef __cplusplus
14111 extern "C"
14112 {
14113 #endif
14114 /* We use char because int might match the return type of a gcc2
14115    builtin and then its argument prototype would still apply.  */
14116 char $ac_func ();
14117 /* The GNU C library defines this for functions which it implements
14118     to always fail with ENOSYS.  Some functions are actually named
14119     something starting with __ and the normal name is an alias.  */
14120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14121 choke me
14122 #else
14123 char (*f) () = $ac_func;
14124 #endif
14125 #ifdef __cplusplus
14126 }
14127 #endif
14128
14129 int
14130 main ()
14131 {
14132 return f != $ac_func;
14133   ;
14134   return 0;
14135 }
14136 _ACEOF
14137 rm -f conftest.$ac_objext conftest$ac_exeext
14138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14139   (eval $ac_link) 2>conftest.er1
14140   ac_status=$?
14141   grep -v '^ *+' conftest.er1 >conftest.err
14142   rm -f conftest.er1
14143   cat conftest.err >&5
14144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145   (exit $ac_status); } &&
14146          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148   (eval $ac_try) 2>&5
14149   ac_status=$?
14150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); }; } &&
14152          { ac_try='test -s conftest$ac_exeext'
14153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154   (eval $ac_try) 2>&5
14155   ac_status=$?
14156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157   (exit $ac_status); }; }; then
14158   eval "$as_ac_var=yes"
14159 else
14160   echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14162
14163 eval "$as_ac_var=no"
14164 fi
14165 rm -f conftest.err conftest.$ac_objext \
14166       conftest$ac_exeext conftest.$ac_ext
14167 fi
14168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14170 if test `eval echo '${'$as_ac_var'}'` = yes; then
14171   cat >>confdefs.h <<_ACEOF
14172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14173 _ACEOF
14174
14175 fi
14176 done
14177
14178 fi
14179
14180
14181 for ac_header in langinfo.h
14182 do
14183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14185   echo "$as_me:$LINENO: checking for $ac_header" >&5
14186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14188   echo $ECHO_N "(cached) $ECHO_C" >&6
14189 fi
14190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14192 else
14193   # Is the header compilable?
14194 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14196 cat >conftest.$ac_ext <<_ACEOF
14197 /* confdefs.h.  */
14198 _ACEOF
14199 cat confdefs.h >>conftest.$ac_ext
14200 cat >>conftest.$ac_ext <<_ACEOF
14201 /* end confdefs.h.  */
14202 $ac_includes_default
14203 #include <$ac_header>
14204 _ACEOF
14205 rm -f conftest.$ac_objext
14206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14207   (eval $ac_compile) 2>conftest.er1
14208   ac_status=$?
14209   grep -v '^ *+' conftest.er1 >conftest.err
14210   rm -f conftest.er1
14211   cat conftest.err >&5
14212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213   (exit $ac_status); } &&
14214          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14216   (eval $ac_try) 2>&5
14217   ac_status=$?
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); }; } &&
14220          { ac_try='test -s conftest.$ac_objext'
14221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222   (eval $ac_try) 2>&5
14223   ac_status=$?
14224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225   (exit $ac_status); }; }; then
14226   ac_header_compiler=yes
14227 else
14228   echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.$ac_ext >&5
14230
14231 ac_header_compiler=no
14232 fi
14233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14235 echo "${ECHO_T}$ac_header_compiler" >&6
14236
14237 # Is the header present?
14238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14240 cat >conftest.$ac_ext <<_ACEOF
14241 /* confdefs.h.  */
14242 _ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h.  */
14246 #include <$ac_header>
14247 _ACEOF
14248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14249   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14250   ac_status=$?
14251   grep -v '^ *+' conftest.er1 >conftest.err
14252   rm -f conftest.er1
14253   cat conftest.err >&5
14254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255   (exit $ac_status); } >/dev/null; then
14256   if test -s conftest.err; then
14257     ac_cpp_err=$ac_c_preproc_warn_flag
14258     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14259   else
14260     ac_cpp_err=
14261   fi
14262 else
14263   ac_cpp_err=yes
14264 fi
14265 if test -z "$ac_cpp_err"; then
14266   ac_header_preproc=yes
14267 else
14268   echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14270
14271   ac_header_preproc=no
14272 fi
14273 rm -f conftest.err conftest.$ac_ext
14274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14275 echo "${ECHO_T}$ac_header_preproc" >&6
14276
14277 # So?  What about this header?
14278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14279   yes:no: )
14280     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14284     ac_header_preproc=yes
14285     ;;
14286   no:yes:* )
14287     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14289     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14290 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14291     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14293     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14294 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14297     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14299     (
14300       cat <<\_ASBOX
14301 ## ----------------------------------------- ##
14302 ## Report this to wx-dev@lists.wxwidgets.org ##
14303 ## ----------------------------------------- ##
14304 _ASBOX
14305     ) |
14306       sed "s/^/$as_me: WARNING:     /" >&2
14307     ;;
14308 esac
14309 echo "$as_me:$LINENO: checking for $ac_header" >&5
14310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14312   echo $ECHO_N "(cached) $ECHO_C" >&6
14313 else
14314   eval "$as_ac_Header=\$ac_header_preproc"
14315 fi
14316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14318
14319 fi
14320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14321   cat >>confdefs.h <<_ACEOF
14322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14323 _ACEOF
14324
14325 fi
14326
14327 done
14328
14329
14330 case "${host}" in
14331   *-pc-os2_emx | *-pc-os2-emx )
14332             if test $ac_cv_header_langinfo_h = "yes"; then
14333           LIBS="$LIBS -lintl"
14334       fi
14335   ;;
14336 esac
14337
14338 if test "$wxUSE_GUI" = "yes"; then
14339     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14340
14341 for ac_header in X11/Xlib.h
14342 do
14343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14345   echo "$as_me:$LINENO: checking for $ac_header" >&5
14346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14348   echo $ECHO_N "(cached) $ECHO_C" >&6
14349 fi
14350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14352 else
14353   # Is the header compilable?
14354 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14356 cat >conftest.$ac_ext <<_ACEOF
14357 /* confdefs.h.  */
14358 _ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h.  */
14362 $ac_includes_default
14363 #include <$ac_header>
14364 _ACEOF
14365 rm -f conftest.$ac_objext
14366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14367   (eval $ac_compile) 2>conftest.er1
14368   ac_status=$?
14369   grep -v '^ *+' conftest.er1 >conftest.err
14370   rm -f conftest.er1
14371   cat conftest.err >&5
14372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373   (exit $ac_status); } &&
14374          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376   (eval $ac_try) 2>&5
14377   ac_status=$?
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); }; } &&
14380          { ac_try='test -s conftest.$ac_objext'
14381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382   (eval $ac_try) 2>&5
14383   ac_status=$?
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); }; }; then
14386   ac_header_compiler=yes
14387 else
14388   echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14390
14391 ac_header_compiler=no
14392 fi
14393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14394 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14395 echo "${ECHO_T}$ac_header_compiler" >&6
14396
14397 # Is the header present?
14398 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14400 cat >conftest.$ac_ext <<_ACEOF
14401 /* confdefs.h.  */
14402 _ACEOF
14403 cat confdefs.h >>conftest.$ac_ext
14404 cat >>conftest.$ac_ext <<_ACEOF
14405 /* end confdefs.h.  */
14406 #include <$ac_header>
14407 _ACEOF
14408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14409   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14410   ac_status=$?
14411   grep -v '^ *+' conftest.er1 >conftest.err
14412   rm -f conftest.er1
14413   cat conftest.err >&5
14414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415   (exit $ac_status); } >/dev/null; then
14416   if test -s conftest.err; then
14417     ac_cpp_err=$ac_c_preproc_warn_flag
14418     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14419   else
14420     ac_cpp_err=
14421   fi
14422 else
14423   ac_cpp_err=yes
14424 fi
14425 if test -z "$ac_cpp_err"; then
14426   ac_header_preproc=yes
14427 else
14428   echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14430
14431   ac_header_preproc=no
14432 fi
14433 rm -f conftest.err conftest.$ac_ext
14434 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14435 echo "${ECHO_T}$ac_header_preproc" >&6
14436
14437 # So?  What about this header?
14438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14439   yes:no: )
14440     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14442     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14444     ac_header_preproc=yes
14445     ;;
14446   no:yes:* )
14447     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14449     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14450 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14451     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14453     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14454 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14457     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14459     (
14460       cat <<\_ASBOX
14461 ## ----------------------------------------- ##
14462 ## Report this to wx-dev@lists.wxwidgets.org ##
14463 ## ----------------------------------------- ##
14464 _ASBOX
14465     ) |
14466       sed "s/^/$as_me: WARNING:     /" >&2
14467     ;;
14468 esac
14469 echo "$as_me:$LINENO: checking for $ac_header" >&5
14470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14472   echo $ECHO_N "(cached) $ECHO_C" >&6
14473 else
14474   eval "$as_ac_Header=\$ac_header_preproc"
14475 fi
14476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14478
14479 fi
14480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14481   cat >>confdefs.h <<_ACEOF
14482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14483 _ACEOF
14484
14485 fi
14486
14487 done
14488
14489
14490 for ac_header in X11/XKBlib.h
14491 do
14492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14493 echo "$as_me:$LINENO: checking for $ac_header" >&5
14494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14496   echo $ECHO_N "(cached) $ECHO_C" >&6
14497 else
14498   cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h.  */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h.  */
14504
14505                           #if HAVE_X11_XLIB_H
14506                             #include <X11/Xlib.h>
14507                           #endif
14508
14509
14510 #include <$ac_header>
14511 _ACEOF
14512 rm -f conftest.$ac_objext
14513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14514   (eval $ac_compile) 2>conftest.er1
14515   ac_status=$?
14516   grep -v '^ *+' conftest.er1 >conftest.err
14517   rm -f conftest.er1
14518   cat conftest.err >&5
14519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520   (exit $ac_status); } &&
14521          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523   (eval $ac_try) 2>&5
14524   ac_status=$?
14525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526   (exit $ac_status); }; } &&
14527          { ac_try='test -s conftest.$ac_objext'
14528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529   (eval $ac_try) 2>&5
14530   ac_status=$?
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); }; }; then
14533   eval "$as_ac_Header=yes"
14534 else
14535   echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14537
14538 eval "$as_ac_Header=no"
14539 fi
14540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14541 fi
14542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14545   cat >>confdefs.h <<_ACEOF
14546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14547 _ACEOF
14548
14549 fi
14550
14551 done
14552
14553     fi
14554 fi
14555
14556
14557 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14558 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14559 if test "${ac_cv_c_const+set}" = set; then
14560   echo $ECHO_N "(cached) $ECHO_C" >&6
14561 else
14562   cat >conftest.$ac_ext <<_ACEOF
14563 /* confdefs.h.  */
14564 _ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h.  */
14568
14569 int
14570 main ()
14571 {
14572 /* FIXME: Include the comments suggested by Paul. */
14573 #ifndef __cplusplus
14574   /* Ultrix mips cc rejects this.  */
14575   typedef int charset[2];
14576   const charset x;
14577   /* SunOS 4.1.1 cc rejects this.  */
14578   char const *const *ccp;
14579   char **p;
14580   /* NEC SVR4.0.2 mips cc rejects this.  */
14581   struct point {int x, y;};
14582   static struct point const zero = {0,0};
14583   /* AIX XL C 1.02.0.0 rejects this.
14584      It does not let you subtract one const X* pointer from another in
14585      an arm of an if-expression whose if-part is not a constant
14586      expression */
14587   const char *g = "string";
14588   ccp = &g + (g ? g-g : 0);
14589   /* HPUX 7.0 cc rejects these. */
14590   ++ccp;
14591   p = (char**) ccp;
14592   ccp = (char const *const *) p;
14593   { /* SCO 3.2v4 cc rejects this.  */
14594     char *t;
14595     char const *s = 0 ? (char *) 0 : (char const *) 0;
14596
14597     *t++ = 0;
14598   }
14599   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14600     int x[] = {25, 17};
14601     const int *foo = &x[0];
14602     ++foo;
14603   }
14604   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14605     typedef const int *iptr;
14606     iptr p = 0;
14607     ++p;
14608   }
14609   { /* AIX XL C 1.02.0.0 rejects this saying
14610        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14611     struct s { int j; const int *ap[3]; };
14612     struct s *b; b->j = 5;
14613   }
14614   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14615     const int foo = 10;
14616   }
14617 #endif
14618
14619   ;
14620   return 0;
14621 }
14622 _ACEOF
14623 rm -f conftest.$ac_objext
14624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14625   (eval $ac_compile) 2>conftest.er1
14626   ac_status=$?
14627   grep -v '^ *+' conftest.er1 >conftest.err
14628   rm -f conftest.er1
14629   cat conftest.err >&5
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); } &&
14632          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634   (eval $ac_try) 2>&5
14635   ac_status=$?
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); }; } &&
14638          { ac_try='test -s conftest.$ac_objext'
14639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640   (eval $ac_try) 2>&5
14641   ac_status=$?
14642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643   (exit $ac_status); }; }; then
14644   ac_cv_c_const=yes
14645 else
14646   echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14648
14649 ac_cv_c_const=no
14650 fi
14651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14652 fi
14653 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14654 echo "${ECHO_T}$ac_cv_c_const" >&6
14655 if test $ac_cv_c_const = no; then
14656
14657 cat >>confdefs.h <<\_ACEOF
14658 #define const
14659 _ACEOF
14660
14661 fi
14662
14663 echo "$as_me:$LINENO: checking for inline" >&5
14664 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14665 if test "${ac_cv_c_inline+set}" = set; then
14666   echo $ECHO_N "(cached) $ECHO_C" >&6
14667 else
14668   ac_cv_c_inline=no
14669 for ac_kw in inline __inline__ __inline; do
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 #ifndef __cplusplus
14677 typedef int foo_t;
14678 static $ac_kw foo_t static_foo () {return 0; }
14679 $ac_kw foo_t foo () {return 0; }
14680 #endif
14681
14682 _ACEOF
14683 rm -f conftest.$ac_objext
14684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14685   (eval $ac_compile) 2>conftest.er1
14686   ac_status=$?
14687   grep -v '^ *+' conftest.er1 >conftest.err
14688   rm -f conftest.er1
14689   cat conftest.err >&5
14690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691   (exit $ac_status); } &&
14692          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694   (eval $ac_try) 2>&5
14695   ac_status=$?
14696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697   (exit $ac_status); }; } &&
14698          { ac_try='test -s conftest.$ac_objext'
14699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700   (eval $ac_try) 2>&5
14701   ac_status=$?
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); }; }; then
14704   ac_cv_c_inline=$ac_kw; break
14705 else
14706   echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14708
14709 fi
14710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14711 done
14712
14713 fi
14714 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14715 echo "${ECHO_T}$ac_cv_c_inline" >&6
14716
14717
14718 case $ac_cv_c_inline in
14719   inline | yes) ;;
14720   *)
14721     case $ac_cv_c_inline in
14722       no) ac_val=;;
14723       *) ac_val=$ac_cv_c_inline;;
14724     esac
14725     cat >>confdefs.h <<_ACEOF
14726 #ifndef __cplusplus
14727 #define inline $ac_val
14728 #endif
14729 _ACEOF
14730     ;;
14731 esac
14732
14733
14734 echo "$as_me:$LINENO: checking for char" >&5
14735 echo $ECHO_N "checking for char... $ECHO_C" >&6
14736 if test "${ac_cv_type_char+set}" = set; then
14737   echo $ECHO_N "(cached) $ECHO_C" >&6
14738 else
14739   cat >conftest.$ac_ext <<_ACEOF
14740 /* confdefs.h.  */
14741 _ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h.  */
14745 $ac_includes_default
14746 int
14747 main ()
14748 {
14749 if ((char *) 0)
14750   return 0;
14751 if (sizeof (char))
14752   return 0;
14753   ;
14754   return 0;
14755 }
14756 _ACEOF
14757 rm -f conftest.$ac_objext
14758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14759   (eval $ac_compile) 2>conftest.er1
14760   ac_status=$?
14761   grep -v '^ *+' conftest.er1 >conftest.err
14762   rm -f conftest.er1
14763   cat conftest.err >&5
14764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765   (exit $ac_status); } &&
14766          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768   (eval $ac_try) 2>&5
14769   ac_status=$?
14770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771   (exit $ac_status); }; } &&
14772          { ac_try='test -s conftest.$ac_objext'
14773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774   (eval $ac_try) 2>&5
14775   ac_status=$?
14776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777   (exit $ac_status); }; }; then
14778   ac_cv_type_char=yes
14779 else
14780   echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14782
14783 ac_cv_type_char=no
14784 fi
14785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14786 fi
14787 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14788 echo "${ECHO_T}$ac_cv_type_char" >&6
14789
14790 echo "$as_me:$LINENO: checking size of char" >&5
14791 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14792 if test "${ac_cv_sizeof_char+set}" = set; then
14793   echo $ECHO_N "(cached) $ECHO_C" >&6
14794 else
14795   if test "$ac_cv_type_char" = yes; then
14796   # The cast to unsigned long works around a bug in the HP C Compiler
14797   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14798   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14799   # This bug is HP SR number 8606223364.
14800   if test "$cross_compiling" = yes; then
14801   # Depending upon the size, compute the lo and hi bounds.
14802 cat >conftest.$ac_ext <<_ACEOF
14803 /* confdefs.h.  */
14804 _ACEOF
14805 cat confdefs.h >>conftest.$ac_ext
14806 cat >>conftest.$ac_ext <<_ACEOF
14807 /* end confdefs.h.  */
14808 $ac_includes_default
14809 int
14810 main ()
14811 {
14812 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14813 test_array [0] = 0
14814
14815   ;
14816   return 0;
14817 }
14818 _ACEOF
14819 rm -f conftest.$ac_objext
14820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14821   (eval $ac_compile) 2>conftest.er1
14822   ac_status=$?
14823   grep -v '^ *+' conftest.er1 >conftest.err
14824   rm -f conftest.er1
14825   cat conftest.err >&5
14826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827   (exit $ac_status); } &&
14828          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830   (eval $ac_try) 2>&5
14831   ac_status=$?
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); }; } &&
14834          { ac_try='test -s conftest.$ac_objext'
14835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836   (eval $ac_try) 2>&5
14837   ac_status=$?
14838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839   (exit $ac_status); }; }; then
14840   ac_lo=0 ac_mid=0
14841   while :; do
14842     cat >conftest.$ac_ext <<_ACEOF
14843 /* confdefs.h.  */
14844 _ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h.  */
14848 $ac_includes_default
14849 int
14850 main ()
14851 {
14852 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14853 test_array [0] = 0
14854
14855   ;
14856   return 0;
14857 }
14858 _ACEOF
14859 rm -f conftest.$ac_objext
14860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14861   (eval $ac_compile) 2>conftest.er1
14862   ac_status=$?
14863   grep -v '^ *+' conftest.er1 >conftest.err
14864   rm -f conftest.er1
14865   cat conftest.err >&5
14866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867   (exit $ac_status); } &&
14868          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870   (eval $ac_try) 2>&5
14871   ac_status=$?
14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   (exit $ac_status); }; } &&
14874          { ac_try='test -s conftest.$ac_objext'
14875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876   (eval $ac_try) 2>&5
14877   ac_status=$?
14878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); }; }; then
14880   ac_hi=$ac_mid; break
14881 else
14882   echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14884
14885 ac_lo=`expr $ac_mid + 1`
14886                     if test $ac_lo -le $ac_mid; then
14887                       ac_lo= ac_hi=
14888                       break
14889                     fi
14890                     ac_mid=`expr 2 '*' $ac_mid + 1`
14891 fi
14892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14893   done
14894 else
14895   echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14897
14898 cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h.  */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h.  */
14904 $ac_includes_default
14905 int
14906 main ()
14907 {
14908 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14909 test_array [0] = 0
14910
14911   ;
14912   return 0;
14913 }
14914 _ACEOF
14915 rm -f conftest.$ac_objext
14916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14917   (eval $ac_compile) 2>conftest.er1
14918   ac_status=$?
14919   grep -v '^ *+' conftest.er1 >conftest.err
14920   rm -f conftest.er1
14921   cat conftest.err >&5
14922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923   (exit $ac_status); } &&
14924          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926   (eval $ac_try) 2>&5
14927   ac_status=$?
14928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929   (exit $ac_status); }; } &&
14930          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14936   ac_hi=-1 ac_mid=-1
14937   while :; do
14938     cat >conftest.$ac_ext <<_ACEOF
14939 /* confdefs.h.  */
14940 _ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h.  */
14944 $ac_includes_default
14945 int
14946 main ()
14947 {
14948 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14949 test_array [0] = 0
14950
14951   ;
14952   return 0;
14953 }
14954 _ACEOF
14955 rm -f conftest.$ac_objext
14956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14957   (eval $ac_compile) 2>conftest.er1
14958   ac_status=$?
14959   grep -v '^ *+' conftest.er1 >conftest.err
14960   rm -f conftest.er1
14961   cat conftest.err >&5
14962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963   (exit $ac_status); } &&
14964          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966   (eval $ac_try) 2>&5
14967   ac_status=$?
14968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969   (exit $ac_status); }; } &&
14970          { ac_try='test -s conftest.$ac_objext'
14971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972   (eval $ac_try) 2>&5
14973   ac_status=$?
14974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); }; }; then
14976   ac_lo=$ac_mid; break
14977 else
14978   echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14980
14981 ac_hi=`expr '(' $ac_mid ')' - 1`
14982                        if test $ac_mid -le $ac_hi; then
14983                          ac_lo= ac_hi=
14984                          break
14985                        fi
14986                        ac_mid=`expr 2 '*' $ac_mid`
14987 fi
14988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14989   done
14990 else
14991   echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14993
14994 ac_lo= ac_hi=
14995 fi
14996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14997 fi
14998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14999 # Binary search between lo and hi bounds.
15000 while test "x$ac_lo" != "x$ac_hi"; do
15001   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15002   cat >conftest.$ac_ext <<_ACEOF
15003 /* confdefs.h.  */
15004 _ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h.  */
15008 $ac_includes_default
15009 int
15010 main ()
15011 {
15012 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15013 test_array [0] = 0
15014
15015   ;
15016   return 0;
15017 }
15018 _ACEOF
15019 rm -f conftest.$ac_objext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15021   (eval $ac_compile) 2>conftest.er1
15022   ac_status=$?
15023   grep -v '^ *+' conftest.er1 >conftest.err
15024   rm -f conftest.er1
15025   cat conftest.err >&5
15026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027   (exit $ac_status); } &&
15028          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030   (eval $ac_try) 2>&5
15031   ac_status=$?
15032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033   (exit $ac_status); }; } &&
15034          { ac_try='test -s conftest.$ac_objext'
15035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036   (eval $ac_try) 2>&5
15037   ac_status=$?
15038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); }; }; then
15040   ac_hi=$ac_mid
15041 else
15042   echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15044
15045 ac_lo=`expr '(' $ac_mid ')' + 1`
15046 fi
15047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15048 done
15049 case $ac_lo in
15050 ?*) ac_cv_sizeof_char=$ac_lo;;
15051 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15052 See \`config.log' for more details." >&5
15053 echo "$as_me: error: cannot compute sizeof (char), 77
15054 See \`config.log' for more details." >&2;}
15055    { (exit 1); exit 1; }; } ;;
15056 esac
15057 else
15058   if test "$cross_compiling" = yes; then
15059   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15060 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
15061    { (exit 1); exit 1; }; }
15062 else
15063   cat >conftest.$ac_ext <<_ACEOF
15064 /* confdefs.h.  */
15065 _ACEOF
15066 cat confdefs.h >>conftest.$ac_ext
15067 cat >>conftest.$ac_ext <<_ACEOF
15068 /* end confdefs.h.  */
15069 $ac_includes_default
15070 long longval () { return (long) (sizeof (char)); }
15071 unsigned long ulongval () { return (long) (sizeof (char)); }
15072 #include <stdio.h>
15073 #include <stdlib.h>
15074 int
15075 main ()
15076 {
15077
15078   FILE *f = fopen ("conftest.val", "w");
15079   if (! f)
15080     exit (1);
15081   if (((long) (sizeof (char))) < 0)
15082     {
15083       long i = longval ();
15084       if (i != ((long) (sizeof (char))))
15085         exit (1);
15086       fprintf (f, "%ld\n", i);
15087     }
15088   else
15089     {
15090       unsigned long i = ulongval ();
15091       if (i != ((long) (sizeof (char))))
15092         exit (1);
15093       fprintf (f, "%lu\n", i);
15094     }
15095   exit (ferror (f) || fclose (f) != 0);
15096
15097   ;
15098   return 0;
15099 }
15100 _ACEOF
15101 rm -f conftest$ac_exeext
15102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15103   (eval $ac_link) 2>&5
15104   ac_status=$?
15105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108   (eval $ac_try) 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); }; }; then
15112   ac_cv_sizeof_char=`cat conftest.val`
15113 else
15114   echo "$as_me: program exited with status $ac_status" >&5
15115 echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15117
15118 ( exit $ac_status )
15119 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15120 See \`config.log' for more details." >&5
15121 echo "$as_me: error: cannot compute sizeof (char), 77
15122 See \`config.log' for more details." >&2;}
15123    { (exit 1); exit 1; }; }
15124 fi
15125 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15126 fi
15127 fi
15128 rm -f conftest.val
15129 else
15130   ac_cv_sizeof_char=0
15131 fi
15132 fi
15133 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15134 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15135 cat >>confdefs.h <<_ACEOF
15136 #define SIZEOF_CHAR $ac_cv_sizeof_char
15137 _ACEOF
15138
15139
15140 echo "$as_me:$LINENO: checking for short" >&5
15141 echo $ECHO_N "checking for short... $ECHO_C" >&6
15142 if test "${ac_cv_type_short+set}" = set; then
15143   echo $ECHO_N "(cached) $ECHO_C" >&6
15144 else
15145   cat >conftest.$ac_ext <<_ACEOF
15146 /* confdefs.h.  */
15147 _ACEOF
15148 cat confdefs.h >>conftest.$ac_ext
15149 cat >>conftest.$ac_ext <<_ACEOF
15150 /* end confdefs.h.  */
15151 $ac_includes_default
15152 int
15153 main ()
15154 {
15155 if ((short *) 0)
15156   return 0;
15157 if (sizeof (short))
15158   return 0;
15159   ;
15160   return 0;
15161 }
15162 _ACEOF
15163 rm -f conftest.$ac_objext
15164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15165   (eval $ac_compile) 2>conftest.er1
15166   ac_status=$?
15167   grep -v '^ *+' conftest.er1 >conftest.err
15168   rm -f conftest.er1
15169   cat conftest.err >&5
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); } &&
15172          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174   (eval $ac_try) 2>&5
15175   ac_status=$?
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); }; } &&
15178          { ac_try='test -s conftest.$ac_objext'
15179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180   (eval $ac_try) 2>&5
15181   ac_status=$?
15182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183   (exit $ac_status); }; }; then
15184   ac_cv_type_short=yes
15185 else
15186   echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15188
15189 ac_cv_type_short=no
15190 fi
15191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15192 fi
15193 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15194 echo "${ECHO_T}$ac_cv_type_short" >&6
15195
15196 echo "$as_me:$LINENO: checking size of short" >&5
15197 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15198 if test "${ac_cv_sizeof_short+set}" = set; then
15199   echo $ECHO_N "(cached) $ECHO_C" >&6
15200 else
15201   if test "$ac_cv_type_short" = yes; then
15202   # The cast to unsigned long works around a bug in the HP C Compiler
15203   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15204   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15205   # This bug is HP SR number 8606223364.
15206   if test "$cross_compiling" = yes; then
15207   # Depending upon the size, compute the lo and hi bounds.
15208 cat >conftest.$ac_ext <<_ACEOF
15209 /* confdefs.h.  */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h.  */
15214 $ac_includes_default
15215 int
15216 main ()
15217 {
15218 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15219 test_array [0] = 0
15220
15221   ;
15222   return 0;
15223 }
15224 _ACEOF
15225 rm -f conftest.$ac_objext
15226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15227   (eval $ac_compile) 2>conftest.er1
15228   ac_status=$?
15229   grep -v '^ *+' conftest.er1 >conftest.err
15230   rm -f conftest.er1
15231   cat conftest.err >&5
15232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); } &&
15234          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236   (eval $ac_try) 2>&5
15237   ac_status=$?
15238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239   (exit $ac_status); }; } &&
15240          { ac_try='test -s conftest.$ac_objext'
15241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242   (eval $ac_try) 2>&5
15243   ac_status=$?
15244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245   (exit $ac_status); }; }; then
15246   ac_lo=0 ac_mid=0
15247   while :; do
15248     cat >conftest.$ac_ext <<_ACEOF
15249 /* confdefs.h.  */
15250 _ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h.  */
15254 $ac_includes_default
15255 int
15256 main ()
15257 {
15258 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15259 test_array [0] = 0
15260
15261   ;
15262   return 0;
15263 }
15264 _ACEOF
15265 rm -f conftest.$ac_objext
15266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15267   (eval $ac_compile) 2>conftest.er1
15268   ac_status=$?
15269   grep -v '^ *+' conftest.er1 >conftest.err
15270   rm -f conftest.er1
15271   cat conftest.err >&5
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); } &&
15274          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276   (eval $ac_try) 2>&5
15277   ac_status=$?
15278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279   (exit $ac_status); }; } &&
15280          { ac_try='test -s conftest.$ac_objext'
15281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282   (eval $ac_try) 2>&5
15283   ac_status=$?
15284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285   (exit $ac_status); }; }; then
15286   ac_hi=$ac_mid; break
15287 else
15288   echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15290
15291 ac_lo=`expr $ac_mid + 1`
15292                     if test $ac_lo -le $ac_mid; then
15293                       ac_lo= ac_hi=
15294                       break
15295                     fi
15296                     ac_mid=`expr 2 '*' $ac_mid + 1`
15297 fi
15298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15299   done
15300 else
15301   echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15303
15304 cat >conftest.$ac_ext <<_ACEOF
15305 /* confdefs.h.  */
15306 _ACEOF
15307 cat confdefs.h >>conftest.$ac_ext
15308 cat >>conftest.$ac_ext <<_ACEOF
15309 /* end confdefs.h.  */
15310 $ac_includes_default
15311 int
15312 main ()
15313 {
15314 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15315 test_array [0] = 0
15316
15317   ;
15318   return 0;
15319 }
15320 _ACEOF
15321 rm -f conftest.$ac_objext
15322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15323   (eval $ac_compile) 2>conftest.er1
15324   ac_status=$?
15325   grep -v '^ *+' conftest.er1 >conftest.err
15326   rm -f conftest.er1
15327   cat conftest.err >&5
15328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); } &&
15330          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332   (eval $ac_try) 2>&5
15333   ac_status=$?
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); }; } &&
15336          { ac_try='test -s conftest.$ac_objext'
15337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338   (eval $ac_try) 2>&5
15339   ac_status=$?
15340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341   (exit $ac_status); }; }; then
15342   ac_hi=-1 ac_mid=-1
15343   while :; do
15344     cat >conftest.$ac_ext <<_ACEOF
15345 /* confdefs.h.  */
15346 _ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h.  */
15350 $ac_includes_default
15351 int
15352 main ()
15353 {
15354 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15355 test_array [0] = 0
15356
15357   ;
15358   return 0;
15359 }
15360 _ACEOF
15361 rm -f conftest.$ac_objext
15362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15363   (eval $ac_compile) 2>conftest.er1
15364   ac_status=$?
15365   grep -v '^ *+' conftest.er1 >conftest.err
15366   rm -f conftest.er1
15367   cat conftest.err >&5
15368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369   (exit $ac_status); } &&
15370          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372   (eval $ac_try) 2>&5
15373   ac_status=$?
15374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375   (exit $ac_status); }; } &&
15376          { ac_try='test -s conftest.$ac_objext'
15377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378   (eval $ac_try) 2>&5
15379   ac_status=$?
15380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381   (exit $ac_status); }; }; then
15382   ac_lo=$ac_mid; break
15383 else
15384   echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15386
15387 ac_hi=`expr '(' $ac_mid ')' - 1`
15388                        if test $ac_mid -le $ac_hi; then
15389                          ac_lo= ac_hi=
15390                          break
15391                        fi
15392                        ac_mid=`expr 2 '*' $ac_mid`
15393 fi
15394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15395   done
15396 else
15397   echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15399
15400 ac_lo= ac_hi=
15401 fi
15402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15403 fi
15404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15405 # Binary search between lo and hi bounds.
15406 while test "x$ac_lo" != "x$ac_hi"; do
15407   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15408   cat >conftest.$ac_ext <<_ACEOF
15409 /* confdefs.h.  */
15410 _ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h.  */
15414 $ac_includes_default
15415 int
15416 main ()
15417 {
15418 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15419 test_array [0] = 0
15420
15421   ;
15422   return 0;
15423 }
15424 _ACEOF
15425 rm -f conftest.$ac_objext
15426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15427   (eval $ac_compile) 2>conftest.er1
15428   ac_status=$?
15429   grep -v '^ *+' conftest.er1 >conftest.err
15430   rm -f conftest.er1
15431   cat conftest.err >&5
15432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433   (exit $ac_status); } &&
15434          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436   (eval $ac_try) 2>&5
15437   ac_status=$?
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); }; } &&
15440          { ac_try='test -s conftest.$ac_objext'
15441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442   (eval $ac_try) 2>&5
15443   ac_status=$?
15444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445   (exit $ac_status); }; }; then
15446   ac_hi=$ac_mid
15447 else
15448   echo "$as_me: failed program was:" >&5
15449 sed 's/^/| /' conftest.$ac_ext >&5
15450
15451 ac_lo=`expr '(' $ac_mid ')' + 1`
15452 fi
15453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15454 done
15455 case $ac_lo in
15456 ?*) ac_cv_sizeof_short=$ac_lo;;
15457 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15458 See \`config.log' for more details." >&5
15459 echo "$as_me: error: cannot compute sizeof (short), 77
15460 See \`config.log' for more details." >&2;}
15461    { (exit 1); exit 1; }; } ;;
15462 esac
15463 else
15464   if test "$cross_compiling" = yes; then
15465   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15466 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
15467    { (exit 1); exit 1; }; }
15468 else
15469   cat >conftest.$ac_ext <<_ACEOF
15470 /* confdefs.h.  */
15471 _ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h.  */
15475 $ac_includes_default
15476 long longval () { return (long) (sizeof (short)); }
15477 unsigned long ulongval () { return (long) (sizeof (short)); }
15478 #include <stdio.h>
15479 #include <stdlib.h>
15480 int
15481 main ()
15482 {
15483
15484   FILE *f = fopen ("conftest.val", "w");
15485   if (! f)
15486     exit (1);
15487   if (((long) (sizeof (short))) < 0)
15488     {
15489       long i = longval ();
15490       if (i != ((long) (sizeof (short))))
15491         exit (1);
15492       fprintf (f, "%ld\n", i);
15493     }
15494   else
15495     {
15496       unsigned long i = ulongval ();
15497       if (i != ((long) (sizeof (short))))
15498         exit (1);
15499       fprintf (f, "%lu\n", i);
15500     }
15501   exit (ferror (f) || fclose (f) != 0);
15502
15503   ;
15504   return 0;
15505 }
15506 _ACEOF
15507 rm -f conftest$ac_exeext
15508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15509   (eval $ac_link) 2>&5
15510   ac_status=$?
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514   (eval $ac_try) 2>&5
15515   ac_status=$?
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); }; }; then
15518   ac_cv_sizeof_short=`cat conftest.val`
15519 else
15520   echo "$as_me: program exited with status $ac_status" >&5
15521 echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15523
15524 ( exit $ac_status )
15525 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15526 See \`config.log' for more details." >&5
15527 echo "$as_me: error: cannot compute sizeof (short), 77
15528 See \`config.log' for more details." >&2;}
15529    { (exit 1); exit 1; }; }
15530 fi
15531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15532 fi
15533 fi
15534 rm -f conftest.val
15535 else
15536   ac_cv_sizeof_short=0
15537 fi
15538 fi
15539 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15540 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15541 cat >>confdefs.h <<_ACEOF
15542 #define SIZEOF_SHORT $ac_cv_sizeof_short
15543 _ACEOF
15544
15545
15546 echo "$as_me:$LINENO: checking for void *" >&5
15547 echo $ECHO_N "checking for void *... $ECHO_C" >&6
15548 if test "${ac_cv_type_void_p+set}" = set; then
15549   echo $ECHO_N "(cached) $ECHO_C" >&6
15550 else
15551   cat >conftest.$ac_ext <<_ACEOF
15552 /* confdefs.h.  */
15553 _ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h.  */
15557 $ac_includes_default
15558 int
15559 main ()
15560 {
15561 if ((void * *) 0)
15562   return 0;
15563 if (sizeof (void *))
15564   return 0;
15565   ;
15566   return 0;
15567 }
15568 _ACEOF
15569 rm -f conftest.$ac_objext
15570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15571   (eval $ac_compile) 2>conftest.er1
15572   ac_status=$?
15573   grep -v '^ *+' conftest.er1 >conftest.err
15574   rm -f conftest.er1
15575   cat conftest.err >&5
15576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577   (exit $ac_status); } &&
15578          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580   (eval $ac_try) 2>&5
15581   ac_status=$?
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); }; } &&
15584          { ac_try='test -s conftest.$ac_objext'
15585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586   (eval $ac_try) 2>&5
15587   ac_status=$?
15588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589   (exit $ac_status); }; }; then
15590   ac_cv_type_void_p=yes
15591 else
15592   echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15594
15595 ac_cv_type_void_p=no
15596 fi
15597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15598 fi
15599 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15600 echo "${ECHO_T}$ac_cv_type_void_p" >&6
15601
15602 echo "$as_me:$LINENO: checking size of void *" >&5
15603 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15604 if test "${ac_cv_sizeof_void_p+set}" = set; then
15605   echo $ECHO_N "(cached) $ECHO_C" >&6
15606 else
15607   if test "$ac_cv_type_void_p" = yes; then
15608   # The cast to unsigned long works around a bug in the HP C Compiler
15609   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15610   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15611   # This bug is HP SR number 8606223364.
15612   if test "$cross_compiling" = yes; then
15613   # Depending upon the size, compute the lo and hi bounds.
15614 cat >conftest.$ac_ext <<_ACEOF
15615 /* confdefs.h.  */
15616 _ACEOF
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h.  */
15620 $ac_includes_default
15621 int
15622 main ()
15623 {
15624 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15625 test_array [0] = 0
15626
15627   ;
15628   return 0;
15629 }
15630 _ACEOF
15631 rm -f conftest.$ac_objext
15632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15633   (eval $ac_compile) 2>conftest.er1
15634   ac_status=$?
15635   grep -v '^ *+' conftest.er1 >conftest.err
15636   rm -f conftest.er1
15637   cat conftest.err >&5
15638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639   (exit $ac_status); } &&
15640          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642   (eval $ac_try) 2>&5
15643   ac_status=$?
15644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645   (exit $ac_status); }; } &&
15646          { ac_try='test -s conftest.$ac_objext'
15647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648   (eval $ac_try) 2>&5
15649   ac_status=$?
15650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651   (exit $ac_status); }; }; then
15652   ac_lo=0 ac_mid=0
15653   while :; do
15654     cat >conftest.$ac_ext <<_ACEOF
15655 /* confdefs.h.  */
15656 _ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h.  */
15660 $ac_includes_default
15661 int
15662 main ()
15663 {
15664 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15665 test_array [0] = 0
15666
15667   ;
15668   return 0;
15669 }
15670 _ACEOF
15671 rm -f conftest.$ac_objext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15673   (eval $ac_compile) 2>conftest.er1
15674   ac_status=$?
15675   grep -v '^ *+' conftest.er1 >conftest.err
15676   rm -f conftest.er1
15677   cat conftest.err >&5
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); } &&
15680          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682   (eval $ac_try) 2>&5
15683   ac_status=$?
15684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685   (exit $ac_status); }; } &&
15686          { ac_try='test -s conftest.$ac_objext'
15687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688   (eval $ac_try) 2>&5
15689   ac_status=$?
15690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691   (exit $ac_status); }; }; then
15692   ac_hi=$ac_mid; break
15693 else
15694   echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.$ac_ext >&5
15696
15697 ac_lo=`expr $ac_mid + 1`
15698                     if test $ac_lo -le $ac_mid; then
15699                       ac_lo= ac_hi=
15700                       break
15701                     fi
15702                     ac_mid=`expr 2 '*' $ac_mid + 1`
15703 fi
15704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15705   done
15706 else
15707   echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15709
15710 cat >conftest.$ac_ext <<_ACEOF
15711 /* confdefs.h.  */
15712 _ACEOF
15713 cat confdefs.h >>conftest.$ac_ext
15714 cat >>conftest.$ac_ext <<_ACEOF
15715 /* end confdefs.h.  */
15716 $ac_includes_default
15717 int
15718 main ()
15719 {
15720 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15721 test_array [0] = 0
15722
15723   ;
15724   return 0;
15725 }
15726 _ACEOF
15727 rm -f conftest.$ac_objext
15728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15729   (eval $ac_compile) 2>conftest.er1
15730   ac_status=$?
15731   grep -v '^ *+' conftest.er1 >conftest.err
15732   rm -f conftest.er1
15733   cat conftest.err >&5
15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735   (exit $ac_status); } &&
15736          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738   (eval $ac_try) 2>&5
15739   ac_status=$?
15740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741   (exit $ac_status); }; } &&
15742          { ac_try='test -s conftest.$ac_objext'
15743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744   (eval $ac_try) 2>&5
15745   ac_status=$?
15746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747   (exit $ac_status); }; }; then
15748   ac_hi=-1 ac_mid=-1
15749   while :; do
15750     cat >conftest.$ac_ext <<_ACEOF
15751 /* confdefs.h.  */
15752 _ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h.  */
15756 $ac_includes_default
15757 int
15758 main ()
15759 {
15760 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15761 test_array [0] = 0
15762
15763   ;
15764   return 0;
15765 }
15766 _ACEOF
15767 rm -f conftest.$ac_objext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15769   (eval $ac_compile) 2>conftest.er1
15770   ac_status=$?
15771   grep -v '^ *+' conftest.er1 >conftest.err
15772   rm -f conftest.er1
15773   cat conftest.err >&5
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); } &&
15776          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778   (eval $ac_try) 2>&5
15779   ac_status=$?
15780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781   (exit $ac_status); }; } &&
15782          { ac_try='test -s conftest.$ac_objext'
15783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784   (eval $ac_try) 2>&5
15785   ac_status=$?
15786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787   (exit $ac_status); }; }; then
15788   ac_lo=$ac_mid; break
15789 else
15790   echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15792
15793 ac_hi=`expr '(' $ac_mid ')' - 1`
15794                        if test $ac_mid -le $ac_hi; then
15795                          ac_lo= ac_hi=
15796                          break
15797                        fi
15798                        ac_mid=`expr 2 '*' $ac_mid`
15799 fi
15800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15801   done
15802 else
15803   echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15805
15806 ac_lo= ac_hi=
15807 fi
15808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15809 fi
15810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15811 # Binary search between lo and hi bounds.
15812 while test "x$ac_lo" != "x$ac_hi"; do
15813   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15814   cat >conftest.$ac_ext <<_ACEOF
15815 /* confdefs.h.  */
15816 _ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h.  */
15820 $ac_includes_default
15821 int
15822 main ()
15823 {
15824 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15825 test_array [0] = 0
15826
15827   ;
15828   return 0;
15829 }
15830 _ACEOF
15831 rm -f conftest.$ac_objext
15832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15833   (eval $ac_compile) 2>conftest.er1
15834   ac_status=$?
15835   grep -v '^ *+' conftest.er1 >conftest.err
15836   rm -f conftest.er1
15837   cat conftest.err >&5
15838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); } &&
15840          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842   (eval $ac_try) 2>&5
15843   ac_status=$?
15844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845   (exit $ac_status); }; } &&
15846          { ac_try='test -s conftest.$ac_objext'
15847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848   (eval $ac_try) 2>&5
15849   ac_status=$?
15850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851   (exit $ac_status); }; }; then
15852   ac_hi=$ac_mid
15853 else
15854   echo "$as_me: failed program was:" >&5
15855 sed 's/^/| /' conftest.$ac_ext >&5
15856
15857 ac_lo=`expr '(' $ac_mid ')' + 1`
15858 fi
15859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15860 done
15861 case $ac_lo in
15862 ?*) ac_cv_sizeof_void_p=$ac_lo;;
15863 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15864 See \`config.log' for more details." >&5
15865 echo "$as_me: error: cannot compute sizeof (void *), 77
15866 See \`config.log' for more details." >&2;}
15867    { (exit 1); exit 1; }; } ;;
15868 esac
15869 else
15870   if test "$cross_compiling" = yes; then
15871   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15872 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
15873    { (exit 1); exit 1; }; }
15874 else
15875   cat >conftest.$ac_ext <<_ACEOF
15876 /* confdefs.h.  */
15877 _ACEOF
15878 cat confdefs.h >>conftest.$ac_ext
15879 cat >>conftest.$ac_ext <<_ACEOF
15880 /* end confdefs.h.  */
15881 $ac_includes_default
15882 long longval () { return (long) (sizeof (void *)); }
15883 unsigned long ulongval () { return (long) (sizeof (void *)); }
15884 #include <stdio.h>
15885 #include <stdlib.h>
15886 int
15887 main ()
15888 {
15889
15890   FILE *f = fopen ("conftest.val", "w");
15891   if (! f)
15892     exit (1);
15893   if (((long) (sizeof (void *))) < 0)
15894     {
15895       long i = longval ();
15896       if (i != ((long) (sizeof (void *))))
15897         exit (1);
15898       fprintf (f, "%ld\n", i);
15899     }
15900   else
15901     {
15902       unsigned long i = ulongval ();
15903       if (i != ((long) (sizeof (void *))))
15904         exit (1);
15905       fprintf (f, "%lu\n", i);
15906     }
15907   exit (ferror (f) || fclose (f) != 0);
15908
15909   ;
15910   return 0;
15911 }
15912 _ACEOF
15913 rm -f conftest$ac_exeext
15914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15915   (eval $ac_link) 2>&5
15916   ac_status=$?
15917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15920   (eval $ac_try) 2>&5
15921   ac_status=$?
15922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923   (exit $ac_status); }; }; then
15924   ac_cv_sizeof_void_p=`cat conftest.val`
15925 else
15926   echo "$as_me: program exited with status $ac_status" >&5
15927 echo "$as_me: failed program was:" >&5
15928 sed 's/^/| /' conftest.$ac_ext >&5
15929
15930 ( exit $ac_status )
15931 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15932 See \`config.log' for more details." >&5
15933 echo "$as_me: error: cannot compute sizeof (void *), 77
15934 See \`config.log' for more details." >&2;}
15935    { (exit 1); exit 1; }; }
15936 fi
15937 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15938 fi
15939 fi
15940 rm -f conftest.val
15941 else
15942   ac_cv_sizeof_void_p=0
15943 fi
15944 fi
15945 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15946 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15947 cat >>confdefs.h <<_ACEOF
15948 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15949 _ACEOF
15950
15951
15952 echo "$as_me:$LINENO: checking for int" >&5
15953 echo $ECHO_N "checking for int... $ECHO_C" >&6
15954 if test "${ac_cv_type_int+set}" = set; then
15955   echo $ECHO_N "(cached) $ECHO_C" >&6
15956 else
15957   cat >conftest.$ac_ext <<_ACEOF
15958 /* confdefs.h.  */
15959 _ACEOF
15960 cat confdefs.h >>conftest.$ac_ext
15961 cat >>conftest.$ac_ext <<_ACEOF
15962 /* end confdefs.h.  */
15963 $ac_includes_default
15964 int
15965 main ()
15966 {
15967 if ((int *) 0)
15968   return 0;
15969 if (sizeof (int))
15970   return 0;
15971   ;
15972   return 0;
15973 }
15974 _ACEOF
15975 rm -f conftest.$ac_objext
15976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15977   (eval $ac_compile) 2>conftest.er1
15978   ac_status=$?
15979   grep -v '^ *+' conftest.er1 >conftest.err
15980   rm -f conftest.er1
15981   cat conftest.err >&5
15982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983   (exit $ac_status); } &&
15984          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986   (eval $ac_try) 2>&5
15987   ac_status=$?
15988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989   (exit $ac_status); }; } &&
15990          { ac_try='test -s conftest.$ac_objext'
15991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992   (eval $ac_try) 2>&5
15993   ac_status=$?
15994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995   (exit $ac_status); }; }; then
15996   ac_cv_type_int=yes
15997 else
15998   echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16000
16001 ac_cv_type_int=no
16002 fi
16003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16004 fi
16005 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16006 echo "${ECHO_T}$ac_cv_type_int" >&6
16007
16008 echo "$as_me:$LINENO: checking size of int" >&5
16009 echo $ECHO_N "checking size of int... $ECHO_C" >&6
16010 if test "${ac_cv_sizeof_int+set}" = set; then
16011   echo $ECHO_N "(cached) $ECHO_C" >&6
16012 else
16013   if test "$ac_cv_type_int" = yes; then
16014   # The cast to unsigned long works around a bug in the HP C Compiler
16015   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16016   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16017   # This bug is HP SR number 8606223364.
16018   if test "$cross_compiling" = yes; then
16019   # Depending upon the size, compute the lo and hi bounds.
16020 cat >conftest.$ac_ext <<_ACEOF
16021 /* confdefs.h.  */
16022 _ACEOF
16023 cat confdefs.h >>conftest.$ac_ext
16024 cat >>conftest.$ac_ext <<_ACEOF
16025 /* end confdefs.h.  */
16026 $ac_includes_default
16027 int
16028 main ()
16029 {
16030 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16031 test_array [0] = 0
16032
16033   ;
16034   return 0;
16035 }
16036 _ACEOF
16037 rm -f conftest.$ac_objext
16038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16039   (eval $ac_compile) 2>conftest.er1
16040   ac_status=$?
16041   grep -v '^ *+' conftest.er1 >conftest.err
16042   rm -f conftest.er1
16043   cat conftest.err >&5
16044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045   (exit $ac_status); } &&
16046          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048   (eval $ac_try) 2>&5
16049   ac_status=$?
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); }; } &&
16052          { ac_try='test -s conftest.$ac_objext'
16053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054   (eval $ac_try) 2>&5
16055   ac_status=$?
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); }; }; then
16058   ac_lo=0 ac_mid=0
16059   while :; do
16060     cat >conftest.$ac_ext <<_ACEOF
16061 /* confdefs.h.  */
16062 _ACEOF
16063 cat confdefs.h >>conftest.$ac_ext
16064 cat >>conftest.$ac_ext <<_ACEOF
16065 /* end confdefs.h.  */
16066 $ac_includes_default
16067 int
16068 main ()
16069 {
16070 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16071 test_array [0] = 0
16072
16073   ;
16074   return 0;
16075 }
16076 _ACEOF
16077 rm -f conftest.$ac_objext
16078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16079   (eval $ac_compile) 2>conftest.er1
16080   ac_status=$?
16081   grep -v '^ *+' conftest.er1 >conftest.err
16082   rm -f conftest.er1
16083   cat conftest.err >&5
16084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085   (exit $ac_status); } &&
16086          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088   (eval $ac_try) 2>&5
16089   ac_status=$?
16090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091   (exit $ac_status); }; } &&
16092          { ac_try='test -s conftest.$ac_objext'
16093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094   (eval $ac_try) 2>&5
16095   ac_status=$?
16096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097   (exit $ac_status); }; }; then
16098   ac_hi=$ac_mid; break
16099 else
16100   echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16102
16103 ac_lo=`expr $ac_mid + 1`
16104                     if test $ac_lo -le $ac_mid; then
16105                       ac_lo= ac_hi=
16106                       break
16107                     fi
16108                     ac_mid=`expr 2 '*' $ac_mid + 1`
16109 fi
16110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16111   done
16112 else
16113   echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16115
16116 cat >conftest.$ac_ext <<_ACEOF
16117 /* confdefs.h.  */
16118 _ACEOF
16119 cat confdefs.h >>conftest.$ac_ext
16120 cat >>conftest.$ac_ext <<_ACEOF
16121 /* end confdefs.h.  */
16122 $ac_includes_default
16123 int
16124 main ()
16125 {
16126 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16127 test_array [0] = 0
16128
16129   ;
16130   return 0;
16131 }
16132 _ACEOF
16133 rm -f conftest.$ac_objext
16134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16135   (eval $ac_compile) 2>conftest.er1
16136   ac_status=$?
16137   grep -v '^ *+' conftest.er1 >conftest.err
16138   rm -f conftest.er1
16139   cat conftest.err >&5
16140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141   (exit $ac_status); } &&
16142          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144   (eval $ac_try) 2>&5
16145   ac_status=$?
16146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147   (exit $ac_status); }; } &&
16148          { ac_try='test -s conftest.$ac_objext'
16149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150   (eval $ac_try) 2>&5
16151   ac_status=$?
16152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153   (exit $ac_status); }; }; then
16154   ac_hi=-1 ac_mid=-1
16155   while :; do
16156     cat >conftest.$ac_ext <<_ACEOF
16157 /* confdefs.h.  */
16158 _ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h.  */
16162 $ac_includes_default
16163 int
16164 main ()
16165 {
16166 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16167 test_array [0] = 0
16168
16169   ;
16170   return 0;
16171 }
16172 _ACEOF
16173 rm -f conftest.$ac_objext
16174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16175   (eval $ac_compile) 2>conftest.er1
16176   ac_status=$?
16177   grep -v '^ *+' conftest.er1 >conftest.err
16178   rm -f conftest.er1
16179   cat conftest.err >&5
16180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181   (exit $ac_status); } &&
16182          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16184   (eval $ac_try) 2>&5
16185   ac_status=$?
16186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187   (exit $ac_status); }; } &&
16188          { ac_try='test -s conftest.$ac_objext'
16189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190   (eval $ac_try) 2>&5
16191   ac_status=$?
16192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193   (exit $ac_status); }; }; then
16194   ac_lo=$ac_mid; break
16195 else
16196   echo "$as_me: failed program was:" >&5
16197 sed 's/^/| /' conftest.$ac_ext >&5
16198
16199 ac_hi=`expr '(' $ac_mid ')' - 1`
16200                        if test $ac_mid -le $ac_hi; then
16201                          ac_lo= ac_hi=
16202                          break
16203                        fi
16204                        ac_mid=`expr 2 '*' $ac_mid`
16205 fi
16206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16207   done
16208 else
16209   echo "$as_me: failed program was:" >&5
16210 sed 's/^/| /' conftest.$ac_ext >&5
16211
16212 ac_lo= ac_hi=
16213 fi
16214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16215 fi
16216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16217 # Binary search between lo and hi bounds.
16218 while test "x$ac_lo" != "x$ac_hi"; do
16219   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16220   cat >conftest.$ac_ext <<_ACEOF
16221 /* confdefs.h.  */
16222 _ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h.  */
16226 $ac_includes_default
16227 int
16228 main ()
16229 {
16230 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16231 test_array [0] = 0
16232
16233   ;
16234   return 0;
16235 }
16236 _ACEOF
16237 rm -f conftest.$ac_objext
16238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16239   (eval $ac_compile) 2>conftest.er1
16240   ac_status=$?
16241   grep -v '^ *+' conftest.er1 >conftest.err
16242   rm -f conftest.er1
16243   cat conftest.err >&5
16244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245   (exit $ac_status); } &&
16246          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16248   (eval $ac_try) 2>&5
16249   ac_status=$?
16250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251   (exit $ac_status); }; } &&
16252          { ac_try='test -s conftest.$ac_objext'
16253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254   (eval $ac_try) 2>&5
16255   ac_status=$?
16256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257   (exit $ac_status); }; }; then
16258   ac_hi=$ac_mid
16259 else
16260   echo "$as_me: failed program was:" >&5
16261 sed 's/^/| /' conftest.$ac_ext >&5
16262
16263 ac_lo=`expr '(' $ac_mid ')' + 1`
16264 fi
16265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16266 done
16267 case $ac_lo in
16268 ?*) ac_cv_sizeof_int=$ac_lo;;
16269 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16270 See \`config.log' for more details." >&5
16271 echo "$as_me: error: cannot compute sizeof (int), 77
16272 See \`config.log' for more details." >&2;}
16273    { (exit 1); exit 1; }; } ;;
16274 esac
16275 else
16276   if test "$cross_compiling" = yes; then
16277   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16278 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16279    { (exit 1); exit 1; }; }
16280 else
16281   cat >conftest.$ac_ext <<_ACEOF
16282 /* confdefs.h.  */
16283 _ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h.  */
16287 $ac_includes_default
16288 long longval () { return (long) (sizeof (int)); }
16289 unsigned long ulongval () { return (long) (sizeof (int)); }
16290 #include <stdio.h>
16291 #include <stdlib.h>
16292 int
16293 main ()
16294 {
16295
16296   FILE *f = fopen ("conftest.val", "w");
16297   if (! f)
16298     exit (1);
16299   if (((long) (sizeof (int))) < 0)
16300     {
16301       long i = longval ();
16302       if (i != ((long) (sizeof (int))))
16303         exit (1);
16304       fprintf (f, "%ld\n", i);
16305     }
16306   else
16307     {
16308       unsigned long i = ulongval ();
16309       if (i != ((long) (sizeof (int))))
16310         exit (1);
16311       fprintf (f, "%lu\n", i);
16312     }
16313   exit (ferror (f) || fclose (f) != 0);
16314
16315   ;
16316   return 0;
16317 }
16318 _ACEOF
16319 rm -f conftest$ac_exeext
16320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16321   (eval $ac_link) 2>&5
16322   ac_status=$?
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326   (eval $ac_try) 2>&5
16327   ac_status=$?
16328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329   (exit $ac_status); }; }; then
16330   ac_cv_sizeof_int=`cat conftest.val`
16331 else
16332   echo "$as_me: program exited with status $ac_status" >&5
16333 echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16335
16336 ( exit $ac_status )
16337 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16338 See \`config.log' for more details." >&5
16339 echo "$as_me: error: cannot compute sizeof (int), 77
16340 See \`config.log' for more details." >&2;}
16341    { (exit 1); exit 1; }; }
16342 fi
16343 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16344 fi
16345 fi
16346 rm -f conftest.val
16347 else
16348   ac_cv_sizeof_int=0
16349 fi
16350 fi
16351 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16352 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16353 cat >>confdefs.h <<_ACEOF
16354 #define SIZEOF_INT $ac_cv_sizeof_int
16355 _ACEOF
16356
16357
16358 echo "$as_me:$LINENO: checking for long" >&5
16359 echo $ECHO_N "checking for long... $ECHO_C" >&6
16360 if test "${ac_cv_type_long+set}" = set; then
16361   echo $ECHO_N "(cached) $ECHO_C" >&6
16362 else
16363   cat >conftest.$ac_ext <<_ACEOF
16364 /* confdefs.h.  */
16365 _ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h.  */
16369 $ac_includes_default
16370 int
16371 main ()
16372 {
16373 if ((long *) 0)
16374   return 0;
16375 if (sizeof (long))
16376   return 0;
16377   ;
16378   return 0;
16379 }
16380 _ACEOF
16381 rm -f conftest.$ac_objext
16382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16383   (eval $ac_compile) 2>conftest.er1
16384   ac_status=$?
16385   grep -v '^ *+' conftest.er1 >conftest.err
16386   rm -f conftest.er1
16387   cat conftest.err >&5
16388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389   (exit $ac_status); } &&
16390          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392   (eval $ac_try) 2>&5
16393   ac_status=$?
16394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); }; } &&
16396          { ac_try='test -s conftest.$ac_objext'
16397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398   (eval $ac_try) 2>&5
16399   ac_status=$?
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); }; }; then
16402   ac_cv_type_long=yes
16403 else
16404   echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16406
16407 ac_cv_type_long=no
16408 fi
16409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16410 fi
16411 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16412 echo "${ECHO_T}$ac_cv_type_long" >&6
16413
16414 echo "$as_me:$LINENO: checking size of long" >&5
16415 echo $ECHO_N "checking size of long... $ECHO_C" >&6
16416 if test "${ac_cv_sizeof_long+set}" = set; then
16417   echo $ECHO_N "(cached) $ECHO_C" >&6
16418 else
16419   if test "$ac_cv_type_long" = yes; then
16420   # The cast to unsigned long works around a bug in the HP C Compiler
16421   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16422   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16423   # This bug is HP SR number 8606223364.
16424   if test "$cross_compiling" = yes; then
16425   # Depending upon the size, compute the lo and hi bounds.
16426 cat >conftest.$ac_ext <<_ACEOF
16427 /* confdefs.h.  */
16428 _ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h.  */
16432 $ac_includes_default
16433 int
16434 main ()
16435 {
16436 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16437 test_array [0] = 0
16438
16439   ;
16440   return 0;
16441 }
16442 _ACEOF
16443 rm -f conftest.$ac_objext
16444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16445   (eval $ac_compile) 2>conftest.er1
16446   ac_status=$?
16447   grep -v '^ *+' conftest.er1 >conftest.err
16448   rm -f conftest.er1
16449   cat conftest.err >&5
16450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451   (exit $ac_status); } &&
16452          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454   (eval $ac_try) 2>&5
16455   ac_status=$?
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); }; } &&
16458          { ac_try='test -s conftest.$ac_objext'
16459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460   (eval $ac_try) 2>&5
16461   ac_status=$?
16462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); }; }; then
16464   ac_lo=0 ac_mid=0
16465   while :; do
16466     cat >conftest.$ac_ext <<_ACEOF
16467 /* confdefs.h.  */
16468 _ACEOF
16469 cat confdefs.h >>conftest.$ac_ext
16470 cat >>conftest.$ac_ext <<_ACEOF
16471 /* end confdefs.h.  */
16472 $ac_includes_default
16473 int
16474 main ()
16475 {
16476 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16477 test_array [0] = 0
16478
16479   ;
16480   return 0;
16481 }
16482 _ACEOF
16483 rm -f conftest.$ac_objext
16484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16485   (eval $ac_compile) 2>conftest.er1
16486   ac_status=$?
16487   grep -v '^ *+' conftest.er1 >conftest.err
16488   rm -f conftest.er1
16489   cat conftest.err >&5
16490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491   (exit $ac_status); } &&
16492          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494   (eval $ac_try) 2>&5
16495   ac_status=$?
16496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497   (exit $ac_status); }; } &&
16498          { ac_try='test -s conftest.$ac_objext'
16499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500   (eval $ac_try) 2>&5
16501   ac_status=$?
16502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503   (exit $ac_status); }; }; then
16504   ac_hi=$ac_mid; break
16505 else
16506   echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16508
16509 ac_lo=`expr $ac_mid + 1`
16510                     if test $ac_lo -le $ac_mid; then
16511                       ac_lo= ac_hi=
16512                       break
16513                     fi
16514                     ac_mid=`expr 2 '*' $ac_mid + 1`
16515 fi
16516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16517   done
16518 else
16519   echo "$as_me: failed program was:" >&5
16520 sed 's/^/| /' conftest.$ac_ext >&5
16521
16522 cat >conftest.$ac_ext <<_ACEOF
16523 /* confdefs.h.  */
16524 _ACEOF
16525 cat confdefs.h >>conftest.$ac_ext
16526 cat >>conftest.$ac_ext <<_ACEOF
16527 /* end confdefs.h.  */
16528 $ac_includes_default
16529 int
16530 main ()
16531 {
16532 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16533 test_array [0] = 0
16534
16535   ;
16536   return 0;
16537 }
16538 _ACEOF
16539 rm -f conftest.$ac_objext
16540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16541   (eval $ac_compile) 2>conftest.er1
16542   ac_status=$?
16543   grep -v '^ *+' conftest.er1 >conftest.err
16544   rm -f conftest.er1
16545   cat conftest.err >&5
16546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547   (exit $ac_status); } &&
16548          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550   (eval $ac_try) 2>&5
16551   ac_status=$?
16552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553   (exit $ac_status); }; } &&
16554          { ac_try='test -s conftest.$ac_objext'
16555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556   (eval $ac_try) 2>&5
16557   ac_status=$?
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); }; }; then
16560   ac_hi=-1 ac_mid=-1
16561   while :; do
16562     cat >conftest.$ac_ext <<_ACEOF
16563 /* confdefs.h.  */
16564 _ACEOF
16565 cat confdefs.h >>conftest.$ac_ext
16566 cat >>conftest.$ac_ext <<_ACEOF
16567 /* end confdefs.h.  */
16568 $ac_includes_default
16569 int
16570 main ()
16571 {
16572 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16573 test_array [0] = 0
16574
16575   ;
16576   return 0;
16577 }
16578 _ACEOF
16579 rm -f conftest.$ac_objext
16580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16581   (eval $ac_compile) 2>conftest.er1
16582   ac_status=$?
16583   grep -v '^ *+' conftest.er1 >conftest.err
16584   rm -f conftest.er1
16585   cat conftest.err >&5
16586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587   (exit $ac_status); } &&
16588          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590   (eval $ac_try) 2>&5
16591   ac_status=$?
16592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593   (exit $ac_status); }; } &&
16594          { ac_try='test -s conftest.$ac_objext'
16595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16596   (eval $ac_try) 2>&5
16597   ac_status=$?
16598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599   (exit $ac_status); }; }; then
16600   ac_lo=$ac_mid; break
16601 else
16602   echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16604
16605 ac_hi=`expr '(' $ac_mid ')' - 1`
16606                        if test $ac_mid -le $ac_hi; then
16607                          ac_lo= ac_hi=
16608                          break
16609                        fi
16610                        ac_mid=`expr 2 '*' $ac_mid`
16611 fi
16612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16613   done
16614 else
16615   echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16617
16618 ac_lo= ac_hi=
16619 fi
16620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16621 fi
16622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16623 # Binary search between lo and hi bounds.
16624 while test "x$ac_lo" != "x$ac_hi"; do
16625   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16626   cat >conftest.$ac_ext <<_ACEOF
16627 /* confdefs.h.  */
16628 _ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h.  */
16632 $ac_includes_default
16633 int
16634 main ()
16635 {
16636 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16637 test_array [0] = 0
16638
16639   ;
16640   return 0;
16641 }
16642 _ACEOF
16643 rm -f conftest.$ac_objext
16644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16645   (eval $ac_compile) 2>conftest.er1
16646   ac_status=$?
16647   grep -v '^ *+' conftest.er1 >conftest.err
16648   rm -f conftest.er1
16649   cat conftest.err >&5
16650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651   (exit $ac_status); } &&
16652          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654   (eval $ac_try) 2>&5
16655   ac_status=$?
16656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657   (exit $ac_status); }; } &&
16658          { ac_try='test -s conftest.$ac_objext'
16659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16660   (eval $ac_try) 2>&5
16661   ac_status=$?
16662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); }; }; then
16664   ac_hi=$ac_mid
16665 else
16666   echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16668
16669 ac_lo=`expr '(' $ac_mid ')' + 1`
16670 fi
16671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16672 done
16673 case $ac_lo in
16674 ?*) ac_cv_sizeof_long=$ac_lo;;
16675 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16676 See \`config.log' for more details." >&5
16677 echo "$as_me: error: cannot compute sizeof (long), 77
16678 See \`config.log' for more details." >&2;}
16679    { (exit 1); exit 1; }; } ;;
16680 esac
16681 else
16682   if test "$cross_compiling" = yes; then
16683   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16684 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16685    { (exit 1); exit 1; }; }
16686 else
16687   cat >conftest.$ac_ext <<_ACEOF
16688 /* confdefs.h.  */
16689 _ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h.  */
16693 $ac_includes_default
16694 long longval () { return (long) (sizeof (long)); }
16695 unsigned long ulongval () { return (long) (sizeof (long)); }
16696 #include <stdio.h>
16697 #include <stdlib.h>
16698 int
16699 main ()
16700 {
16701
16702   FILE *f = fopen ("conftest.val", "w");
16703   if (! f)
16704     exit (1);
16705   if (((long) (sizeof (long))) < 0)
16706     {
16707       long i = longval ();
16708       if (i != ((long) (sizeof (long))))
16709         exit (1);
16710       fprintf (f, "%ld\n", i);
16711     }
16712   else
16713     {
16714       unsigned long i = ulongval ();
16715       if (i != ((long) (sizeof (long))))
16716         exit (1);
16717       fprintf (f, "%lu\n", i);
16718     }
16719   exit (ferror (f) || fclose (f) != 0);
16720
16721   ;
16722   return 0;
16723 }
16724 _ACEOF
16725 rm -f conftest$ac_exeext
16726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16727   (eval $ac_link) 2>&5
16728   ac_status=$?
16729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732   (eval $ac_try) 2>&5
16733   ac_status=$?
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); }; }; then
16736   ac_cv_sizeof_long=`cat conftest.val`
16737 else
16738   echo "$as_me: program exited with status $ac_status" >&5
16739 echo "$as_me: failed program was:" >&5
16740 sed 's/^/| /' conftest.$ac_ext >&5
16741
16742 ( exit $ac_status )
16743 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16744 See \`config.log' for more details." >&5
16745 echo "$as_me: error: cannot compute sizeof (long), 77
16746 See \`config.log' for more details." >&2;}
16747    { (exit 1); exit 1; }; }
16748 fi
16749 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16750 fi
16751 fi
16752 rm -f conftest.val
16753 else
16754   ac_cv_sizeof_long=0
16755 fi
16756 fi
16757 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16758 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16759 cat >>confdefs.h <<_ACEOF
16760 #define SIZEOF_LONG $ac_cv_sizeof_long
16761 _ACEOF
16762
16763
16764 echo "$as_me:$LINENO: checking for size_t" >&5
16765 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16766 if test "${ac_cv_type_size_t+set}" = set; then
16767   echo $ECHO_N "(cached) $ECHO_C" >&6
16768 else
16769   cat >conftest.$ac_ext <<_ACEOF
16770 /* confdefs.h.  */
16771 _ACEOF
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h.  */
16775 $ac_includes_default
16776 int
16777 main ()
16778 {
16779 if ((size_t *) 0)
16780   return 0;
16781 if (sizeof (size_t))
16782   return 0;
16783   ;
16784   return 0;
16785 }
16786 _ACEOF
16787 rm -f conftest.$ac_objext
16788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16789   (eval $ac_compile) 2>conftest.er1
16790   ac_status=$?
16791   grep -v '^ *+' conftest.er1 >conftest.err
16792   rm -f conftest.er1
16793   cat conftest.err >&5
16794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795   (exit $ac_status); } &&
16796          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798   (eval $ac_try) 2>&5
16799   ac_status=$?
16800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801   (exit $ac_status); }; } &&
16802          { ac_try='test -s conftest.$ac_objext'
16803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804   (eval $ac_try) 2>&5
16805   ac_status=$?
16806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807   (exit $ac_status); }; }; then
16808   ac_cv_type_size_t=yes
16809 else
16810   echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.$ac_ext >&5
16812
16813 ac_cv_type_size_t=no
16814 fi
16815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16816 fi
16817 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16818 echo "${ECHO_T}$ac_cv_type_size_t" >&6
16819
16820 echo "$as_me:$LINENO: checking size of size_t" >&5
16821 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16822 if test "${ac_cv_sizeof_size_t+set}" = set; then
16823   echo $ECHO_N "(cached) $ECHO_C" >&6
16824 else
16825   if test "$ac_cv_type_size_t" = yes; then
16826   # The cast to unsigned long works around a bug in the HP C Compiler
16827   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16828   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16829   # This bug is HP SR number 8606223364.
16830   if test "$cross_compiling" = yes; then
16831   # Depending upon the size, compute the lo and hi bounds.
16832 cat >conftest.$ac_ext <<_ACEOF
16833 /* confdefs.h.  */
16834 _ACEOF
16835 cat confdefs.h >>conftest.$ac_ext
16836 cat >>conftest.$ac_ext <<_ACEOF
16837 /* end confdefs.h.  */
16838 $ac_includes_default
16839 int
16840 main ()
16841 {
16842 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16843 test_array [0] = 0
16844
16845   ;
16846   return 0;
16847 }
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_lo=0 ac_mid=0
16871   while :; do
16872     cat >conftest.$ac_ext <<_ACEOF
16873 /* confdefs.h.  */
16874 _ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h.  */
16878 $ac_includes_default
16879 int
16880 main ()
16881 {
16882 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16883 test_array [0] = 0
16884
16885   ;
16886   return 0;
16887 }
16888 _ACEOF
16889 rm -f conftest.$ac_objext
16890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16891   (eval $ac_compile) 2>conftest.er1
16892   ac_status=$?
16893   grep -v '^ *+' conftest.er1 >conftest.err
16894   rm -f conftest.er1
16895   cat conftest.err >&5
16896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897   (exit $ac_status); } &&
16898          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900   (eval $ac_try) 2>&5
16901   ac_status=$?
16902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903   (exit $ac_status); }; } &&
16904          { ac_try='test -s conftest.$ac_objext'
16905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906   (eval $ac_try) 2>&5
16907   ac_status=$?
16908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909   (exit $ac_status); }; }; then
16910   ac_hi=$ac_mid; break
16911 else
16912   echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16914
16915 ac_lo=`expr $ac_mid + 1`
16916                     if test $ac_lo -le $ac_mid; then
16917                       ac_lo= ac_hi=
16918                       break
16919                     fi
16920                     ac_mid=`expr 2 '*' $ac_mid + 1`
16921 fi
16922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16923   done
16924 else
16925   echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16927
16928 cat >conftest.$ac_ext <<_ACEOF
16929 /* confdefs.h.  */
16930 _ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h.  */
16934 $ac_includes_default
16935 int
16936 main ()
16937 {
16938 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16939 test_array [0] = 0
16940
16941   ;
16942   return 0;
16943 }
16944 _ACEOF
16945 rm -f conftest.$ac_objext
16946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16947   (eval $ac_compile) 2>conftest.er1
16948   ac_status=$?
16949   grep -v '^ *+' conftest.er1 >conftest.err
16950   rm -f conftest.er1
16951   cat conftest.err >&5
16952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953   (exit $ac_status); } &&
16954          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956   (eval $ac_try) 2>&5
16957   ac_status=$?
16958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959   (exit $ac_status); }; } &&
16960          { ac_try='test -s conftest.$ac_objext'
16961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962   (eval $ac_try) 2>&5
16963   ac_status=$?
16964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965   (exit $ac_status); }; }; then
16966   ac_hi=-1 ac_mid=-1
16967   while :; do
16968     cat >conftest.$ac_ext <<_ACEOF
16969 /* confdefs.h.  */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h.  */
16974 $ac_includes_default
16975 int
16976 main ()
16977 {
16978 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16979 test_array [0] = 0
16980
16981   ;
16982   return 0;
16983 }
16984 _ACEOF
16985 rm -f conftest.$ac_objext
16986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16987   (eval $ac_compile) 2>conftest.er1
16988   ac_status=$?
16989   grep -v '^ *+' conftest.er1 >conftest.err
16990   rm -f conftest.er1
16991   cat conftest.err >&5
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); } &&
16994          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996   (eval $ac_try) 2>&5
16997   ac_status=$?
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); }; } &&
17000          { ac_try='test -s conftest.$ac_objext'
17001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002   (eval $ac_try) 2>&5
17003   ac_status=$?
17004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005   (exit $ac_status); }; }; then
17006   ac_lo=$ac_mid; break
17007 else
17008   echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17010
17011 ac_hi=`expr '(' $ac_mid ')' - 1`
17012                        if test $ac_mid -le $ac_hi; then
17013                          ac_lo= ac_hi=
17014                          break
17015                        fi
17016                        ac_mid=`expr 2 '*' $ac_mid`
17017 fi
17018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17019   done
17020 else
17021   echo "$as_me: failed program was:" >&5
17022 sed 's/^/| /' conftest.$ac_ext >&5
17023
17024 ac_lo= ac_hi=
17025 fi
17026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17027 fi
17028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17029 # Binary search between lo and hi bounds.
17030 while test "x$ac_lo" != "x$ac_hi"; do
17031   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17032   cat >conftest.$ac_ext <<_ACEOF
17033 /* confdefs.h.  */
17034 _ACEOF
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h.  */
17038 $ac_includes_default
17039 int
17040 main ()
17041 {
17042 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17043 test_array [0] = 0
17044
17045   ;
17046   return 0;
17047 }
17048 _ACEOF
17049 rm -f conftest.$ac_objext
17050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17051   (eval $ac_compile) 2>conftest.er1
17052   ac_status=$?
17053   grep -v '^ *+' conftest.er1 >conftest.err
17054   rm -f conftest.er1
17055   cat conftest.err >&5
17056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057   (exit $ac_status); } &&
17058          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060   (eval $ac_try) 2>&5
17061   ac_status=$?
17062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063   (exit $ac_status); }; } &&
17064          { ac_try='test -s conftest.$ac_objext'
17065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066   (eval $ac_try) 2>&5
17067   ac_status=$?
17068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069   (exit $ac_status); }; }; then
17070   ac_hi=$ac_mid
17071 else
17072   echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17074
17075 ac_lo=`expr '(' $ac_mid ')' + 1`
17076 fi
17077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17078 done
17079 case $ac_lo in
17080 ?*) ac_cv_sizeof_size_t=$ac_lo;;
17081 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17082 See \`config.log' for more details." >&5
17083 echo "$as_me: error: cannot compute sizeof (size_t), 77
17084 See \`config.log' for more details." >&2;}
17085    { (exit 1); exit 1; }; } ;;
17086 esac
17087 else
17088   if test "$cross_compiling" = yes; then
17089   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17090 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17091    { (exit 1); exit 1; }; }
17092 else
17093   cat >conftest.$ac_ext <<_ACEOF
17094 /* confdefs.h.  */
17095 _ACEOF
17096 cat confdefs.h >>conftest.$ac_ext
17097 cat >>conftest.$ac_ext <<_ACEOF
17098 /* end confdefs.h.  */
17099 $ac_includes_default
17100 long longval () { return (long) (sizeof (size_t)); }
17101 unsigned long ulongval () { return (long) (sizeof (size_t)); }
17102 #include <stdio.h>
17103 #include <stdlib.h>
17104 int
17105 main ()
17106 {
17107
17108   FILE *f = fopen ("conftest.val", "w");
17109   if (! f)
17110     exit (1);
17111   if (((long) (sizeof (size_t))) < 0)
17112     {
17113       long i = longval ();
17114       if (i != ((long) (sizeof (size_t))))
17115         exit (1);
17116       fprintf (f, "%ld\n", i);
17117     }
17118   else
17119     {
17120       unsigned long i = ulongval ();
17121       if (i != ((long) (sizeof (size_t))))
17122         exit (1);
17123       fprintf (f, "%lu\n", i);
17124     }
17125   exit (ferror (f) || fclose (f) != 0);
17126
17127   ;
17128   return 0;
17129 }
17130 _ACEOF
17131 rm -f conftest$ac_exeext
17132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17133   (eval $ac_link) 2>&5
17134   ac_status=$?
17135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138   (eval $ac_try) 2>&5
17139   ac_status=$?
17140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141   (exit $ac_status); }; }; then
17142   ac_cv_sizeof_size_t=`cat conftest.val`
17143 else
17144   echo "$as_me: program exited with status $ac_status" >&5
17145 echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17147
17148 ( exit $ac_status )
17149 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17150 See \`config.log' for more details." >&5
17151 echo "$as_me: error: cannot compute sizeof (size_t), 77
17152 See \`config.log' for more details." >&2;}
17153    { (exit 1); exit 1; }; }
17154 fi
17155 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17156 fi
17157 fi
17158 rm -f conftest.val
17159 else
17160   ac_cv_sizeof_size_t=0
17161 fi
17162 fi
17163 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17164 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17165 cat >>confdefs.h <<_ACEOF
17166 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17167 _ACEOF
17168
17169
17170
17171 case "${host}" in
17172     arm-*-linux* )
17173         echo "$as_me:$LINENO: checking for long long" >&5
17174 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17175 if test "${ac_cv_type_long_long+set}" = set; then
17176   echo $ECHO_N "(cached) $ECHO_C" >&6
17177 else
17178   cat >conftest.$ac_ext <<_ACEOF
17179 /* confdefs.h.  */
17180 _ACEOF
17181 cat confdefs.h >>conftest.$ac_ext
17182 cat >>conftest.$ac_ext <<_ACEOF
17183 /* end confdefs.h.  */
17184 $ac_includes_default
17185 int
17186 main ()
17187 {
17188 if ((long long *) 0)
17189   return 0;
17190 if (sizeof (long long))
17191   return 0;
17192   ;
17193   return 0;
17194 }
17195 _ACEOF
17196 rm -f conftest.$ac_objext
17197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17198   (eval $ac_compile) 2>conftest.er1
17199   ac_status=$?
17200   grep -v '^ *+' conftest.er1 >conftest.err
17201   rm -f conftest.er1
17202   cat conftest.err >&5
17203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204   (exit $ac_status); } &&
17205          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207   (eval $ac_try) 2>&5
17208   ac_status=$?
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); }; } &&
17211          { ac_try='test -s conftest.$ac_objext'
17212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213   (eval $ac_try) 2>&5
17214   ac_status=$?
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); }; }; then
17217   ac_cv_type_long_long=yes
17218 else
17219   echo "$as_me: failed program was:" >&5
17220 sed 's/^/| /' conftest.$ac_ext >&5
17221
17222 ac_cv_type_long_long=no
17223 fi
17224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17225 fi
17226 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17227 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17228
17229 echo "$as_me:$LINENO: checking size of long long" >&5
17230 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17231 if test "${ac_cv_sizeof_long_long+set}" = set; then
17232   echo $ECHO_N "(cached) $ECHO_C" >&6
17233 else
17234   if test "$ac_cv_type_long_long" = yes; then
17235   # The cast to unsigned long works around a bug in the HP C Compiler
17236   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17237   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17238   # This bug is HP SR number 8606223364.
17239   if test "$cross_compiling" = yes; then
17240   # Depending upon the size, compute the lo and hi bounds.
17241 cat >conftest.$ac_ext <<_ACEOF
17242 /* confdefs.h.  */
17243 _ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h.  */
17247 $ac_includes_default
17248 int
17249 main ()
17250 {
17251 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17252 test_array [0] = 0
17253
17254   ;
17255   return 0;
17256 }
17257 _ACEOF
17258 rm -f conftest.$ac_objext
17259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17260   (eval $ac_compile) 2>conftest.er1
17261   ac_status=$?
17262   grep -v '^ *+' conftest.er1 >conftest.err
17263   rm -f conftest.er1
17264   cat conftest.err >&5
17265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266   (exit $ac_status); } &&
17267          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269   (eval $ac_try) 2>&5
17270   ac_status=$?
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); }; } &&
17273          { ac_try='test -s conftest.$ac_objext'
17274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275   (eval $ac_try) 2>&5
17276   ac_status=$?
17277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278   (exit $ac_status); }; }; then
17279   ac_lo=0 ac_mid=0
17280   while :; do
17281     cat >conftest.$ac_ext <<_ACEOF
17282 /* confdefs.h.  */
17283 _ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h.  */
17287 $ac_includes_default
17288 int
17289 main ()
17290 {
17291 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17292 test_array [0] = 0
17293
17294   ;
17295   return 0;
17296 }
17297 _ACEOF
17298 rm -f conftest.$ac_objext
17299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17300   (eval $ac_compile) 2>conftest.er1
17301   ac_status=$?
17302   grep -v '^ *+' conftest.er1 >conftest.err
17303   rm -f conftest.er1
17304   cat conftest.err >&5
17305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306   (exit $ac_status); } &&
17307          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309   (eval $ac_try) 2>&5
17310   ac_status=$?
17311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312   (exit $ac_status); }; } &&
17313          { ac_try='test -s conftest.$ac_objext'
17314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315   (eval $ac_try) 2>&5
17316   ac_status=$?
17317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318   (exit $ac_status); }; }; then
17319   ac_hi=$ac_mid; break
17320 else
17321   echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17323
17324 ac_lo=`expr $ac_mid + 1`
17325                     if test $ac_lo -le $ac_mid; then
17326                       ac_lo= ac_hi=
17327                       break
17328                     fi
17329                     ac_mid=`expr 2 '*' $ac_mid + 1`
17330 fi
17331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17332   done
17333 else
17334   echo "$as_me: failed program was:" >&5
17335 sed 's/^/| /' conftest.$ac_ext >&5
17336
17337 cat >conftest.$ac_ext <<_ACEOF
17338 /* confdefs.h.  */
17339 _ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h.  */
17343 $ac_includes_default
17344 int
17345 main ()
17346 {
17347 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17348 test_array [0] = 0
17349
17350   ;
17351   return 0;
17352 }
17353 _ACEOF
17354 rm -f conftest.$ac_objext
17355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17356   (eval $ac_compile) 2>conftest.er1
17357   ac_status=$?
17358   grep -v '^ *+' conftest.er1 >conftest.err
17359   rm -f conftest.er1
17360   cat conftest.err >&5
17361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362   (exit $ac_status); } &&
17363          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365   (eval $ac_try) 2>&5
17366   ac_status=$?
17367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368   (exit $ac_status); }; } &&
17369          { ac_try='test -s conftest.$ac_objext'
17370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371   (eval $ac_try) 2>&5
17372   ac_status=$?
17373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374   (exit $ac_status); }; }; then
17375   ac_hi=-1 ac_mid=-1
17376   while :; do
17377     cat >conftest.$ac_ext <<_ACEOF
17378 /* confdefs.h.  */
17379 _ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h.  */
17383 $ac_includes_default
17384 int
17385 main ()
17386 {
17387 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17388 test_array [0] = 0
17389
17390   ;
17391   return 0;
17392 }
17393 _ACEOF
17394 rm -f conftest.$ac_objext
17395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17396   (eval $ac_compile) 2>conftest.er1
17397   ac_status=$?
17398   grep -v '^ *+' conftest.er1 >conftest.err
17399   rm -f conftest.er1
17400   cat conftest.err >&5
17401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402   (exit $ac_status); } &&
17403          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405   (eval $ac_try) 2>&5
17406   ac_status=$?
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); }; } &&
17409          { ac_try='test -s conftest.$ac_objext'
17410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411   (eval $ac_try) 2>&5
17412   ac_status=$?
17413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414   (exit $ac_status); }; }; then
17415   ac_lo=$ac_mid; break
17416 else
17417   echo "$as_me: failed program was:" >&5
17418 sed 's/^/| /' conftest.$ac_ext >&5
17419
17420 ac_hi=`expr '(' $ac_mid ')' - 1`
17421                        if test $ac_mid -le $ac_hi; then
17422                          ac_lo= ac_hi=
17423                          break
17424                        fi
17425                        ac_mid=`expr 2 '*' $ac_mid`
17426 fi
17427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17428   done
17429 else
17430   echo "$as_me: failed program was:" >&5
17431 sed 's/^/| /' conftest.$ac_ext >&5
17432
17433 ac_lo= ac_hi=
17434 fi
17435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17436 fi
17437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17438 # Binary search between lo and hi bounds.
17439 while test "x$ac_lo" != "x$ac_hi"; do
17440   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17441   cat >conftest.$ac_ext <<_ACEOF
17442 /* confdefs.h.  */
17443 _ACEOF
17444 cat confdefs.h >>conftest.$ac_ext
17445 cat >>conftest.$ac_ext <<_ACEOF
17446 /* end confdefs.h.  */
17447 $ac_includes_default
17448 int
17449 main ()
17450 {
17451 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17452 test_array [0] = 0
17453
17454   ;
17455   return 0;
17456 }
17457 _ACEOF
17458 rm -f conftest.$ac_objext
17459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17460   (eval $ac_compile) 2>conftest.er1
17461   ac_status=$?
17462   grep -v '^ *+' conftest.er1 >conftest.err
17463   rm -f conftest.er1
17464   cat conftest.err >&5
17465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466   (exit $ac_status); } &&
17467          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469   (eval $ac_try) 2>&5
17470   ac_status=$?
17471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472   (exit $ac_status); }; } &&
17473          { ac_try='test -s conftest.$ac_objext'
17474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475   (eval $ac_try) 2>&5
17476   ac_status=$?
17477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478   (exit $ac_status); }; }; then
17479   ac_hi=$ac_mid
17480 else
17481   echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17483
17484 ac_lo=`expr '(' $ac_mid ')' + 1`
17485 fi
17486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17487 done
17488 case $ac_lo in
17489 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17490 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17491 See \`config.log' for more details." >&5
17492 echo "$as_me: error: cannot compute sizeof (long long), 77
17493 See \`config.log' for more details." >&2;}
17494    { (exit 1); exit 1; }; } ;;
17495 esac
17496 else
17497   if test "$cross_compiling" = yes; then
17498   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17499 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17500    { (exit 1); exit 1; }; }
17501 else
17502   cat >conftest.$ac_ext <<_ACEOF
17503 /* confdefs.h.  */
17504 _ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h.  */
17508 $ac_includes_default
17509 long longval () { return (long) (sizeof (long long)); }
17510 unsigned long ulongval () { return (long) (sizeof (long long)); }
17511 #include <stdio.h>
17512 #include <stdlib.h>
17513 int
17514 main ()
17515 {
17516
17517   FILE *f = fopen ("conftest.val", "w");
17518   if (! f)
17519     exit (1);
17520   if (((long) (sizeof (long long))) < 0)
17521     {
17522       long i = longval ();
17523       if (i != ((long) (sizeof (long long))))
17524         exit (1);
17525       fprintf (f, "%ld\n", i);
17526     }
17527   else
17528     {
17529       unsigned long i = ulongval ();
17530       if (i != ((long) (sizeof (long long))))
17531         exit (1);
17532       fprintf (f, "%lu\n", i);
17533     }
17534   exit (ferror (f) || fclose (f) != 0);
17535
17536   ;
17537   return 0;
17538 }
17539 _ACEOF
17540 rm -f conftest$ac_exeext
17541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17542   (eval $ac_link) 2>&5
17543   ac_status=$?
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547   (eval $ac_try) 2>&5
17548   ac_status=$?
17549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550   (exit $ac_status); }; }; then
17551   ac_cv_sizeof_long_long=`cat conftest.val`
17552 else
17553   echo "$as_me: program exited with status $ac_status" >&5
17554 echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17556
17557 ( exit $ac_status )
17558 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17559 See \`config.log' for more details." >&5
17560 echo "$as_me: error: cannot compute sizeof (long long), 77
17561 See \`config.log' for more details." >&2;}
17562    { (exit 1); exit 1; }; }
17563 fi
17564 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17565 fi
17566 fi
17567 rm -f conftest.val
17568 else
17569   ac_cv_sizeof_long_long=0
17570 fi
17571 fi
17572 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17573 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17574 cat >>confdefs.h <<_ACEOF
17575 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17576 _ACEOF
17577
17578
17579     ;;
17580     *-hp-hpux* )
17581         echo "$as_me:$LINENO: checking for long long" >&5
17582 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17583 if test "${ac_cv_type_long_long+set}" = set; then
17584   echo $ECHO_N "(cached) $ECHO_C" >&6
17585 else
17586   cat >conftest.$ac_ext <<_ACEOF
17587 /* confdefs.h.  */
17588 _ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h.  */
17592 $ac_includes_default
17593 int
17594 main ()
17595 {
17596 if ((long long *) 0)
17597   return 0;
17598 if (sizeof (long long))
17599   return 0;
17600   ;
17601   return 0;
17602 }
17603 _ACEOF
17604 rm -f conftest.$ac_objext
17605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17606   (eval $ac_compile) 2>conftest.er1
17607   ac_status=$?
17608   grep -v '^ *+' conftest.er1 >conftest.err
17609   rm -f conftest.er1
17610   cat conftest.err >&5
17611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); } &&
17613          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615   (eval $ac_try) 2>&5
17616   ac_status=$?
17617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); }; } &&
17619          { ac_try='test -s conftest.$ac_objext'
17620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621   (eval $ac_try) 2>&5
17622   ac_status=$?
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); }; }; then
17625   ac_cv_type_long_long=yes
17626 else
17627   echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17629
17630 ac_cv_type_long_long=no
17631 fi
17632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17633 fi
17634 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17635 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17636
17637 echo "$as_me:$LINENO: checking size of long long" >&5
17638 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17639 if test "${ac_cv_sizeof_long_long+set}" = set; then
17640   echo $ECHO_N "(cached) $ECHO_C" >&6
17641 else
17642   if test "$ac_cv_type_long_long" = yes; then
17643   # The cast to unsigned long works around a bug in the HP C Compiler
17644   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17645   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17646   # This bug is HP SR number 8606223364.
17647   if test "$cross_compiling" = yes; then
17648   # Depending upon the size, compute the lo and hi bounds.
17649 cat >conftest.$ac_ext <<_ACEOF
17650 /* confdefs.h.  */
17651 _ACEOF
17652 cat confdefs.h >>conftest.$ac_ext
17653 cat >>conftest.$ac_ext <<_ACEOF
17654 /* end confdefs.h.  */
17655 $ac_includes_default
17656 int
17657 main ()
17658 {
17659 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17660 test_array [0] = 0
17661
17662   ;
17663   return 0;
17664 }
17665 _ACEOF
17666 rm -f conftest.$ac_objext
17667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17668   (eval $ac_compile) 2>conftest.er1
17669   ac_status=$?
17670   grep -v '^ *+' conftest.er1 >conftest.err
17671   rm -f conftest.er1
17672   cat conftest.err >&5
17673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674   (exit $ac_status); } &&
17675          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677   (eval $ac_try) 2>&5
17678   ac_status=$?
17679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680   (exit $ac_status); }; } &&
17681          { ac_try='test -s conftest.$ac_objext'
17682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17683   (eval $ac_try) 2>&5
17684   ac_status=$?
17685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686   (exit $ac_status); }; }; then
17687   ac_lo=0 ac_mid=0
17688   while :; do
17689     cat >conftest.$ac_ext <<_ACEOF
17690 /* confdefs.h.  */
17691 _ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h.  */
17695 $ac_includes_default
17696 int
17697 main ()
17698 {
17699 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17700 test_array [0] = 0
17701
17702   ;
17703   return 0;
17704 }
17705 _ACEOF
17706 rm -f conftest.$ac_objext
17707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17708   (eval $ac_compile) 2>conftest.er1
17709   ac_status=$?
17710   grep -v '^ *+' conftest.er1 >conftest.err
17711   rm -f conftest.er1
17712   cat conftest.err >&5
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); } &&
17715          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717   (eval $ac_try) 2>&5
17718   ac_status=$?
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); }; } &&
17721          { ac_try='test -s conftest.$ac_objext'
17722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723   (eval $ac_try) 2>&5
17724   ac_status=$?
17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); }; }; then
17727   ac_hi=$ac_mid; break
17728 else
17729   echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17731
17732 ac_lo=`expr $ac_mid + 1`
17733                     if test $ac_lo -le $ac_mid; then
17734                       ac_lo= ac_hi=
17735                       break
17736                     fi
17737                     ac_mid=`expr 2 '*' $ac_mid + 1`
17738 fi
17739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17740   done
17741 else
17742   echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17744
17745 cat >conftest.$ac_ext <<_ACEOF
17746 /* confdefs.h.  */
17747 _ACEOF
17748 cat confdefs.h >>conftest.$ac_ext
17749 cat >>conftest.$ac_ext <<_ACEOF
17750 /* end confdefs.h.  */
17751 $ac_includes_default
17752 int
17753 main ()
17754 {
17755 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17756 test_array [0] = 0
17757
17758   ;
17759   return 0;
17760 }
17761 _ACEOF
17762 rm -f conftest.$ac_objext
17763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17764   (eval $ac_compile) 2>conftest.er1
17765   ac_status=$?
17766   grep -v '^ *+' conftest.er1 >conftest.err
17767   rm -f conftest.er1
17768   cat conftest.err >&5
17769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770   (exit $ac_status); } &&
17771          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773   (eval $ac_try) 2>&5
17774   ac_status=$?
17775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776   (exit $ac_status); }; } &&
17777          { ac_try='test -s conftest.$ac_objext'
17778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779   (eval $ac_try) 2>&5
17780   ac_status=$?
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); }; }; then
17783   ac_hi=-1 ac_mid=-1
17784   while :; do
17785     cat >conftest.$ac_ext <<_ACEOF
17786 /* confdefs.h.  */
17787 _ACEOF
17788 cat confdefs.h >>conftest.$ac_ext
17789 cat >>conftest.$ac_ext <<_ACEOF
17790 /* end confdefs.h.  */
17791 $ac_includes_default
17792 int
17793 main ()
17794 {
17795 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17796 test_array [0] = 0
17797
17798   ;
17799   return 0;
17800 }
17801 _ACEOF
17802 rm -f conftest.$ac_objext
17803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17804   (eval $ac_compile) 2>conftest.er1
17805   ac_status=$?
17806   grep -v '^ *+' conftest.er1 >conftest.err
17807   rm -f conftest.er1
17808   cat conftest.err >&5
17809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810   (exit $ac_status); } &&
17811          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813   (eval $ac_try) 2>&5
17814   ac_status=$?
17815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816   (exit $ac_status); }; } &&
17817          { ac_try='test -s conftest.$ac_objext'
17818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819   (eval $ac_try) 2>&5
17820   ac_status=$?
17821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822   (exit $ac_status); }; }; then
17823   ac_lo=$ac_mid; break
17824 else
17825   echo "$as_me: failed program was:" >&5
17826 sed 's/^/| /' conftest.$ac_ext >&5
17827
17828 ac_hi=`expr '(' $ac_mid ')' - 1`
17829                        if test $ac_mid -le $ac_hi; then
17830                          ac_lo= ac_hi=
17831                          break
17832                        fi
17833                        ac_mid=`expr 2 '*' $ac_mid`
17834 fi
17835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17836   done
17837 else
17838   echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17840
17841 ac_lo= ac_hi=
17842 fi
17843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17844 fi
17845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17846 # Binary search between lo and hi bounds.
17847 while test "x$ac_lo" != "x$ac_hi"; do
17848   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17849   cat >conftest.$ac_ext <<_ACEOF
17850 /* confdefs.h.  */
17851 _ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h.  */
17855 $ac_includes_default
17856 int
17857 main ()
17858 {
17859 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17860 test_array [0] = 0
17861
17862   ;
17863   return 0;
17864 }
17865 _ACEOF
17866 rm -f conftest.$ac_objext
17867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17868   (eval $ac_compile) 2>conftest.er1
17869   ac_status=$?
17870   grep -v '^ *+' conftest.er1 >conftest.err
17871   rm -f conftest.er1
17872   cat conftest.err >&5
17873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); } &&
17875          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877   (eval $ac_try) 2>&5
17878   ac_status=$?
17879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880   (exit $ac_status); }; } &&
17881          { ac_try='test -s conftest.$ac_objext'
17882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883   (eval $ac_try) 2>&5
17884   ac_status=$?
17885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886   (exit $ac_status); }; }; then
17887   ac_hi=$ac_mid
17888 else
17889   echo "$as_me: failed program was:" >&5
17890 sed 's/^/| /' conftest.$ac_ext >&5
17891
17892 ac_lo=`expr '(' $ac_mid ')' + 1`
17893 fi
17894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17895 done
17896 case $ac_lo in
17897 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17898 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17899 See \`config.log' for more details." >&5
17900 echo "$as_me: error: cannot compute sizeof (long long), 77
17901 See \`config.log' for more details." >&2;}
17902    { (exit 1); exit 1; }; } ;;
17903 esac
17904 else
17905   if test "$cross_compiling" = yes; then
17906   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17907 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17908    { (exit 1); exit 1; }; }
17909 else
17910   cat >conftest.$ac_ext <<_ACEOF
17911 /* confdefs.h.  */
17912 _ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h.  */
17916 $ac_includes_default
17917 long longval () { return (long) (sizeof (long long)); }
17918 unsigned long ulongval () { return (long) (sizeof (long long)); }
17919 #include <stdio.h>
17920 #include <stdlib.h>
17921 int
17922 main ()
17923 {
17924
17925   FILE *f = fopen ("conftest.val", "w");
17926   if (! f)
17927     exit (1);
17928   if (((long) (sizeof (long long))) < 0)
17929     {
17930       long i = longval ();
17931       if (i != ((long) (sizeof (long long))))
17932         exit (1);
17933       fprintf (f, "%ld\n", i);
17934     }
17935   else
17936     {
17937       unsigned long i = ulongval ();
17938       if (i != ((long) (sizeof (long long))))
17939         exit (1);
17940       fprintf (f, "%lu\n", i);
17941     }
17942   exit (ferror (f) || fclose (f) != 0);
17943
17944   ;
17945   return 0;
17946 }
17947 _ACEOF
17948 rm -f conftest$ac_exeext
17949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17950   (eval $ac_link) 2>&5
17951   ac_status=$?
17952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955   (eval $ac_try) 2>&5
17956   ac_status=$?
17957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958   (exit $ac_status); }; }; then
17959   ac_cv_sizeof_long_long=`cat conftest.val`
17960 else
17961   echo "$as_me: program exited with status $ac_status" >&5
17962 echo "$as_me: failed program was:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17964
17965 ( exit $ac_status )
17966 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17967 See \`config.log' for more details." >&5
17968 echo "$as_me: error: cannot compute sizeof (long long), 77
17969 See \`config.log' for more details." >&2;}
17970    { (exit 1); exit 1; }; }
17971 fi
17972 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17973 fi
17974 fi
17975 rm -f conftest.val
17976 else
17977   ac_cv_sizeof_long_long=0
17978 fi
17979 fi
17980 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17981 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17982 cat >>confdefs.h <<_ACEOF
17983 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17984 _ACEOF
17985
17986
17987         if test "$ac_cv_sizeof_long_long" != "0"; then
17988                         CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17989         fi
17990     ;;
17991     * )
17992         echo "$as_me:$LINENO: checking for long long" >&5
17993 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17994 if test "${ac_cv_type_long_long+set}" = set; then
17995   echo $ECHO_N "(cached) $ECHO_C" >&6
17996 else
17997   cat >conftest.$ac_ext <<_ACEOF
17998 /* confdefs.h.  */
17999 _ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h.  */
18003 $ac_includes_default
18004 int
18005 main ()
18006 {
18007 if ((long long *) 0)
18008   return 0;
18009 if (sizeof (long long))
18010   return 0;
18011   ;
18012   return 0;
18013 }
18014 _ACEOF
18015 rm -f conftest.$ac_objext
18016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18017   (eval $ac_compile) 2>conftest.er1
18018   ac_status=$?
18019   grep -v '^ *+' conftest.er1 >conftest.err
18020   rm -f conftest.er1
18021   cat conftest.err >&5
18022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023   (exit $ac_status); } &&
18024          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026   (eval $ac_try) 2>&5
18027   ac_status=$?
18028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029   (exit $ac_status); }; } &&
18030          { ac_try='test -s conftest.$ac_objext'
18031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032   (eval $ac_try) 2>&5
18033   ac_status=$?
18034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035   (exit $ac_status); }; }; then
18036   ac_cv_type_long_long=yes
18037 else
18038   echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18040
18041 ac_cv_type_long_long=no
18042 fi
18043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18044 fi
18045 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18046 echo "${ECHO_T}$ac_cv_type_long_long" >&6
18047
18048 echo "$as_me:$LINENO: checking size of long long" >&5
18049 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18050 if test "${ac_cv_sizeof_long_long+set}" = set; then
18051   echo $ECHO_N "(cached) $ECHO_C" >&6
18052 else
18053   if test "$ac_cv_type_long_long" = yes; then
18054   # The cast to unsigned long works around a bug in the HP C Compiler
18055   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18056   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18057   # This bug is HP SR number 8606223364.
18058   if test "$cross_compiling" = yes; then
18059   # Depending upon the size, compute the lo and hi bounds.
18060 cat >conftest.$ac_ext <<_ACEOF
18061 /* confdefs.h.  */
18062 _ACEOF
18063 cat confdefs.h >>conftest.$ac_ext
18064 cat >>conftest.$ac_ext <<_ACEOF
18065 /* end confdefs.h.  */
18066 $ac_includes_default
18067 int
18068 main ()
18069 {
18070 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18071 test_array [0] = 0
18072
18073   ;
18074   return 0;
18075 }
18076 _ACEOF
18077 rm -f conftest.$ac_objext
18078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18079   (eval $ac_compile) 2>conftest.er1
18080   ac_status=$?
18081   grep -v '^ *+' conftest.er1 >conftest.err
18082   rm -f conftest.er1
18083   cat conftest.err >&5
18084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085   (exit $ac_status); } &&
18086          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18088   (eval $ac_try) 2>&5
18089   ac_status=$?
18090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091   (exit $ac_status); }; } &&
18092          { ac_try='test -s conftest.$ac_objext'
18093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094   (eval $ac_try) 2>&5
18095   ac_status=$?
18096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097   (exit $ac_status); }; }; then
18098   ac_lo=0 ac_mid=0
18099   while :; do
18100     cat >conftest.$ac_ext <<_ACEOF
18101 /* confdefs.h.  */
18102 _ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h.  */
18106 $ac_includes_default
18107 int
18108 main ()
18109 {
18110 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18111 test_array [0] = 0
18112
18113   ;
18114   return 0;
18115 }
18116 _ACEOF
18117 rm -f conftest.$ac_objext
18118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18119   (eval $ac_compile) 2>conftest.er1
18120   ac_status=$?
18121   grep -v '^ *+' conftest.er1 >conftest.err
18122   rm -f conftest.er1
18123   cat conftest.err >&5
18124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125   (exit $ac_status); } &&
18126          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18128   (eval $ac_try) 2>&5
18129   ac_status=$?
18130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131   (exit $ac_status); }; } &&
18132          { ac_try='test -s conftest.$ac_objext'
18133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134   (eval $ac_try) 2>&5
18135   ac_status=$?
18136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137   (exit $ac_status); }; }; then
18138   ac_hi=$ac_mid; break
18139 else
18140   echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18142
18143 ac_lo=`expr $ac_mid + 1`
18144                     if test $ac_lo -le $ac_mid; then
18145                       ac_lo= ac_hi=
18146                       break
18147                     fi
18148                     ac_mid=`expr 2 '*' $ac_mid + 1`
18149 fi
18150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18151   done
18152 else
18153   echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18155
18156 cat >conftest.$ac_ext <<_ACEOF
18157 /* confdefs.h.  */
18158 _ACEOF
18159 cat confdefs.h >>conftest.$ac_ext
18160 cat >>conftest.$ac_ext <<_ACEOF
18161 /* end confdefs.h.  */
18162 $ac_includes_default
18163 int
18164 main ()
18165 {
18166 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18167 test_array [0] = 0
18168
18169   ;
18170   return 0;
18171 }
18172 _ACEOF
18173 rm -f conftest.$ac_objext
18174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18175   (eval $ac_compile) 2>conftest.er1
18176   ac_status=$?
18177   grep -v '^ *+' conftest.er1 >conftest.err
18178   rm -f conftest.er1
18179   cat conftest.err >&5
18180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181   (exit $ac_status); } &&
18182          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18184   (eval $ac_try) 2>&5
18185   ac_status=$?
18186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187   (exit $ac_status); }; } &&
18188          { ac_try='test -s conftest.$ac_objext'
18189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18190   (eval $ac_try) 2>&5
18191   ac_status=$?
18192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193   (exit $ac_status); }; }; then
18194   ac_hi=-1 ac_mid=-1
18195   while :; do
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 (long long))) >= $ac_mid)];
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=$ac_mid; break
18235 else
18236   echo "$as_me: failed program was:" >&5
18237 sed 's/^/| /' conftest.$ac_ext >&5
18238
18239 ac_hi=`expr '(' $ac_mid ')' - 1`
18240                        if test $ac_mid -le $ac_hi; then
18241                          ac_lo= ac_hi=
18242                          break
18243                        fi
18244                        ac_mid=`expr 2 '*' $ac_mid`
18245 fi
18246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18247   done
18248 else
18249   echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18251
18252 ac_lo= ac_hi=
18253 fi
18254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18255 fi
18256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18257 # Binary search between lo and hi bounds.
18258 while test "x$ac_lo" != "x$ac_hi"; do
18259   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18260   cat >conftest.$ac_ext <<_ACEOF
18261 /* confdefs.h.  */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h.  */
18266 $ac_includes_default
18267 int
18268 main ()
18269 {
18270 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18271 test_array [0] = 0
18272
18273   ;
18274   return 0;
18275 }
18276 _ACEOF
18277 rm -f conftest.$ac_objext
18278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18279   (eval $ac_compile) 2>conftest.er1
18280   ac_status=$?
18281   grep -v '^ *+' conftest.er1 >conftest.err
18282   rm -f conftest.er1
18283   cat conftest.err >&5
18284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285   (exit $ac_status); } &&
18286          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288   (eval $ac_try) 2>&5
18289   ac_status=$?
18290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291   (exit $ac_status); }; } &&
18292          { ac_try='test -s conftest.$ac_objext'
18293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294   (eval $ac_try) 2>&5
18295   ac_status=$?
18296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297   (exit $ac_status); }; }; then
18298   ac_hi=$ac_mid
18299 else
18300   echo "$as_me: failed program was:" >&5
18301 sed 's/^/| /' conftest.$ac_ext >&5
18302
18303 ac_lo=`expr '(' $ac_mid ')' + 1`
18304 fi
18305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18306 done
18307 case $ac_lo in
18308 ?*) ac_cv_sizeof_long_long=$ac_lo;;
18309 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18310 See \`config.log' for more details." >&5
18311 echo "$as_me: error: cannot compute sizeof (long long), 77
18312 See \`config.log' for more details." >&2;}
18313    { (exit 1); exit 1; }; } ;;
18314 esac
18315 else
18316   if test "$cross_compiling" = yes; then
18317   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18318 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18319    { (exit 1); exit 1; }; }
18320 else
18321   cat >conftest.$ac_ext <<_ACEOF
18322 /* confdefs.h.  */
18323 _ACEOF
18324 cat confdefs.h >>conftest.$ac_ext
18325 cat >>conftest.$ac_ext <<_ACEOF
18326 /* end confdefs.h.  */
18327 $ac_includes_default
18328 long longval () { return (long) (sizeof (long long)); }
18329 unsigned long ulongval () { return (long) (sizeof (long long)); }
18330 #include <stdio.h>
18331 #include <stdlib.h>
18332 int
18333 main ()
18334 {
18335
18336   FILE *f = fopen ("conftest.val", "w");
18337   if (! f)
18338     exit (1);
18339   if (((long) (sizeof (long long))) < 0)
18340     {
18341       long i = longval ();
18342       if (i != ((long) (sizeof (long long))))
18343         exit (1);
18344       fprintf (f, "%ld\n", i);
18345     }
18346   else
18347     {
18348       unsigned long i = ulongval ();
18349       if (i != ((long) (sizeof (long long))))
18350         exit (1);
18351       fprintf (f, "%lu\n", i);
18352     }
18353   exit (ferror (f) || fclose (f) != 0);
18354
18355   ;
18356   return 0;
18357 }
18358 _ACEOF
18359 rm -f conftest$ac_exeext
18360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18361   (eval $ac_link) 2>&5
18362   ac_status=$?
18363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_long_long=`cat conftest.val`
18371 else
18372   echo "$as_me: program exited with status $ac_status" >&5
18373 echo "$as_me: failed program was:" >&5
18374 sed 's/^/| /' conftest.$ac_ext >&5
18375
18376 ( exit $ac_status )
18377 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18378 See \`config.log' for more details." >&5
18379 echo "$as_me: error: cannot compute sizeof (long long), 77
18380 See \`config.log' for more details." >&2;}
18381    { (exit 1); exit 1; }; }
18382 fi
18383 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18384 fi
18385 fi
18386 rm -f conftest.val
18387 else
18388   ac_cv_sizeof_long_long=0
18389 fi
18390 fi
18391 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18392 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18393 cat >>confdefs.h <<_ACEOF
18394 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18395 _ACEOF
18396
18397
18398 esac
18399
18400 echo "$as_me:$LINENO: checking size of wchar_t" >&5
18401 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18402 if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18403   echo $ECHO_N "(cached) $ECHO_C" >&6
18404 else
18405
18406     if test "$cross_compiling" = yes; then
18407
18408             case "${host}" in
18409               *-pc-msdosdjgpp )
18410                 wx_cv_sizeof_wchar_t=0
18411                 ;;
18412               * )
18413                 wx_cv_sizeof_wchar_t=4
18414                 ;;
18415             esac
18416
18417
18418 else
18419   cat >conftest.$ac_ext <<_ACEOF
18420 /* confdefs.h.  */
18421 _ACEOF
18422 cat confdefs.h >>conftest.$ac_ext
18423 cat >>conftest.$ac_ext <<_ACEOF
18424 /* end confdefs.h.  */
18425
18426             /* DJGPP only has fake wchar_t: */
18427             #ifdef __DJGPP__
18428             #  error "fake wchar_t"
18429             #endif
18430             #ifdef HAVE_WCHAR_H
18431             #  ifdef __CYGWIN__
18432             #    include <stddef.h>
18433             #  endif
18434             #  include <wchar.h>
18435             #endif
18436             #ifdef HAVE_STDLIB_H
18437             #  include <stdlib.h>
18438             #endif
18439             #include <stdio.h>
18440             int main()
18441             {
18442                 FILE *f=fopen("conftestval", "w");
18443                 if (!f) exit(1);
18444                 fprintf(f, "%i", sizeof(wchar_t));
18445                 exit(0);
18446             }
18447
18448 _ACEOF
18449 rm -f conftest$ac_exeext
18450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18451   (eval $ac_link) 2>&5
18452   ac_status=$?
18453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18456   (eval $ac_try) 2>&5
18457   ac_status=$?
18458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459   (exit $ac_status); }; }; then
18460   wx_cv_sizeof_wchar_t=`cat conftestval`
18461 else
18462   echo "$as_me: program exited with status $ac_status" >&5
18463 echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18465
18466 ( exit $ac_status )
18467 wx_cv_sizeof_wchar_t=0
18468 fi
18469 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18470 fi
18471
18472 fi
18473 echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18474 echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18475
18476 cat >>confdefs.h <<_ACEOF
18477 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18478 _ACEOF
18479
18480
18481 echo "$as_me:$LINENO: checking for va_copy" >&5
18482 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18483 if test "${wx_cv_func_va_copy+set}" = set; then
18484   echo $ECHO_N "(cached) $ECHO_C" >&6
18485 else
18486
18487         cat >conftest.$ac_ext <<_ACEOF
18488
18489             #include <stdarg.h>
18490             void foo(char *f, ...)
18491             {
18492                 va_list ap1, ap2;
18493                 va_start(ap1, f);
18494                 va_copy(ap2, ap1);
18495                 va_end(ap2);
18496                 va_end(ap1);
18497             }
18498             int main()
18499             {
18500                 foo("hi", 17);
18501                 return 0;
18502             }
18503 _ACEOF
18504 rm -f conftest.$ac_objext conftest$ac_exeext
18505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18506   (eval $ac_link) 2>conftest.er1
18507   ac_status=$?
18508   grep -v '^ *+' conftest.er1 >conftest.err
18509   rm -f conftest.er1
18510   cat conftest.err >&5
18511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512   (exit $ac_status); } &&
18513          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18515   (eval $ac_try) 2>&5
18516   ac_status=$?
18517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518   (exit $ac_status); }; } &&
18519          { ac_try='test -s conftest$ac_exeext'
18520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18521   (eval $ac_try) 2>&5
18522   ac_status=$?
18523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524   (exit $ac_status); }; }; then
18525   wx_cv_func_va_copy=yes
18526 else
18527   echo "$as_me: failed program was:" >&5
18528 sed 's/^/| /' conftest.$ac_ext >&5
18529
18530 wx_cv_func_va_copy=no
18531
18532 fi
18533 rm -f conftest.err conftest.$ac_objext \
18534       conftest$ac_exeext conftest.$ac_ext
18535
18536
18537 fi
18538 echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18539 echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18540
18541 if test $wx_cv_func_va_copy = "yes"; then
18542     cat >>confdefs.h <<\_ACEOF
18543 #define HAVE_VA_COPY 1
18544 _ACEOF
18545
18546 else
18547         echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18548 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18549 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18550   echo $ECHO_N "(cached) $ECHO_C" >&6
18551 else
18552
18553             if test "$cross_compiling" = yes; then
18554                   wx_cv_type_va_list_lvalue=yes
18555
18556 else
18557   cat >conftest.$ac_ext <<_ACEOF
18558
18559                 #include <stdarg.h>
18560                 int foo(char *f, ...)
18561                 {
18562                     va_list ap1, ap2;
18563                     va_start(ap1, f);
18564                     ap2 = ap1;
18565                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18566                         return 1;
18567                     va_end(ap2);
18568                     va_end(ap1);
18569                     return 0;
18570                 }
18571                 int main()
18572                 {
18573                     return foo("hi", 17);
18574                 }
18575 _ACEOF
18576 rm -f conftest$ac_exeext
18577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18578   (eval $ac_link) 2>&5
18579   ac_status=$?
18580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583   (eval $ac_try) 2>&5
18584   ac_status=$?
18585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586   (exit $ac_status); }; }; then
18587   wx_cv_type_va_list_lvalue=yes
18588 else
18589   echo "$as_me: program exited with status $ac_status" >&5
18590 echo "$as_me: failed program was:" >&5
18591 sed 's/^/| /' conftest.$ac_ext >&5
18592
18593 ( exit $ac_status )
18594 wx_cv_type_va_list_lvalue=no
18595 fi
18596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18597 fi
18598
18599
18600 fi
18601 echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18602 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18603
18604     if test $wx_cv_type_va_list_lvalue != "yes"; then
18605                         cat >>confdefs.h <<\_ACEOF
18606 #define VA_LIST_IS_ARRAY 1
18607 _ACEOF
18608
18609     fi
18610 fi
18611
18612 # Check whether --enable-largefile or --disable-largefile was given.
18613 if test "${enable_largefile+set}" = set; then
18614   enableval="$enable_largefile"
18615
18616 fi;
18617 if test "$enable_largefile" != no; then
18618             wx_largefile=no
18619
18620     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18621 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18622 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18623   echo $ECHO_N "(cached) $ECHO_C" >&6
18624 else
18625
18626           cat >conftest.$ac_ext <<_ACEOF
18627 /* confdefs.h.  */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h.  */
18632 #define _FILE_OFFSET_BITS 64
18633                           #include <sys/types.h>
18634 int
18635 main ()
18636 {
18637 typedef struct {
18638     unsigned int field: sizeof(off_t) == 8;
18639 } wxlf;
18640
18641   ;
18642   return 0;
18643 }
18644 _ACEOF
18645 rm -f conftest.$ac_objext
18646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18647   (eval $ac_compile) 2>conftest.er1
18648   ac_status=$?
18649   grep -v '^ *+' conftest.er1 >conftest.err
18650   rm -f conftest.er1
18651   cat conftest.err >&5
18652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653   (exit $ac_status); } &&
18654          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656   (eval $ac_try) 2>&5
18657   ac_status=$?
18658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659   (exit $ac_status); }; } &&
18660          { ac_try='test -s conftest.$ac_objext'
18661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662   (eval $ac_try) 2>&5
18663   ac_status=$?
18664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665   (exit $ac_status); }; }; then
18666   ac_cv_sys_file_offset_bits=64
18667 else
18668   echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18670
18671 ac_cv_sys_file_offset_bits=no
18672 fi
18673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18674
18675
18676 fi
18677 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18678 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18679
18680     if test "$ac_cv_sys_file_offset_bits" != no; then
18681         wx_largefile=yes
18682         cat >>confdefs.h <<_ACEOF
18683 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18684 _ACEOF
18685
18686     fi
18687
18688     if test "x$wx_largefile" != "xyes"; then
18689
18690     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18691 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18692 if test "${ac_cv_sys_large_files+set}" = set; then
18693   echo $ECHO_N "(cached) $ECHO_C" >&6
18694 else
18695
18696           cat >conftest.$ac_ext <<_ACEOF
18697 /* confdefs.h.  */
18698 _ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h.  */
18702 #define _LARGE_FILES 1
18703                           #include <sys/types.h>
18704 int
18705 main ()
18706 {
18707 typedef struct {
18708     unsigned int field: sizeof(off_t) == 8;
18709 } wxlf;
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_cv_sys_large_files=1
18737 else
18738   echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18740
18741 ac_cv_sys_large_files=no
18742 fi
18743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18744
18745
18746 fi
18747 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18748 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18749
18750     if test "$ac_cv_sys_large_files" != no; then
18751         wx_largefile=yes
18752         cat >>confdefs.h <<_ACEOF
18753 #define _LARGE_FILES $ac_cv_sys_large_files
18754 _ACEOF
18755
18756     fi
18757
18758     fi
18759
18760     echo "$as_me:$LINENO: checking if large file support is available" >&5
18761 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18762     if test "x$wx_largefile" = "xyes"; then
18763         cat >>confdefs.h <<\_ACEOF
18764 #define HAVE_LARGEFILE_SUPPORT 1
18765 _ACEOF
18766
18767     fi
18768     echo "$as_me:$LINENO: result: $wx_largefile" >&5
18769 echo "${ECHO_T}$wx_largefile" >&6
18770 fi
18771
18772
18773 if test "x$wx_largefile" = "xyes"; then
18774     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18775         WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18776     else
18777         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18778     fi
18779         echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18780 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
18781 if test "${ac_cv_sys_largefile_source+set}" = set; then
18782   echo $ECHO_N "(cached) $ECHO_C" >&6
18783 else
18784   while :; do
18785   ac_cv_sys_largefile_source=no
18786   cat >conftest.$ac_ext <<_ACEOF
18787 /* confdefs.h.  */
18788 _ACEOF
18789 cat confdefs.h >>conftest.$ac_ext
18790 cat >>conftest.$ac_ext <<_ACEOF
18791 /* end confdefs.h.  */
18792 #include <stdio.h>
18793 int
18794 main ()
18795 {
18796 return !fseeko;
18797   ;
18798   return 0;
18799 }
18800 _ACEOF
18801 rm -f conftest.$ac_objext
18802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18803   (eval $ac_compile) 2>conftest.er1
18804   ac_status=$?
18805   grep -v '^ *+' conftest.er1 >conftest.err
18806   rm -f conftest.er1
18807   cat conftest.err >&5
18808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809   (exit $ac_status); } &&
18810          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18812   (eval $ac_try) 2>&5
18813   ac_status=$?
18814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815   (exit $ac_status); }; } &&
18816          { ac_try='test -s conftest.$ac_objext'
18817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18818   (eval $ac_try) 2>&5
18819   ac_status=$?
18820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821   (exit $ac_status); }; }; then
18822   break
18823 else
18824   echo "$as_me: failed program was:" >&5
18825 sed 's/^/| /' conftest.$ac_ext >&5
18826
18827 fi
18828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18829   cat >conftest.$ac_ext <<_ACEOF
18830 /* confdefs.h.  */
18831 _ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h.  */
18835 #define _LARGEFILE_SOURCE 1
18836 #include <stdio.h>
18837 int
18838 main ()
18839 {
18840 return !fseeko;
18841   ;
18842   return 0;
18843 }
18844 _ACEOF
18845 rm -f conftest.$ac_objext
18846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18847   (eval $ac_compile) 2>conftest.er1
18848   ac_status=$?
18849   grep -v '^ *+' conftest.er1 >conftest.err
18850   rm -f conftest.er1
18851   cat conftest.err >&5
18852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853   (exit $ac_status); } &&
18854          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856   (eval $ac_try) 2>&5
18857   ac_status=$?
18858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859   (exit $ac_status); }; } &&
18860          { ac_try='test -s conftest.$ac_objext'
18861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862   (eval $ac_try) 2>&5
18863   ac_status=$?
18864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865   (exit $ac_status); }; }; then
18866   ac_cv_sys_largefile_source=1; break
18867 else
18868   echo "$as_me: failed program was:" >&5
18869 sed 's/^/| /' conftest.$ac_ext >&5
18870
18871 fi
18872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18873   break
18874 done
18875 fi
18876 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18877 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
18878 if test "$ac_cv_sys_largefile_source" != no; then
18879
18880 cat >>confdefs.h <<_ACEOF
18881 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18882 _ACEOF
18883
18884 fi
18885 rm -f conftest*
18886
18887 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18888 # in glibc 2.1.3, but that breaks too many other things.
18889 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18890 echo "$as_me:$LINENO: checking for fseeko" >&5
18891 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
18892 if test "${ac_cv_func_fseeko+set}" = set; then
18893   echo $ECHO_N "(cached) $ECHO_C" >&6
18894 else
18895   cat >conftest.$ac_ext <<_ACEOF
18896 /* confdefs.h.  */
18897 _ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h.  */
18901 #include <stdio.h>
18902 int
18903 main ()
18904 {
18905 return fseeko && fseeko (stdin, 0, 0);
18906   ;
18907   return 0;
18908 }
18909 _ACEOF
18910 rm -f conftest.$ac_objext conftest$ac_exeext
18911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18912   (eval $ac_link) 2>conftest.er1
18913   ac_status=$?
18914   grep -v '^ *+' conftest.er1 >conftest.err
18915   rm -f conftest.er1
18916   cat conftest.err >&5
18917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918   (exit $ac_status); } &&
18919          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18921   (eval $ac_try) 2>&5
18922   ac_status=$?
18923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924   (exit $ac_status); }; } &&
18925          { ac_try='test -s conftest$ac_exeext'
18926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18927   (eval $ac_try) 2>&5
18928   ac_status=$?
18929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930   (exit $ac_status); }; }; then
18931   ac_cv_func_fseeko=yes
18932 else
18933   echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18935
18936 ac_cv_func_fseeko=no
18937 fi
18938 rm -f conftest.err conftest.$ac_objext \
18939       conftest$ac_exeext conftest.$ac_ext
18940 fi
18941 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
18942 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
18943 if test $ac_cv_func_fseeko = yes; then
18944
18945 cat >>confdefs.h <<\_ACEOF
18946 #define HAVE_FSEEKO 1
18947 _ACEOF
18948
18949 fi
18950
18951     if test "$ac_cv_sys_largefile_source" != no; then
18952         WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
18953     fi
18954     CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18955 fi
18956
18957 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18958 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18959 if test "${ac_cv_c_bigendian+set}" = set; then
18960   echo $ECHO_N "(cached) $ECHO_C" >&6
18961 else
18962   ac_cv_c_bigendian=unknown
18963 # See if sys/param.h defines the BYTE_ORDER macro.
18964 cat >conftest.$ac_ext <<_ACEOF
18965 /* confdefs.h.  */
18966 _ACEOF
18967 cat confdefs.h >>conftest.$ac_ext
18968 cat >>conftest.$ac_ext <<_ACEOF
18969 /* end confdefs.h.  */
18970 #include <sys/types.h>
18971 #include <sys/param.h>
18972 int
18973 main ()
18974 {
18975
18976 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18977  bogus endian macros
18978 #endif
18979   ;
18980   return 0;
18981 }
18982 _ACEOF
18983 rm -f conftest.$ac_objext
18984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18985   (eval $ac_compile) 2>conftest.er1
18986   ac_status=$?
18987   grep -v '^ *+' conftest.er1 >conftest.err
18988   rm -f conftest.er1
18989   cat conftest.err >&5
18990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991   (exit $ac_status); } &&
18992          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994   (eval $ac_try) 2>&5
18995   ac_status=$?
18996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997   (exit $ac_status); }; } &&
18998          { ac_try='test -s conftest.$ac_objext'
18999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19000   (eval $ac_try) 2>&5
19001   ac_status=$?
19002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003   (exit $ac_status); }; }; then
19004   # It does; now see whether it defined to BIG_ENDIAN or not.
19005 cat >conftest.$ac_ext <<_ACEOF
19006 /* confdefs.h.  */
19007 _ACEOF
19008 cat confdefs.h >>conftest.$ac_ext
19009 cat >>conftest.$ac_ext <<_ACEOF
19010 /* end confdefs.h.  */
19011 #include <sys/types.h>
19012 #include <sys/param.h>
19013 int
19014 main ()
19015 {
19016
19017 #if BYTE_ORDER != BIG_ENDIAN
19018  not big endian
19019 #endif
19020   ;
19021   return 0;
19022 }
19023 _ACEOF
19024 rm -f conftest.$ac_objext
19025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19026   (eval $ac_compile) 2>conftest.er1
19027   ac_status=$?
19028   grep -v '^ *+' conftest.er1 >conftest.err
19029   rm -f conftest.er1
19030   cat conftest.err >&5
19031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032   (exit $ac_status); } &&
19033          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035   (eval $ac_try) 2>&5
19036   ac_status=$?
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); }; } &&
19039          { ac_try='test -s conftest.$ac_objext'
19040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041   (eval $ac_try) 2>&5
19042   ac_status=$?
19043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044   (exit $ac_status); }; }; then
19045   ac_cv_c_bigendian=yes
19046 else
19047   echo "$as_me: failed program was:" >&5
19048 sed 's/^/| /' conftest.$ac_ext >&5
19049
19050 ac_cv_c_bigendian=no
19051 fi
19052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19053 else
19054   echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19056
19057 fi
19058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19059 if test $ac_cv_c_bigendian = unknown; then
19060 if test "$cross_compiling" = yes; then
19061   ac_cv_c_bigendian=unknown
19062 else
19063   cat >conftest.$ac_ext <<_ACEOF
19064 /* confdefs.h.  */
19065 _ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h.  */
19069 main () {
19070   /* Are we little or big endian?  From Harbison&Steele.  */
19071   union
19072   {
19073     long l;
19074     char c[sizeof (long)];
19075   } u;
19076   u.l = 1;
19077   exit (u.c[sizeof (long) - 1] == 1);
19078 }
19079 _ACEOF
19080 rm -f conftest$ac_exeext
19081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19082   (eval $ac_link) 2>&5
19083   ac_status=$?
19084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087   (eval $ac_try) 2>&5
19088   ac_status=$?
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); }; }; then
19091   ac_cv_c_bigendian=no
19092 else
19093   echo "$as_me: program exited with status $ac_status" >&5
19094 echo "$as_me: failed program was:" >&5
19095 sed 's/^/| /' conftest.$ac_ext >&5
19096
19097 ( exit $ac_status )
19098 ac_cv_c_bigendian=yes
19099 fi
19100 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19101 fi
19102 fi
19103 fi
19104 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19105 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19106 if test $ac_cv_c_bigendian = unknown; then
19107   { 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
19108 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;}
19109 fi
19110 if test $ac_cv_c_bigendian = yes; then
19111   cat >>confdefs.h <<\_ACEOF
19112 #define WORDS_BIGENDIAN 1
19113 _ACEOF
19114
19115 fi
19116
19117
19118 ac_ext=cc
19119 ac_cpp='$CXXCPP $CPPFLAGS'
19120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19123 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
19124 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
19125 if test -z "$CXXCPP"; then
19126   if test "${ac_cv_prog_CXXCPP+set}" = set; then
19127   echo $ECHO_N "(cached) $ECHO_C" >&6
19128 else
19129       # Double quotes because CXXCPP needs to be expanded
19130     for CXXCPP in "$CXX -E" "/lib/cpp"
19131     do
19132       ac_preproc_ok=false
19133 for ac_cxx_preproc_warn_flag in '' yes
19134 do
19135   # Use a header file that comes with gcc, so configuring glibc
19136   # with a fresh cross-compiler works.
19137   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19138   # <limits.h> exists even on freestanding compilers.
19139   # On the NeXT, cc -E runs the code through the compiler's parser,
19140   # not just through cpp. "Syntax error" is here to catch this case.
19141   cat >conftest.$ac_ext <<_ACEOF
19142 /* confdefs.h.  */
19143 _ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h.  */
19147 #ifdef __STDC__
19148 # include <limits.h>
19149 #else
19150 # include <assert.h>
19151 #endif
19152                      Syntax error
19153 _ACEOF
19154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19155   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19156   ac_status=$?
19157   grep -v '^ *+' conftest.er1 >conftest.err
19158   rm -f conftest.er1
19159   cat conftest.err >&5
19160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161   (exit $ac_status); } >/dev/null; then
19162   if test -s conftest.err; then
19163     ac_cpp_err=$ac_cxx_preproc_warn_flag
19164     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19165   else
19166     ac_cpp_err=
19167   fi
19168 else
19169   ac_cpp_err=yes
19170 fi
19171 if test -z "$ac_cpp_err"; then
19172   :
19173 else
19174   echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19176
19177   # Broken: fails on valid input.
19178 continue
19179 fi
19180 rm -f conftest.err conftest.$ac_ext
19181
19182   # OK, works on sane cases.  Now check whether non-existent headers
19183   # can be detected and how.
19184   cat >conftest.$ac_ext <<_ACEOF
19185 /* confdefs.h.  */
19186 _ACEOF
19187 cat confdefs.h >>conftest.$ac_ext
19188 cat >>conftest.$ac_ext <<_ACEOF
19189 /* end confdefs.h.  */
19190 #include <ac_nonexistent.h>
19191 _ACEOF
19192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19193   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19194   ac_status=$?
19195   grep -v '^ *+' conftest.er1 >conftest.err
19196   rm -f conftest.er1
19197   cat conftest.err >&5
19198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199   (exit $ac_status); } >/dev/null; then
19200   if test -s conftest.err; then
19201     ac_cpp_err=$ac_cxx_preproc_warn_flag
19202     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19203   else
19204     ac_cpp_err=
19205   fi
19206 else
19207   ac_cpp_err=yes
19208 fi
19209 if test -z "$ac_cpp_err"; then
19210   # Broken: success on invalid input.
19211 continue
19212 else
19213   echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19215
19216   # Passes both tests.
19217 ac_preproc_ok=:
19218 break
19219 fi
19220 rm -f conftest.err conftest.$ac_ext
19221
19222 done
19223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19224 rm -f conftest.err conftest.$ac_ext
19225 if $ac_preproc_ok; then
19226   break
19227 fi
19228
19229     done
19230     ac_cv_prog_CXXCPP=$CXXCPP
19231
19232 fi
19233   CXXCPP=$ac_cv_prog_CXXCPP
19234 else
19235   ac_cv_prog_CXXCPP=$CXXCPP
19236 fi
19237 echo "$as_me:$LINENO: result: $CXXCPP" >&5
19238 echo "${ECHO_T}$CXXCPP" >&6
19239 ac_preproc_ok=false
19240 for ac_cxx_preproc_warn_flag in '' yes
19241 do
19242   # Use a header file that comes with gcc, so configuring glibc
19243   # with a fresh cross-compiler works.
19244   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19245   # <limits.h> exists even on freestanding compilers.
19246   # On the NeXT, cc -E runs the code through the compiler's parser,
19247   # not just through cpp. "Syntax error" is here to catch this case.
19248   cat >conftest.$ac_ext <<_ACEOF
19249 /* confdefs.h.  */
19250 _ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h.  */
19254 #ifdef __STDC__
19255 # include <limits.h>
19256 #else
19257 # include <assert.h>
19258 #endif
19259                      Syntax error
19260 _ACEOF
19261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19262   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19263   ac_status=$?
19264   grep -v '^ *+' conftest.er1 >conftest.err
19265   rm -f conftest.er1
19266   cat conftest.err >&5
19267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268   (exit $ac_status); } >/dev/null; then
19269   if test -s conftest.err; then
19270     ac_cpp_err=$ac_cxx_preproc_warn_flag
19271     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19272   else
19273     ac_cpp_err=
19274   fi
19275 else
19276   ac_cpp_err=yes
19277 fi
19278 if test -z "$ac_cpp_err"; then
19279   :
19280 else
19281   echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19283
19284   # Broken: fails on valid input.
19285 continue
19286 fi
19287 rm -f conftest.err conftest.$ac_ext
19288
19289   # OK, works on sane cases.  Now check whether non-existent headers
19290   # can be detected and how.
19291   cat >conftest.$ac_ext <<_ACEOF
19292 /* confdefs.h.  */
19293 _ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h.  */
19297 #include <ac_nonexistent.h>
19298 _ACEOF
19299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19300   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19301   ac_status=$?
19302   grep -v '^ *+' conftest.er1 >conftest.err
19303   rm -f conftest.er1
19304   cat conftest.err >&5
19305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); } >/dev/null; then
19307   if test -s conftest.err; then
19308     ac_cpp_err=$ac_cxx_preproc_warn_flag
19309     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19310   else
19311     ac_cpp_err=
19312   fi
19313 else
19314   ac_cpp_err=yes
19315 fi
19316 if test -z "$ac_cpp_err"; then
19317   # Broken: success on invalid input.
19318 continue
19319 else
19320   echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19322
19323   # Passes both tests.
19324 ac_preproc_ok=:
19325 break
19326 fi
19327 rm -f conftest.err conftest.$ac_ext
19328
19329 done
19330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19331 rm -f conftest.err conftest.$ac_ext
19332 if $ac_preproc_ok; then
19333   :
19334 else
19335   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19336 See \`config.log' for more details." >&5
19337 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19338 See \`config.log' for more details." >&2;}
19339    { (exit 1); exit 1; }; }
19340 fi
19341
19342 ac_ext=cc
19343 ac_cpp='$CXXCPP $CPPFLAGS'
19344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19347
19348
19349
19350
19351
19352     ac_ext=cc
19353 ac_cpp='$CXXCPP $CPPFLAGS'
19354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19357
19358
19359
19360 for ac_header in iostream
19361 do
19362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19364   echo "$as_me:$LINENO: checking for $ac_header" >&5
19365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19367   echo $ECHO_N "(cached) $ECHO_C" >&6
19368 fi
19369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19371 else
19372   # Is the header compilable?
19373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19375 cat >conftest.$ac_ext <<_ACEOF
19376 /* confdefs.h.  */
19377 _ACEOF
19378 cat confdefs.h >>conftest.$ac_ext
19379 cat >>conftest.$ac_ext <<_ACEOF
19380 /* end confdefs.h.  */
19381 $ac_includes_default
19382 #include <$ac_header>
19383 _ACEOF
19384 rm -f conftest.$ac_objext
19385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19386   (eval $ac_compile) 2>conftest.er1
19387   ac_status=$?
19388   grep -v '^ *+' conftest.er1 >conftest.err
19389   rm -f conftest.er1
19390   cat conftest.err >&5
19391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392   (exit $ac_status); } &&
19393          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19395   (eval $ac_try) 2>&5
19396   ac_status=$?
19397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); }; } &&
19399          { ac_try='test -s conftest.$ac_objext'
19400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401   (eval $ac_try) 2>&5
19402   ac_status=$?
19403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404   (exit $ac_status); }; }; then
19405   ac_header_compiler=yes
19406 else
19407   echo "$as_me: failed program was:" >&5
19408 sed 's/^/| /' conftest.$ac_ext >&5
19409
19410 ac_header_compiler=no
19411 fi
19412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19414 echo "${ECHO_T}$ac_header_compiler" >&6
19415
19416 # Is the header present?
19417 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19419 cat >conftest.$ac_ext <<_ACEOF
19420 /* confdefs.h.  */
19421 _ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h.  */
19425 #include <$ac_header>
19426 _ACEOF
19427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19428   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19429   ac_status=$?
19430   grep -v '^ *+' conftest.er1 >conftest.err
19431   rm -f conftest.er1
19432   cat conftest.err >&5
19433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434   (exit $ac_status); } >/dev/null; then
19435   if test -s conftest.err; then
19436     ac_cpp_err=$ac_cxx_preproc_warn_flag
19437     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19438   else
19439     ac_cpp_err=
19440   fi
19441 else
19442   ac_cpp_err=yes
19443 fi
19444 if test -z "$ac_cpp_err"; then
19445   ac_header_preproc=yes
19446 else
19447   echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19449
19450   ac_header_preproc=no
19451 fi
19452 rm -f conftest.err conftest.$ac_ext
19453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19454 echo "${ECHO_T}$ac_header_preproc" >&6
19455
19456 # So?  What about this header?
19457 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19458   yes:no: )
19459     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19463     ac_header_preproc=yes
19464     ;;
19465   no:yes:* )
19466     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19468     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19469 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19470     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19472     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19473 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19476     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19478     (
19479       cat <<\_ASBOX
19480 ## ----------------------------------------- ##
19481 ## Report this to wx-dev@lists.wxwidgets.org ##
19482 ## ----------------------------------------- ##
19483 _ASBOX
19484     ) |
19485       sed "s/^/$as_me: WARNING:     /" >&2
19486     ;;
19487 esac
19488 echo "$as_me:$LINENO: checking for $ac_header" >&5
19489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19491   echo $ECHO_N "(cached) $ECHO_C" >&6
19492 else
19493   eval "$as_ac_Header=\$ac_header_preproc"
19494 fi
19495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19497
19498 fi
19499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19500   cat >>confdefs.h <<_ACEOF
19501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19502 _ACEOF
19503
19504 fi
19505
19506 done
19507
19508
19509     if test "$ac_cv_header_iostream" = "yes" ; then
19510       :
19511     else
19512       cat >>confdefs.h <<\_ACEOF
19513 #define wxUSE_IOSTREAMH 1
19514 _ACEOF
19515
19516     fi
19517
19518     ac_ext=c
19519 ac_cpp='$CPP $CPPFLAGS'
19520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19523
19524
19525
19526
19527   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19528 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19529 if test "${wx_cv_cpp_bool+set}" = set; then
19530   echo $ECHO_N "(cached) $ECHO_C" >&6
19531 else
19532
19533
19534
19535     ac_ext=cc
19536 ac_cpp='$CXXCPP $CPPFLAGS'
19537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19540
19541
19542     cat >conftest.$ac_ext <<_ACEOF
19543 /* confdefs.h.  */
19544 _ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h.  */
19548
19549
19550 int
19551 main ()
19552 {
19553
19554         bool b = true;
19555
19556         return 0;
19557
19558   ;
19559   return 0;
19560 }
19561 _ACEOF
19562 rm -f conftest.$ac_objext
19563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19564   (eval $ac_compile) 2>conftest.er1
19565   ac_status=$?
19566   grep -v '^ *+' conftest.er1 >conftest.err
19567   rm -f conftest.er1
19568   cat conftest.err >&5
19569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); } &&
19571          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19573   (eval $ac_try) 2>&5
19574   ac_status=$?
19575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576   (exit $ac_status); }; } &&
19577          { ac_try='test -s conftest.$ac_objext'
19578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579   (eval $ac_try) 2>&5
19580   ac_status=$?
19581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582   (exit $ac_status); }; }; then
19583
19584         wx_cv_cpp_bool=yes
19585
19586 else
19587   echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19589
19590
19591         wx_cv_cpp_bool=no
19592
19593
19594 fi
19595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19596
19597     ac_ext=c
19598 ac_cpp='$CPP $CPPFLAGS'
19599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19602
19603
19604 fi
19605 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19606 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19607
19608   if test "$wx_cv_cpp_bool" = "yes"; then
19609     cat >>confdefs.h <<\_ACEOF
19610 #define HAVE_BOOL 1
19611 _ACEOF
19612
19613   fi
19614
19615
19616
19617   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19618 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19619 if test "${wx_cv_explicit+set}" = set; then
19620   echo $ECHO_N "(cached) $ECHO_C" >&6
19621 else
19622
19623
19624
19625     ac_ext=cc
19626 ac_cpp='$CXXCPP $CPPFLAGS'
19627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19630
19631
19632             cat >conftest.$ac_ext <<_ACEOF
19633 /* confdefs.h.  */
19634 _ACEOF
19635 cat confdefs.h >>conftest.$ac_ext
19636 cat >>conftest.$ac_ext <<_ACEOF
19637 /* end confdefs.h.  */
19638
19639         class Foo { public: explicit Foo(int) {} };
19640
19641 int
19642 main ()
19643 {
19644
19645         return 0;
19646
19647   ;
19648   return 0;
19649 }
19650 _ACEOF
19651 rm -f conftest.$ac_objext
19652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19653   (eval $ac_compile) 2>conftest.er1
19654   ac_status=$?
19655   grep -v '^ *+' conftest.er1 >conftest.err
19656   rm -f conftest.er1
19657   cat conftest.err >&5
19658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659   (exit $ac_status); } &&
19660          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662   (eval $ac_try) 2>&5
19663   ac_status=$?
19664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665   (exit $ac_status); }; } &&
19666          { ac_try='test -s conftest.$ac_objext'
19667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668   (eval $ac_try) 2>&5
19669   ac_status=$?
19670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671   (exit $ac_status); }; }; then
19672
19673         cat >conftest.$ac_ext <<_ACEOF
19674 /* confdefs.h.  */
19675 _ACEOF
19676 cat confdefs.h >>conftest.$ac_ext
19677 cat >>conftest.$ac_ext <<_ACEOF
19678 /* end confdefs.h.  */
19679
19680                 class Foo { public: explicit Foo(int) {} };
19681                 static void TakeFoo(const Foo& foo) { }
19682
19683 int
19684 main ()
19685 {
19686
19687                 TakeFoo(17);
19688                 return 0;
19689
19690   ;
19691   return 0;
19692 }
19693 _ACEOF
19694 rm -f conftest.$ac_objext
19695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19696   (eval $ac_compile) 2>conftest.er1
19697   ac_status=$?
19698   grep -v '^ *+' conftest.er1 >conftest.err
19699   rm -f conftest.er1
19700   cat conftest.err >&5
19701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702   (exit $ac_status); } &&
19703          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705   (eval $ac_try) 2>&5
19706   ac_status=$?
19707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708   (exit $ac_status); }; } &&
19709          { ac_try='test -s conftest.$ac_objext'
19710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19711   (eval $ac_try) 2>&5
19712   ac_status=$?
19713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714   (exit $ac_status); }; }; then
19715   wx_cv_explicit=no
19716 else
19717   echo "$as_me: failed program was:" >&5
19718 sed 's/^/| /' conftest.$ac_ext >&5
19719
19720 wx_cv_explicit=yes
19721
19722 fi
19723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19724
19725 else
19726   echo "$as_me: failed program was:" >&5
19727 sed 's/^/| /' conftest.$ac_ext >&5
19728
19729 wx_cv_explicit=no
19730
19731 fi
19732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19733
19734     ac_ext=c
19735 ac_cpp='$CPP $CPPFLAGS'
19736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19739
19740
19741 fi
19742 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19743 echo "${ECHO_T}$wx_cv_explicit" >&6
19744
19745   if test "$wx_cv_explicit" = "yes"; then
19746     cat >>confdefs.h <<\_ACEOF
19747 #define HAVE_EXPLICIT 1
19748 _ACEOF
19749
19750   fi
19751
19752
19753 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19754 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19755 if test "${ac_cv_cxx_const_cast+set}" = set; then
19756   echo $ECHO_N "(cached) $ECHO_C" >&6
19757 else
19758
19759
19760  ac_ext=cc
19761 ac_cpp='$CXXCPP $CPPFLAGS'
19762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19765
19766  cat >conftest.$ac_ext <<_ACEOF
19767 /* confdefs.h.  */
19768 _ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h.  */
19772
19773 int
19774 main ()
19775 {
19776 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19777   ;
19778   return 0;
19779 }
19780 _ACEOF
19781 rm -f conftest.$ac_objext
19782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19783   (eval $ac_compile) 2>conftest.er1
19784   ac_status=$?
19785   grep -v '^ *+' conftest.er1 >conftest.err
19786   rm -f conftest.er1
19787   cat conftest.err >&5
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); } &&
19790          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792   (eval $ac_try) 2>&5
19793   ac_status=$?
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); }; } &&
19796          { ac_try='test -s conftest.$ac_objext'
19797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798   (eval $ac_try) 2>&5
19799   ac_status=$?
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); }; }; then
19802   ac_cv_cxx_const_cast=yes
19803 else
19804   echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19806
19807 ac_cv_cxx_const_cast=no
19808 fi
19809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19810  ac_ext=c
19811 ac_cpp='$CPP $CPPFLAGS'
19812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19815
19816
19817 fi
19818 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19819 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19820 if test "$ac_cv_cxx_const_cast" = yes; then
19821
19822 cat >>confdefs.h <<\_ACEOF
19823 #define HAVE_CONST_CAST
19824 _ACEOF
19825
19826 fi
19827
19828 echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19829 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19830 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19831   echo $ECHO_N "(cached) $ECHO_C" >&6
19832 else
19833
19834
19835  ac_ext=cc
19836 ac_cpp='$CXXCPP $CPPFLAGS'
19837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19840
19841  cat >conftest.$ac_ext <<_ACEOF
19842 /* confdefs.h.  */
19843 _ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h.  */
19847 #include <typeinfo>
19848 class Base { public : Base () {} virtual void f () = 0;};
19849 class Derived : public Base { public : Derived () {} virtual void f () {} };
19850 class Unrelated { public : Unrelated () {} };
19851 int g (Unrelated&) { return 0; }
19852 int
19853 main ()
19854 {
19855
19856 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19857   ;
19858   return 0;
19859 }
19860 _ACEOF
19861 rm -f conftest.$ac_objext
19862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19863   (eval $ac_compile) 2>conftest.er1
19864   ac_status=$?
19865   grep -v '^ *+' conftest.er1 >conftest.err
19866   rm -f conftest.er1
19867   cat conftest.err >&5
19868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869   (exit $ac_status); } &&
19870          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872   (eval $ac_try) 2>&5
19873   ac_status=$?
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); }; } &&
19876          { ac_try='test -s conftest.$ac_objext'
19877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878   (eval $ac_try) 2>&5
19879   ac_status=$?
19880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881   (exit $ac_status); }; }; then
19882   ac_cv_cxx_reinterpret_cast=yes
19883 else
19884   echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19886
19887 ac_cv_cxx_reinterpret_cast=no
19888 fi
19889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19890  ac_ext=c
19891 ac_cpp='$CPP $CPPFLAGS'
19892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19895
19896
19897 fi
19898 echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
19899 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
19900 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
19901
19902 cat >>confdefs.h <<\_ACEOF
19903 #define HAVE_REINTERPRET_CAST
19904 _ACEOF
19905
19906 fi
19907
19908 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19909 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19910 if test "${ac_cv_cxx_static_cast+set}" = set; then
19911   echo $ECHO_N "(cached) $ECHO_C" >&6
19912 else
19913
19914
19915  ac_ext=cc
19916 ac_cpp='$CXXCPP $CPPFLAGS'
19917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19920
19921  cat >conftest.$ac_ext <<_ACEOF
19922 /* confdefs.h.  */
19923 _ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h.  */
19927 #include <typeinfo>
19928 class Base { public : Base () {} virtual void f () = 0; };
19929 class Derived : public Base { public : Derived () {} virtual void f () {} };
19930 int g (Derived&) { return 0; }
19931 int
19932 main ()
19933 {
19934
19935 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19936   ;
19937   return 0;
19938 }
19939 _ACEOF
19940 rm -f conftest.$ac_objext
19941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19942   (eval $ac_compile) 2>conftest.er1
19943   ac_status=$?
19944   grep -v '^ *+' conftest.er1 >conftest.err
19945   rm -f conftest.er1
19946   cat conftest.err >&5
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); } &&
19949          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
19950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951   (eval $ac_try) 2>&5
19952   ac_status=$?
19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); }; } &&
19955          { ac_try='test -s conftest.$ac_objext'
19956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957   (eval $ac_try) 2>&5
19958   ac_status=$?
19959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960   (exit $ac_status); }; }; then
19961   ac_cv_cxx_static_cast=yes
19962 else
19963   echo "$as_me: failed program was:" >&5
19964 sed 's/^/| /' conftest.$ac_ext >&5
19965
19966 ac_cv_cxx_static_cast=no
19967 fi
19968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19969  ac_ext=c
19970 ac_cpp='$CPP $CPPFLAGS'
19971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19974
19975
19976 fi
19977 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19978 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19979 if test "$ac_cv_cxx_static_cast" = yes; then
19980
19981 cat >>confdefs.h <<\_ACEOF
19982 #define HAVE_STATIC_CAST
19983 _ACEOF
19984
19985 fi
19986
19987
19988 if test "$wxUSE_STL" = "yes"; then
19989     ac_ext=cc
19990 ac_cpp='$CXXCPP $CPPFLAGS'
19991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19994
19995
19996         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19997 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19998     cat >conftest.$ac_ext <<_ACEOF
19999 /* confdefs.h.  */
20000 _ACEOF
20001 cat confdefs.h >>conftest.$ac_ext
20002 cat >>conftest.$ac_ext <<_ACEOF
20003 /* end confdefs.h.  */
20004 #include <string>
20005                     #include <functional>
20006                     #include <algorithm>
20007                     #include <vector>
20008                     #include <list>
20009 int
20010 main ()
20011 {
20012 std::vector<int> moo;
20013                      std::list<int> foo;
20014                      std::vector<int>::iterator it =
20015                          std::find_if(moo.begin(), moo.end(),
20016                                       std::bind2nd(std::less<int>(), 3));
20017   ;
20018   return 0;
20019 }
20020 _ACEOF
20021 rm -f conftest.$ac_objext
20022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20023   (eval $ac_compile) 2>conftest.er1
20024   ac_status=$?
20025   grep -v '^ *+' conftest.er1 >conftest.err
20026   rm -f conftest.er1
20027   cat conftest.err >&5
20028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029   (exit $ac_status); } &&
20030          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032   (eval $ac_try) 2>&5
20033   ac_status=$?
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); }; } &&
20036          { ac_try='test -s conftest.$ac_objext'
20037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038   (eval $ac_try) 2>&5
20039   ac_status=$?
20040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041   (exit $ac_status); }; }; then
20042   echo "$as_me:$LINENO: result: yes" >&5
20043 echo "${ECHO_T}yes" >&6
20044 else
20045   echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20047
20048 echo "$as_me:$LINENO: result: no" >&5
20049 echo "${ECHO_T}no" >&6
20050                      { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
20051 echo "$as_me: error: Basic STL functionality missing" >&2;}
20052    { (exit 1); exit 1; }; }
20053 fi
20054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20055
20056         echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
20057 echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
20058     cat >conftest.$ac_ext <<_ACEOF
20059 /* confdefs.h.  */
20060 _ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h.  */
20064 #include <string>
20065 int
20066 main ()
20067 {
20068 std::wstring foo;
20069   ;
20070   return 0;
20071 }
20072 _ACEOF
20073 rm -f conftest.$ac_objext
20074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20075   (eval $ac_compile) 2>conftest.er1
20076   ac_status=$?
20077   grep -v '^ *+' conftest.er1 >conftest.err
20078   rm -f conftest.er1
20079   cat conftest.err >&5
20080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081   (exit $ac_status); } &&
20082          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084   (eval $ac_try) 2>&5
20085   ac_status=$?
20086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087   (exit $ac_status); }; } &&
20088          { ac_try='test -s conftest.$ac_objext'
20089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090   (eval $ac_try) 2>&5
20091   ac_status=$?
20092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093   (exit $ac_status); }; }; then
20094   echo "$as_me:$LINENO: result: yes" >&5
20095 echo "${ECHO_T}yes" >&6
20096                     cat >>confdefs.h <<\_ACEOF
20097 #define HAVE_STD_WSTRING 1
20098 _ACEOF
20099
20100 else
20101   echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20103
20104 echo "$as_me:$LINENO: result: no" >&5
20105 echo "${ECHO_T}no" >&6
20106 fi
20107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20108
20109         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
20110 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
20111     cat >conftest.$ac_ext <<_ACEOF
20112 /* confdefs.h.  */
20113 _ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h.  */
20117 #include <string>
20118 int
20119 main ()
20120 {
20121 std::string foo, bar;
20122                     foo.compare(bar);
20123                     foo.compare(1, 1, bar);
20124                     foo.compare(1, 1, bar, 1, 1);
20125                     foo.compare("");
20126                     foo.compare(1, 1, "");
20127                     foo.compare(1, 1, "", 2);
20128   ;
20129   return 0;
20130 }
20131 _ACEOF
20132 rm -f conftest.$ac_objext
20133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20134   (eval $ac_compile) 2>conftest.er1
20135   ac_status=$?
20136   grep -v '^ *+' conftest.er1 >conftest.err
20137   rm -f conftest.er1
20138   cat conftest.err >&5
20139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140   (exit $ac_status); } &&
20141          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143   (eval $ac_try) 2>&5
20144   ac_status=$?
20145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146   (exit $ac_status); }; } &&
20147          { ac_try='test -s conftest.$ac_objext'
20148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20149   (eval $ac_try) 2>&5
20150   ac_status=$?
20151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152   (exit $ac_status); }; }; then
20153   echo "$as_me:$LINENO: result: yes" >&5
20154 echo "${ECHO_T}yes" >&6
20155                     cat >>confdefs.h <<\_ACEOF
20156 #define HAVE_STD_STRING_COMPARE 1
20157 _ACEOF
20158
20159 else
20160   echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20162
20163 echo "$as_me:$LINENO: result: no" >&5
20164 echo "${ECHO_T}no" >&6
20165 fi
20166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20167
20168         if test "${ac_cv_header_hash_map+set}" = set; then
20169   echo "$as_me:$LINENO: checking for hash_map" >&5
20170 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20171 if test "${ac_cv_header_hash_map+set}" = set; then
20172   echo $ECHO_N "(cached) $ECHO_C" >&6
20173 fi
20174 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20175 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20176 else
20177   # Is the header compilable?
20178 echo "$as_me:$LINENO: checking hash_map usability" >&5
20179 echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
20180 cat >conftest.$ac_ext <<_ACEOF
20181 /* confdefs.h.  */
20182 _ACEOF
20183 cat confdefs.h >>conftest.$ac_ext
20184 cat >>conftest.$ac_ext <<_ACEOF
20185 /* end confdefs.h.  */
20186 $ac_includes_default
20187 #include <hash_map>
20188 _ACEOF
20189 rm -f conftest.$ac_objext
20190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20191   (eval $ac_compile) 2>conftest.er1
20192   ac_status=$?
20193   grep -v '^ *+' conftest.er1 >conftest.err
20194   rm -f conftest.er1
20195   cat conftest.err >&5
20196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197   (exit $ac_status); } &&
20198          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200   (eval $ac_try) 2>&5
20201   ac_status=$?
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); }; } &&
20204          { ac_try='test -s conftest.$ac_objext'
20205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206   (eval $ac_try) 2>&5
20207   ac_status=$?
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); }; }; then
20210   ac_header_compiler=yes
20211 else
20212   echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215 ac_header_compiler=no
20216 fi
20217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20219 echo "${ECHO_T}$ac_header_compiler" >&6
20220
20221 # Is the header present?
20222 echo "$as_me:$LINENO: checking hash_map presence" >&5
20223 echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
20224 cat >conftest.$ac_ext <<_ACEOF
20225 /* confdefs.h.  */
20226 _ACEOF
20227 cat confdefs.h >>conftest.$ac_ext
20228 cat >>conftest.$ac_ext <<_ACEOF
20229 /* end confdefs.h.  */
20230 #include <hash_map>
20231 _ACEOF
20232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20233   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20234   ac_status=$?
20235   grep -v '^ *+' conftest.er1 >conftest.err
20236   rm -f conftest.er1
20237   cat conftest.err >&5
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); } >/dev/null; then
20240   if test -s conftest.err; then
20241     ac_cpp_err=$ac_cxx_preproc_warn_flag
20242     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20243   else
20244     ac_cpp_err=
20245   fi
20246 else
20247   ac_cpp_err=yes
20248 fi
20249 if test -z "$ac_cpp_err"; then
20250   ac_header_preproc=yes
20251 else
20252   echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20254
20255   ac_header_preproc=no
20256 fi
20257 rm -f conftest.err conftest.$ac_ext
20258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20259 echo "${ECHO_T}$ac_header_preproc" >&6
20260
20261 # So?  What about this header?
20262 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20263   yes:no: )
20264     { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20265 echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
20266     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
20267 echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
20268     ac_header_preproc=yes
20269     ;;
20270   no:yes:* )
20271     { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
20272 echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
20273     { echo "$as_me:$LINENO: WARNING: hash_map:     check for missing prerequisite headers?" >&5
20274 echo "$as_me: WARNING: hash_map:     check for missing prerequisite headers?" >&2;}
20275     { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
20276 echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
20277     { echo "$as_me:$LINENO: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&5
20278 echo "$as_me: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
20279     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
20280 echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
20281     { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
20282 echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
20283     (
20284       cat <<\_ASBOX
20285 ## ----------------------------------------- ##
20286 ## Report this to wx-dev@lists.wxwidgets.org ##
20287 ## ----------------------------------------- ##
20288 _ASBOX
20289     ) |
20290       sed "s/^/$as_me: WARNING:     /" >&2
20291     ;;
20292 esac
20293 echo "$as_me:$LINENO: checking for hash_map" >&5
20294 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20295 if test "${ac_cv_header_hash_map+set}" = set; then
20296   echo $ECHO_N "(cached) $ECHO_C" >&6
20297 else
20298   ac_cv_header_hash_map=$ac_header_preproc
20299 fi
20300 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20301 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20302
20303 fi
20304 if test $ac_cv_header_hash_map = yes; then
20305   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20306 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20307                      cat >conftest.$ac_ext <<_ACEOF
20308 /* confdefs.h.  */
20309 _ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h.  */
20313 #include <hash_map>
20314                                      #include <hash_set>
20315 int
20316 main ()
20317 {
20318 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
20319                                      std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
20320   ;
20321   return 0;
20322 }
20323 _ACEOF
20324 rm -f conftest.$ac_objext
20325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20326   (eval $ac_compile) 2>conftest.er1
20327   ac_status=$?
20328   grep -v '^ *+' conftest.er1 >conftest.err
20329   rm -f conftest.er1
20330   cat conftest.err >&5
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); } &&
20333          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335   (eval $ac_try) 2>&5
20336   ac_status=$?
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); }; } &&
20339          { ac_try='test -s conftest.$ac_objext'
20340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341   (eval $ac_try) 2>&5
20342   ac_status=$?
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); }; }; then
20345   echo "$as_me:$LINENO: result: yes" >&5
20346 echo "${ECHO_T}yes" >&6
20347                                      cat >>confdefs.h <<\_ACEOF
20348 #define HAVE_HASH_MAP 1
20349 _ACEOF
20350
20351                                      cat >>confdefs.h <<\_ACEOF
20352 #define HAVE_STD_HASH_MAP 1
20353 _ACEOF
20354
20355 else
20356   echo "$as_me: failed program was:" >&5
20357 sed 's/^/| /' conftest.$ac_ext >&5
20358
20359 echo "$as_me:$LINENO: result: no" >&5
20360 echo "${ECHO_T}no" >&6
20361 fi
20362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20363
20364 fi
20365
20366
20367
20368     if test "${ac_cv_header_ext_hash_map+set}" = set; then
20369   echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20370 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20371 if test "${ac_cv_header_ext_hash_map+set}" = set; then
20372   echo $ECHO_N "(cached) $ECHO_C" >&6
20373 fi
20374 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20375 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20376 else
20377   # Is the header compilable?
20378 echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
20379 echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
20380 cat >conftest.$ac_ext <<_ACEOF
20381 /* confdefs.h.  */
20382 _ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h.  */
20386 $ac_includes_default
20387 #include <ext/hash_map>
20388 _ACEOF
20389 rm -f conftest.$ac_objext
20390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20391   (eval $ac_compile) 2>conftest.er1
20392   ac_status=$?
20393   grep -v '^ *+' conftest.er1 >conftest.err
20394   rm -f conftest.er1
20395   cat conftest.err >&5
20396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397   (exit $ac_status); } &&
20398          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400   (eval $ac_try) 2>&5
20401   ac_status=$?
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); }; } &&
20404          { ac_try='test -s conftest.$ac_objext'
20405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406   (eval $ac_try) 2>&5
20407   ac_status=$?
20408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409   (exit $ac_status); }; }; then
20410   ac_header_compiler=yes
20411 else
20412   echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20414
20415 ac_header_compiler=no
20416 fi
20417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20419 echo "${ECHO_T}$ac_header_compiler" >&6
20420
20421 # Is the header present?
20422 echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
20423 echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
20424 cat >conftest.$ac_ext <<_ACEOF
20425 /* confdefs.h.  */
20426 _ACEOF
20427 cat confdefs.h >>conftest.$ac_ext
20428 cat >>conftest.$ac_ext <<_ACEOF
20429 /* end confdefs.h.  */
20430 #include <ext/hash_map>
20431 _ACEOF
20432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20433   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20434   ac_status=$?
20435   grep -v '^ *+' conftest.er1 >conftest.err
20436   rm -f conftest.er1
20437   cat conftest.err >&5
20438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439   (exit $ac_status); } >/dev/null; then
20440   if test -s conftest.err; then
20441     ac_cpp_err=$ac_cxx_preproc_warn_flag
20442     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20443   else
20444     ac_cpp_err=
20445   fi
20446 else
20447   ac_cpp_err=yes
20448 fi
20449 if test -z "$ac_cpp_err"; then
20450   ac_header_preproc=yes
20451 else
20452   echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20454
20455   ac_header_preproc=no
20456 fi
20457 rm -f conftest.err conftest.$ac_ext
20458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20459 echo "${ECHO_T}$ac_header_preproc" >&6
20460
20461 # So?  What about this header?
20462 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20463   yes:no: )
20464     { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20465 echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
20466     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
20467 echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
20468     ac_header_preproc=yes
20469     ;;
20470   no:yes:* )
20471     { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
20472 echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
20473     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&5
20474 echo "$as_me: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&2;}
20475     { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
20476 echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
20477     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&5
20478 echo "$as_me: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
20479     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
20480 echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
20481     { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
20482 echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
20483     (
20484       cat <<\_ASBOX
20485 ## ----------------------------------------- ##
20486 ## Report this to wx-dev@lists.wxwidgets.org ##
20487 ## ----------------------------------------- ##
20488 _ASBOX
20489     ) |
20490       sed "s/^/$as_me: WARNING:     /" >&2
20491     ;;
20492 esac
20493 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20494 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20495 if test "${ac_cv_header_ext_hash_map+set}" = set; then
20496   echo $ECHO_N "(cached) $ECHO_C" >&6
20497 else
20498   ac_cv_header_ext_hash_map=$ac_header_preproc
20499 fi
20500 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20501 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20502
20503 fi
20504 if test $ac_cv_header_ext_hash_map = yes; then
20505   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20506 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20507                      cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h.  */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h.  */
20513 #include <ext/hash_map>
20514                                      #include <ext/hash_set>
20515 int
20516 main ()
20517 {
20518 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20519                                      __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20520   ;
20521   return 0;
20522 }
20523 _ACEOF
20524 rm -f conftest.$ac_objext
20525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20526   (eval $ac_compile) 2>conftest.er1
20527   ac_status=$?
20528   grep -v '^ *+' conftest.er1 >conftest.err
20529   rm -f conftest.er1
20530   cat conftest.err >&5
20531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532   (exit $ac_status); } &&
20533          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20535   (eval $ac_try) 2>&5
20536   ac_status=$?
20537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538   (exit $ac_status); }; } &&
20539          { ac_try='test -s conftest.$ac_objext'
20540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20541   (eval $ac_try) 2>&5
20542   ac_status=$?
20543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544   (exit $ac_status); }; }; then
20545   echo "$as_me:$LINENO: result: yes" >&5
20546 echo "${ECHO_T}yes" >&6
20547                                      cat >>confdefs.h <<\_ACEOF
20548 #define HAVE_EXT_HASH_MAP 1
20549 _ACEOF
20550
20551                                      cat >>confdefs.h <<\_ACEOF
20552 #define HAVE_GNU_CXX_HASH_MAP 1
20553 _ACEOF
20554
20555 else
20556   echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20558
20559 echo "$as_me:$LINENO: result: no" >&5
20560 echo "${ECHO_T}no" >&6
20561 fi
20562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20563
20564 fi
20565
20566
20567
20568     ac_ext=c
20569 ac_cpp='$CPP $CPPFLAGS'
20570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20573
20574 fi
20575
20576
20577 SEARCH_INCLUDE="\
20578     /usr/local/include        \
20579                               \
20580     /usr/Motif-2.1/include    \
20581     /usr/Motif-1.2/include    \
20582     /usr/include/Motif1.2     \
20583     /opt/xpm/include/X11      \
20584     /opt/GBxpm/include/       \
20585     /opt/GBxpm/X11/include/   \
20586                               \
20587     /usr/dt/include           \
20588     /usr/openwin/include      \
20589                               \
20590     /usr/include/Xm           \
20591                               \
20592     /usr/X11R6/include        \
20593     /usr/X11R6.4/include      \
20594     /usr/X11R5/include        \
20595     /usr/X11R4/include        \
20596                               \
20597     /usr/include/X11R6        \
20598     /usr/include/X11R5        \
20599     /usr/include/X11R4        \
20600                               \
20601     /usr/local/X11R6/include  \
20602     /usr/local/X11R5/include  \
20603     /usr/local/X11R4/include  \
20604                               \
20605     /usr/local/include/X11R6  \
20606     /usr/local/include/X11R5  \
20607     /usr/local/include/X11R4  \
20608                               \
20609     /usr/X11/include          \
20610     /usr/include/X11          \
20611     /usr/local/X11/include    \
20612     /usr/local/include/X11    \
20613                               \
20614     /usr/X386/include         \
20615     /usr/x386/include         \
20616     /usr/XFree86/include/X11  \
20617                               \
20618     X:/XFree86/include        \
20619     X:/XFree86/include/X11    \
20620                               \
20621     /usr/include/gtk          \
20622     /usr/local/include/gtk    \
20623     /usr/include/glib         \
20624     /usr/local/include/glib   \
20625                               \
20626     /usr/include/qt           \
20627     /usr/local/include/qt     \
20628                               \
20629     /usr/local/arm/3.3.2/include     \
20630                               \
20631     /usr/include/windows      \
20632     /usr/include/wine         \
20633     /usr/local/include/wine   \
20634                               \
20635     /usr/unsupported/include  \
20636     /usr/athena/include       \
20637     /usr/local/x11r5/include  \
20638     /usr/lpp/Xamples/include  \
20639                               \
20640     /usr/openwin/share/include"
20641
20642 SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20643
20644
20645 cat >confcache <<\_ACEOF
20646 # This file is a shell script that caches the results of configure
20647 # tests run on this system so they can be shared between configure
20648 # scripts and configure runs, see configure's option --config-cache.
20649 # It is not useful on other systems.  If it contains results you don't
20650 # want to keep, you may remove or edit it.
20651 #
20652 # config.status only pays attention to the cache file if you give it
20653 # the --recheck option to rerun configure.
20654 #
20655 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20656 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20657 # following values.
20658
20659 _ACEOF
20660
20661 # The following way of writing the cache mishandles newlines in values,
20662 # but we know of no workaround that is simple, portable, and efficient.
20663 # So, don't put newlines in cache variables' values.
20664 # Ultrix sh set writes to stderr and can't be redirected directly,
20665 # and sets the high bit in the cache file unless we assign to the vars.
20666 {
20667   (set) 2>&1 |
20668     case `(ac_space=' '; set | grep ac_space) 2>&1` in
20669     *ac_space=\ *)
20670       # `set' does not quote correctly, so add quotes (double-quote
20671       # substitution turns \\\\ into \\, and sed turns \\ into \).
20672       sed -n \
20673         "s/'/'\\\\''/g;
20674           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20675       ;;
20676     *)
20677       # `set' quotes correctly as required by POSIX, so do not add quotes.
20678       sed -n \
20679         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20680       ;;
20681     esac;
20682 } |
20683   sed '
20684      t clear
20685      : clear
20686      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20687      t end
20688      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20689      : end' >>confcache
20690 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20691   if test -w $cache_file; then
20692     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20693     cat confcache >$cache_file
20694   else
20695     echo "not updating unwritable cache $cache_file"
20696   fi
20697 fi
20698 rm -f confcache
20699
20700 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20701     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20702 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20703 if test "${wx_cv_lib_glibc21+set}" = set; then
20704   echo $ECHO_N "(cached) $ECHO_C" >&6
20705 else
20706
20707         cat >conftest.$ac_ext <<_ACEOF
20708 /* confdefs.h.  */
20709 _ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h.  */
20713 #include <features.h>
20714 int
20715 main ()
20716 {
20717
20718                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20719                     #error not glibc2.1
20720                 #endif
20721
20722   ;
20723   return 0;
20724 }
20725 _ACEOF
20726 rm -f conftest.$ac_objext
20727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20728   (eval $ac_compile) 2>conftest.er1
20729   ac_status=$?
20730   grep -v '^ *+' conftest.er1 >conftest.err
20731   rm -f conftest.er1
20732   cat conftest.err >&5
20733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734   (exit $ac_status); } &&
20735          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20737   (eval $ac_try) 2>&5
20738   ac_status=$?
20739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740   (exit $ac_status); }; } &&
20741          { ac_try='test -s conftest.$ac_objext'
20742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20743   (eval $ac_try) 2>&5
20744   ac_status=$?
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); }; }; then
20747
20748                 wx_cv_lib_glibc21=yes
20749
20750 else
20751   echo "$as_me: failed program was:" >&5
20752 sed 's/^/| /' conftest.$ac_ext >&5
20753
20754
20755                 wx_cv_lib_glibc21=no
20756
20757
20758 fi
20759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20760
20761 fi
20762 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20763 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20764     if test "$wx_cv_lib_glibc21" = "yes"; then
20765         cat >>confdefs.h <<\_ACEOF
20766 #define wxHAVE_GLIBC2 1
20767 _ACEOF
20768
20769     fi
20770 fi
20771
20772 if test "x$wx_cv_lib_glibc21" = "xyes"; then
20773     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20774         cat >>confdefs.h <<\_ACEOF
20775 #define _GNU_SOURCE 1
20776 _ACEOF
20777
20778     fi
20779 fi
20780
20781
20782
20783 if test "$wxUSE_REGEX" != "no"; then
20784     cat >>confdefs.h <<\_ACEOF
20785 #define wxUSE_REGEX 1
20786 _ACEOF
20787
20788
20789     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20790         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20791 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20792         wxUSE_REGEX=builtin
20793     fi
20794
20795     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20796                         if test "${ac_cv_header_regex_h+set}" = set; then
20797   echo "$as_me:$LINENO: checking for regex.h" >&5
20798 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20799 if test "${ac_cv_header_regex_h+set}" = set; then
20800   echo $ECHO_N "(cached) $ECHO_C" >&6
20801 fi
20802 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20803 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20804 else
20805   # Is the header compilable?
20806 echo "$as_me:$LINENO: checking regex.h usability" >&5
20807 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20808 cat >conftest.$ac_ext <<_ACEOF
20809 /* confdefs.h.  */
20810 _ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h.  */
20814 $ac_includes_default
20815 #include <regex.h>
20816 _ACEOF
20817 rm -f conftest.$ac_objext
20818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20819   (eval $ac_compile) 2>conftest.er1
20820   ac_status=$?
20821   grep -v '^ *+' conftest.er1 >conftest.err
20822   rm -f conftest.er1
20823   cat conftest.err >&5
20824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825   (exit $ac_status); } &&
20826          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828   (eval $ac_try) 2>&5
20829   ac_status=$?
20830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831   (exit $ac_status); }; } &&
20832          { ac_try='test -s conftest.$ac_objext'
20833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834   (eval $ac_try) 2>&5
20835   ac_status=$?
20836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); }; }; then
20838   ac_header_compiler=yes
20839 else
20840   echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20842
20843 ac_header_compiler=no
20844 fi
20845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20847 echo "${ECHO_T}$ac_header_compiler" >&6
20848
20849 # Is the header present?
20850 echo "$as_me:$LINENO: checking regex.h presence" >&5
20851 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20852 cat >conftest.$ac_ext <<_ACEOF
20853 /* confdefs.h.  */
20854 _ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h.  */
20858 #include <regex.h>
20859 _ACEOF
20860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20861   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
20868   if test -s conftest.err; then
20869     ac_cpp_err=$ac_c_preproc_warn_flag
20870     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20871   else
20872     ac_cpp_err=
20873   fi
20874 else
20875   ac_cpp_err=yes
20876 fi
20877 if test -z "$ac_cpp_err"; then
20878   ac_header_preproc=yes
20879 else
20880   echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20882
20883   ac_header_preproc=no
20884 fi
20885 rm -f conftest.err conftest.$ac_ext
20886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20887 echo "${ECHO_T}$ac_header_preproc" >&6
20888
20889 # So?  What about this header?
20890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20891   yes:no: )
20892     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20893 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20894     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20895 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20896     ac_header_preproc=yes
20897     ;;
20898   no:yes:* )
20899     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20900 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
20901     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
20902 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
20903     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20904 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20905     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
20906 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20907     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20908 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20909     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20910 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
20911     (
20912       cat <<\_ASBOX
20913 ## ----------------------------------------- ##
20914 ## Report this to wx-dev@lists.wxwidgets.org ##
20915 ## ----------------------------------------- ##
20916 _ASBOX
20917     ) |
20918       sed "s/^/$as_me: WARNING:     /" >&2
20919     ;;
20920 esac
20921 echo "$as_me:$LINENO: checking for regex.h" >&5
20922 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20923 if test "${ac_cv_header_regex_h+set}" = set; then
20924   echo $ECHO_N "(cached) $ECHO_C" >&6
20925 else
20926   ac_cv_header_regex_h=$ac_header_preproc
20927 fi
20928 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20929 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20930
20931 fi
20932 if test $ac_cv_header_regex_h = yes; then
20933
20934 for ac_func in regcomp
20935 do
20936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20937 echo "$as_me:$LINENO: checking for $ac_func" >&5
20938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20939 if eval "test \"\${$as_ac_var+set}\" = set"; then
20940   echo $ECHO_N "(cached) $ECHO_C" >&6
20941 else
20942   cat >conftest.$ac_ext <<_ACEOF
20943 /* confdefs.h.  */
20944 _ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h.  */
20948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20950 #define $ac_func innocuous_$ac_func
20951
20952 /* System header to define __stub macros and hopefully few prototypes,
20953     which can conflict with char $ac_func (); below.
20954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20955     <limits.h> exists even on freestanding compilers.  */
20956
20957 #ifdef __STDC__
20958 # include <limits.h>
20959 #else
20960 # include <assert.h>
20961 #endif
20962
20963 #undef $ac_func
20964
20965 /* Override any gcc2 internal prototype to avoid an error.  */
20966 #ifdef __cplusplus
20967 extern "C"
20968 {
20969 #endif
20970 /* We use char because int might match the return type of a gcc2
20971    builtin and then its argument prototype would still apply.  */
20972 char $ac_func ();
20973 /* The GNU C library defines this for functions which it implements
20974     to always fail with ENOSYS.  Some functions are actually named
20975     something starting with __ and the normal name is an alias.  */
20976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20977 choke me
20978 #else
20979 char (*f) () = $ac_func;
20980 #endif
20981 #ifdef __cplusplus
20982 }
20983 #endif
20984
20985 int
20986 main ()
20987 {
20988 return f != $ac_func;
20989   ;
20990   return 0;
20991 }
20992 _ACEOF
20993 rm -f conftest.$ac_objext conftest$ac_exeext
20994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20995   (eval $ac_link) 2>conftest.er1
20996   ac_status=$?
20997   grep -v '^ *+' conftest.er1 >conftest.err
20998   rm -f conftest.er1
20999   cat conftest.err >&5
21000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); } &&
21002          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004   (eval $ac_try) 2>&5
21005   ac_status=$?
21006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007   (exit $ac_status); }; } &&
21008          { ac_try='test -s conftest$ac_exeext'
21009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010   (eval $ac_try) 2>&5
21011   ac_status=$?
21012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013   (exit $ac_status); }; }; then
21014   eval "$as_ac_var=yes"
21015 else
21016   echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21018
21019 eval "$as_ac_var=no"
21020 fi
21021 rm -f conftest.err conftest.$ac_objext \
21022       conftest$ac_exeext conftest.$ac_ext
21023 fi
21024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21026 if test `eval echo '${'$as_ac_var'}'` = yes; then
21027   cat >>confdefs.h <<_ACEOF
21028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21029 _ACEOF
21030
21031 fi
21032 done
21033
21034 fi
21035
21036
21037
21038         if test "x$ac_cv_func_regcomp" != "xyes"; then
21039             if test "$wxUSE_REGEX" = "sys" ; then
21040                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
21041 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
21042    { (exit 1); exit 1; }; }
21043             else
21044                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
21045 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21046                 wxUSE_REGEX=builtin
21047             fi
21048         else
21049                         wxUSE_REGEX=sys
21050                         cat >>confdefs.h <<\_ACEOF
21051 #define WX_NO_REGEX_ADVANCED 1
21052 _ACEOF
21053
21054         fi
21055     fi
21056 fi
21057
21058
21059 ZLIB_LINK=
21060 if test "$wxUSE_ZLIB" != "no" ; then
21061     cat >>confdefs.h <<\_ACEOF
21062 #define wxUSE_ZLIB 1
21063 _ACEOF
21064
21065
21066     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
21067                                                 if test "$USE_DARWIN" = 1; then
21068             system_zlib_h_ok="yes"
21069         else
21070                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
21071 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
21072 if test "${ac_cv_header_zlib_h+set}" = set; then
21073   echo $ECHO_N "(cached) $ECHO_C" >&6
21074 else
21075   if test "$cross_compiling" = yes; then
21076                       unset ac_cv_header_zlib_h
21077
21078 else
21079   cat >conftest.$ac_ext <<_ACEOF
21080 /* confdefs.h.  */
21081 _ACEOF
21082 cat confdefs.h >>conftest.$ac_ext
21083 cat >>conftest.$ac_ext <<_ACEOF
21084 /* end confdefs.h.  */
21085
21086                         #include <zlib.h>
21087                         #include <stdio.h>
21088
21089                         int main()
21090                         {
21091                             FILE *f=fopen("conftestval", "w");
21092                             if (!f) exit(1);
21093                             fprintf(f, "%s",
21094                                     ZLIB_VERSION[0] == '1' &&
21095                                     (ZLIB_VERSION[2] > '1' ||
21096                                     (ZLIB_VERSION[2] == '1' &&
21097                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
21098                             exit(0);
21099                         }
21100
21101 _ACEOF
21102 rm -f conftest$ac_exeext
21103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21104   (eval $ac_link) 2>&5
21105   ac_status=$?
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109   (eval $ac_try) 2>&5
21110   ac_status=$?
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); }; }; then
21113   ac_cv_header_zlib_h=`cat conftestval`
21114 else
21115   echo "$as_me: program exited with status $ac_status" >&5
21116 echo "$as_me: failed program was:" >&5
21117 sed 's/^/| /' conftest.$ac_ext >&5
21118
21119 ( exit $ac_status )
21120 ac_cv_header_zlib_h=no
21121 fi
21122 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21123 fi
21124
21125 fi
21126 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21127 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21128                                     if test "${ac_cv_header_zlib_h+set}" = set; then
21129   echo "$as_me:$LINENO: checking for zlib.h" >&5
21130 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21131 if test "${ac_cv_header_zlib_h+set}" = set; then
21132   echo $ECHO_N "(cached) $ECHO_C" >&6
21133 fi
21134 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21135 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21136 else
21137   # Is the header compilable?
21138 echo "$as_me:$LINENO: checking zlib.h usability" >&5
21139 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
21140 cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h.  */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h.  */
21146 $ac_includes_default
21147 #include <zlib.h>
21148 _ACEOF
21149 rm -f conftest.$ac_objext
21150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21151   (eval $ac_compile) 2>conftest.er1
21152   ac_status=$?
21153   grep -v '^ *+' conftest.er1 >conftest.err
21154   rm -f conftest.er1
21155   cat conftest.err >&5
21156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157   (exit $ac_status); } &&
21158          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160   (eval $ac_try) 2>&5
21161   ac_status=$?
21162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163   (exit $ac_status); }; } &&
21164          { ac_try='test -s conftest.$ac_objext'
21165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166   (eval $ac_try) 2>&5
21167   ac_status=$?
21168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169   (exit $ac_status); }; }; then
21170   ac_header_compiler=yes
21171 else
21172   echo "$as_me: failed program was:" >&5
21173 sed 's/^/| /' conftest.$ac_ext >&5
21174
21175 ac_header_compiler=no
21176 fi
21177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21179 echo "${ECHO_T}$ac_header_compiler" >&6
21180
21181 # Is the header present?
21182 echo "$as_me:$LINENO: checking zlib.h presence" >&5
21183 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
21184 cat >conftest.$ac_ext <<_ACEOF
21185 /* confdefs.h.  */
21186 _ACEOF
21187 cat confdefs.h >>conftest.$ac_ext
21188 cat >>conftest.$ac_ext <<_ACEOF
21189 /* end confdefs.h.  */
21190 #include <zlib.h>
21191 _ACEOF
21192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21193   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21194   ac_status=$?
21195   grep -v '^ *+' conftest.er1 >conftest.err
21196   rm -f conftest.er1
21197   cat conftest.err >&5
21198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199   (exit $ac_status); } >/dev/null; then
21200   if test -s conftest.err; then
21201     ac_cpp_err=$ac_c_preproc_warn_flag
21202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21203   else
21204     ac_cpp_err=
21205   fi
21206 else
21207   ac_cpp_err=yes
21208 fi
21209 if test -z "$ac_cpp_err"; then
21210   ac_header_preproc=yes
21211 else
21212   echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21214
21215   ac_header_preproc=no
21216 fi
21217 rm -f conftest.err conftest.$ac_ext
21218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21219 echo "${ECHO_T}$ac_header_preproc" >&6
21220
21221 # So?  What about this header?
21222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21223   yes:no: )
21224     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21225 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21226     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
21227 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
21228     ac_header_preproc=yes
21229     ;;
21230   no:yes:* )
21231     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
21232 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
21233     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
21234 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
21235     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
21236 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
21237     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
21238 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21239     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
21240 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
21241     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
21242 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
21243     (
21244       cat <<\_ASBOX
21245 ## ----------------------------------------- ##
21246 ## Report this to wx-dev@lists.wxwidgets.org ##
21247 ## ----------------------------------------- ##
21248 _ASBOX
21249     ) |
21250       sed "s/^/$as_me: WARNING:     /" >&2
21251     ;;
21252 esac
21253 echo "$as_me:$LINENO: checking for zlib.h" >&5
21254 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21255 if test "${ac_cv_header_zlib_h+set}" = set; then
21256   echo $ECHO_N "(cached) $ECHO_C" >&6
21257 else
21258   ac_cv_header_zlib_h=$ac_header_preproc
21259 fi
21260 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21261 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21262
21263 fi
21264
21265
21266
21267             system_zlib_h_ok=$ac_cv_header_zlib_h
21268         fi
21269
21270         if test "$system_zlib_h_ok" = "yes"; then
21271             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
21272 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
21273 if test "${ac_cv_lib_z_deflate+set}" = set; then
21274   echo $ECHO_N "(cached) $ECHO_C" >&6
21275 else
21276   ac_check_lib_save_LIBS=$LIBS
21277 LIBS="-lz  $LIBS"
21278 cat >conftest.$ac_ext <<_ACEOF
21279 /* confdefs.h.  */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h.  */
21284
21285 /* Override any gcc2 internal prototype to avoid an error.  */
21286 #ifdef __cplusplus
21287 extern "C"
21288 #endif
21289 /* We use char because int might match the return type of a gcc2
21290    builtin and then its argument prototype would still apply.  */
21291 char deflate ();
21292 int
21293 main ()
21294 {
21295 deflate ();
21296   ;
21297   return 0;
21298 }
21299 _ACEOF
21300 rm -f conftest.$ac_objext conftest$ac_exeext
21301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21302   (eval $ac_link) 2>conftest.er1
21303   ac_status=$?
21304   grep -v '^ *+' conftest.er1 >conftest.err
21305   rm -f conftest.er1
21306   cat conftest.err >&5
21307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308   (exit $ac_status); } &&
21309          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311   (eval $ac_try) 2>&5
21312   ac_status=$?
21313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314   (exit $ac_status); }; } &&
21315          { ac_try='test -s conftest$ac_exeext'
21316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317   (eval $ac_try) 2>&5
21318   ac_status=$?
21319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320   (exit $ac_status); }; }; then
21321   ac_cv_lib_z_deflate=yes
21322 else
21323   echo "$as_me: failed program was:" >&5
21324 sed 's/^/| /' conftest.$ac_ext >&5
21325
21326 ac_cv_lib_z_deflate=no
21327 fi
21328 rm -f conftest.err conftest.$ac_objext \
21329       conftest$ac_exeext conftest.$ac_ext
21330 LIBS=$ac_check_lib_save_LIBS
21331 fi
21332 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
21333 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
21334 if test $ac_cv_lib_z_deflate = yes; then
21335   ZLIB_LINK=" -lz"
21336 fi
21337
21338         fi
21339
21340         if test "x$ZLIB_LINK" = "x" ; then
21341             if test "$wxUSE_ZLIB" = "sys" ; then
21342                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
21343 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
21344    { (exit 1); exit 1; }; }
21345             else
21346                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
21347 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21348                 wxUSE_ZLIB=builtin
21349             fi
21350         else
21351                         wxUSE_ZLIB=sys
21352         fi
21353     fi
21354 fi
21355
21356
21357 PNG_LINK=
21358 if test "$wxUSE_LIBPNG" != "no" ; then
21359     cat >>confdefs.h <<\_ACEOF
21360 #define wxUSE_LIBPNG 1
21361 _ACEOF
21362
21363
21364     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
21365         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
21366 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21367         wxUSE_LIBPNG=sys
21368     fi
21369
21370                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
21371         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
21372 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21373         wxUSE_LIBPNG=builtin
21374     fi
21375
21376     if test "$wxUSE_MGL" != 1 ; then
21377                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
21378                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
21379 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
21380 if test "${ac_cv_header_png_h+set}" = set; then
21381   echo $ECHO_N "(cached) $ECHO_C" >&6
21382 else
21383   if test "$cross_compiling" = yes; then
21384                       unset ac_cv_header_png_h
21385
21386 else
21387   cat >conftest.$ac_ext <<_ACEOF
21388 /* confdefs.h.  */
21389 _ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h.  */
21393
21394                         #include <png.h>
21395                         #include <stdio.h>
21396
21397                         int main()
21398                         {
21399                             FILE *f=fopen("conftestval", "w");
21400                             if (!f) exit(1);
21401                             fprintf(f, "%s",
21402                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
21403                             exit(0);
21404                         }
21405
21406 _ACEOF
21407 rm -f conftest$ac_exeext
21408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21409   (eval $ac_link) 2>&5
21410   ac_status=$?
21411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21414   (eval $ac_try) 2>&5
21415   ac_status=$?
21416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417   (exit $ac_status); }; }; then
21418   ac_cv_header_png_h=`cat conftestval`
21419 else
21420   echo "$as_me: program exited with status $ac_status" >&5
21421 echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.$ac_ext >&5
21423
21424 ( exit $ac_status )
21425 ac_cv_header_png_h=no
21426 fi
21427 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21428 fi
21429
21430 fi
21431 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21432 echo "${ECHO_T}$ac_cv_header_png_h" >&6
21433             if test "${ac_cv_header_png_h+set}" = set; then
21434   echo "$as_me:$LINENO: checking for png.h" >&5
21435 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21436 if test "${ac_cv_header_png_h+set}" = set; then
21437   echo $ECHO_N "(cached) $ECHO_C" >&6
21438 fi
21439 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21440 echo "${ECHO_T}$ac_cv_header_png_h" >&6
21441 else
21442   # Is the header compilable?
21443 echo "$as_me:$LINENO: checking png.h usability" >&5
21444 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21445 cat >conftest.$ac_ext <<_ACEOF
21446 /* confdefs.h.  */
21447 _ACEOF
21448 cat confdefs.h >>conftest.$ac_ext
21449 cat >>conftest.$ac_ext <<_ACEOF
21450 /* end confdefs.h.  */
21451 $ac_includes_default
21452 #include <png.h>
21453 _ACEOF
21454 rm -f conftest.$ac_objext
21455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21456   (eval $ac_compile) 2>conftest.er1
21457   ac_status=$?
21458   grep -v '^ *+' conftest.er1 >conftest.err
21459   rm -f conftest.er1
21460   cat conftest.err >&5
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); } &&
21463          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465   (eval $ac_try) 2>&5
21466   ac_status=$?
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); }; } &&
21469          { ac_try='test -s conftest.$ac_objext'
21470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471   (eval $ac_try) 2>&5
21472   ac_status=$?
21473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474   (exit $ac_status); }; }; then
21475   ac_header_compiler=yes
21476 else
21477   echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21479
21480 ac_header_compiler=no
21481 fi
21482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21483 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21484 echo "${ECHO_T}$ac_header_compiler" >&6
21485
21486 # Is the header present?
21487 echo "$as_me:$LINENO: checking png.h presence" >&5
21488 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21489 cat >conftest.$ac_ext <<_ACEOF
21490 /* confdefs.h.  */
21491 _ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h.  */
21495 #include <png.h>
21496 _ACEOF
21497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21498   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21499   ac_status=$?
21500   grep -v '^ *+' conftest.er1 >conftest.err
21501   rm -f conftest.er1
21502   cat conftest.err >&5
21503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504   (exit $ac_status); } >/dev/null; then
21505   if test -s conftest.err; then
21506     ac_cpp_err=$ac_c_preproc_warn_flag
21507     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21508   else
21509     ac_cpp_err=
21510   fi
21511 else
21512   ac_cpp_err=yes
21513 fi
21514 if test -z "$ac_cpp_err"; then
21515   ac_header_preproc=yes
21516 else
21517   echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21519
21520   ac_header_preproc=no
21521 fi
21522 rm -f conftest.err conftest.$ac_ext
21523 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21524 echo "${ECHO_T}$ac_header_preproc" >&6
21525
21526 # So?  What about this header?
21527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21528   yes:no: )
21529     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21530 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21531     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21532 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21533     ac_header_preproc=yes
21534     ;;
21535   no:yes:* )
21536     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21537 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
21538     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
21539 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
21540     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21541 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21542     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
21543 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21544     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21545 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
21546     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21547 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
21548     (
21549       cat <<\_ASBOX
21550 ## ----------------------------------------- ##
21551 ## Report this to wx-dev@lists.wxwidgets.org ##
21552 ## ----------------------------------------- ##
21553 _ASBOX
21554     ) |
21555       sed "s/^/$as_me: WARNING:     /" >&2
21556     ;;
21557 esac
21558 echo "$as_me:$LINENO: checking for png.h" >&5
21559 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21560 if test "${ac_cv_header_png_h+set}" = set; then
21561   echo $ECHO_N "(cached) $ECHO_C" >&6
21562 else
21563   ac_cv_header_png_h=$ac_header_preproc
21564 fi
21565 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21566 echo "${ECHO_T}$ac_cv_header_png_h" >&6
21567
21568 fi
21569
21570
21571
21572             if test "$ac_cv_header_png_h" = "yes"; then
21573                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21574 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21575 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21576   echo $ECHO_N "(cached) $ECHO_C" >&6
21577 else
21578   ac_check_lib_save_LIBS=$LIBS
21579 LIBS="-lpng -lz -lm $LIBS"
21580 cat >conftest.$ac_ext <<_ACEOF
21581 /* confdefs.h.  */
21582 _ACEOF
21583 cat confdefs.h >>conftest.$ac_ext
21584 cat >>conftest.$ac_ext <<_ACEOF
21585 /* end confdefs.h.  */
21586
21587 /* Override any gcc2 internal prototype to avoid an error.  */
21588 #ifdef __cplusplus
21589 extern "C"
21590 #endif
21591 /* We use char because int might match the return type of a gcc2
21592    builtin and then its argument prototype would still apply.  */
21593 char png_check_sig ();
21594 int
21595 main ()
21596 {
21597 png_check_sig ();
21598   ;
21599   return 0;
21600 }
21601 _ACEOF
21602 rm -f conftest.$ac_objext conftest$ac_exeext
21603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21604   (eval $ac_link) 2>conftest.er1
21605   ac_status=$?
21606   grep -v '^ *+' conftest.er1 >conftest.err
21607   rm -f conftest.er1
21608   cat conftest.err >&5
21609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610   (exit $ac_status); } &&
21611          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21613   (eval $ac_try) 2>&5
21614   ac_status=$?
21615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616   (exit $ac_status); }; } &&
21617          { ac_try='test -s conftest$ac_exeext'
21618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21619   (eval $ac_try) 2>&5
21620   ac_status=$?
21621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622   (exit $ac_status); }; }; then
21623   ac_cv_lib_png_png_check_sig=yes
21624 else
21625   echo "$as_me: failed program was:" >&5
21626 sed 's/^/| /' conftest.$ac_ext >&5
21627
21628 ac_cv_lib_png_png_check_sig=no
21629 fi
21630 rm -f conftest.err conftest.$ac_objext \
21631       conftest$ac_exeext conftest.$ac_ext
21632 LIBS=$ac_check_lib_save_LIBS
21633 fi
21634 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21635 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21636 if test $ac_cv_lib_png_png_check_sig = yes; then
21637   PNG_LINK=" -lpng -lz"
21638 fi
21639
21640             fi
21641
21642             if test "x$PNG_LINK" = "x" ; then
21643                 if test "$wxUSE_LIBPNG" = "sys" ; then
21644                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21645 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21646    { (exit 1); exit 1; }; }
21647                 else
21648                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21649 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21650                     wxUSE_LIBPNG=builtin
21651                 fi
21652             else
21653                                 wxUSE_LIBPNG=sys
21654             fi
21655         fi
21656     fi
21657
21658     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21659 fi
21660
21661
21662 JPEG_LINK=
21663 if test "$wxUSE_LIBJPEG" != "no" ; then
21664     cat >>confdefs.h <<\_ACEOF
21665 #define wxUSE_LIBJPEG 1
21666 _ACEOF
21667
21668
21669     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21670         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21671 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21672         wxUSE_LIBJPEG=sys
21673     fi
21674
21675     if test "$wxUSE_MGL" != 1 ; then
21676                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21677                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21678 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21679             if test "${ac_cv_header_jpeglib_h+set}" = set; then
21680   echo $ECHO_N "(cached) $ECHO_C" >&6
21681 else
21682   cat >conftest.$ac_ext <<_ACEOF
21683 /* confdefs.h.  */
21684 _ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h.  */
21688
21689                         #undef HAVE_STDLIB_H
21690                         #include <stdio.h>
21691                         #include <jpeglib.h>
21692
21693 int
21694 main ()
21695 {
21696
21697
21698   ;
21699   return 0;
21700 }
21701 _ACEOF
21702 rm -f conftest.$ac_objext
21703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21704   (eval $ac_compile) 2>conftest.er1
21705   ac_status=$?
21706   grep -v '^ *+' conftest.er1 >conftest.err
21707   rm -f conftest.er1
21708   cat conftest.err >&5
21709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710   (exit $ac_status); } &&
21711          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21713   (eval $ac_try) 2>&5
21714   ac_status=$?
21715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716   (exit $ac_status); }; } &&
21717          { ac_try='test -s conftest.$ac_objext'
21718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719   (eval $ac_try) 2>&5
21720   ac_status=$?
21721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722   (exit $ac_status); }; }; then
21723   ac_cv_header_jpeglib_h=yes
21724 else
21725   echo "$as_me: failed program was:" >&5
21726 sed 's/^/| /' conftest.$ac_ext >&5
21727
21728 ac_cv_header_jpeglib_h=no
21729
21730 fi
21731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21732
21733 fi
21734
21735             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21736 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21737
21738             if test "$ac_cv_header_jpeglib_h" = "yes"; then
21739                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21740 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21741 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21742   echo $ECHO_N "(cached) $ECHO_C" >&6
21743 else
21744   ac_check_lib_save_LIBS=$LIBS
21745 LIBS="-ljpeg  $LIBS"
21746 cat >conftest.$ac_ext <<_ACEOF
21747 /* confdefs.h.  */
21748 _ACEOF
21749 cat confdefs.h >>conftest.$ac_ext
21750 cat >>conftest.$ac_ext <<_ACEOF
21751 /* end confdefs.h.  */
21752
21753 /* Override any gcc2 internal prototype to avoid an error.  */
21754 #ifdef __cplusplus
21755 extern "C"
21756 #endif
21757 /* We use char because int might match the return type of a gcc2
21758    builtin and then its argument prototype would still apply.  */
21759 char jpeg_read_header ();
21760 int
21761 main ()
21762 {
21763 jpeg_read_header ();
21764   ;
21765   return 0;
21766 }
21767 _ACEOF
21768 rm -f conftest.$ac_objext conftest$ac_exeext
21769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21770   (eval $ac_link) 2>conftest.er1
21771   ac_status=$?
21772   grep -v '^ *+' conftest.er1 >conftest.err
21773   rm -f conftest.er1
21774   cat conftest.err >&5
21775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776   (exit $ac_status); } &&
21777          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
21783          { ac_try='test -s conftest$ac_exeext'
21784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21785   (eval $ac_try) 2>&5
21786   ac_status=$?
21787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788   (exit $ac_status); }; }; then
21789   ac_cv_lib_jpeg_jpeg_read_header=yes
21790 else
21791   echo "$as_me: failed program was:" >&5
21792 sed 's/^/| /' conftest.$ac_ext >&5
21793
21794 ac_cv_lib_jpeg_jpeg_read_header=no
21795 fi
21796 rm -f conftest.err conftest.$ac_objext \
21797       conftest$ac_exeext conftest.$ac_ext
21798 LIBS=$ac_check_lib_save_LIBS
21799 fi
21800 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21801 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21802 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21803   JPEG_LINK=" -ljpeg"
21804 fi
21805
21806             fi
21807
21808             if test "x$JPEG_LINK" = "x" ; then
21809                 if test "$wxUSE_LIBJPEG" = "sys" ; then
21810                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21811 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21812    { (exit 1); exit 1; }; }
21813                 else
21814                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21815 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21816                     wxUSE_LIBJPEG=builtin
21817                 fi
21818             else
21819                                 wxUSE_LIBJPEG=sys
21820             fi
21821         fi
21822     fi
21823 fi
21824
21825
21826 TIFF_LINK=
21827 TIFF_PREREQ_LINKS=-lm
21828 if test "$wxUSE_LIBTIFF" != "no" ; then
21829     cat >>confdefs.h <<\_ACEOF
21830 #define wxUSE_LIBTIFF 1
21831 _ACEOF
21832
21833
21834     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21835                         if test "$wxUSE_LIBJPEG" = "sys"; then
21836             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21837         fi
21838         if test "$wxUSE_ZLIB" = "sys"; then
21839             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21840         fi
21841         if test "${ac_cv_header_tiffio_h+set}" = set; then
21842   echo "$as_me:$LINENO: checking for tiffio.h" >&5
21843 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21844 if test "${ac_cv_header_tiffio_h+set}" = set; then
21845   echo $ECHO_N "(cached) $ECHO_C" >&6
21846 fi
21847 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21848 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21849 else
21850   # Is the header compilable?
21851 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21852 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21853 cat >conftest.$ac_ext <<_ACEOF
21854 /* confdefs.h.  */
21855 _ACEOF
21856 cat confdefs.h >>conftest.$ac_ext
21857 cat >>conftest.$ac_ext <<_ACEOF
21858 /* end confdefs.h.  */
21859 $ac_includes_default
21860 #include <tiffio.h>
21861 _ACEOF
21862 rm -f conftest.$ac_objext
21863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21864   (eval $ac_compile) 2>conftest.er1
21865   ac_status=$?
21866   grep -v '^ *+' conftest.er1 >conftest.err
21867   rm -f conftest.er1
21868   cat conftest.err >&5
21869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870   (exit $ac_status); } &&
21871          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873   (eval $ac_try) 2>&5
21874   ac_status=$?
21875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876   (exit $ac_status); }; } &&
21877          { ac_try='test -s conftest.$ac_objext'
21878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21879   (eval $ac_try) 2>&5
21880   ac_status=$?
21881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882   (exit $ac_status); }; }; then
21883   ac_header_compiler=yes
21884 else
21885   echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21887
21888 ac_header_compiler=no
21889 fi
21890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21892 echo "${ECHO_T}$ac_header_compiler" >&6
21893
21894 # Is the header present?
21895 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21896 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21897 cat >conftest.$ac_ext <<_ACEOF
21898 /* confdefs.h.  */
21899 _ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h.  */
21903 #include <tiffio.h>
21904 _ACEOF
21905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21907   ac_status=$?
21908   grep -v '^ *+' conftest.er1 >conftest.err
21909   rm -f conftest.er1
21910   cat conftest.err >&5
21911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912   (exit $ac_status); } >/dev/null; then
21913   if test -s conftest.err; then
21914     ac_cpp_err=$ac_c_preproc_warn_flag
21915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21916   else
21917     ac_cpp_err=
21918   fi
21919 else
21920   ac_cpp_err=yes
21921 fi
21922 if test -z "$ac_cpp_err"; then
21923   ac_header_preproc=yes
21924 else
21925   echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.$ac_ext >&5
21927
21928   ac_header_preproc=no
21929 fi
21930 rm -f conftest.err conftest.$ac_ext
21931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21932 echo "${ECHO_T}$ac_header_preproc" >&6
21933
21934 # So?  What about this header?
21935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21936   yes:no: )
21937     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21938 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21939     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21940 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21941     ac_header_preproc=yes
21942     ;;
21943   no:yes:* )
21944     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21945 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
21946     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
21947 echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
21948     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21949 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21950     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
21951 echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21952     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21953 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
21954     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21955 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
21956     (
21957       cat <<\_ASBOX
21958 ## ----------------------------------------- ##
21959 ## Report this to wx-dev@lists.wxwidgets.org ##
21960 ## ----------------------------------------- ##
21961 _ASBOX
21962     ) |
21963       sed "s/^/$as_me: WARNING:     /" >&2
21964     ;;
21965 esac
21966 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21967 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21968 if test "${ac_cv_header_tiffio_h+set}" = set; then
21969   echo $ECHO_N "(cached) $ECHO_C" >&6
21970 else
21971   ac_cv_header_tiffio_h=$ac_header_preproc
21972 fi
21973 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21974 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21975
21976 fi
21977 if test $ac_cv_header_tiffio_h = yes; then
21978
21979                             echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21980 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21981 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21982   echo $ECHO_N "(cached) $ECHO_C" >&6
21983 else
21984   ac_check_lib_save_LIBS=$LIBS
21985 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21986 cat >conftest.$ac_ext <<_ACEOF
21987 /* confdefs.h.  */
21988 _ACEOF
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h.  */
21992
21993 /* Override any gcc2 internal prototype to avoid an error.  */
21994 #ifdef __cplusplus
21995 extern "C"
21996 #endif
21997 /* We use char because int might match the return type of a gcc2
21998    builtin and then its argument prototype would still apply.  */
21999 char TIFFError ();
22000 int
22001 main ()
22002 {
22003 TIFFError ();
22004   ;
22005   return 0;
22006 }
22007 _ACEOF
22008 rm -f conftest.$ac_objext conftest$ac_exeext
22009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22010   (eval $ac_link) 2>conftest.er1
22011   ac_status=$?
22012   grep -v '^ *+' conftest.er1 >conftest.err
22013   rm -f conftest.er1
22014   cat conftest.err >&5
22015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016   (exit $ac_status); } &&
22017          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019   (eval $ac_try) 2>&5
22020   ac_status=$?
22021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022   (exit $ac_status); }; } &&
22023          { ac_try='test -s conftest$ac_exeext'
22024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22025   (eval $ac_try) 2>&5
22026   ac_status=$?
22027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028   (exit $ac_status); }; }; then
22029   ac_cv_lib_tiff_TIFFError=yes
22030 else
22031   echo "$as_me: failed program was:" >&5
22032 sed 's/^/| /' conftest.$ac_ext >&5
22033
22034 ac_cv_lib_tiff_TIFFError=no
22035 fi
22036 rm -f conftest.err conftest.$ac_objext \
22037       conftest$ac_exeext conftest.$ac_ext
22038 LIBS=$ac_check_lib_save_LIBS
22039 fi
22040 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
22041 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
22042 if test $ac_cv_lib_tiff_TIFFError = yes; then
22043   TIFF_LINK=" -ltiff"
22044 fi
22045
22046
22047
22048 fi
22049
22050
22051
22052         if test "x$TIFF_LINK" = "x" ; then
22053             if test "$wxUSE_LIBTIFF" = "sys" ; then
22054                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
22055 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
22056    { (exit 1); exit 1; }; }
22057             else
22058                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
22059 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
22060                 wxUSE_LIBTIFF=builtin
22061             fi
22062         else
22063                         wxUSE_LIBTIFF=sys
22064         fi
22065     fi
22066 fi
22067
22068
22069 if test "$wxUSE_EXPAT" != "no"; then
22070     wxUSE_XML=yes
22071     cat >>confdefs.h <<\_ACEOF
22072 #define wxUSE_EXPAT 1
22073 _ACEOF
22074
22075     cat >>confdefs.h <<\_ACEOF
22076 #define wxUSE_XML 1
22077 _ACEOF
22078
22079
22080     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
22081         if test "${ac_cv_header_expat_h+set}" = set; then
22082   echo "$as_me:$LINENO: checking for expat.h" >&5
22083 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22084 if test "${ac_cv_header_expat_h+set}" = set; then
22085   echo $ECHO_N "(cached) $ECHO_C" >&6
22086 fi
22087 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22088 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22089 else
22090   # Is the header compilable?
22091 echo "$as_me:$LINENO: checking expat.h usability" >&5
22092 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
22093 cat >conftest.$ac_ext <<_ACEOF
22094 /* confdefs.h.  */
22095 _ACEOF
22096 cat confdefs.h >>conftest.$ac_ext
22097 cat >>conftest.$ac_ext <<_ACEOF
22098 /* end confdefs.h.  */
22099 $ac_includes_default
22100 #include <expat.h>
22101 _ACEOF
22102 rm -f conftest.$ac_objext
22103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22104   (eval $ac_compile) 2>conftest.er1
22105   ac_status=$?
22106   grep -v '^ *+' conftest.er1 >conftest.err
22107   rm -f conftest.er1
22108   cat conftest.err >&5
22109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110   (exit $ac_status); } &&
22111          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22113   (eval $ac_try) 2>&5
22114   ac_status=$?
22115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116   (exit $ac_status); }; } &&
22117          { ac_try='test -s conftest.$ac_objext'
22118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119   (eval $ac_try) 2>&5
22120   ac_status=$?
22121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122   (exit $ac_status); }; }; then
22123   ac_header_compiler=yes
22124 else
22125   echo "$as_me: failed program was:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22127
22128 ac_header_compiler=no
22129 fi
22130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22132 echo "${ECHO_T}$ac_header_compiler" >&6
22133
22134 # Is the header present?
22135 echo "$as_me:$LINENO: checking expat.h presence" >&5
22136 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
22137 cat >conftest.$ac_ext <<_ACEOF
22138 /* confdefs.h.  */
22139 _ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h.  */
22143 #include <expat.h>
22144 _ACEOF
22145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22147   ac_status=$?
22148   grep -v '^ *+' conftest.er1 >conftest.err
22149   rm -f conftest.er1
22150   cat conftest.err >&5
22151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152   (exit $ac_status); } >/dev/null; then
22153   if test -s conftest.err; then
22154     ac_cpp_err=$ac_c_preproc_warn_flag
22155     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22156   else
22157     ac_cpp_err=
22158   fi
22159 else
22160   ac_cpp_err=yes
22161 fi
22162 if test -z "$ac_cpp_err"; then
22163   ac_header_preproc=yes
22164 else
22165   echo "$as_me: failed program was:" >&5
22166 sed 's/^/| /' conftest.$ac_ext >&5
22167
22168   ac_header_preproc=no
22169 fi
22170 rm -f conftest.err conftest.$ac_ext
22171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22172 echo "${ECHO_T}$ac_header_preproc" >&6
22173
22174 # So?  What about this header?
22175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22176   yes:no: )
22177     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
22178 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22179     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
22180 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
22181     ac_header_preproc=yes
22182     ;;
22183   no:yes:* )
22184     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
22185 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
22186     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
22187 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
22188     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
22189 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
22190     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
22191 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22192     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
22193 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
22194     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
22195 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
22196     (
22197       cat <<\_ASBOX
22198 ## ----------------------------------------- ##
22199 ## Report this to wx-dev@lists.wxwidgets.org ##
22200 ## ----------------------------------------- ##
22201 _ASBOX
22202     ) |
22203       sed "s/^/$as_me: WARNING:     /" >&2
22204     ;;
22205 esac
22206 echo "$as_me:$LINENO: checking for expat.h" >&5
22207 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22208 if test "${ac_cv_header_expat_h+set}" = set; then
22209   echo $ECHO_N "(cached) $ECHO_C" >&6
22210 else
22211   ac_cv_header_expat_h=$ac_header_preproc
22212 fi
22213 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22214 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22215
22216 fi
22217 if test $ac_cv_header_expat_h = yes; then
22218   found_expat_h=1
22219 fi
22220
22221
22222         if test "x$found_expat_h" = "x1"; then
22223                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
22224 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
22225 if test "${wx_cv_expat_is_not_broken+set}" = set; then
22226   echo $ECHO_N "(cached) $ECHO_C" >&6
22227 else
22228
22229
22230
22231                 ac_ext=cc
22232 ac_cpp='$CXXCPP $CPPFLAGS'
22233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22236
22237                 cat >conftest.$ac_ext <<_ACEOF
22238 /* confdefs.h.  */
22239 _ACEOF
22240 cat confdefs.h >>conftest.$ac_ext
22241 cat >>conftest.$ac_ext <<_ACEOF
22242 /* end confdefs.h.  */
22243 #include <expat.h>
22244 int
22245 main ()
22246 {
22247
22248   ;
22249   return 0;
22250 }
22251 _ACEOF
22252 rm -f conftest.$ac_objext
22253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22254   (eval $ac_compile) 2>conftest.er1
22255   ac_status=$?
22256   grep -v '^ *+' conftest.er1 >conftest.err
22257   rm -f conftest.er1
22258   cat conftest.err >&5
22259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260   (exit $ac_status); } &&
22261          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22263   (eval $ac_try) 2>&5
22264   ac_status=$?
22265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266   (exit $ac_status); }; } &&
22267          { ac_try='test -s conftest.$ac_objext'
22268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22269   (eval $ac_try) 2>&5
22270   ac_status=$?
22271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272   (exit $ac_status); }; }; then
22273   wx_cv_expat_is_not_broken=yes
22274 else
22275   echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22277
22278 wx_cv_expat_is_not_broken=no
22279
22280 fi
22281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22282                 ac_ext=c
22283 ac_cpp='$CPP $CPPFLAGS'
22284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22287
22288
22289
22290 fi
22291 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
22292 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
22293             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
22294                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
22295 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
22296 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
22297   echo $ECHO_N "(cached) $ECHO_C" >&6
22298 else
22299   ac_check_lib_save_LIBS=$LIBS
22300 LIBS="-lexpat  $LIBS"
22301 cat >conftest.$ac_ext <<_ACEOF
22302 /* confdefs.h.  */
22303 _ACEOF
22304 cat confdefs.h >>conftest.$ac_ext
22305 cat >>conftest.$ac_ext <<_ACEOF
22306 /* end confdefs.h.  */
22307
22308 /* Override any gcc2 internal prototype to avoid an error.  */
22309 #ifdef __cplusplus
22310 extern "C"
22311 #endif
22312 /* We use char because int might match the return type of a gcc2
22313    builtin and then its argument prototype would still apply.  */
22314 char XML_ParserCreate ();
22315 int
22316 main ()
22317 {
22318 XML_ParserCreate ();
22319   ;
22320   return 0;
22321 }
22322 _ACEOF
22323 rm -f conftest.$ac_objext conftest$ac_exeext
22324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22325   (eval $ac_link) 2>conftest.er1
22326   ac_status=$?
22327   grep -v '^ *+' conftest.er1 >conftest.err
22328   rm -f conftest.er1
22329   cat conftest.err >&5
22330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331   (exit $ac_status); } &&
22332          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22334   (eval $ac_try) 2>&5
22335   ac_status=$?
22336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337   (exit $ac_status); }; } &&
22338          { ac_try='test -s conftest$ac_exeext'
22339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22340   (eval $ac_try) 2>&5
22341   ac_status=$?
22342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343   (exit $ac_status); }; }; then
22344   ac_cv_lib_expat_XML_ParserCreate=yes
22345 else
22346   echo "$as_me: failed program was:" >&5
22347 sed 's/^/| /' conftest.$ac_ext >&5
22348
22349 ac_cv_lib_expat_XML_ParserCreate=no
22350 fi
22351 rm -f conftest.err conftest.$ac_objext \
22352       conftest$ac_exeext conftest.$ac_ext
22353 LIBS=$ac_check_lib_save_LIBS
22354 fi
22355 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
22356 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
22357 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
22358   EXPAT_LINK=" -lexpat"
22359 fi
22360
22361             fi
22362         fi
22363         if test "x$EXPAT_LINK" = "x" ; then
22364             if test "$wxUSE_EXPAT" = "sys" ; then
22365                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
22366 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
22367    { (exit 1); exit 1; }; }
22368             else
22369                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
22370 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
22371                 wxUSE_EXPAT=builtin
22372             fi
22373         else
22374                         wxUSE_EXPAT=sys
22375         fi
22376     fi
22377     if test "$wxUSE_EXPAT" = "builtin" ; then
22378
22379
22380 subdirs="$subdirs src/expat"
22381
22382     fi
22383 fi
22384
22385
22386
22387 if test "$wxUSE_LIBMSPACK" != "no"; then
22388     if test "${ac_cv_header_mspack_h+set}" = set; then
22389   echo "$as_me:$LINENO: checking for mspack.h" >&5
22390 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22391 if test "${ac_cv_header_mspack_h+set}" = set; then
22392   echo $ECHO_N "(cached) $ECHO_C" >&6
22393 fi
22394 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22395 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22396 else
22397   # Is the header compilable?
22398 echo "$as_me:$LINENO: checking mspack.h usability" >&5
22399 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
22400 cat >conftest.$ac_ext <<_ACEOF
22401 /* confdefs.h.  */
22402 _ACEOF
22403 cat confdefs.h >>conftest.$ac_ext
22404 cat >>conftest.$ac_ext <<_ACEOF
22405 /* end confdefs.h.  */
22406 $ac_includes_default
22407 #include <mspack.h>
22408 _ACEOF
22409 rm -f conftest.$ac_objext
22410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22411   (eval $ac_compile) 2>conftest.er1
22412   ac_status=$?
22413   grep -v '^ *+' conftest.er1 >conftest.err
22414   rm -f conftest.er1
22415   cat conftest.err >&5
22416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417   (exit $ac_status); } &&
22418          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22420   (eval $ac_try) 2>&5
22421   ac_status=$?
22422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423   (exit $ac_status); }; } &&
22424          { ac_try='test -s conftest.$ac_objext'
22425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426   (eval $ac_try) 2>&5
22427   ac_status=$?
22428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429   (exit $ac_status); }; }; then
22430   ac_header_compiler=yes
22431 else
22432   echo "$as_me: failed program was:" >&5
22433 sed 's/^/| /' conftest.$ac_ext >&5
22434
22435 ac_header_compiler=no
22436 fi
22437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22439 echo "${ECHO_T}$ac_header_compiler" >&6
22440
22441 # Is the header present?
22442 echo "$as_me:$LINENO: checking mspack.h presence" >&5
22443 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
22444 cat >conftest.$ac_ext <<_ACEOF
22445 /* confdefs.h.  */
22446 _ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h.  */
22450 #include <mspack.h>
22451 _ACEOF
22452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22453   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22454   ac_status=$?
22455   grep -v '^ *+' conftest.er1 >conftest.err
22456   rm -f conftest.er1
22457   cat conftest.err >&5
22458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459   (exit $ac_status); } >/dev/null; then
22460   if test -s conftest.err; then
22461     ac_cpp_err=$ac_c_preproc_warn_flag
22462     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22463   else
22464     ac_cpp_err=
22465   fi
22466 else
22467   ac_cpp_err=yes
22468 fi
22469 if test -z "$ac_cpp_err"; then
22470   ac_header_preproc=yes
22471 else
22472   echo "$as_me: failed program was:" >&5
22473 sed 's/^/| /' conftest.$ac_ext >&5
22474
22475   ac_header_preproc=no
22476 fi
22477 rm -f conftest.err conftest.$ac_ext
22478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22479 echo "${ECHO_T}$ac_header_preproc" >&6
22480
22481 # So?  What about this header?
22482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22483   yes:no: )
22484     { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
22485 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22486     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
22487 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
22488     ac_header_preproc=yes
22489     ;;
22490   no:yes:* )
22491     { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
22492 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
22493     { echo "$as_me:$LINENO: WARNING: mspack.h:     check for missing prerequisite headers?" >&5
22494 echo "$as_me: WARNING: mspack.h:     check for missing prerequisite headers?" >&2;}
22495     { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
22496 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
22497     { echo "$as_me:$LINENO: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&5
22498 echo "$as_me: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22499     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
22500 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
22501     { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
22502 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
22503     (
22504       cat <<\_ASBOX
22505 ## ----------------------------------------- ##
22506 ## Report this to wx-dev@lists.wxwidgets.org ##
22507 ## ----------------------------------------- ##
22508 _ASBOX
22509     ) |
22510       sed "s/^/$as_me: WARNING:     /" >&2
22511     ;;
22512 esac
22513 echo "$as_me:$LINENO: checking for mspack.h" >&5
22514 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22515 if test "${ac_cv_header_mspack_h+set}" = set; then
22516   echo $ECHO_N "(cached) $ECHO_C" >&6
22517 else
22518   ac_cv_header_mspack_h=$ac_header_preproc
22519 fi
22520 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22521 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22522
22523 fi
22524 if test $ac_cv_header_mspack_h = yes; then
22525   found_mspack_h=1
22526 fi
22527
22528
22529     if test "x$found_mspack_h" = "x1"; then
22530         echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22531 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22532 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22533   echo $ECHO_N "(cached) $ECHO_C" >&6
22534 else
22535   ac_check_lib_save_LIBS=$LIBS
22536 LIBS="-lmspack  $LIBS"
22537 cat >conftest.$ac_ext <<_ACEOF
22538 /* confdefs.h.  */
22539 _ACEOF
22540 cat confdefs.h >>conftest.$ac_ext
22541 cat >>conftest.$ac_ext <<_ACEOF
22542 /* end confdefs.h.  */
22543
22544 /* Override any gcc2 internal prototype to avoid an error.  */
22545 #ifdef __cplusplus
22546 extern "C"
22547 #endif
22548 /* We use char because int might match the return type of a gcc2
22549    builtin and then its argument prototype would still apply.  */
22550 char mspack_create_chm_decompressor ();
22551 int
22552 main ()
22553 {
22554 mspack_create_chm_decompressor ();
22555   ;
22556   return 0;
22557 }
22558 _ACEOF
22559 rm -f conftest.$ac_objext conftest$ac_exeext
22560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22561   (eval $ac_link) 2>conftest.er1
22562   ac_status=$?
22563   grep -v '^ *+' conftest.er1 >conftest.err
22564   rm -f conftest.er1
22565   cat conftest.err >&5
22566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567   (exit $ac_status); } &&
22568          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22570   (eval $ac_try) 2>&5
22571   ac_status=$?
22572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573   (exit $ac_status); }; } &&
22574          { ac_try='test -s conftest$ac_exeext'
22575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576   (eval $ac_try) 2>&5
22577   ac_status=$?
22578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579   (exit $ac_status); }; }; then
22580   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22581 else
22582   echo "$as_me: failed program was:" >&5
22583 sed 's/^/| /' conftest.$ac_ext >&5
22584
22585 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22586 fi
22587 rm -f conftest.err conftest.$ac_objext \
22588       conftest$ac_exeext conftest.$ac_ext
22589 LIBS=$ac_check_lib_save_LIBS
22590 fi
22591 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22592 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22593 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22594   MSPACK_LINK=" -lmspack"
22595 fi
22596
22597     fi
22598     if test "x$MSPACK_LINK" = "x" ; then
22599         wxUSE_LIBMSPACK=no
22600     fi
22601 fi
22602
22603 if test "$wxUSE_LIBMSPACK" != "no"; then
22604     cat >>confdefs.h <<\_ACEOF
22605 #define wxUSE_LIBMSPACK 1
22606 _ACEOF
22607
22608 fi
22609
22610
22611
22612 AFMINSTALL=
22613 WIN32INSTALL=
22614
22615 TOOLKIT=
22616 TOOLKIT_INCLUDE=
22617 WIDGET_SET=
22618
22619 if test "$USE_WIN32" = 1 ; then
22620
22621 for ac_header in w32api.h
22622 do
22623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22625   echo "$as_me:$LINENO: checking for $ac_header" >&5
22626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22628   echo $ECHO_N "(cached) $ECHO_C" >&6
22629 fi
22630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22632 else
22633   # Is the header compilable?
22634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22636 cat >conftest.$ac_ext <<_ACEOF
22637 /* confdefs.h.  */
22638 _ACEOF
22639 cat confdefs.h >>conftest.$ac_ext
22640 cat >>conftest.$ac_ext <<_ACEOF
22641 /* end confdefs.h.  */
22642 $ac_includes_default
22643 #include <$ac_header>
22644 _ACEOF
22645 rm -f conftest.$ac_objext
22646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22647   (eval $ac_compile) 2>conftest.er1
22648   ac_status=$?
22649   grep -v '^ *+' conftest.er1 >conftest.err
22650   rm -f conftest.er1
22651   cat conftest.err >&5
22652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653   (exit $ac_status); } &&
22654          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22656   (eval $ac_try) 2>&5
22657   ac_status=$?
22658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659   (exit $ac_status); }; } &&
22660          { ac_try='test -s conftest.$ac_objext'
22661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22662   (eval $ac_try) 2>&5
22663   ac_status=$?
22664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665   (exit $ac_status); }; }; then
22666   ac_header_compiler=yes
22667 else
22668   echo "$as_me: failed program was:" >&5
22669 sed 's/^/| /' conftest.$ac_ext >&5
22670
22671 ac_header_compiler=no
22672 fi
22673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22675 echo "${ECHO_T}$ac_header_compiler" >&6
22676
22677 # Is the header present?
22678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22680 cat >conftest.$ac_ext <<_ACEOF
22681 /* confdefs.h.  */
22682 _ACEOF
22683 cat confdefs.h >>conftest.$ac_ext
22684 cat >>conftest.$ac_ext <<_ACEOF
22685 /* end confdefs.h.  */
22686 #include <$ac_header>
22687 _ACEOF
22688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22689   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22690   ac_status=$?
22691   grep -v '^ *+' conftest.er1 >conftest.err
22692   rm -f conftest.er1
22693   cat conftest.err >&5
22694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695   (exit $ac_status); } >/dev/null; then
22696   if test -s conftest.err; then
22697     ac_cpp_err=$ac_c_preproc_warn_flag
22698     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22699   else
22700     ac_cpp_err=
22701   fi
22702 else
22703   ac_cpp_err=yes
22704 fi
22705 if test -z "$ac_cpp_err"; then
22706   ac_header_preproc=yes
22707 else
22708   echo "$as_me: failed program was:" >&5
22709 sed 's/^/| /' conftest.$ac_ext >&5
22710
22711   ac_header_preproc=no
22712 fi
22713 rm -f conftest.err conftest.$ac_ext
22714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22715 echo "${ECHO_T}$ac_header_preproc" >&6
22716
22717 # So?  What about this header?
22718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22719   yes:no: )
22720     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22722     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22724     ac_header_preproc=yes
22725     ;;
22726   no:yes:* )
22727     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22729     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22730 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22731     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22733     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22734 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22737     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22739     (
22740       cat <<\_ASBOX
22741 ## ----------------------------------------- ##
22742 ## Report this to wx-dev@lists.wxwidgets.org ##
22743 ## ----------------------------------------- ##
22744 _ASBOX
22745     ) |
22746       sed "s/^/$as_me: WARNING:     /" >&2
22747     ;;
22748 esac
22749 echo "$as_me:$LINENO: checking for $ac_header" >&5
22750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22752   echo $ECHO_N "(cached) $ECHO_C" >&6
22753 else
22754   eval "$as_ac_Header=\$ac_header_preproc"
22755 fi
22756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22758
22759 fi
22760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22761   cat >>confdefs.h <<_ACEOF
22762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22763 _ACEOF
22764
22765 fi
22766
22767 done
22768
22769     if test "${ac_cv_header_windows_h+set}" = set; then
22770   echo "$as_me:$LINENO: checking for windows.h" >&5
22771 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22772 if test "${ac_cv_header_windows_h+set}" = set; then
22773   echo $ECHO_N "(cached) $ECHO_C" >&6
22774 fi
22775 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22776 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22777 else
22778   # Is the header compilable?
22779 echo "$as_me:$LINENO: checking windows.h usability" >&5
22780 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22781 cat >conftest.$ac_ext <<_ACEOF
22782 /* confdefs.h.  */
22783 _ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h.  */
22787 $ac_includes_default
22788 #include <windows.h>
22789 _ACEOF
22790 rm -f conftest.$ac_objext
22791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22792   (eval $ac_compile) 2>conftest.er1
22793   ac_status=$?
22794   grep -v '^ *+' conftest.er1 >conftest.err
22795   rm -f conftest.er1
22796   cat conftest.err >&5
22797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798   (exit $ac_status); } &&
22799          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22801   (eval $ac_try) 2>&5
22802   ac_status=$?
22803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804   (exit $ac_status); }; } &&
22805          { ac_try='test -s conftest.$ac_objext'
22806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22807   (eval $ac_try) 2>&5
22808   ac_status=$?
22809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810   (exit $ac_status); }; }; then
22811   ac_header_compiler=yes
22812 else
22813   echo "$as_me: failed program was:" >&5
22814 sed 's/^/| /' conftest.$ac_ext >&5
22815
22816 ac_header_compiler=no
22817 fi
22818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22820 echo "${ECHO_T}$ac_header_compiler" >&6
22821
22822 # Is the header present?
22823 echo "$as_me:$LINENO: checking windows.h presence" >&5
22824 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22825 cat >conftest.$ac_ext <<_ACEOF
22826 /* confdefs.h.  */
22827 _ACEOF
22828 cat confdefs.h >>conftest.$ac_ext
22829 cat >>conftest.$ac_ext <<_ACEOF
22830 /* end confdefs.h.  */
22831 #include <windows.h>
22832 _ACEOF
22833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22834   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22835   ac_status=$?
22836   grep -v '^ *+' conftest.er1 >conftest.err
22837   rm -f conftest.er1
22838   cat conftest.err >&5
22839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840   (exit $ac_status); } >/dev/null; then
22841   if test -s conftest.err; then
22842     ac_cpp_err=$ac_c_preproc_warn_flag
22843     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22844   else
22845     ac_cpp_err=
22846   fi
22847 else
22848   ac_cpp_err=yes
22849 fi
22850 if test -z "$ac_cpp_err"; then
22851   ac_header_preproc=yes
22852 else
22853   echo "$as_me: failed program was:" >&5
22854 sed 's/^/| /' conftest.$ac_ext >&5
22855
22856   ac_header_preproc=no
22857 fi
22858 rm -f conftest.err conftest.$ac_ext
22859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22860 echo "${ECHO_T}$ac_header_preproc" >&6
22861
22862 # So?  What about this header?
22863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22864   yes:no: )
22865     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22866 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22867     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22868 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22869     ac_header_preproc=yes
22870     ;;
22871   no:yes:* )
22872     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22873 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
22874     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
22875 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
22876     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22877 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22878     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
22879 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22880     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22881 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
22882     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22883 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
22884     (
22885       cat <<\_ASBOX
22886 ## ----------------------------------------- ##
22887 ## Report this to wx-dev@lists.wxwidgets.org ##
22888 ## ----------------------------------------- ##
22889 _ASBOX
22890     ) |
22891       sed "s/^/$as_me: WARNING:     /" >&2
22892     ;;
22893 esac
22894 echo "$as_me:$LINENO: checking for windows.h" >&5
22895 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22896 if test "${ac_cv_header_windows_h+set}" = set; then
22897   echo $ECHO_N "(cached) $ECHO_C" >&6
22898 else
22899   ac_cv_header_windows_h=$ac_header_preproc
22900 fi
22901 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22902 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22903
22904 fi
22905 if test $ac_cv_header_windows_h = yes; then
22906   :
22907 else
22908
22909         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22910 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22911    { (exit 1); exit 1; }; }
22912
22913 fi
22914
22915
22916
22917             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22918
22919     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22920         LIBS="$LIBS -loleacc"
22921     fi
22922
22923     case "${host}" in
22924         *-*-cygwin* )
22925                         LIBS="$LIBS -lkernel32 -luser32"
22926             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22927     esac
22928
22929         if test "$wxUSE_ODBC" = "sys" ; then
22930         wxUSE_ODBC = "yes"
22931     fi
22932     if test "$wxUSE_ODBC" = "yes" ; then
22933         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22934         cat >>confdefs.h <<\_ACEOF
22935 #define wxUSE_ODBC 1
22936 _ACEOF
22937
22938     fi
22939
22940     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22941     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22942
22943         WIN32INSTALL=win32install
22944 fi
22945
22946 if test "$wxUSE_GUI" = "yes"; then
22947     USE_GUI=1
22948
22949     GUI_TK_LIBRARY=
22950
22951     WXGTK12=
22952     WXGTK127=
22953     WXGTK20=
22954     WXGPE=
22955
22956     if test "$wxUSE_COCOA" = 1 ; then
22957         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
22958             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
22959 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
22960             wxUSE_PRINTING_ARCHITECTURE=no
22961         fi
22962         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
22963             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
22964 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
22965             wxUSE_DRAG_AND_DROP=no
22966         fi
22967         if test "$wxUSE_DRAGIMAGE" = "yes"; then
22968             { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
22969 echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
22970             wxUSE_DRAGIMAGE=no
22971         fi
22972     fi
22973
22974     if test "$wxUSE_MSW" = 1 ; then
22975         TOOLKIT=MSW
22976         GUIDIST=MSW_DIST
22977
22978                 case "${host}" in
22979             *-*-mingw32* )
22980                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22981         esac
22982     fi
22983
22984     if test "$wxUSE_GTK" = 1; then
22985         echo "$as_me:$LINENO: checking for GTK+ version" >&5
22986 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22987
22988         gtk_version_cached=1
22989         if test "${wx_cv_lib_gtk+set}" = set; then
22990   echo $ECHO_N "(cached) $ECHO_C" >&6
22991 else
22992
22993                                                 gtk_version_cached=0
22994                 echo "$as_me:$LINENO: result: " >&5
22995 echo "${ECHO_T}" >&6
22996
22997                                                 GTK_MODULES=
22998                 if test "$wxUSE_THREADS" = "yes"; then
22999                     GTK_MODULES=gthread
23000                 fi
23001
23002                                                 wx_cv_lib_gtk=
23003                 if test "x$wxUSE_GTK2" = "xyes"; then
23004                     # Check whether --enable-gtktest or --disable-gtktest was given.
23005 if test "${enable_gtktest+set}" = set; then
23006   enableval="$enable_gtktest"
23007
23008 else
23009   enable_gtktest=yes
23010 fi;
23011
23012   pkg_config_args=gtk+-2.0
23013   for module in . $GTK_MODULES
23014   do
23015       case "$module" in
23016          gthread)
23017              pkg_config_args="$pkg_config_args gthread-2.0"
23018          ;;
23019       esac
23020   done
23021
23022   no_gtk=""
23023
23024   # Extract the first word of "pkg-config", so it can be a program name with args.
23025 set dummy pkg-config; ac_word=$2
23026 echo "$as_me:$LINENO: checking for $ac_word" >&5
23027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23028 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23029   echo $ECHO_N "(cached) $ECHO_C" >&6
23030 else
23031   case $PKG_CONFIG in
23032   [\\/]* | ?:[\\/]*)
23033   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23034   ;;
23035   *)
23036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23037 for as_dir in $PATH
23038 do
23039   IFS=$as_save_IFS
23040   test -z "$as_dir" && as_dir=.
23041   for ac_exec_ext in '' $ac_executable_extensions; do
23042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23043     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23045     break 2
23046   fi
23047 done
23048 done
23049
23050   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23051   ;;
23052 esac
23053 fi
23054 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23055
23056 if test -n "$PKG_CONFIG"; then
23057   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23058 echo "${ECHO_T}$PKG_CONFIG" >&6
23059 else
23060   echo "$as_me:$LINENO: result: no" >&5
23061 echo "${ECHO_T}no" >&6
23062 fi
23063
23064
23065   if test x$PKG_CONFIG != xno ; then
23066     if pkg-config --atleast-pkgconfig-version 0.7 ; then
23067       :
23068     else
23069       echo "*** pkg-config too old; version 0.7 or better required."
23070       no_gtk=yes
23071       PKG_CONFIG=no
23072     fi
23073   else
23074     no_gtk=yes
23075   fi
23076
23077   min_gtk_version=2.0.0
23078   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
23079 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
23080
23081   if test x$PKG_CONFIG != xno ; then
23082     ## don't try to run the test against uninstalled libtool libs
23083     if $PKG_CONFIG --uninstalled $pkg_config_args; then
23084           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
23085           enable_gtktest=no
23086     fi
23087
23088     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
23089           :
23090     else
23091           no_gtk=yes
23092     fi
23093   fi
23094
23095   if test x"$no_gtk" = x ; then
23096     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
23097     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
23098     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23099            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23100     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23101            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23102     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23103            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23104     if test "x$enable_gtktest" = "xyes" ; then
23105       ac_save_CFLAGS="$CFLAGS"
23106       ac_save_LIBS="$LIBS"
23107       CFLAGS="$CFLAGS $GTK_CFLAGS"
23108       LIBS="$GTK_LIBS $LIBS"
23109       rm -f conf.gtktest
23110       if test "$cross_compiling" = yes; then
23111   echo $ac_n "cross compiling; assumed OK... $ac_c"
23112 else
23113   cat >conftest.$ac_ext <<_ACEOF
23114 /* confdefs.h.  */
23115 _ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h.  */
23119
23120 #include <gtk/gtk.h>
23121 #include <stdio.h>
23122 #include <stdlib.h>
23123
23124 int
23125 main ()
23126 {
23127   int major, minor, micro;
23128   char *tmp_version;
23129
23130   system ("touch conf.gtktest");
23131
23132   /* HP/UX 9 (%@#!) writes to sscanf strings */
23133   tmp_version = g_strdup("$min_gtk_version");
23134   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23135      printf("%s, bad version string\n", "$min_gtk_version");
23136      exit(1);
23137    }
23138
23139   if ((gtk_major_version != $gtk_config_major_version) ||
23140       (gtk_minor_version != $gtk_config_minor_version) ||
23141       (gtk_micro_version != $gtk_config_micro_version))
23142     {
23143       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23144              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23145              gtk_major_version, gtk_minor_version, gtk_micro_version);
23146       printf ("*** was found! If pkg-config was correct, then it is best\n");
23147       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23148       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23149       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23150       printf("*** required on your system.\n");
23151       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
23152       printf("*** to point to the correct configuration files\n");
23153     }
23154   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23155            (gtk_minor_version != GTK_MINOR_VERSION) ||
23156            (gtk_micro_version != GTK_MICRO_VERSION))
23157     {
23158       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23159              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23160       printf("*** library (version %d.%d.%d)\n",
23161              gtk_major_version, gtk_minor_version, gtk_micro_version);
23162     }
23163   else
23164     {
23165       if ((gtk_major_version > major) ||
23166         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23167         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23168       {
23169         return 0;
23170        }
23171      else
23172       {
23173         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23174                gtk_major_version, gtk_minor_version, gtk_micro_version);
23175         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23176                major, minor, micro);
23177         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23178         printf("***\n");
23179         printf("*** If you have already installed a sufficiently new version, this error\n");
23180         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
23181         printf("*** being found. The easiest way to fix this is to remove the old version\n");
23182         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
23183         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
23184         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23185         printf("*** so that the correct libraries are found at run-time))\n");
23186       }
23187     }
23188   return 1;
23189 }
23190
23191 _ACEOF
23192 rm -f conftest$ac_exeext
23193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23194   (eval $ac_link) 2>&5
23195   ac_status=$?
23196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23199   (eval $ac_try) 2>&5
23200   ac_status=$?
23201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202   (exit $ac_status); }; }; then
23203   :
23204 else
23205   echo "$as_me: program exited with status $ac_status" >&5
23206 echo "$as_me: failed program was:" >&5
23207 sed 's/^/| /' conftest.$ac_ext >&5
23208
23209 ( exit $ac_status )
23210 no_gtk=yes
23211 fi
23212 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23213 fi
23214        CFLAGS="$ac_save_CFLAGS"
23215        LIBS="$ac_save_LIBS"
23216      fi
23217   fi
23218   if test "x$no_gtk" = x ; then
23219      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
23220 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
23221      wx_cv_lib_gtk=2.0
23222   else
23223      echo "$as_me:$LINENO: result: no" >&5
23224 echo "${ECHO_T}no" >&6
23225      if test "$PKG_CONFIG" = "no" ; then
23226        echo "*** A new enough version of pkg-config was not found."
23227        echo "*** See http://pkgconfig.sourceforge.net"
23228      else
23229        if test -f conf.gtktest ; then
23230         :
23231        else
23232           echo "*** Could not run GTK+ test program, checking why..."
23233           ac_save_CFLAGS="$CFLAGS"
23234           ac_save_LIBS="$LIBS"
23235           CFLAGS="$CFLAGS $GTK_CFLAGS"
23236           LIBS="$LIBS $GTK_LIBS"
23237           cat >conftest.$ac_ext <<_ACEOF
23238 /* confdefs.h.  */
23239 _ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h.  */
23243
23244 #include <gtk/gtk.h>
23245 #include <stdio.h>
23246
23247 int
23248 main ()
23249 {
23250  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23251   ;
23252   return 0;
23253 }
23254 _ACEOF
23255 rm -f conftest.$ac_objext conftest$ac_exeext
23256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23257   (eval $ac_link) 2>conftest.er1
23258   ac_status=$?
23259   grep -v '^ *+' conftest.er1 >conftest.err
23260   rm -f conftest.er1
23261   cat conftest.err >&5
23262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263   (exit $ac_status); } &&
23264          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23266   (eval $ac_try) 2>&5
23267   ac_status=$?
23268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269   (exit $ac_status); }; } &&
23270          { ac_try='test -s conftest$ac_exeext'
23271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23272   (eval $ac_try) 2>&5
23273   ac_status=$?
23274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275   (exit $ac_status); }; }; then
23276    echo "*** The test program compiled, but did not run. This usually means"
23277           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
23278           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
23279           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23280           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
23281           echo "*** is required on your system"
23282           echo "***"
23283           echo "*** If you have an old version installed, it is best to remove it, although"
23284           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23285 else
23286   echo "$as_me: failed program was:" >&5
23287 sed 's/^/| /' conftest.$ac_ext >&5
23288
23289  echo "*** The test program failed to compile or link. See the file config.log for the"
23290           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
23291 fi
23292 rm -f conftest.err conftest.$ac_objext \
23293       conftest$ac_exeext conftest.$ac_ext
23294           CFLAGS="$ac_save_CFLAGS"
23295           LIBS="$ac_save_LIBS"
23296        fi
23297      fi
23298      GTK_CFLAGS=""
23299      GTK_LIBS=""
23300      :
23301   fi
23302
23303
23304   rm -f conf.gtktest
23305
23306                 else
23307
23308 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23309 if test "${with_gtk_prefix+set}" = set; then
23310   withval="$with_gtk_prefix"
23311   gtk_config_prefix="$withval"
23312 else
23313   gtk_config_prefix=""
23314 fi;
23315
23316 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23317 if test "${with_gtk_exec_prefix+set}" = set; then
23318   withval="$with_gtk_exec_prefix"
23319   gtk_config_exec_prefix="$withval"
23320 else
23321   gtk_config_exec_prefix=""
23322 fi;
23323 # Check whether --enable-gtktest or --disable-gtktest was given.
23324 if test "${enable_gtktest+set}" = set; then
23325   enableval="$enable_gtktest"
23326
23327 else
23328   enable_gtktest=yes
23329 fi;
23330
23331   for module in . $GTK_MODULES
23332   do
23333       case "$module" in
23334          gthread)
23335              gtk_config_args="$gtk_config_args gthread"
23336          ;;
23337       esac
23338   done
23339
23340   if test x$gtk_config_exec_prefix != x ; then
23341      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23342      if test x${GTK_CONFIG+set} != xset ; then
23343         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23344      fi
23345   fi
23346   if test x$gtk_config_prefix != x ; then
23347      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23348      if test x${GTK_CONFIG+set} != xset ; then
23349         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23350      fi
23351   fi
23352
23353   # Extract the first word of "gtk-config", so it can be a program name with args.
23354 set dummy gtk-config; ac_word=$2
23355 echo "$as_me:$LINENO: checking for $ac_word" >&5
23356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23357 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23358   echo $ECHO_N "(cached) $ECHO_C" >&6
23359 else
23360   case $GTK_CONFIG in
23361   [\\/]* | ?:[\\/]*)
23362   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23363   ;;
23364   *)
23365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23366 for as_dir in $PATH
23367 do
23368   IFS=$as_save_IFS
23369   test -z "$as_dir" && as_dir=.
23370   for ac_exec_ext in '' $ac_executable_extensions; do
23371   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23372     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23374     break 2
23375   fi
23376 done
23377 done
23378
23379   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23380   ;;
23381 esac
23382 fi
23383 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23384
23385 if test -n "$GTK_CONFIG"; then
23386   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23387 echo "${ECHO_T}$GTK_CONFIG" >&6
23388 else
23389   echo "$as_me:$LINENO: result: no" >&5
23390 echo "${ECHO_T}no" >&6
23391 fi
23392
23393   min_gtk_version=1.2.7
23394   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23395 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23396   no_gtk=""
23397   if test "$GTK_CONFIG" = "no" ; then
23398     no_gtk=yes
23399   else
23400     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23401     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23402     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23403            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23404     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23405            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23406     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23407            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23408     if test "x$enable_gtktest" = "xyes" ; then
23409       ac_save_CFLAGS="$CFLAGS"
23410       ac_save_LIBS="$LIBS"
23411       CFLAGS="$CFLAGS $GTK_CFLAGS"
23412       LIBS="$GTK_LIBS $LIBS"
23413       rm -f conf.gtktest
23414       if test "$cross_compiling" = yes; then
23415   echo $ac_n "cross compiling; assumed OK... $ac_c"
23416 else
23417   cat >conftest.$ac_ext <<_ACEOF
23418 /* confdefs.h.  */
23419 _ACEOF
23420 cat confdefs.h >>conftest.$ac_ext
23421 cat >>conftest.$ac_ext <<_ACEOF
23422 /* end confdefs.h.  */
23423
23424 #include <gtk/gtk.h>
23425 #include <stdio.h>
23426 #include <stdlib.h>
23427
23428 int
23429 main ()
23430 {
23431   int major, minor, micro;
23432   char *tmp_version;
23433
23434   system ("touch conf.gtktest");
23435
23436   /* HP/UX 9 (%@#!) writes to sscanf strings */
23437   tmp_version = g_strdup("$min_gtk_version");
23438   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23439      printf("%s, bad version string\n", "$min_gtk_version");
23440      exit(1);
23441    }
23442
23443   if ((gtk_major_version != $gtk_config_major_version) ||
23444       (gtk_minor_version != $gtk_config_minor_version) ||
23445       (gtk_micro_version != $gtk_config_micro_version))
23446     {
23447       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23448              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23449              gtk_major_version, gtk_minor_version, gtk_micro_version);
23450       printf ("*** was found! If gtk-config was correct, then it is best\n");
23451       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23452       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23453       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23454       printf("*** required on your system.\n");
23455       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23456       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23457       printf("*** before re-running configure\n");
23458     }
23459 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23460   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23461            (gtk_minor_version != GTK_MINOR_VERSION) ||
23462            (gtk_micro_version != GTK_MICRO_VERSION))
23463     {
23464       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23465              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23466       printf("*** library (version %d.%d.%d)\n",
23467              gtk_major_version, gtk_minor_version, gtk_micro_version);
23468     }
23469 #endif /* defined (GTK_MAJOR_VERSION) ... */
23470   else
23471     {
23472       if ((gtk_major_version > major) ||
23473         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23474         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23475       {
23476         return 0;
23477        }
23478      else
23479       {
23480         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23481                gtk_major_version, gtk_minor_version, gtk_micro_version);
23482         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23483                major, minor, micro);
23484         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23485         printf("***\n");
23486         printf("*** If you have already installed a sufficiently new version, this error\n");
23487         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23488         printf("*** being found. The easiest way to fix this is to remove the old version\n");
23489         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23490         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23491         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23492         printf("*** so that the correct libraries are found at run-time))\n");
23493       }
23494     }
23495   return 1;
23496 }
23497
23498 _ACEOF
23499 rm -f conftest$ac_exeext
23500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23501   (eval $ac_link) 2>&5
23502   ac_status=$?
23503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506   (eval $ac_try) 2>&5
23507   ac_status=$?
23508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509   (exit $ac_status); }; }; then
23510   :
23511 else
23512   echo "$as_me: program exited with status $ac_status" >&5
23513 echo "$as_me: failed program was:" >&5
23514 sed 's/^/| /' conftest.$ac_ext >&5
23515
23516 ( exit $ac_status )
23517 no_gtk=yes
23518 fi
23519 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23520 fi
23521        CFLAGS="$ac_save_CFLAGS"
23522        LIBS="$ac_save_LIBS"
23523      fi
23524   fi
23525   if test "x$no_gtk" = x ; then
23526      echo "$as_me:$LINENO: result: yes" >&5
23527 echo "${ECHO_T}yes" >&6
23528      wx_cv_lib_gtk=1.2.7
23529   else
23530      echo "$as_me:$LINENO: result: no" >&5
23531 echo "${ECHO_T}no" >&6
23532      if test "$GTK_CONFIG" = "no" ; then
23533        echo "*** The gtk-config script installed by GTK could not be found"
23534        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23535        echo "*** your path, or set the GTK_CONFIG environment variable to the"
23536        echo "*** full path to gtk-config."
23537      else
23538        if test -f conf.gtktest ; then
23539         :
23540        else
23541           echo "*** Could not run GTK test program, checking why..."
23542           CFLAGS="$CFLAGS $GTK_CFLAGS"
23543           LIBS="$LIBS $GTK_LIBS"
23544           cat >conftest.$ac_ext <<_ACEOF
23545 /* confdefs.h.  */
23546 _ACEOF
23547 cat confdefs.h >>conftest.$ac_ext
23548 cat >>conftest.$ac_ext <<_ACEOF
23549 /* end confdefs.h.  */
23550
23551 #include <gtk/gtk.h>
23552 #include <stdio.h>
23553
23554 int
23555 main ()
23556 {
23557  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23558   ;
23559   return 0;
23560 }
23561 _ACEOF
23562 rm -f conftest.$ac_objext conftest$ac_exeext
23563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23564   (eval $ac_link) 2>conftest.er1
23565   ac_status=$?
23566   grep -v '^ *+' conftest.er1 >conftest.err
23567   rm -f conftest.er1
23568   cat conftest.err >&5
23569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570   (exit $ac_status); } &&
23571          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23573   (eval $ac_try) 2>&5
23574   ac_status=$?
23575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576   (exit $ac_status); }; } &&
23577          { ac_try='test -s conftest$ac_exeext'
23578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23579   (eval $ac_try) 2>&5
23580   ac_status=$?
23581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582   (exit $ac_status); }; }; then
23583    echo "*** The test program compiled, but did not run. This usually means"
23584           echo "*** that the run-time linker is not finding GTK or finding the wrong"
23585           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23586           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23587           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
23588           echo "*** is required on your system"
23589           echo "***"
23590           echo "*** If you have an old version installed, it is best to remove it, although"
23591           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23592           echo "***"
23593           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23594           echo "*** came with the system with the command"
23595           echo "***"
23596           echo "***    rpm --erase --nodeps gtk gtk-devel"
23597 else
23598   echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23600
23601  echo "*** The test program failed to compile or link. See the file config.log for the"
23602           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23603           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23604           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23605 fi
23606 rm -f conftest.err conftest.$ac_objext \
23607       conftest$ac_exeext conftest.$ac_ext
23608           CFLAGS="$ac_save_CFLAGS"
23609           LIBS="$ac_save_LIBS"
23610        fi
23611      fi
23612      GTK_CFLAGS=""
23613      GTK_LIBS=""
23614      :
23615   fi
23616
23617
23618   rm -f conf.gtktest
23619
23620
23621                     if test -z "$wx_cv_lib_gtk"; then
23622
23623 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23624 if test "${with_gtk_prefix+set}" = set; then
23625   withval="$with_gtk_prefix"
23626   gtk_config_prefix="$withval"
23627 else
23628   gtk_config_prefix=""
23629 fi;
23630
23631 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23632 if test "${with_gtk_exec_prefix+set}" = set; then
23633   withval="$with_gtk_exec_prefix"
23634   gtk_config_exec_prefix="$withval"
23635 else
23636   gtk_config_exec_prefix=""
23637 fi;
23638 # Check whether --enable-gtktest or --disable-gtktest was given.
23639 if test "${enable_gtktest+set}" = set; then
23640   enableval="$enable_gtktest"
23641
23642 else
23643   enable_gtktest=yes
23644 fi;
23645
23646   for module in . $GTK_MODULES
23647   do
23648       case "$module" in
23649          gthread)
23650              gtk_config_args="$gtk_config_args gthread"
23651          ;;
23652       esac
23653   done
23654
23655   if test x$gtk_config_exec_prefix != x ; then
23656      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23657      if test x${GTK_CONFIG+set} != xset ; then
23658         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23659      fi
23660   fi
23661   if test x$gtk_config_prefix != x ; then
23662      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23663      if test x${GTK_CONFIG+set} != xset ; then
23664         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23665      fi
23666   fi
23667
23668   # Extract the first word of "gtk-config", so it can be a program name with args.
23669 set dummy gtk-config; ac_word=$2
23670 echo "$as_me:$LINENO: checking for $ac_word" >&5
23671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23672 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23673   echo $ECHO_N "(cached) $ECHO_C" >&6
23674 else
23675   case $GTK_CONFIG in
23676   [\\/]* | ?:[\\/]*)
23677   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23678   ;;
23679   *)
23680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23681 for as_dir in $PATH
23682 do
23683   IFS=$as_save_IFS
23684   test -z "$as_dir" && as_dir=.
23685   for ac_exec_ext in '' $ac_executable_extensions; do
23686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23687     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23689     break 2
23690   fi
23691 done
23692 done
23693
23694   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23695   ;;
23696 esac
23697 fi
23698 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23699
23700 if test -n "$GTK_CONFIG"; then
23701   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23702 echo "${ECHO_T}$GTK_CONFIG" >&6
23703 else
23704   echo "$as_me:$LINENO: result: no" >&5
23705 echo "${ECHO_T}no" >&6
23706 fi
23707
23708   min_gtk_version=1.2.3
23709   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23710 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23711   no_gtk=""
23712   if test "$GTK_CONFIG" = "no" ; then
23713     no_gtk=yes
23714   else
23715     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23716     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23717     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23718            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23719     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23720            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23721     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23722            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23723     if test "x$enable_gtktest" = "xyes" ; then
23724       ac_save_CFLAGS="$CFLAGS"
23725       ac_save_LIBS="$LIBS"
23726       CFLAGS="$CFLAGS $GTK_CFLAGS"
23727       LIBS="$GTK_LIBS $LIBS"
23728       rm -f conf.gtktest
23729       if test "$cross_compiling" = yes; then
23730   echo $ac_n "cross compiling; assumed OK... $ac_c"
23731 else
23732   cat >conftest.$ac_ext <<_ACEOF
23733 /* confdefs.h.  */
23734 _ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h.  */
23738
23739 #include <gtk/gtk.h>
23740 #include <stdio.h>
23741 #include <stdlib.h>
23742
23743 int
23744 main ()
23745 {
23746   int major, minor, micro;
23747   char *tmp_version;
23748
23749   system ("touch conf.gtktest");
23750
23751   /* HP/UX 9 (%@#!) writes to sscanf strings */
23752   tmp_version = g_strdup("$min_gtk_version");
23753   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23754      printf("%s, bad version string\n", "$min_gtk_version");
23755      exit(1);
23756    }
23757
23758   if ((gtk_major_version != $gtk_config_major_version) ||
23759       (gtk_minor_version != $gtk_config_minor_version) ||
23760       (gtk_micro_version != $gtk_config_micro_version))
23761     {
23762       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23763              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23764              gtk_major_version, gtk_minor_version, gtk_micro_version);
23765       printf ("*** was found! If gtk-config was correct, then it is best\n");
23766       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23767       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23768       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23769       printf("*** required on your system.\n");
23770       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23771       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23772       printf("*** before re-running configure\n");
23773     }
23774 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23775   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23776            (gtk_minor_version != GTK_MINOR_VERSION) ||
23777            (gtk_micro_version != GTK_MICRO_VERSION))
23778     {
23779       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23780              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23781       printf("*** library (version %d.%d.%d)\n",
23782              gtk_major_version, gtk_minor_version, gtk_micro_version);
23783     }
23784 #endif /* defined (GTK_MAJOR_VERSION) ... */
23785   else
23786     {
23787       if ((gtk_major_version > major) ||
23788         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23789         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23790       {
23791         return 0;
23792        }
23793      else
23794       {
23795         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23796                gtk_major_version, gtk_minor_version, gtk_micro_version);
23797         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23798                major, minor, micro);
23799         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23800         printf("***\n");
23801         printf("*** If you have already installed a sufficiently new version, this error\n");
23802         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23803         printf("*** being found. The easiest way to fix this is to remove the old version\n");
23804         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23805         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23806         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23807         printf("*** so that the correct libraries are found at run-time))\n");
23808       }
23809     }
23810   return 1;
23811 }
23812
23813 _ACEOF
23814 rm -f conftest$ac_exeext
23815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23816   (eval $ac_link) 2>&5
23817   ac_status=$?
23818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23821   (eval $ac_try) 2>&5
23822   ac_status=$?
23823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824   (exit $ac_status); }; }; then
23825   :
23826 else
23827   echo "$as_me: program exited with status $ac_status" >&5
23828 echo "$as_me: failed program was:" >&5
23829 sed 's/^/| /' conftest.$ac_ext >&5
23830
23831 ( exit $ac_status )
23832 no_gtk=yes
23833 fi
23834 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23835 fi
23836        CFLAGS="$ac_save_CFLAGS"
23837        LIBS="$ac_save_LIBS"
23838      fi
23839   fi
23840   if test "x$no_gtk" = x ; then
23841      echo "$as_me:$LINENO: result: yes" >&5
23842 echo "${ECHO_T}yes" >&6
23843      wx_cv_lib_gtk=1.2.3
23844   else
23845      echo "$as_me:$LINENO: result: no" >&5
23846 echo "${ECHO_T}no" >&6
23847      if test "$GTK_CONFIG" = "no" ; then
23848        echo "*** The gtk-config script installed by GTK could not be found"
23849        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23850        echo "*** your path, or set the GTK_CONFIG environment variable to the"
23851        echo "*** full path to gtk-config."
23852      else
23853        if test -f conf.gtktest ; then
23854         :
23855        else
23856           echo "*** Could not run GTK test program, checking why..."
23857           CFLAGS="$CFLAGS $GTK_CFLAGS"
23858           LIBS="$LIBS $GTK_LIBS"
23859           cat >conftest.$ac_ext <<_ACEOF
23860 /* confdefs.h.  */
23861 _ACEOF
23862 cat confdefs.h >>conftest.$ac_ext
23863 cat >>conftest.$ac_ext <<_ACEOF
23864 /* end confdefs.h.  */
23865
23866 #include <gtk/gtk.h>
23867 #include <stdio.h>
23868
23869 int
23870 main ()
23871 {
23872  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23873   ;
23874   return 0;
23875 }
23876 _ACEOF
23877 rm -f conftest.$ac_objext conftest$ac_exeext
23878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23879   (eval $ac_link) 2>conftest.er1
23880   ac_status=$?
23881   grep -v '^ *+' conftest.er1 >conftest.err
23882   rm -f conftest.er1
23883   cat conftest.err >&5
23884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885   (exit $ac_status); } &&
23886          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23888   (eval $ac_try) 2>&5
23889   ac_status=$?
23890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891   (exit $ac_status); }; } &&
23892          { ac_try='test -s conftest$ac_exeext'
23893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23894   (eval $ac_try) 2>&5
23895   ac_status=$?
23896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897   (exit $ac_status); }; }; then
23898    echo "*** The test program compiled, but did not run. This usually means"
23899           echo "*** that the run-time linker is not finding GTK or finding the wrong"
23900           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23901           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23902           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
23903           echo "*** is required on your system"
23904           echo "***"
23905           echo "*** If you have an old version installed, it is best to remove it, although"
23906           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23907           echo "***"
23908           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23909           echo "*** came with the system with the command"
23910           echo "***"
23911           echo "***    rpm --erase --nodeps gtk gtk-devel"
23912 else
23913   echo "$as_me: failed program was:" >&5
23914 sed 's/^/| /' conftest.$ac_ext >&5
23915
23916  echo "*** The test program failed to compile or link. See the file config.log for the"
23917           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23918           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23919           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23920 fi
23921 rm -f conftest.err conftest.$ac_objext \
23922       conftest$ac_exeext conftest.$ac_ext
23923           CFLAGS="$ac_save_CFLAGS"
23924           LIBS="$ac_save_LIBS"
23925        fi
23926      fi
23927      GTK_CFLAGS=""
23928      GTK_LIBS=""
23929      :
23930   fi
23931
23932
23933   rm -f conf.gtktest
23934
23935                     fi
23936                 fi
23937
23938                 if test -z "$wx_cv_lib_gtk"; then
23939                                         wx_cv_lib_gtk=none
23940                 else
23941                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
23942                     wx_cv_libs_gtk=$GTK_LIBS
23943                 fi
23944
23945
23946 fi
23947
23948
23949                         if test "$gtk_version_cached" = 1; then
23950             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23951 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23952         fi
23953
23954         case "$wx_cv_lib_gtk" in
23955             2.0)    WXGTK20=1
23956                     TOOLKIT_VERSION=2
23957                     ;;
23958             1.2.7)  WXGTK127=1
23959                     WXGTK12=1
23960                     ;;
23961             1.2.3)  WXGTK12=1
23962                     ;;
23963             *)      { { echo "$as_me:$LINENO: error:
23964 Please check that gtk-config is in path, the directory
23965 where GTK+ libraries are installed (returned by
23966 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23967 equivalent variable and GTK+ is version 1.2.3 or above.
23968                             " >&5
23969 echo "$as_me: error:
23970 Please check that gtk-config is in path, the directory
23971 where GTK+ libraries are installed (returned by
23972 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23973 equivalent variable and GTK+ is version 1.2.3 or above.
23974                             " >&2;}
23975    { (exit 1); exit 1; }; }
23976                     ;;
23977         esac
23978
23979         if test "$WXGTK20" = 1; then
23980             save_CFLAGS="$CFLAGS"
23981             save_LIBS="$LIBS"
23982             CFLAGS="$CFLAGS $GTK_CFLAGS"
23983             LIBS="$LIBS $GTK_LIBS"
23984
23985
23986 for ac_func in pango_font_family_is_monospace
23987 do
23988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23989 echo "$as_me:$LINENO: checking for $ac_func" >&5
23990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23991 if eval "test \"\${$as_ac_var+set}\" = set"; then
23992   echo $ECHO_N "(cached) $ECHO_C" >&6
23993 else
23994   cat >conftest.$ac_ext <<_ACEOF
23995 /* confdefs.h.  */
23996 _ACEOF
23997 cat confdefs.h >>conftest.$ac_ext
23998 cat >>conftest.$ac_ext <<_ACEOF
23999 /* end confdefs.h.  */
24000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24002 #define $ac_func innocuous_$ac_func
24003
24004 /* System header to define __stub macros and hopefully few prototypes,
24005     which can conflict with char $ac_func (); below.
24006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24007     <limits.h> exists even on freestanding compilers.  */
24008
24009 #ifdef __STDC__
24010 # include <limits.h>
24011 #else
24012 # include <assert.h>
24013 #endif
24014
24015 #undef $ac_func
24016
24017 /* Override any gcc2 internal prototype to avoid an error.  */
24018 #ifdef __cplusplus
24019 extern "C"
24020 {
24021 #endif
24022 /* We use char because int might match the return type of a gcc2
24023    builtin and then its argument prototype would still apply.  */
24024 char $ac_func ();
24025 /* The GNU C library defines this for functions which it implements
24026     to always fail with ENOSYS.  Some functions are actually named
24027     something starting with __ and the normal name is an alias.  */
24028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24029 choke me
24030 #else
24031 char (*f) () = $ac_func;
24032 #endif
24033 #ifdef __cplusplus
24034 }
24035 #endif
24036
24037 int
24038 main ()
24039 {
24040 return f != $ac_func;
24041   ;
24042   return 0;
24043 }
24044 _ACEOF
24045 rm -f conftest.$ac_objext conftest$ac_exeext
24046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24047   (eval $ac_link) 2>conftest.er1
24048   ac_status=$?
24049   grep -v '^ *+' conftest.er1 >conftest.err
24050   rm -f conftest.er1
24051   cat conftest.err >&5
24052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053   (exit $ac_status); } &&
24054          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24056   (eval $ac_try) 2>&5
24057   ac_status=$?
24058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059   (exit $ac_status); }; } &&
24060          { ac_try='test -s conftest$ac_exeext'
24061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24062   (eval $ac_try) 2>&5
24063   ac_status=$?
24064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24065   (exit $ac_status); }; }; then
24066   eval "$as_ac_var=yes"
24067 else
24068   echo "$as_me: failed program was:" >&5
24069 sed 's/^/| /' conftest.$ac_ext >&5
24070
24071 eval "$as_ac_var=no"
24072 fi
24073 rm -f conftest.err conftest.$ac_objext \
24074       conftest$ac_exeext conftest.$ac_ext
24075 fi
24076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24078 if test `eval echo '${'$as_ac_var'}'` = yes; then
24079   cat >>confdefs.h <<_ACEOF
24080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24081 _ACEOF
24082
24083 fi
24084 done
24085
24086
24087                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
24088 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
24089             cat >conftest.$ac_ext <<_ACEOF
24090 /* confdefs.h.  */
24091 _ACEOF
24092 cat confdefs.h >>conftest.$ac_ext
24093 cat >>conftest.$ac_ext <<_ACEOF
24094 /* end confdefs.h.  */
24095
24096                             #include <gtk/gtk.h>
24097
24098 int
24099 main ()
24100 {
24101
24102                             #if !GTK_CHECK_VERSION(2,4,0)
24103                             #error "Not GTK+ 2.4"
24104                             #endif
24105
24106   ;
24107   return 0;
24108 }
24109 _ACEOF
24110 rm -f conftest.$ac_objext
24111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24112   (eval $ac_compile) 2>conftest.er1
24113   ac_status=$?
24114   grep -v '^ *+' conftest.er1 >conftest.err
24115   rm -f conftest.er1
24116   cat conftest.err >&5
24117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118   (exit $ac_status); } &&
24119          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24121   (eval $ac_try) 2>&5
24122   ac_status=$?
24123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124   (exit $ac_status); }; } &&
24125          { ac_try='test -s conftest.$ac_objext'
24126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24127   (eval $ac_try) 2>&5
24128   ac_status=$?
24129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130   (exit $ac_status); }; }; then
24131
24132                             cat >>confdefs.h <<\_ACEOF
24133 #define __WXGTK24__ 1
24134 _ACEOF
24135
24136                             echo "$as_me:$LINENO: result: yes" >&5
24137 echo "${ECHO_T}yes" >&6
24138
24139 else
24140   echo "$as_me: failed program was:" >&5
24141 sed 's/^/| /' conftest.$ac_ext >&5
24142
24143
24144                             echo "$as_me:$LINENO: result: no" >&5
24145 echo "${ECHO_T}no" >&6
24146
24147 fi
24148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24149
24150             CFLAGS="$save_CFLAGS"
24151             LIBS="$save_LIBS"
24152         else
24153             if test "$wxUSE_UNICODE" = "yes"; then
24154                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
24155 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
24156                 wxUSE_UNICODE=no
24157             fi
24158         fi
24159
24160                         if test "$USE_DARWIN" != 1; then
24161
24162 for ac_func in poll
24163 do
24164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24165 echo "$as_me:$LINENO: checking for $ac_func" >&5
24166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24167 if eval "test \"\${$as_ac_var+set}\" = set"; then
24168   echo $ECHO_N "(cached) $ECHO_C" >&6
24169 else
24170   cat >conftest.$ac_ext <<_ACEOF
24171 /* confdefs.h.  */
24172 _ACEOF
24173 cat confdefs.h >>conftest.$ac_ext
24174 cat >>conftest.$ac_ext <<_ACEOF
24175 /* end confdefs.h.  */
24176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24178 #define $ac_func innocuous_$ac_func
24179
24180 /* System header to define __stub macros and hopefully few prototypes,
24181     which can conflict with char $ac_func (); below.
24182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24183     <limits.h> exists even on freestanding compilers.  */
24184
24185 #ifdef __STDC__
24186 # include <limits.h>
24187 #else
24188 # include <assert.h>
24189 #endif
24190
24191 #undef $ac_func
24192
24193 /* Override any gcc2 internal prototype to avoid an error.  */
24194 #ifdef __cplusplus
24195 extern "C"
24196 {
24197 #endif
24198 /* We use char because int might match the return type of a gcc2
24199    builtin and then its argument prototype would still apply.  */
24200 char $ac_func ();
24201 /* The GNU C library defines this for functions which it implements
24202     to always fail with ENOSYS.  Some functions are actually named
24203     something starting with __ and the normal name is an alias.  */
24204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24205 choke me
24206 #else
24207 char (*f) () = $ac_func;
24208 #endif
24209 #ifdef __cplusplus
24210 }
24211 #endif
24212
24213 int
24214 main ()
24215 {
24216 return f != $ac_func;
24217   ;
24218   return 0;
24219 }
24220 _ACEOF
24221 rm -f conftest.$ac_objext conftest$ac_exeext
24222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24223   (eval $ac_link) 2>conftest.er1
24224   ac_status=$?
24225   grep -v '^ *+' conftest.er1 >conftest.err
24226   rm -f conftest.er1
24227   cat conftest.err >&5
24228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229   (exit $ac_status); } &&
24230          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24232   (eval $ac_try) 2>&5
24233   ac_status=$?
24234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235   (exit $ac_status); }; } &&
24236          { ac_try='test -s conftest$ac_exeext'
24237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24238   (eval $ac_try) 2>&5
24239   ac_status=$?
24240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241   (exit $ac_status); }; }; then
24242   eval "$as_ac_var=yes"
24243 else
24244   echo "$as_me: failed program was:" >&5
24245 sed 's/^/| /' conftest.$ac_ext >&5
24246
24247 eval "$as_ac_var=no"
24248 fi
24249 rm -f conftest.err conftest.$ac_objext \
24250       conftest$ac_exeext conftest.$ac_ext
24251 fi
24252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24254 if test `eval echo '${'$as_ac_var'}'` = yes; then
24255   cat >>confdefs.h <<_ACEOF
24256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24257 _ACEOF
24258
24259 fi
24260 done
24261
24262         fi
24263
24264         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
24265         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
24266
24267         AFMINSTALL=afminstall
24268         TOOLKIT=GTK
24269         GUIDIST=GTK_DIST
24270
24271                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
24272 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
24273 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
24274   echo $ECHO_N "(cached) $ECHO_C" >&6
24275 else
24276   ac_check_lib_save_LIBS=$LIBS
24277 LIBS="-lgdk  $LIBS"
24278 cat >conftest.$ac_ext <<_ACEOF
24279 /* confdefs.h.  */
24280 _ACEOF
24281 cat confdefs.h >>conftest.$ac_ext
24282 cat >>conftest.$ac_ext <<_ACEOF
24283 /* end confdefs.h.  */
24284
24285 /* Override any gcc2 internal prototype to avoid an error.  */
24286 #ifdef __cplusplus
24287 extern "C"
24288 #endif
24289 /* We use char because int might match the return type of a gcc2
24290    builtin and then its argument prototype would still apply.  */
24291 char gdk_im_open ();
24292 int
24293 main ()
24294 {
24295 gdk_im_open ();
24296   ;
24297   return 0;
24298 }
24299 _ACEOF
24300 rm -f conftest.$ac_objext conftest$ac_exeext
24301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24302   (eval $ac_link) 2>conftest.er1
24303   ac_status=$?
24304   grep -v '^ *+' conftest.er1 >conftest.err
24305   rm -f conftest.er1
24306   cat conftest.err >&5
24307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308   (exit $ac_status); } &&
24309          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24311   (eval $ac_try) 2>&5
24312   ac_status=$?
24313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314   (exit $ac_status); }; } &&
24315          { ac_try='test -s conftest$ac_exeext'
24316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24317   (eval $ac_try) 2>&5
24318   ac_status=$?
24319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320   (exit $ac_status); }; }; then
24321   ac_cv_lib_gdk_gdk_im_open=yes
24322 else
24323   echo "$as_me: failed program was:" >&5
24324 sed 's/^/| /' conftest.$ac_ext >&5
24325
24326 ac_cv_lib_gdk_gdk_im_open=no
24327 fi
24328 rm -f conftest.err conftest.$ac_objext \
24329       conftest$ac_exeext conftest.$ac_ext
24330 LIBS=$ac_check_lib_save_LIBS
24331 fi
24332 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
24333 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
24334 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
24335   cat >>confdefs.h <<\_ACEOF
24336 #define HAVE_XIM 1
24337 _ACEOF
24338
24339 fi
24340
24341
24342
24343                 if test "$wxUSE_GPE" = "yes"; then
24344             echo "$as_me:$LINENO: checking for gpewidget library" >&5
24345 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
24346
24347 ac_find_libraries=
24348 for ac_dir in $SEARCH_LIB /usr/lib;
24349   do
24350     for ac_extension in a so sl dylib; do
24351       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
24352         ac_find_libraries=$ac_dir
24353         break 2
24354       fi
24355     done
24356   done
24357
24358             if test "$ac_find_libraries" != "" ; then
24359
24360   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24361   result=$?
24362   if test $result = 0; then
24363     ac_path_to_link=""
24364   else
24365     ac_path_to_link=" -L$ac_find_libraries"
24366   fi
24367
24368                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
24369                 WXGPE=1
24370                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24371 echo "${ECHO_T}found at $ac_find_libraries" >&6
24372             else
24373                 echo "$as_me:$LINENO: result: not found" >&5
24374 echo "${ECHO_T}not found" >&6
24375             fi
24376
24377                                                                                                                     fi
24378     fi
24379
24380     if test "$wxUSE_MGL" = 1; then
24381        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
24382 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
24383         if test "x$MGL_ROOT" = x ; then
24384             echo "$as_me:$LINENO: result: not found" >&5
24385 echo "${ECHO_T}not found" >&6
24386             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
24387 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
24388    { (exit 1); exit 1; }; }
24389         else
24390             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
24391 echo "${ECHO_T}$MGL_ROOT" >&6
24392         fi
24393
24394         echo "$as_me:$LINENO: checking for libmgl location" >&5
24395 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
24396                                 case "${host}" in
24397             *-*-linux* )
24398                                           if test "x$wxUSE_SHARED" = xyes ; then
24399                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
24400               else
24401                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
24402               fi
24403               ;;
24404             *-pc-msdosdjgpp )
24405               mgl_os_candidates="dos32/dj2"
24406               ;;
24407             *)
24408               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
24409 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
24410    { (exit 1); exit 1; }; }
24411         esac
24412
24413         mgl_lib_type=""
24414         mgl_os=""
24415
24416         for mgl_os_i in $mgl_os_candidates ; do
24417             if test "x$mgl_os" = x ; then
24418                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
24419                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
24420                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
24421                         mgl_lib_type=debug
24422                         mgl_os=$mgl_os_i
24423                     fi
24424                 fi
24425                 if test "x$mgl_lib_type" = x ; then
24426                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
24427                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
24428                         mgl_lib_type=release
24429                         mgl_os=$mgl_os_i
24430                     fi
24431                 fi
24432             fi
24433         done
24434
24435         if test "x$mgl_os" = x ; then
24436             echo "$as_me:$LINENO: result: not found" >&5
24437 echo "${ECHO_T}not found" >&6
24438             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
24439 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
24440    { (exit 1); exit 1; }; }
24441         fi
24442         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
24443 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
24444
24445         wxUSE_UNIVERSAL="yes"
24446
24447         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
24448         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
24449
24450         AFMINSTALL=afminstall
24451         TOOLKIT=MGL
24452         GUIDIST=MGL_DIST
24453     fi
24454
24455     if test "$wxUSE_MICROWIN" = 1; then
24456         echo "$as_me:$LINENO: checking for MicroWindows" >&5
24457 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
24458         if test "x$MICROWINDOWS" = x ; then
24459             echo "$as_me:$LINENO: result: not found" >&5
24460 echo "${ECHO_T}not found" >&6
24461             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
24462 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
24463    { (exit 1); exit 1; }; }
24464         else
24465             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
24466 echo "${ECHO_T}$MICROWINDOWS" >&6
24467         fi
24468
24469         if test -f $MICROWINDOWS/lib/libmwin.a; then
24470             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
24471 echo "${ECHO_T}MicroWindows' libraries found." >&6
24472         else
24473             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
24474 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
24475    { (exit 1); exit 1; }; }
24476         fi
24477
24478         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
24479         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
24480
24481         wxUSE_UNIVERSAL="yes"
24482
24483         AFMINSTALL=afminstall
24484         TOOLKIT=MICROWIN
24485         GUIDIST=MICROWIN_DIST
24486
24487         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24488     fi
24489
24490         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
24491
24492 if test "x$ac_path_x_has_been_run" != xyes; then
24493   echo "$as_me:$LINENO: checking for X" >&5
24494 echo $ECHO_N "checking for X... $ECHO_C" >&6
24495
24496 ac_path_x_has_been_run=yes
24497
24498 # Check whether --with-x or --without-x was given.
24499 if test "${with_x+set}" = set; then
24500   withval="$with_x"
24501
24502 fi;
24503 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24504 if test "x$with_x" = xno; then
24505   # The user explicitly disabled X.
24506   have_x=disabled
24507 else
24508   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24509     # Both variables are already set.
24510     have_x=yes
24511   else
24512     if test "${ac_cv_have_x+set}" = set; then
24513   echo $ECHO_N "(cached) $ECHO_C" >&6
24514 else
24515   # One or both of the vars are not set, and there is no cached value.
24516 ac_x_includes=no ac_x_libraries=no
24517 rm -fr conftest.dir
24518 if mkdir conftest.dir; then
24519   cd conftest.dir
24520   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24521   cat >Imakefile <<'_ACEOF'
24522 acfindx:
24523         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24524 _ACEOF
24525   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24526     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24527     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24528     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24529     for ac_extension in a so sl; do
24530       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
24531          test -f $ac_im_libdir/libX11.$ac_extension; then
24532         ac_im_usrlibdir=$ac_im_libdir; break
24533       fi
24534     done
24535     # Screen out bogus values from the imake configuration.  They are
24536     # bogus both because they are the default anyway, and because
24537     # using them would break gcc on systems where it needs fixed includes.
24538     case $ac_im_incroot in
24539         /usr/include) ;;
24540         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24541     esac
24542     case $ac_im_usrlibdir in
24543         /usr/lib | /lib) ;;
24544         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24545     esac
24546   fi
24547   cd ..
24548   rm -fr conftest.dir
24549 fi
24550
24551 # Standard set of common directories for X headers.
24552 # Check X11 before X11Rn because it is often a symlink to the current release.
24553 ac_x_header_dirs='
24554 /usr/X11/include
24555 /usr/X11R6/include
24556 /usr/X11R5/include
24557 /usr/X11R4/include
24558
24559 /usr/include/X11
24560 /usr/include/X11R6
24561 /usr/include/X11R5
24562 /usr/include/X11R4
24563
24564 /usr/local/X11/include
24565 /usr/local/X11R6/include
24566 /usr/local/X11R5/include
24567 /usr/local/X11R4/include
24568
24569 /usr/local/include/X11
24570 /usr/local/include/X11R6
24571 /usr/local/include/X11R5
24572 /usr/local/include/X11R4
24573
24574 /usr/X386/include
24575 /usr/x386/include
24576 /usr/XFree86/include/X11
24577
24578 /usr/include
24579 /usr/local/include
24580 /usr/unsupported/include
24581 /usr/athena/include
24582 /usr/local/x11r5/include
24583 /usr/lpp/Xamples/include
24584
24585 /usr/openwin/include
24586 /usr/openwin/share/include'
24587
24588 if test "$ac_x_includes" = no; then
24589   # Guess where to find include files, by looking for a specified header file.
24590   # First, try using that file with no special directory specified.
24591   cat >conftest.$ac_ext <<_ACEOF
24592 /* confdefs.h.  */
24593 _ACEOF
24594 cat confdefs.h >>conftest.$ac_ext
24595 cat >>conftest.$ac_ext <<_ACEOF
24596 /* end confdefs.h.  */
24597 #include <X11/Intrinsic.h>
24598 _ACEOF
24599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24600   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24601   ac_status=$?
24602   grep -v '^ *+' conftest.er1 >conftest.err
24603   rm -f conftest.er1
24604   cat conftest.err >&5
24605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606   (exit $ac_status); } >/dev/null; then
24607   if test -s conftest.err; then
24608     ac_cpp_err=$ac_c_preproc_warn_flag
24609     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24610   else
24611     ac_cpp_err=
24612   fi
24613 else
24614   ac_cpp_err=yes
24615 fi
24616 if test -z "$ac_cpp_err"; then
24617   # We can compile using X headers with no special include directory.
24618 ac_x_includes=
24619 else
24620   echo "$as_me: failed program was:" >&5
24621 sed 's/^/| /' conftest.$ac_ext >&5
24622
24623   for ac_dir in $ac_x_header_dirs; do
24624   if test -r "$ac_dir/X11/Intrinsic.h"; then
24625     ac_x_includes=$ac_dir
24626     break
24627   fi
24628 done
24629 fi
24630 rm -f conftest.err conftest.$ac_ext
24631 fi # $ac_x_includes = no
24632
24633 if test "$ac_x_libraries" = no; then
24634   # Check for the libraries.
24635   # See if we find them without any special options.
24636   # Don't add to $LIBS permanently.
24637   ac_save_LIBS=$LIBS
24638   LIBS="-lXt $LIBS"
24639   cat >conftest.$ac_ext <<_ACEOF
24640 /* confdefs.h.  */
24641 _ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h.  */
24645 #include <X11/Intrinsic.h>
24646 int
24647 main ()
24648 {
24649 XtMalloc (0)
24650   ;
24651   return 0;
24652 }
24653 _ACEOF
24654 rm -f conftest.$ac_objext conftest$ac_exeext
24655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24656   (eval $ac_link) 2>conftest.er1
24657   ac_status=$?
24658   grep -v '^ *+' conftest.er1 >conftest.err
24659   rm -f conftest.er1
24660   cat conftest.err >&5
24661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662   (exit $ac_status); } &&
24663          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24665   (eval $ac_try) 2>&5
24666   ac_status=$?
24667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668   (exit $ac_status); }; } &&
24669          { ac_try='test -s conftest$ac_exeext'
24670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671   (eval $ac_try) 2>&5
24672   ac_status=$?
24673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674   (exit $ac_status); }; }; then
24675   LIBS=$ac_save_LIBS
24676 # We can link X programs with no special library path.
24677 ac_x_libraries=
24678 else
24679   echo "$as_me: failed program was:" >&5
24680 sed 's/^/| /' conftest.$ac_ext >&5
24681
24682 LIBS=$ac_save_LIBS
24683 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24684 do
24685   # Don't even attempt the hair of trying to link an X program!
24686   for ac_extension in a so sl; do
24687     if test -r $ac_dir/libXt.$ac_extension; then
24688       ac_x_libraries=$ac_dir
24689       break 2
24690     fi
24691   done
24692 done
24693 fi
24694 rm -f conftest.err conftest.$ac_objext \
24695       conftest$ac_exeext conftest.$ac_ext
24696 fi # $ac_x_libraries = no
24697
24698 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24699   # Didn't find X anywhere.  Cache the known absence of X.
24700   ac_cv_have_x="have_x=no"
24701 else
24702   # Record where we found X for the cache.
24703   ac_cv_have_x="have_x=yes \
24704                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
24705 fi
24706 fi
24707
24708   fi
24709   eval "$ac_cv_have_x"
24710 fi # $with_x != no
24711
24712 if test "$have_x" != yes; then
24713   echo "$as_me:$LINENO: result: $have_x" >&5
24714 echo "${ECHO_T}$have_x" >&6
24715   no_x=yes
24716 else
24717   # If each of the values was on the command line, it overrides each guess.
24718   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24719   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24720   # Update the cache value to reflect the command line values.
24721   ac_cv_have_x="have_x=yes \
24722                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
24723   # It might be that x_includes is empty (headers are found in the
24724   # standard search path. Then output the corresponding message
24725   ac_out_x_includes=$x_includes
24726   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
24727   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
24728 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
24729 fi
24730
24731 fi
24732 if test "$no_x" = yes; then
24733   # Not all programs may use this symbol, but it does not hurt to define it.
24734
24735 cat >>confdefs.h <<\_ACEOF
24736 #define X_DISPLAY_MISSING 1
24737 _ACEOF
24738
24739   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24740 else
24741   if test -n "$x_includes"; then
24742     X_CFLAGS="$X_CFLAGS -I$x_includes"
24743   fi
24744
24745   # It would also be nice to do this for all -L options, not just this one.
24746   if test -n "$x_libraries"; then
24747     X_LIBS="$X_LIBS -L$x_libraries"
24748     # For Solaris; some versions of Sun CC require a space after -R and
24749     # others require no space.  Words are not sufficient . . . .
24750     case `(uname -sr) 2>/dev/null` in
24751     "SunOS 5"*)
24752       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24753 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24754       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24755       cat >conftest.$ac_ext <<_ACEOF
24756 /* confdefs.h.  */
24757 _ACEOF
24758 cat confdefs.h >>conftest.$ac_ext
24759 cat >>conftest.$ac_ext <<_ACEOF
24760 /* end confdefs.h.  */
24761
24762 int
24763 main ()
24764 {
24765
24766   ;
24767   return 0;
24768 }
24769 _ACEOF
24770 rm -f conftest.$ac_objext conftest$ac_exeext
24771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24772   (eval $ac_link) 2>conftest.er1
24773   ac_status=$?
24774   grep -v '^ *+' conftest.er1 >conftest.err
24775   rm -f conftest.er1
24776   cat conftest.err >&5
24777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778   (exit $ac_status); } &&
24779          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24781   (eval $ac_try) 2>&5
24782   ac_status=$?
24783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784   (exit $ac_status); }; } &&
24785          { ac_try='test -s conftest$ac_exeext'
24786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24787   (eval $ac_try) 2>&5
24788   ac_status=$?
24789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790   (exit $ac_status); }; }; then
24791   ac_R_nospace=yes
24792 else
24793   echo "$as_me: failed program was:" >&5
24794 sed 's/^/| /' conftest.$ac_ext >&5
24795
24796 ac_R_nospace=no
24797 fi
24798 rm -f conftest.err conftest.$ac_objext \
24799       conftest$ac_exeext conftest.$ac_ext
24800       if test $ac_R_nospace = yes; then
24801         echo "$as_me:$LINENO: result: no" >&5
24802 echo "${ECHO_T}no" >&6
24803         X_LIBS="$X_LIBS -R$x_libraries"
24804       else
24805         LIBS="$ac_xsave_LIBS -R $x_libraries"
24806         cat >conftest.$ac_ext <<_ACEOF
24807 /* confdefs.h.  */
24808 _ACEOF
24809 cat confdefs.h >>conftest.$ac_ext
24810 cat >>conftest.$ac_ext <<_ACEOF
24811 /* end confdefs.h.  */
24812
24813 int
24814 main ()
24815 {
24816
24817   ;
24818   return 0;
24819 }
24820 _ACEOF
24821 rm -f conftest.$ac_objext conftest$ac_exeext
24822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24823   (eval $ac_link) 2>conftest.er1
24824   ac_status=$?
24825   grep -v '^ *+' conftest.er1 >conftest.err
24826   rm -f conftest.er1
24827   cat conftest.err >&5
24828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24829   (exit $ac_status); } &&
24830          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24832   (eval $ac_try) 2>&5
24833   ac_status=$?
24834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835   (exit $ac_status); }; } &&
24836          { ac_try='test -s conftest$ac_exeext'
24837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24838   (eval $ac_try) 2>&5
24839   ac_status=$?
24840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841   (exit $ac_status); }; }; then
24842   ac_R_space=yes
24843 else
24844   echo "$as_me: failed program was:" >&5
24845 sed 's/^/| /' conftest.$ac_ext >&5
24846
24847 ac_R_space=no
24848 fi
24849 rm -f conftest.err conftest.$ac_objext \
24850       conftest$ac_exeext conftest.$ac_ext
24851         if test $ac_R_space = yes; then
24852           echo "$as_me:$LINENO: result: yes" >&5
24853 echo "${ECHO_T}yes" >&6
24854           X_LIBS="$X_LIBS -R $x_libraries"
24855         else
24856           echo "$as_me:$LINENO: result: neither works" >&5
24857 echo "${ECHO_T}neither works" >&6
24858         fi
24859       fi
24860       LIBS=$ac_xsave_LIBS
24861     esac
24862   fi
24863
24864   # Check for system-dependent libraries X programs must link with.
24865   # Do this before checking for the system-independent R6 libraries
24866   # (-lICE), since we may need -lsocket or whatever for X linking.
24867
24868   if test "$ISC" = yes; then
24869     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24870   else
24871     # Martyn Johnson says this is needed for Ultrix, if the X
24872     # libraries were built with DECnet support.  And Karl Berry says
24873     # the Alpha needs dnet_stub (dnet does not exist).
24874     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24875     cat >conftest.$ac_ext <<_ACEOF
24876 /* confdefs.h.  */
24877 _ACEOF
24878 cat confdefs.h >>conftest.$ac_ext
24879 cat >>conftest.$ac_ext <<_ACEOF
24880 /* end confdefs.h.  */
24881
24882 /* Override any gcc2 internal prototype to avoid an error.  */
24883 #ifdef __cplusplus
24884 extern "C"
24885 #endif
24886 /* We use char because int might match the return type of a gcc2
24887    builtin and then its argument prototype would still apply.  */
24888 char XOpenDisplay ();
24889 int
24890 main ()
24891 {
24892 XOpenDisplay ();
24893   ;
24894   return 0;
24895 }
24896 _ACEOF
24897 rm -f conftest.$ac_objext conftest$ac_exeext
24898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24899   (eval $ac_link) 2>conftest.er1
24900   ac_status=$?
24901   grep -v '^ *+' conftest.er1 >conftest.err
24902   rm -f conftest.er1
24903   cat conftest.err >&5
24904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905   (exit $ac_status); } &&
24906          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24908   (eval $ac_try) 2>&5
24909   ac_status=$?
24910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911   (exit $ac_status); }; } &&
24912          { ac_try='test -s conftest$ac_exeext'
24913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24914   (eval $ac_try) 2>&5
24915   ac_status=$?
24916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917   (exit $ac_status); }; }; then
24918   :
24919 else
24920   echo "$as_me: failed program was:" >&5
24921 sed 's/^/| /' conftest.$ac_ext >&5
24922
24923 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24924 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24925 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24926   echo $ECHO_N "(cached) $ECHO_C" >&6
24927 else
24928   ac_check_lib_save_LIBS=$LIBS
24929 LIBS="-ldnet  $LIBS"
24930 cat >conftest.$ac_ext <<_ACEOF
24931 /* confdefs.h.  */
24932 _ACEOF
24933 cat confdefs.h >>conftest.$ac_ext
24934 cat >>conftest.$ac_ext <<_ACEOF
24935 /* end confdefs.h.  */
24936
24937 /* Override any gcc2 internal prototype to avoid an error.  */
24938 #ifdef __cplusplus
24939 extern "C"
24940 #endif
24941 /* We use char because int might match the return type of a gcc2
24942    builtin and then its argument prototype would still apply.  */
24943 char dnet_ntoa ();
24944 int
24945 main ()
24946 {
24947 dnet_ntoa ();
24948   ;
24949   return 0;
24950 }
24951 _ACEOF
24952 rm -f conftest.$ac_objext conftest$ac_exeext
24953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24954   (eval $ac_link) 2>conftest.er1
24955   ac_status=$?
24956   grep -v '^ *+' conftest.er1 >conftest.err
24957   rm -f conftest.er1
24958   cat conftest.err >&5
24959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960   (exit $ac_status); } &&
24961          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24963   (eval $ac_try) 2>&5
24964   ac_status=$?
24965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966   (exit $ac_status); }; } &&
24967          { ac_try='test -s conftest$ac_exeext'
24968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24969   (eval $ac_try) 2>&5
24970   ac_status=$?
24971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972   (exit $ac_status); }; }; then
24973   ac_cv_lib_dnet_dnet_ntoa=yes
24974 else
24975   echo "$as_me: failed program was:" >&5
24976 sed 's/^/| /' conftest.$ac_ext >&5
24977
24978 ac_cv_lib_dnet_dnet_ntoa=no
24979 fi
24980 rm -f conftest.err conftest.$ac_objext \
24981       conftest$ac_exeext conftest.$ac_ext
24982 LIBS=$ac_check_lib_save_LIBS
24983 fi
24984 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24985 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24986 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24987   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24988 fi
24989
24990     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24991       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24992 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24993 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24994   echo $ECHO_N "(cached) $ECHO_C" >&6
24995 else
24996   ac_check_lib_save_LIBS=$LIBS
24997 LIBS="-ldnet_stub  $LIBS"
24998 cat >conftest.$ac_ext <<_ACEOF
24999 /* confdefs.h.  */
25000 _ACEOF
25001 cat confdefs.h >>conftest.$ac_ext
25002 cat >>conftest.$ac_ext <<_ACEOF
25003 /* end confdefs.h.  */
25004
25005 /* Override any gcc2 internal prototype to avoid an error.  */
25006 #ifdef __cplusplus
25007 extern "C"
25008 #endif
25009 /* We use char because int might match the return type of a gcc2
25010    builtin and then its argument prototype would still apply.  */
25011 char dnet_ntoa ();
25012 int
25013 main ()
25014 {
25015 dnet_ntoa ();
25016   ;
25017   return 0;
25018 }
25019 _ACEOF
25020 rm -f conftest.$ac_objext conftest$ac_exeext
25021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25022   (eval $ac_link) 2>conftest.er1
25023   ac_status=$?
25024   grep -v '^ *+' conftest.er1 >conftest.err
25025   rm -f conftest.er1
25026   cat conftest.err >&5
25027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028   (exit $ac_status); } &&
25029          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25031   (eval $ac_try) 2>&5
25032   ac_status=$?
25033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034   (exit $ac_status); }; } &&
25035          { ac_try='test -s conftest$ac_exeext'
25036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25037   (eval $ac_try) 2>&5
25038   ac_status=$?
25039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040   (exit $ac_status); }; }; then
25041   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25042 else
25043   echo "$as_me: failed program was:" >&5
25044 sed 's/^/| /' conftest.$ac_ext >&5
25045
25046 ac_cv_lib_dnet_stub_dnet_ntoa=no
25047 fi
25048 rm -f conftest.err conftest.$ac_objext \
25049       conftest$ac_exeext conftest.$ac_ext
25050 LIBS=$ac_check_lib_save_LIBS
25051 fi
25052 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25053 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25054 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
25055   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25056 fi
25057
25058     fi
25059 fi
25060 rm -f conftest.err conftest.$ac_objext \
25061       conftest$ac_exeext conftest.$ac_ext
25062     LIBS="$ac_xsave_LIBS"
25063
25064     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25065     # to get the SysV transport functions.
25066     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25067     # needs -lnsl.
25068     # The nsl library prevents programs from opening the X display
25069     # on Irix 5.2, according to T.E. Dickey.
25070     # The functions gethostbyname, getservbyname, and inet_addr are
25071     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25072     echo "$as_me:$LINENO: checking for gethostbyname" >&5
25073 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25074 if test "${ac_cv_func_gethostbyname+set}" = set; then
25075   echo $ECHO_N "(cached) $ECHO_C" >&6
25076 else
25077   cat >conftest.$ac_ext <<_ACEOF
25078 /* confdefs.h.  */
25079 _ACEOF
25080 cat confdefs.h >>conftest.$ac_ext
25081 cat >>conftest.$ac_ext <<_ACEOF
25082 /* end confdefs.h.  */
25083 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25085 #define gethostbyname innocuous_gethostbyname
25086
25087 /* System header to define __stub macros and hopefully few prototypes,
25088     which can conflict with char gethostbyname (); below.
25089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25090     <limits.h> exists even on freestanding compilers.  */
25091
25092 #ifdef __STDC__
25093 # include <limits.h>
25094 #else
25095 # include <assert.h>
25096 #endif
25097
25098 #undef gethostbyname
25099
25100 /* Override any gcc2 internal prototype to avoid an error.  */
25101 #ifdef __cplusplus
25102 extern "C"
25103 {
25104 #endif
25105 /* We use char because int might match the return type of a gcc2
25106    builtin and then its argument prototype would still apply.  */
25107 char gethostbyname ();
25108 /* The GNU C library defines this for functions which it implements
25109     to always fail with ENOSYS.  Some functions are actually named
25110     something starting with __ and the normal name is an alias.  */
25111 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25112 choke me
25113 #else
25114 char (*f) () = gethostbyname;
25115 #endif
25116 #ifdef __cplusplus
25117 }
25118 #endif
25119
25120 int
25121 main ()
25122 {
25123 return f != gethostbyname;
25124   ;
25125   return 0;
25126 }
25127 _ACEOF
25128 rm -f conftest.$ac_objext conftest$ac_exeext
25129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25130   (eval $ac_link) 2>conftest.er1
25131   ac_status=$?
25132   grep -v '^ *+' conftest.er1 >conftest.err
25133   rm -f conftest.er1
25134   cat conftest.err >&5
25135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136   (exit $ac_status); } &&
25137          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25139   (eval $ac_try) 2>&5
25140   ac_status=$?
25141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142   (exit $ac_status); }; } &&
25143          { ac_try='test -s conftest$ac_exeext'
25144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25145   (eval $ac_try) 2>&5
25146   ac_status=$?
25147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148   (exit $ac_status); }; }; then
25149   ac_cv_func_gethostbyname=yes
25150 else
25151   echo "$as_me: failed program was:" >&5
25152 sed 's/^/| /' conftest.$ac_ext >&5
25153
25154 ac_cv_func_gethostbyname=no
25155 fi
25156 rm -f conftest.err conftest.$ac_objext \
25157       conftest$ac_exeext conftest.$ac_ext
25158 fi
25159 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25160 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
25161
25162     if test $ac_cv_func_gethostbyname = no; then
25163       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25164 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25165 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25166   echo $ECHO_N "(cached) $ECHO_C" >&6
25167 else
25168   ac_check_lib_save_LIBS=$LIBS
25169 LIBS="-lnsl  $LIBS"
25170 cat >conftest.$ac_ext <<_ACEOF
25171 /* confdefs.h.  */
25172 _ACEOF
25173 cat confdefs.h >>conftest.$ac_ext
25174 cat >>conftest.$ac_ext <<_ACEOF
25175 /* end confdefs.h.  */
25176
25177 /* Override any gcc2 internal prototype to avoid an error.  */
25178 #ifdef __cplusplus
25179 extern "C"
25180 #endif
25181 /* We use char because int might match the return type of a gcc2
25182    builtin and then its argument prototype would still apply.  */
25183 char gethostbyname ();
25184 int
25185 main ()
25186 {
25187 gethostbyname ();
25188   ;
25189   return 0;
25190 }
25191 _ACEOF
25192 rm -f conftest.$ac_objext conftest$ac_exeext
25193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25194   (eval $ac_link) 2>conftest.er1
25195   ac_status=$?
25196   grep -v '^ *+' conftest.er1 >conftest.err
25197   rm -f conftest.er1
25198   cat conftest.err >&5
25199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25200   (exit $ac_status); } &&
25201          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203   (eval $ac_try) 2>&5
25204   ac_status=$?
25205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206   (exit $ac_status); }; } &&
25207          { ac_try='test -s conftest$ac_exeext'
25208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209   (eval $ac_try) 2>&5
25210   ac_status=$?
25211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212   (exit $ac_status); }; }; then
25213   ac_cv_lib_nsl_gethostbyname=yes
25214 else
25215   echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25217
25218 ac_cv_lib_nsl_gethostbyname=no
25219 fi
25220 rm -f conftest.err conftest.$ac_objext \
25221       conftest$ac_exeext conftest.$ac_ext
25222 LIBS=$ac_check_lib_save_LIBS
25223 fi
25224 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25225 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25226 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25227   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25228 fi
25229
25230       if test $ac_cv_lib_nsl_gethostbyname = no; then
25231         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25232 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25233 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25234   echo $ECHO_N "(cached) $ECHO_C" >&6
25235 else
25236   ac_check_lib_save_LIBS=$LIBS
25237 LIBS="-lbsd  $LIBS"
25238 cat >conftest.$ac_ext <<_ACEOF
25239 /* confdefs.h.  */
25240 _ACEOF
25241 cat confdefs.h >>conftest.$ac_ext
25242 cat >>conftest.$ac_ext <<_ACEOF
25243 /* end confdefs.h.  */
25244
25245 /* Override any gcc2 internal prototype to avoid an error.  */
25246 #ifdef __cplusplus
25247 extern "C"
25248 #endif
25249 /* We use char because int might match the return type of a gcc2
25250    builtin and then its argument prototype would still apply.  */
25251 char gethostbyname ();
25252 int
25253 main ()
25254 {
25255 gethostbyname ();
25256   ;
25257   return 0;
25258 }
25259 _ACEOF
25260 rm -f conftest.$ac_objext conftest$ac_exeext
25261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25262   (eval $ac_link) 2>conftest.er1
25263   ac_status=$?
25264   grep -v '^ *+' conftest.er1 >conftest.err
25265   rm -f conftest.er1
25266   cat conftest.err >&5
25267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268   (exit $ac_status); } &&
25269          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25271   (eval $ac_try) 2>&5
25272   ac_status=$?
25273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25274   (exit $ac_status); }; } &&
25275          { ac_try='test -s conftest$ac_exeext'
25276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25277   (eval $ac_try) 2>&5
25278   ac_status=$?
25279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280   (exit $ac_status); }; }; then
25281   ac_cv_lib_bsd_gethostbyname=yes
25282 else
25283   echo "$as_me: failed program was:" >&5
25284 sed 's/^/| /' conftest.$ac_ext >&5
25285
25286 ac_cv_lib_bsd_gethostbyname=no
25287 fi
25288 rm -f conftest.err conftest.$ac_objext \
25289       conftest$ac_exeext conftest.$ac_ext
25290 LIBS=$ac_check_lib_save_LIBS
25291 fi
25292 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25293 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25294 if test $ac_cv_lib_bsd_gethostbyname = yes; then
25295   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25296 fi
25297
25298       fi
25299     fi
25300
25301     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25302     # socket/setsockopt and other routines are undefined under SCO ODT
25303     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25304     # on later versions), says Simon Leinen: it contains gethostby*
25305     # variants that don't use the name server (or something).  -lsocket
25306     # must be given before -lnsl if both are needed.  We assume that
25307     # if connect needs -lnsl, so does gethostbyname.
25308     echo "$as_me:$LINENO: checking for connect" >&5
25309 echo $ECHO_N "checking for connect... $ECHO_C" >&6
25310 if test "${ac_cv_func_connect+set}" = set; then
25311   echo $ECHO_N "(cached) $ECHO_C" >&6
25312 else
25313   cat >conftest.$ac_ext <<_ACEOF
25314 /* confdefs.h.  */
25315 _ACEOF
25316 cat confdefs.h >>conftest.$ac_ext
25317 cat >>conftest.$ac_ext <<_ACEOF
25318 /* end confdefs.h.  */
25319 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
25320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25321 #define connect innocuous_connect
25322
25323 /* System header to define __stub macros and hopefully few prototypes,
25324     which can conflict with char connect (); below.
25325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25326     <limits.h> exists even on freestanding compilers.  */
25327
25328 #ifdef __STDC__
25329 # include <limits.h>
25330 #else
25331 # include <assert.h>
25332 #endif
25333
25334 #undef connect
25335
25336 /* Override any gcc2 internal prototype to avoid an error.  */
25337 #ifdef __cplusplus
25338 extern "C"
25339 {
25340 #endif
25341 /* We use char because int might match the return type of a gcc2
25342    builtin and then its argument prototype would still apply.  */
25343 char connect ();
25344 /* The GNU C library defines this for functions which it implements
25345     to always fail with ENOSYS.  Some functions are actually named
25346     something starting with __ and the normal name is an alias.  */
25347 #if defined (__stub_connect) || defined (__stub___connect)
25348 choke me
25349 #else
25350 char (*f) () = connect;
25351 #endif
25352 #ifdef __cplusplus
25353 }
25354 #endif
25355
25356 int
25357 main ()
25358 {
25359 return f != connect;
25360   ;
25361   return 0;
25362 }
25363 _ACEOF
25364 rm -f conftest.$ac_objext conftest$ac_exeext
25365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25366   (eval $ac_link) 2>conftest.er1
25367   ac_status=$?
25368   grep -v '^ *+' conftest.er1 >conftest.err
25369   rm -f conftest.er1
25370   cat conftest.err >&5
25371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372   (exit $ac_status); } &&
25373          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25375   (eval $ac_try) 2>&5
25376   ac_status=$?
25377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378   (exit $ac_status); }; } &&
25379          { ac_try='test -s conftest$ac_exeext'
25380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25381   (eval $ac_try) 2>&5
25382   ac_status=$?
25383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384   (exit $ac_status); }; }; then
25385   ac_cv_func_connect=yes
25386 else
25387   echo "$as_me: failed program was:" >&5
25388 sed 's/^/| /' conftest.$ac_ext >&5
25389
25390 ac_cv_func_connect=no
25391 fi
25392 rm -f conftest.err conftest.$ac_objext \
25393       conftest$ac_exeext conftest.$ac_ext
25394 fi
25395 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25396 echo "${ECHO_T}$ac_cv_func_connect" >&6
25397
25398     if test $ac_cv_func_connect = no; then
25399       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25400 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25401 if test "${ac_cv_lib_socket_connect+set}" = set; then
25402   echo $ECHO_N "(cached) $ECHO_C" >&6
25403 else
25404   ac_check_lib_save_LIBS=$LIBS
25405 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25406 cat >conftest.$ac_ext <<_ACEOF
25407 /* confdefs.h.  */
25408 _ACEOF
25409 cat confdefs.h >>conftest.$ac_ext
25410 cat >>conftest.$ac_ext <<_ACEOF
25411 /* end confdefs.h.  */
25412
25413 /* Override any gcc2 internal prototype to avoid an error.  */
25414 #ifdef __cplusplus
25415 extern "C"
25416 #endif
25417 /* We use char because int might match the return type of a gcc2
25418    builtin and then its argument prototype would still apply.  */
25419 char connect ();
25420 int
25421 main ()
25422 {
25423 connect ();
25424   ;
25425   return 0;
25426 }
25427 _ACEOF
25428 rm -f conftest.$ac_objext conftest$ac_exeext
25429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25430   (eval $ac_link) 2>conftest.er1
25431   ac_status=$?
25432   grep -v '^ *+' conftest.er1 >conftest.err
25433   rm -f conftest.er1
25434   cat conftest.err >&5
25435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436   (exit $ac_status); } &&
25437          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25439   (eval $ac_try) 2>&5
25440   ac_status=$?
25441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442   (exit $ac_status); }; } &&
25443          { ac_try='test -s conftest$ac_exeext'
25444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25445   (eval $ac_try) 2>&5
25446   ac_status=$?
25447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448   (exit $ac_status); }; }; then
25449   ac_cv_lib_socket_connect=yes
25450 else
25451   echo "$as_me: failed program was:" >&5
25452 sed 's/^/| /' conftest.$ac_ext >&5
25453
25454 ac_cv_lib_socket_connect=no
25455 fi
25456 rm -f conftest.err conftest.$ac_objext \
25457       conftest$ac_exeext conftest.$ac_ext
25458 LIBS=$ac_check_lib_save_LIBS
25459 fi
25460 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25461 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25462 if test $ac_cv_lib_socket_connect = yes; then
25463   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25464 fi
25465
25466     fi
25467
25468     # Guillermo Gomez says -lposix is necessary on A/UX.
25469     echo "$as_me:$LINENO: checking for remove" >&5
25470 echo $ECHO_N "checking for remove... $ECHO_C" >&6
25471 if test "${ac_cv_func_remove+set}" = set; then
25472   echo $ECHO_N "(cached) $ECHO_C" >&6
25473 else
25474   cat >conftest.$ac_ext <<_ACEOF
25475 /* confdefs.h.  */
25476 _ACEOF
25477 cat confdefs.h >>conftest.$ac_ext
25478 cat >>conftest.$ac_ext <<_ACEOF
25479 /* end confdefs.h.  */
25480 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
25481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25482 #define remove innocuous_remove
25483
25484 /* System header to define __stub macros and hopefully few prototypes,
25485     which can conflict with char remove (); below.
25486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25487     <limits.h> exists even on freestanding compilers.  */
25488
25489 #ifdef __STDC__
25490 # include <limits.h>
25491 #else
25492 # include <assert.h>
25493 #endif
25494
25495 #undef remove
25496
25497 /* Override any gcc2 internal prototype to avoid an error.  */
25498 #ifdef __cplusplus
25499 extern "C"
25500 {
25501 #endif
25502 /* We use char because int might match the return type of a gcc2
25503    builtin and then its argument prototype would still apply.  */
25504 char remove ();
25505 /* The GNU C library defines this for functions which it implements
25506     to always fail with ENOSYS.  Some functions are actually named
25507     something starting with __ and the normal name is an alias.  */
25508 #if defined (__stub_remove) || defined (__stub___remove)
25509 choke me
25510 #else
25511 char (*f) () = remove;
25512 #endif
25513 #ifdef __cplusplus
25514 }
25515 #endif
25516
25517 int
25518 main ()
25519 {
25520 return f != remove;
25521   ;
25522   return 0;
25523 }
25524 _ACEOF
25525 rm -f conftest.$ac_objext conftest$ac_exeext
25526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25527   (eval $ac_link) 2>conftest.er1
25528   ac_status=$?
25529   grep -v '^ *+' conftest.er1 >conftest.err
25530   rm -f conftest.er1
25531   cat conftest.err >&5
25532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533   (exit $ac_status); } &&
25534          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536   (eval $ac_try) 2>&5
25537   ac_status=$?
25538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539   (exit $ac_status); }; } &&
25540          { ac_try='test -s conftest$ac_exeext'
25541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25542   (eval $ac_try) 2>&5
25543   ac_status=$?
25544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545   (exit $ac_status); }; }; then
25546   ac_cv_func_remove=yes
25547 else
25548   echo "$as_me: failed program was:" >&5
25549 sed 's/^/| /' conftest.$ac_ext >&5
25550
25551 ac_cv_func_remove=no
25552 fi
25553 rm -f conftest.err conftest.$ac_objext \
25554       conftest$ac_exeext conftest.$ac_ext
25555 fi
25556 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25557 echo "${ECHO_T}$ac_cv_func_remove" >&6
25558
25559     if test $ac_cv_func_remove = no; then
25560       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25561 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25562 if test "${ac_cv_lib_posix_remove+set}" = set; then
25563   echo $ECHO_N "(cached) $ECHO_C" >&6
25564 else
25565   ac_check_lib_save_LIBS=$LIBS
25566 LIBS="-lposix  $LIBS"
25567 cat >conftest.$ac_ext <<_ACEOF
25568 /* confdefs.h.  */
25569 _ACEOF
25570 cat confdefs.h >>conftest.$ac_ext
25571 cat >>conftest.$ac_ext <<_ACEOF
25572 /* end confdefs.h.  */
25573
25574 /* Override any gcc2 internal prototype to avoid an error.  */
25575 #ifdef __cplusplus
25576 extern "C"
25577 #endif
25578 /* We use char because int might match the return type of a gcc2
25579    builtin and then its argument prototype would still apply.  */
25580 char remove ();
25581 int
25582 main ()
25583 {
25584 remove ();
25585   ;
25586   return 0;
25587 }
25588 _ACEOF
25589 rm -f conftest.$ac_objext conftest$ac_exeext
25590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25591   (eval $ac_link) 2>conftest.er1
25592   ac_status=$?
25593   grep -v '^ *+' conftest.er1 >conftest.err
25594   rm -f conftest.er1
25595   cat conftest.err >&5
25596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597   (exit $ac_status); } &&
25598          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25600   (eval $ac_try) 2>&5
25601   ac_status=$?
25602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25603   (exit $ac_status); }; } &&
25604          { ac_try='test -s conftest$ac_exeext'
25605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25606   (eval $ac_try) 2>&5
25607   ac_status=$?
25608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609   (exit $ac_status); }; }; then
25610   ac_cv_lib_posix_remove=yes
25611 else
25612   echo "$as_me: failed program was:" >&5
25613 sed 's/^/| /' conftest.$ac_ext >&5
25614
25615 ac_cv_lib_posix_remove=no
25616 fi
25617 rm -f conftest.err conftest.$ac_objext \
25618       conftest$ac_exeext conftest.$ac_ext
25619 LIBS=$ac_check_lib_save_LIBS
25620 fi
25621 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25622 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25623 if test $ac_cv_lib_posix_remove = yes; then
25624   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25625 fi
25626
25627     fi
25628
25629     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25630     echo "$as_me:$LINENO: checking for shmat" >&5
25631 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25632 if test "${ac_cv_func_shmat+set}" = set; then
25633   echo $ECHO_N "(cached) $ECHO_C" >&6
25634 else
25635   cat >conftest.$ac_ext <<_ACEOF
25636 /* confdefs.h.  */
25637 _ACEOF
25638 cat confdefs.h >>conftest.$ac_ext
25639 cat >>conftest.$ac_ext <<_ACEOF
25640 /* end confdefs.h.  */
25641 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25642    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25643 #define shmat innocuous_shmat
25644
25645 /* System header to define __stub macros and hopefully few prototypes,
25646     which can conflict with char shmat (); below.
25647     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25648     <limits.h> exists even on freestanding compilers.  */
25649
25650 #ifdef __STDC__
25651 # include <limits.h>
25652 #else
25653 # include <assert.h>
25654 #endif
25655
25656 #undef shmat
25657
25658 /* Override any gcc2 internal prototype to avoid an error.  */
25659 #ifdef __cplusplus
25660 extern "C"
25661 {
25662 #endif
25663 /* We use char because int might match the return type of a gcc2
25664    builtin and then its argument prototype would still apply.  */
25665 char shmat ();
25666 /* The GNU C library defines this for functions which it implements
25667     to always fail with ENOSYS.  Some functions are actually named
25668     something starting with __ and the normal name is an alias.  */
25669 #if defined (__stub_shmat) || defined (__stub___shmat)
25670 choke me
25671 #else
25672 char (*f) () = shmat;
25673 #endif
25674 #ifdef __cplusplus
25675 }
25676 #endif
25677
25678 int
25679 main ()
25680 {
25681 return f != shmat;
25682   ;
25683   return 0;
25684 }
25685 _ACEOF
25686 rm -f conftest.$ac_objext conftest$ac_exeext
25687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25688   (eval $ac_link) 2>conftest.er1
25689   ac_status=$?
25690   grep -v '^ *+' conftest.er1 >conftest.err
25691   rm -f conftest.er1
25692   cat conftest.err >&5
25693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694   (exit $ac_status); } &&
25695          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25697   (eval $ac_try) 2>&5
25698   ac_status=$?
25699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700   (exit $ac_status); }; } &&
25701          { ac_try='test -s conftest$ac_exeext'
25702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25703   (eval $ac_try) 2>&5
25704   ac_status=$?
25705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706   (exit $ac_status); }; }; then
25707   ac_cv_func_shmat=yes
25708 else
25709   echo "$as_me: failed program was:" >&5
25710 sed 's/^/| /' conftest.$ac_ext >&5
25711
25712 ac_cv_func_shmat=no
25713 fi
25714 rm -f conftest.err conftest.$ac_objext \
25715       conftest$ac_exeext conftest.$ac_ext
25716 fi
25717 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25718 echo "${ECHO_T}$ac_cv_func_shmat" >&6
25719
25720     if test $ac_cv_func_shmat = no; then
25721       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25722 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25723 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25724   echo $ECHO_N "(cached) $ECHO_C" >&6
25725 else
25726   ac_check_lib_save_LIBS=$LIBS
25727 LIBS="-lipc  $LIBS"
25728 cat >conftest.$ac_ext <<_ACEOF
25729 /* confdefs.h.  */
25730 _ACEOF
25731 cat confdefs.h >>conftest.$ac_ext
25732 cat >>conftest.$ac_ext <<_ACEOF
25733 /* end confdefs.h.  */
25734
25735 /* Override any gcc2 internal prototype to avoid an error.  */
25736 #ifdef __cplusplus
25737 extern "C"
25738 #endif
25739 /* We use char because int might match the return type of a gcc2
25740    builtin and then its argument prototype would still apply.  */
25741 char shmat ();
25742 int
25743 main ()
25744 {
25745 shmat ();
25746   ;
25747   return 0;
25748 }
25749 _ACEOF
25750 rm -f conftest.$ac_objext conftest$ac_exeext
25751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25752   (eval $ac_link) 2>conftest.er1
25753   ac_status=$?
25754   grep -v '^ *+' conftest.er1 >conftest.err
25755   rm -f conftest.er1
25756   cat conftest.err >&5
25757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758   (exit $ac_status); } &&
25759          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25761   (eval $ac_try) 2>&5
25762   ac_status=$?
25763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764   (exit $ac_status); }; } &&
25765          { ac_try='test -s conftest$ac_exeext'
25766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25767   (eval $ac_try) 2>&5
25768   ac_status=$?
25769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770   (exit $ac_status); }; }; then
25771   ac_cv_lib_ipc_shmat=yes
25772 else
25773   echo "$as_me: failed program was:" >&5
25774 sed 's/^/| /' conftest.$ac_ext >&5
25775
25776 ac_cv_lib_ipc_shmat=no
25777 fi
25778 rm -f conftest.err conftest.$ac_objext \
25779       conftest$ac_exeext conftest.$ac_ext
25780 LIBS=$ac_check_lib_save_LIBS
25781 fi
25782 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25783 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25784 if test $ac_cv_lib_ipc_shmat = yes; then
25785   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25786 fi
25787
25788     fi
25789   fi
25790
25791   # Check for libraries that X11R6 Xt/Xaw programs need.
25792   ac_save_LDFLAGS=$LDFLAGS
25793   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25794   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25795   # check for ICE first), but we must link in the order -lSM -lICE or
25796   # we get undefined symbols.  So assume we have SM if we have ICE.
25797   # These have to be linked with before -lX11, unlike the other
25798   # libraries we check for below, so use a different variable.
25799   # John Interrante, Karl Berry
25800   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25801 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25802 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25803   echo $ECHO_N "(cached) $ECHO_C" >&6
25804 else
25805   ac_check_lib_save_LIBS=$LIBS
25806 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25807 cat >conftest.$ac_ext <<_ACEOF
25808 /* confdefs.h.  */
25809 _ACEOF
25810 cat confdefs.h >>conftest.$ac_ext
25811 cat >>conftest.$ac_ext <<_ACEOF
25812 /* end confdefs.h.  */
25813
25814 /* Override any gcc2 internal prototype to avoid an error.  */
25815 #ifdef __cplusplus
25816 extern "C"
25817 #endif
25818 /* We use char because int might match the return type of a gcc2
25819    builtin and then its argument prototype would still apply.  */
25820 char IceConnectionNumber ();
25821 int
25822 main ()
25823 {
25824 IceConnectionNumber ();
25825   ;
25826   return 0;
25827 }
25828 _ACEOF
25829 rm -f conftest.$ac_objext conftest$ac_exeext
25830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25831   (eval $ac_link) 2>conftest.er1
25832   ac_status=$?
25833   grep -v '^ *+' conftest.er1 >conftest.err
25834   rm -f conftest.er1
25835   cat conftest.err >&5
25836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837   (exit $ac_status); } &&
25838          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840   (eval $ac_try) 2>&5
25841   ac_status=$?
25842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843   (exit $ac_status); }; } &&
25844          { ac_try='test -s conftest$ac_exeext'
25845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25846   (eval $ac_try) 2>&5
25847   ac_status=$?
25848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849   (exit $ac_status); }; }; then
25850   ac_cv_lib_ICE_IceConnectionNumber=yes
25851 else
25852   echo "$as_me: failed program was:" >&5
25853 sed 's/^/| /' conftest.$ac_ext >&5
25854
25855 ac_cv_lib_ICE_IceConnectionNumber=no
25856 fi
25857 rm -f conftest.err conftest.$ac_objext \
25858       conftest$ac_exeext conftest.$ac_ext
25859 LIBS=$ac_check_lib_save_LIBS
25860 fi
25861 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25862 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25863 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25864   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25865 fi
25866
25867   LDFLAGS=$ac_save_LDFLAGS
25868
25869 fi
25870
25871
25872         if test "$no_x" = "yes"; then
25873           { { echo "$as_me:$LINENO: error: X11 not found" >&5
25874 echo "$as_me: error: X11 not found" >&2;}
25875    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25876         fi
25877
25878                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25879         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
25880         AFMINSTALL=afminstall
25881         COMPILED_X_PROGRAM=0
25882
25883     fi
25884
25885     if test "$wxUSE_X11" = 1; then
25886         if test "$wxUSE_NANOX" = "yes"; then
25887             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25888 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25889             if test "x$MICROWIN" = x ; then
25890                 echo "$as_me:$LINENO: result: not found" >&5
25891 echo "${ECHO_T}not found" >&6
25892                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25893 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25894    { (exit 1); exit 1; }; }
25895             else
25896                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25897 echo "${ECHO_T}$MICROWIN" >&6
25898                 cat >>confdefs.h <<\_ACEOF
25899 #define wxUSE_NANOX 1
25900 _ACEOF
25901
25902             fi
25903         fi
25904
25905         if test "$wxUSE_UNICODE" = "yes"; then
25906
25907   succeeded=no
25908
25909   if test -z "$PKG_CONFIG"; then
25910     # Extract the first word of "pkg-config", so it can be a program name with args.
25911 set dummy pkg-config; ac_word=$2
25912 echo "$as_me:$LINENO: checking for $ac_word" >&5
25913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25914 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25915   echo $ECHO_N "(cached) $ECHO_C" >&6
25916 else
25917   case $PKG_CONFIG in
25918   [\\/]* | ?:[\\/]*)
25919   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25920   ;;
25921   *)
25922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25923 for as_dir in $PATH
25924 do
25925   IFS=$as_save_IFS
25926   test -z "$as_dir" && as_dir=.
25927   for ac_exec_ext in '' $ac_executable_extensions; do
25928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25929     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25931     break 2
25932   fi
25933 done
25934 done
25935
25936   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25937   ;;
25938 esac
25939 fi
25940 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25941
25942 if test -n "$PKG_CONFIG"; then
25943   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25944 echo "${ECHO_T}$PKG_CONFIG" >&6
25945 else
25946   echo "$as_me:$LINENO: result: no" >&5
25947 echo "${ECHO_T}no" >&6
25948 fi
25949
25950   fi
25951
25952   if test "$PKG_CONFIG" = "no" ; then
25953      echo "*** The pkg-config script could not be found. Make sure it is"
25954      echo "*** in your path, or set the PKG_CONFIG environment variable"
25955      echo "*** to the full path to pkg-config."
25956      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25957   else
25958      PKG_CONFIG_MIN_VERSION=0.9.0
25959      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25960         echo "$as_me:$LINENO: checking for pangox" >&5
25961 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25962
25963         if $PKG_CONFIG --exists "pangox" ; then
25964             echo "$as_me:$LINENO: result: yes" >&5
25965 echo "${ECHO_T}yes" >&6
25966             succeeded=yes
25967
25968             echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25969 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25970             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25971             echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25972 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25973
25974             echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25975 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25976             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25977             echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25978 echo "${ECHO_T}$PANGOX_LIBS" >&6
25979         else
25980             PANGOX_CFLAGS=""
25981             PANGOX_LIBS=""
25982             ## If we have a custom action on failure, don't print errors, but
25983             ## do set a variable so people can do so.
25984             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25985
25986         fi
25987
25988
25989
25990      else
25991         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25992         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25993      fi
25994   fi
25995
25996   if test $succeeded = yes; then
25997
25998                         CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25999                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
26000
26001   else
26002
26003                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
26004 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
26005    { (exit 1); exit 1; }; }
26006
26007
26008   fi
26009
26010
26011   succeeded=no
26012
26013   if test -z "$PKG_CONFIG"; then
26014     # Extract the first word of "pkg-config", so it can be a program name with args.
26015 set dummy pkg-config; ac_word=$2
26016 echo "$as_me:$LINENO: checking for $ac_word" >&5
26017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26018 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26019   echo $ECHO_N "(cached) $ECHO_C" >&6
26020 else
26021   case $PKG_CONFIG in
26022   [\\/]* | ?:[\\/]*)
26023   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26024   ;;
26025   *)
26026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26027 for as_dir in $PATH
26028 do
26029   IFS=$as_save_IFS
26030   test -z "$as_dir" && as_dir=.
26031   for ac_exec_ext in '' $ac_executable_extensions; do
26032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26033     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26035     break 2
26036   fi
26037 done
26038 done
26039
26040   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26041   ;;
26042 esac
26043 fi
26044 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26045
26046 if test -n "$PKG_CONFIG"; then
26047   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26048 echo "${ECHO_T}$PKG_CONFIG" >&6
26049 else
26050   echo "$as_me:$LINENO: result: no" >&5
26051 echo "${ECHO_T}no" >&6
26052 fi
26053
26054   fi
26055
26056   if test "$PKG_CONFIG" = "no" ; then
26057      echo "*** The pkg-config script could not be found. Make sure it is"
26058      echo "*** in your path, or set the PKG_CONFIG environment variable"
26059      echo "*** to the full path to pkg-config."
26060      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26061   else
26062      PKG_CONFIG_MIN_VERSION=0.9.0
26063      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26064         echo "$as_me:$LINENO: checking for pangoft2" >&5
26065 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
26066
26067         if $PKG_CONFIG --exists "pangoft2" ; then
26068             echo "$as_me:$LINENO: result: yes" >&5
26069 echo "${ECHO_T}yes" >&6
26070             succeeded=yes
26071
26072             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
26073 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
26074             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
26075             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
26076 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
26077
26078             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
26079 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
26080             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
26081             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
26082 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
26083         else
26084             PANGOFT2_CFLAGS=""
26085             PANGOFT2_LIBS=""
26086             ## If we have a custom action on failure, don't print errors, but
26087             ## do set a variable so people can do so.
26088             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
26089
26090         fi
26091
26092
26093
26094      else
26095         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26096         echo "*** See http://www.freedesktop.org/software/pkgconfig"
26097      fi
26098   fi
26099
26100   if test $succeeded = yes; then
26101
26102                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
26103                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
26104
26105   else
26106
26107                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
26108 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
26109                         wxUSE_PRINTING_ARCHITECTURE="no"
26110
26111
26112   fi
26113
26114
26115   succeeded=no
26116
26117   if test -z "$PKG_CONFIG"; then
26118     # Extract the first word of "pkg-config", so it can be a program name with args.
26119 set dummy pkg-config; ac_word=$2
26120 echo "$as_me:$LINENO: checking for $ac_word" >&5
26121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26122 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26123   echo $ECHO_N "(cached) $ECHO_C" >&6
26124 else
26125   case $PKG_CONFIG in
26126   [\\/]* | ?:[\\/]*)
26127   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26128   ;;
26129   *)
26130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26131 for as_dir in $PATH
26132 do
26133   IFS=$as_save_IFS
26134   test -z "$as_dir" && as_dir=.
26135   for ac_exec_ext in '' $ac_executable_extensions; do
26136   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26137     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26139     break 2
26140   fi
26141 done
26142 done
26143
26144   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26145   ;;
26146 esac
26147 fi
26148 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26149
26150 if test -n "$PKG_CONFIG"; then
26151   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26152 echo "${ECHO_T}$PKG_CONFIG" >&6
26153 else
26154   echo "$as_me:$LINENO: result: no" >&5
26155 echo "${ECHO_T}no" >&6
26156 fi
26157
26158   fi
26159
26160   if test "$PKG_CONFIG" = "no" ; then
26161      echo "*** The pkg-config script could not be found. Make sure it is"
26162      echo "*** in your path, or set the PKG_CONFIG environment variable"
26163      echo "*** to the full path to pkg-config."
26164      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26165   else
26166      PKG_CONFIG_MIN_VERSION=0.9.0
26167      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26168         echo "$as_me:$LINENO: checking for pangoxft" >&5
26169 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
26170
26171         if $PKG_CONFIG --exists "pangoxft" ; then
26172             echo "$as_me:$LINENO: result: yes" >&5
26173 echo "${ECHO_T}yes" >&6
26174             succeeded=yes
26175
26176             echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
26177 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
26178             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
26179             echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
26180 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
26181
26182             echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
26183 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
26184             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
26185             echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
26186 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
26187         else
26188             PANGOXFT_CFLAGS=""
26189             PANGOXFT_LIBS=""
26190             ## If we have a custom action on failure, don't print errors, but
26191             ## do set a variable so people can do so.
26192             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
26193
26194         fi
26195
26196
26197
26198      else
26199         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26200         echo "*** See http://www.freedesktop.org/software/pkgconfig"
26201      fi
26202   fi
26203
26204   if test $succeeded = yes; then
26205
26206                         cat >>confdefs.h <<\_ACEOF
26207 #define HAVE_PANGO_XFT 1
26208 _ACEOF
26209
26210                         CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
26211                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
26212
26213   else
26214
26215                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
26216 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
26217
26218
26219   fi
26220
26221                 save_CFLAGS="$CFLAGS"
26222                 save_LIBS="$LIBS"
26223                 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
26224                 LIBS="$LIBS $PANGOX_LIBS"
26225
26226 for ac_func in pango_font_family_is_monospace
26227 do
26228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26229 echo "$as_me:$LINENO: checking for $ac_func" >&5
26230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26231 if eval "test \"\${$as_ac_var+set}\" = set"; then
26232   echo $ECHO_N "(cached) $ECHO_C" >&6
26233 else
26234   cat >conftest.$ac_ext <<_ACEOF
26235 /* confdefs.h.  */
26236 _ACEOF
26237 cat confdefs.h >>conftest.$ac_ext
26238 cat >>conftest.$ac_ext <<_ACEOF
26239 /* end confdefs.h.  */
26240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26242 #define $ac_func innocuous_$ac_func
26243
26244 /* System header to define __stub macros and hopefully few prototypes,
26245     which can conflict with char $ac_func (); below.
26246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26247     <limits.h> exists even on freestanding compilers.  */
26248
26249 #ifdef __STDC__
26250 # include <limits.h>
26251 #else
26252 # include <assert.h>
26253 #endif
26254
26255 #undef $ac_func
26256
26257 /* Override any gcc2 internal prototype to avoid an error.  */
26258 #ifdef __cplusplus
26259 extern "C"
26260 {
26261 #endif
26262 /* We use char because int might match the return type of a gcc2
26263    builtin and then its argument prototype would still apply.  */
26264 char $ac_func ();
26265 /* The GNU C library defines this for functions which it implements
26266     to always fail with ENOSYS.  Some functions are actually named
26267     something starting with __ and the normal name is an alias.  */
26268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26269 choke me
26270 #else
26271 char (*f) () = $ac_func;
26272 #endif
26273 #ifdef __cplusplus
26274 }
26275 #endif
26276
26277 int
26278 main ()
26279 {
26280 return f != $ac_func;
26281   ;
26282   return 0;
26283 }
26284 _ACEOF
26285 rm -f conftest.$ac_objext conftest$ac_exeext
26286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26287   (eval $ac_link) 2>conftest.er1
26288   ac_status=$?
26289   grep -v '^ *+' conftest.er1 >conftest.err
26290   rm -f conftest.er1
26291   cat conftest.err >&5
26292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293   (exit $ac_status); } &&
26294          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26296   (eval $ac_try) 2>&5
26297   ac_status=$?
26298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299   (exit $ac_status); }; } &&
26300          { ac_try='test -s conftest$ac_exeext'
26301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26302   (eval $ac_try) 2>&5
26303   ac_status=$?
26304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305   (exit $ac_status); }; }; then
26306   eval "$as_ac_var=yes"
26307 else
26308   echo "$as_me: failed program was:" >&5
26309 sed 's/^/| /' conftest.$ac_ext >&5
26310
26311 eval "$as_ac_var=no"
26312 fi
26313 rm -f conftest.err conftest.$ac_objext \
26314       conftest$ac_exeext conftest.$ac_ext
26315 fi
26316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26318 if test `eval echo '${'$as_ac_var'}'` = yes; then
26319   cat >>confdefs.h <<_ACEOF
26320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26321 _ACEOF
26322
26323 fi
26324 done
26325
26326                 CFLAGS="$save_CFLAGS"
26327                 LIBS="$save_LIBS"
26328         fi
26329
26330         wxUSE_UNIVERSAL="yes"
26331
26332         if test "$wxUSE_NANOX" = "yes"; then
26333             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
26334             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"
26335             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
26336         else
26337             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
26338         fi
26339
26340         TOOLKIT=X11
26341         GUIDIST=X11_DIST
26342     fi
26343
26344     if test "$wxUSE_MOTIF" = 1; then
26345         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26346 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
26347
26348 ac_find_includes=
26349 for ac_dir in $SEARCH_INCLUDE /usr/include;
26350   do
26351     if test -f "$ac_dir/Xm/Xm.h"; then
26352       ac_find_includes=$ac_dir
26353       break
26354     fi
26355   done
26356
26357         if test "$ac_find_includes" != "" ; then
26358             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26359 echo "${ECHO_T}found in $ac_find_includes" >&6
26360
26361     if test "x$ac_find_includes" = "x/usr/include"; then
26362     ac_path_to_include=""
26363   else
26364     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26365     result=$?
26366     if test $result = 0; then
26367       ac_path_to_include=""
26368     else
26369       ac_path_to_include=" -I$ac_find_includes"
26370     fi
26371   fi
26372
26373             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26374         else
26375             cat >conftest.$ac_ext <<_ACEOF
26376 /* confdefs.h.  */
26377 _ACEOF
26378 cat confdefs.h >>conftest.$ac_ext
26379 cat >>conftest.$ac_ext <<_ACEOF
26380 /* end confdefs.h.  */
26381
26382                     #include <Xm/Xm.h>
26383
26384 int
26385 main ()
26386 {
26387
26388                     int version;
26389                     version = xmUseVersion;
26390
26391   ;
26392   return 0;
26393 }
26394 _ACEOF
26395 rm -f conftest.$ac_objext
26396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26397   (eval $ac_compile) 2>conftest.er1
26398   ac_status=$?
26399   grep -v '^ *+' conftest.er1 >conftest.err
26400   rm -f conftest.er1
26401   cat conftest.err >&5
26402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403   (exit $ac_status); } &&
26404          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26406   (eval $ac_try) 2>&5
26407   ac_status=$?
26408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409   (exit $ac_status); }; } &&
26410          { ac_try='test -s conftest.$ac_objext'
26411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26412   (eval $ac_try) 2>&5
26413   ac_status=$?
26414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415   (exit $ac_status); }; }; then
26416
26417                     echo "$as_me:$LINENO: result: found in default search path" >&5
26418 echo "${ECHO_T}found in default search path" >&6
26419                     COMPILED_X_PROGRAM=1
26420
26421 else
26422   echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26424
26425
26426                     echo "$as_me:$LINENO: result: no" >&5
26427 echo "${ECHO_T}no" >&6
26428                     { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26429 echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26430    { (exit 1); exit 1; }; }
26431
26432
26433 fi
26434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26435         fi
26436
26437         if test "$COMPILED_X_PROGRAM" = 0; then
26438             echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26439 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26440
26441 ac_find_libraries=
26442 for ac_dir in $SEARCH_LIB /usr/lib;
26443   do
26444     for ac_extension in a so sl dylib; do
26445       if test -f "$ac_dir/libXm.$ac_extension"; then
26446         ac_find_libraries=$ac_dir
26447         break 2
26448       fi
26449     done
26450   done
26451
26452             if test "$ac_find_libraries" != "" ; then
26453                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26454 echo "${ECHO_T}found at $ac_find_libraries" >&6
26455
26456
26457   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26458   result=$?
26459   if test $result = 0; then
26460     ac_path_to_link=""
26461   else
26462     ac_path_to_link=" -L$ac_find_libraries"
26463   fi
26464
26465                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26466             else
26467                                                                 save_CFLAGS=$CFLAGS
26468                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26469
26470                 cat >conftest.$ac_ext <<_ACEOF
26471 /* confdefs.h.  */
26472 _ACEOF
26473 cat confdefs.h >>conftest.$ac_ext
26474 cat >>conftest.$ac_ext <<_ACEOF
26475 /* end confdefs.h.  */
26476
26477                         #include <Xm/Xm.h>
26478
26479 int
26480 main ()
26481 {
26482
26483                         int version;
26484                         version = xmUseVersion;
26485
26486   ;
26487   return 0;
26488 }
26489 _ACEOF
26490 rm -f conftest.$ac_objext
26491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26492   (eval $ac_compile) 2>conftest.er1
26493   ac_status=$?
26494   grep -v '^ *+' conftest.er1 >conftest.err
26495   rm -f conftest.er1
26496   cat conftest.err >&5
26497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498   (exit $ac_status); } &&
26499          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26501   (eval $ac_try) 2>&5
26502   ac_status=$?
26503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504   (exit $ac_status); }; } &&
26505          { ac_try='test -s conftest.$ac_objext'
26506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26507   (eval $ac_try) 2>&5
26508   ac_status=$?
26509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510   (exit $ac_status); }; }; then
26511
26512                         echo "$as_me:$LINENO: result: found in default search path" >&5
26513 echo "${ECHO_T}found in default search path" >&6
26514                         COMPILED_X_PROGRAM=1
26515
26516 else
26517   echo "$as_me: failed program was:" >&5
26518 sed 's/^/| /' conftest.$ac_ext >&5
26519
26520
26521                         echo "$as_me:$LINENO: result: no" >&5
26522 echo "${ECHO_T}no" >&6
26523                         { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26524 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26525    { (exit 1); exit 1; }; }
26526
26527
26528 fi
26529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26530
26531                 CFLAGS=$save_CFLAGS
26532             fi
26533         fi
26534
26535         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26536 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26537         libp_link=""
26538         libsm_ice_link=""
26539         libs_found=0
26540         for libp in "" " -lXp"; do
26541             if test "$libs_found" = "0"; then
26542                 for libsm_ice in "" " -lSM -lICE"; do
26543                     if test "$libs_found" = "0"; then
26544                         save_LIBS="$LIBS"
26545                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26546                         save_CFLAGS=$CFLAGS
26547                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26548
26549                         cat >conftest.$ac_ext <<_ACEOF
26550 /* confdefs.h.  */
26551 _ACEOF
26552 cat confdefs.h >>conftest.$ac_ext
26553 cat >>conftest.$ac_ext <<_ACEOF
26554 /* end confdefs.h.  */
26555
26556                                 #include <Xm/Xm.h>
26557                                 #include <Xm/List.h>
26558
26559 int
26560 main ()
26561 {
26562
26563                                 XmString string = NULL;
26564                                 Widget w = NULL;
26565                                 int position = 0;
26566                                 XmListAddItem(w, string, position);
26567
26568   ;
26569   return 0;
26570 }
26571 _ACEOF
26572 rm -f conftest.$ac_objext conftest$ac_exeext
26573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26574   (eval $ac_link) 2>conftest.er1
26575   ac_status=$?
26576   grep -v '^ *+' conftest.er1 >conftest.err
26577   rm -f conftest.er1
26578   cat conftest.err >&5
26579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580   (exit $ac_status); } &&
26581          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26583   (eval $ac_try) 2>&5
26584   ac_status=$?
26585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586   (exit $ac_status); }; } &&
26587          { ac_try='test -s conftest$ac_exeext'
26588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26589   (eval $ac_try) 2>&5
26590   ac_status=$?
26591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592   (exit $ac_status); }; }; then
26593
26594                                 libp_link="$libp"
26595                                 libsm_ice_link="$libsm_ice"
26596                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26597 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26598                                 libs_found=1
26599
26600 else
26601   echo "$as_me: failed program was:" >&5
26602 sed 's/^/| /' conftest.$ac_ext >&5
26603
26604
26605
26606 fi
26607 rm -f conftest.err conftest.$ac_objext \
26608       conftest$ac_exeext conftest.$ac_ext
26609
26610                         LIBS="$save_LIBS"
26611                         CFLAGS=$save_CFLAGS
26612                     fi
26613                 done
26614             fi
26615         done
26616
26617         if test "$libs_found" = "0"; then
26618             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26619 echo "${ECHO_T}can't find the right libraries" >&6
26620             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26621 echo "$as_me: error: can't link a simple motif program" >&2;}
26622    { (exit 1); exit 1; }; }
26623         fi
26624
26625         save_CFLAGS=$CFLAGS
26626         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26627         echo "$as_me:$LINENO: checking for Motif 2" >&5
26628 echo $ECHO_N "checking for Motif 2... $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
26636                         #include <Xm/Xm.h>
26637
26638 int
26639 main ()
26640 {
26641
26642                         #if XmVersion < 2000
26643                         #error "Not Motif 2"
26644                         #endif
26645
26646   ;
26647   return 0;
26648 }
26649 _ACEOF
26650 rm -f conftest.$ac_objext
26651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26652   (eval $ac_compile) 2>conftest.er1
26653   ac_status=$?
26654   grep -v '^ *+' conftest.er1 >conftest.err
26655   rm -f conftest.er1
26656   cat conftest.err >&5
26657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658   (exit $ac_status); } &&
26659          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26661   (eval $ac_try) 2>&5
26662   ac_status=$?
26663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664   (exit $ac_status); }; } &&
26665          { ac_try='test -s conftest.$ac_objext'
26666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26667   (eval $ac_try) 2>&5
26668   ac_status=$?
26669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670   (exit $ac_status); }; }; then
26671
26672                         cat >>confdefs.h <<\_ACEOF
26673 #define __WXMOTIF20__ 1
26674 _ACEOF
26675
26676                         echo "$as_me:$LINENO: result: found" >&5
26677 echo "${ECHO_T}found" >&6
26678
26679 else
26680   echo "$as_me: failed program was:" >&5
26681 sed 's/^/| /' conftest.$ac_ext >&5
26682
26683
26684                         cat >>confdefs.h <<\_ACEOF
26685 #define __WXMOTIF20__ 0
26686 _ACEOF
26687
26688                         echo "$as_me:$LINENO: result: not found" >&5
26689 echo "${ECHO_T}not found" >&6
26690
26691 fi
26692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26693         CFLAGS=$save_CFLAGS
26694
26695         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
26696         TOOLKIT=MOTIF
26697         GUIDIST=MOTIF_DIST
26698     fi
26699
26700         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
26701                 if test "$wxUSE_LIBXPM" = "sys"; then
26702             echo "$as_me:$LINENO: checking for Xpm library" >&5
26703 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26704
26705 ac_find_libraries=
26706 for ac_dir in $SEARCH_LIB /usr/lib;
26707   do
26708     for ac_extension in a so sl dylib; do
26709       if test -f "$ac_dir/libXpm.$ac_extension"; then
26710         ac_find_libraries=$ac_dir
26711         break 2
26712       fi
26713     done
26714   done
26715
26716             if test "$ac_find_libraries" != "" ; then
26717
26718   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26719   result=$?
26720   if test $result = 0; then
26721     ac_path_to_link=""
26722   else
26723     ac_path_to_link=" -L$ac_find_libraries"
26724   fi
26725
26726                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26727                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26728 echo "${ECHO_T}found at $ac_find_libraries" >&6
26729
26730                 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26731 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26732 if test "${wx_cv_x11_xpm_h+set}" = set; then
26733   echo $ECHO_N "(cached) $ECHO_C" >&6
26734 else
26735
26736                         save_CFLAGS=$CFLAGS
26737                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26738
26739                         cat >conftest.$ac_ext <<_ACEOF
26740 /* confdefs.h.  */
26741 _ACEOF
26742 cat confdefs.h >>conftest.$ac_ext
26743 cat >>conftest.$ac_ext <<_ACEOF
26744 /* end confdefs.h.  */
26745
26746                                 #include <X11/xpm.h>
26747
26748 int
26749 main ()
26750 {
26751
26752                                 int version;
26753                                 version = XpmLibraryVersion();
26754
26755   ;
26756   return 0;
26757 }
26758 _ACEOF
26759 rm -f conftest.$ac_objext
26760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26761   (eval $ac_compile) 2>conftest.er1
26762   ac_status=$?
26763   grep -v '^ *+' conftest.er1 >conftest.err
26764   rm -f conftest.er1
26765   cat conftest.err >&5
26766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767   (exit $ac_status); } &&
26768          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26770   (eval $ac_try) 2>&5
26771   ac_status=$?
26772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773   (exit $ac_status); }; } &&
26774          { ac_try='test -s conftest.$ac_objext'
26775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26776   (eval $ac_try) 2>&5
26777   ac_status=$?
26778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779   (exit $ac_status); }; }; then
26780   wx_cv_x11_xpm_h=yes
26781 else
26782   echo "$as_me: failed program was:" >&5
26783 sed 's/^/| /' conftest.$ac_ext >&5
26784
26785 wx_cv_x11_xpm_h=no
26786
26787 fi
26788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26789
26790                         CFLAGS=$save_CFLAGS
26791
26792
26793 fi
26794 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26795 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26796
26797                 if test $wx_cv_x11_xpm_h = "yes"; then
26798                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26799                     cat >>confdefs.h <<\_ACEOF
26800 #define wxHAVE_LIB_XPM 1
26801 _ACEOF
26802
26803                 else
26804                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26805 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26806                 fi
26807             fi
26808
26809         fi
26810
26811                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26812 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26813 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26814   echo $ECHO_N "(cached) $ECHO_C" >&6
26815 else
26816   ac_check_lib_save_LIBS=$LIBS
26817 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26818 cat >conftest.$ac_ext <<_ACEOF
26819 /* confdefs.h.  */
26820 _ACEOF
26821 cat confdefs.h >>conftest.$ac_ext
26822 cat >>conftest.$ac_ext <<_ACEOF
26823 /* end confdefs.h.  */
26824
26825 /* Override any gcc2 internal prototype to avoid an error.  */
26826 #ifdef __cplusplus
26827 extern "C"
26828 #endif
26829 /* We use char because int might match the return type of a gcc2
26830    builtin and then its argument prototype would still apply.  */
26831 char XShapeQueryExtension ();
26832 int
26833 main ()
26834 {
26835 XShapeQueryExtension ();
26836   ;
26837   return 0;
26838 }
26839 _ACEOF
26840 rm -f conftest.$ac_objext conftest$ac_exeext
26841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26842   (eval $ac_link) 2>conftest.er1
26843   ac_status=$?
26844   grep -v '^ *+' conftest.er1 >conftest.err
26845   rm -f conftest.er1
26846   cat conftest.err >&5
26847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848   (exit $ac_status); } &&
26849          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26851   (eval $ac_try) 2>&5
26852   ac_status=$?
26853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854   (exit $ac_status); }; } &&
26855          { ac_try='test -s conftest$ac_exeext'
26856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26857   (eval $ac_try) 2>&5
26858   ac_status=$?
26859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860   (exit $ac_status); }; }; then
26861   ac_cv_lib_Xext_XShapeQueryExtension=yes
26862 else
26863   echo "$as_me: failed program was:" >&5
26864 sed 's/^/| /' conftest.$ac_ext >&5
26865
26866 ac_cv_lib_Xext_XShapeQueryExtension=no
26867 fi
26868 rm -f conftest.err conftest.$ac_objext \
26869       conftest$ac_exeext conftest.$ac_ext
26870 LIBS=$ac_check_lib_save_LIBS
26871 fi
26872 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26873 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26874 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26875
26876                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26877                       wxHAVE_XEXT_LIB=1
26878
26879 fi
26880
26881
26882         if test "$wxHAVE_XEXT_LIB" = 1; then
26883             save_CFLAGS="$CFLAGS"
26884             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26885
26886             echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26887 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26888             cat >conftest.$ac_ext <<_ACEOF
26889 /* confdefs.h.  */
26890 _ACEOF
26891 cat confdefs.h >>conftest.$ac_ext
26892 cat >>conftest.$ac_ext <<_ACEOF
26893 /* end confdefs.h.  */
26894
26895                             #include <X11/Xlib.h>
26896                             #include <X11/extensions/shape.h>
26897
26898 int
26899 main ()
26900 {
26901
26902                             int dummy1, dummy2;
26903                             XShapeQueryExtension((Display*)NULL,
26904                                                  (int*)NULL, (int*)NULL);
26905
26906   ;
26907   return 0;
26908 }
26909 _ACEOF
26910 rm -f conftest.$ac_objext
26911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26912   (eval $ac_compile) 2>conftest.er1
26913   ac_status=$?
26914   grep -v '^ *+' conftest.er1 >conftest.err
26915   rm -f conftest.er1
26916   cat conftest.err >&5
26917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918   (exit $ac_status); } &&
26919          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921   (eval $ac_try) 2>&5
26922   ac_status=$?
26923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924   (exit $ac_status); }; } &&
26925          { ac_try='test -s conftest.$ac_objext'
26926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26927   (eval $ac_try) 2>&5
26928   ac_status=$?
26929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930   (exit $ac_status); }; }; then
26931
26932                             cat >>confdefs.h <<\_ACEOF
26933 #define HAVE_XSHAPE 1
26934 _ACEOF
26935
26936                             echo "$as_me:$LINENO: result: found" >&5
26937 echo "${ECHO_T}found" >&6
26938
26939 else
26940   echo "$as_me: failed program was:" >&5
26941 sed 's/^/| /' conftest.$ac_ext >&5
26942
26943
26944                             echo "$as_me:$LINENO: result: not found" >&5
26945 echo "${ECHO_T}not found" >&6
26946
26947 fi
26948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26949             CFLAGS="$save_CFLAGS"
26950
26951         fi
26952     fi
26953
26954     if test "$wxUSE_MAC" = 1; then
26955         echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26956 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26957         if test "$GCC" = yes; then
26958             echo "$as_me:$LINENO: result: gcc" >&5
26959 echo "${ECHO_T}gcc" >&6
26960             CPPFLAGS_PASCAL="-fpascal-strings"
26961         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26962             echo "$as_me:$LINENO: result: xlc" >&5
26963 echo "${ECHO_T}xlc" >&6
26964             CPPFLAGS_PASCAL="-qmacpstr"
26965         else
26966             echo "$as_me:$LINENO: result: none" >&5
26967 echo "${ECHO_T}none" >&6
26968         fi
26969
26970         if test "x$wxUSE_UNIX" = "xyes"; then
26971             CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26972         else
26973                         CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
26974         fi
26975
26976         TOOLKIT=MAC
26977                 GUIDIST=MACX_DIST
26978                         WXBASEPORT="_carbon"
26979     fi
26980
26981     if test "$wxUSE_COCOA" = 1; then
26982         TOOLKIT=COCOA
26983         GUIDIST=COCOA_DIST
26984     fi
26985
26986     if test "$wxUSE_PM" = 1; then
26987         TOOLKIT=PM
26988         GUIDIST=PM_DIST
26989         echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26990 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26991 if test "${wx_cv_spbcdata+set}" = set; then
26992   echo $ECHO_N "(cached) $ECHO_C" >&6
26993 else
26994
26995                 cat >conftest.$ac_ext <<_ACEOF
26996 /* confdefs.h.  */
26997 _ACEOF
26998 cat confdefs.h >>conftest.$ac_ext
26999 cat >>conftest.$ac_ext <<_ACEOF
27000 /* end confdefs.h.  */
27001
27002                         #define INCL_PM
27003                         #include <os2.h>
27004
27005 int
27006 main ()
27007 {
27008
27009                         SPBCDATA test;
27010
27011   ;
27012   return 0;
27013 }
27014 _ACEOF
27015 rm -f conftest.$ac_objext
27016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27017   (eval $ac_compile) 2>conftest.er1
27018   ac_status=$?
27019   grep -v '^ *+' conftest.er1 >conftest.err
27020   rm -f conftest.er1
27021   cat conftest.err >&5
27022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023   (exit $ac_status); } &&
27024          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27026   (eval $ac_try) 2>&5
27027   ac_status=$?
27028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029   (exit $ac_status); }; } &&
27030          { ac_try='test -s conftest.$ac_objext'
27031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27032   (eval $ac_try) 2>&5
27033   ac_status=$?
27034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035   (exit $ac_status); }; }; then
27036   wx_cv_spbcdata=yes
27037 else
27038   echo "$as_me: failed program was:" >&5
27039 sed 's/^/| /' conftest.$ac_ext >&5
27040
27041 wx_cv_spbcdata=no
27042
27043 fi
27044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27045
27046
27047 fi
27048 echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
27049 echo "${ECHO_T}$wx_cv_spbcdata" >&6
27050
27051         if test $wx_cv_spbcdata = "yes"; then
27052             cat >>confdefs.h <<\_ACEOF
27053 #define HAVE_SPBCDATA 1
27054 _ACEOF
27055
27056         fi
27057     fi
27058
27059         if test "$TOOLKIT" = "PM" ; then
27060         TOOLKIT_DIR="os2"
27061     else
27062         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
27063     fi
27064
27065     if test "$wxUSE_UNIVERSAL" = "yes"; then
27066         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
27067         WIDGET_SET=univ
27068     fi
27069
27070         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
27071     DISTDIR="wx\$(TOOLKIT)"
27072 else
27073     USE_GUI=0
27074
27075             TOOLKIT_DIR="base"
27076
27077         if test "$USE_WIN32" = 1 ; then
27078                         TOOLKIT="MSW"
27079     fi
27080
27081         GUIDIST="BASE_DIST"
27082     DISTDIR="wxBase"
27083 fi
27084
27085
27086
27087
27088 IODBC_C_SRC=""
27089
27090
27091 if test "$TOOLKIT" != "MSW" ; then
27092
27093     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
27094
27095         if test "${ac_cv_header_sql_h+set}" = set; then
27096   echo "$as_me:$LINENO: checking for sql.h" >&5
27097 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27098 if test "${ac_cv_header_sql_h+set}" = set; then
27099   echo $ECHO_N "(cached) $ECHO_C" >&6
27100 fi
27101 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27102 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27103 else
27104   # Is the header compilable?
27105 echo "$as_me:$LINENO: checking sql.h usability" >&5
27106 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
27107 cat >conftest.$ac_ext <<_ACEOF
27108 /* confdefs.h.  */
27109 _ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h.  */
27113 $ac_includes_default
27114 #include <sql.h>
27115 _ACEOF
27116 rm -f conftest.$ac_objext
27117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27118   (eval $ac_compile) 2>conftest.er1
27119   ac_status=$?
27120   grep -v '^ *+' conftest.er1 >conftest.err
27121   rm -f conftest.er1
27122   cat conftest.err >&5
27123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124   (exit $ac_status); } &&
27125          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27127   (eval $ac_try) 2>&5
27128   ac_status=$?
27129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130   (exit $ac_status); }; } &&
27131          { ac_try='test -s conftest.$ac_objext'
27132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27133   (eval $ac_try) 2>&5
27134   ac_status=$?
27135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136   (exit $ac_status); }; }; then
27137   ac_header_compiler=yes
27138 else
27139   echo "$as_me: failed program was:" >&5
27140 sed 's/^/| /' conftest.$ac_ext >&5
27141
27142 ac_header_compiler=no
27143 fi
27144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27146 echo "${ECHO_T}$ac_header_compiler" >&6
27147
27148 # Is the header present?
27149 echo "$as_me:$LINENO: checking sql.h presence" >&5
27150 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
27151 cat >conftest.$ac_ext <<_ACEOF
27152 /* confdefs.h.  */
27153 _ACEOF
27154 cat confdefs.h >>conftest.$ac_ext
27155 cat >>conftest.$ac_ext <<_ACEOF
27156 /* end confdefs.h.  */
27157 #include <sql.h>
27158 _ACEOF
27159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27160   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27161   ac_status=$?
27162   grep -v '^ *+' conftest.er1 >conftest.err
27163   rm -f conftest.er1
27164   cat conftest.err >&5
27165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166   (exit $ac_status); } >/dev/null; then
27167   if test -s conftest.err; then
27168     ac_cpp_err=$ac_c_preproc_warn_flag
27169     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27170   else
27171     ac_cpp_err=
27172   fi
27173 else
27174   ac_cpp_err=yes
27175 fi
27176 if test -z "$ac_cpp_err"; then
27177   ac_header_preproc=yes
27178 else
27179   echo "$as_me: failed program was:" >&5
27180 sed 's/^/| /' conftest.$ac_ext >&5
27181
27182   ac_header_preproc=no
27183 fi
27184 rm -f conftest.err conftest.$ac_ext
27185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27186 echo "${ECHO_T}$ac_header_preproc" >&6
27187
27188 # So?  What about this header?
27189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27190   yes:no: )
27191     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
27192 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27193     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
27194 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
27195     ac_header_preproc=yes
27196     ;;
27197   no:yes:* )
27198     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
27199 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
27200     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
27201 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
27202     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27203 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27204     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
27205 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27206     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27207 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
27208     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27209 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
27210     (
27211       cat <<\_ASBOX
27212 ## ----------------------------------------- ##
27213 ## Report this to wx-dev@lists.wxwidgets.org ##
27214 ## ----------------------------------------- ##
27215 _ASBOX
27216     ) |
27217       sed "s/^/$as_me: WARNING:     /" >&2
27218     ;;
27219 esac
27220 echo "$as_me:$LINENO: checking for sql.h" >&5
27221 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27222 if test "${ac_cv_header_sql_h+set}" = set; then
27223   echo $ECHO_N "(cached) $ECHO_C" >&6
27224 else
27225   ac_cv_header_sql_h=$ac_header_preproc
27226 fi
27227 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27228 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27229
27230 fi
27231 if test $ac_cv_header_sql_h = yes; then
27232   found_sql_h=1
27233 fi
27234
27235
27236         if test "x$found_sql_h" = "x1" ; then
27237             echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27238 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27239 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27240   echo $ECHO_N "(cached) $ECHO_C" >&6
27241 else
27242   ac_check_lib_save_LIBS=$LIBS
27243 LIBS="-liodbc  $LIBS"
27244 cat >conftest.$ac_ext <<_ACEOF
27245 /* confdefs.h.  */
27246 _ACEOF
27247 cat confdefs.h >>conftest.$ac_ext
27248 cat >>conftest.$ac_ext <<_ACEOF
27249 /* end confdefs.h.  */
27250
27251 /* Override any gcc2 internal prototype to avoid an error.  */
27252 #ifdef __cplusplus
27253 extern "C"
27254 #endif
27255 /* We use char because int might match the return type of a gcc2
27256    builtin and then its argument prototype would still apply.  */
27257 char SQLAllocEnv ();
27258 int
27259 main ()
27260 {
27261 SQLAllocEnv ();
27262   ;
27263   return 0;
27264 }
27265 _ACEOF
27266 rm -f conftest.$ac_objext conftest$ac_exeext
27267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27268   (eval $ac_link) 2>conftest.er1
27269   ac_status=$?
27270   grep -v '^ *+' conftest.er1 >conftest.err
27271   rm -f conftest.er1
27272   cat conftest.err >&5
27273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274   (exit $ac_status); } &&
27275          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27277   (eval $ac_try) 2>&5
27278   ac_status=$?
27279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27280   (exit $ac_status); }; } &&
27281          { ac_try='test -s conftest$ac_exeext'
27282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27283   (eval $ac_try) 2>&5
27284   ac_status=$?
27285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286   (exit $ac_status); }; }; then
27287   ac_cv_lib_iodbc_SQLAllocEnv=yes
27288 else
27289   echo "$as_me: failed program was:" >&5
27290 sed 's/^/| /' conftest.$ac_ext >&5
27291
27292 ac_cv_lib_iodbc_SQLAllocEnv=no
27293 fi
27294 rm -f conftest.err conftest.$ac_objext \
27295       conftest$ac_exeext conftest.$ac_ext
27296 LIBS=$ac_check_lib_save_LIBS
27297 fi
27298 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27299 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27300 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27301   ODBC_LINK=" -liodbc"
27302 else
27303
27304                 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27305 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27306 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27307   echo $ECHO_N "(cached) $ECHO_C" >&6
27308 else
27309   ac_check_lib_save_LIBS=$LIBS
27310 LIBS="-lunixodbc  $LIBS"
27311 cat >conftest.$ac_ext <<_ACEOF
27312 /* confdefs.h.  */
27313 _ACEOF
27314 cat confdefs.h >>conftest.$ac_ext
27315 cat >>conftest.$ac_ext <<_ACEOF
27316 /* end confdefs.h.  */
27317
27318 /* Override any gcc2 internal prototype to avoid an error.  */
27319 #ifdef __cplusplus
27320 extern "C"
27321 #endif
27322 /* We use char because int might match the return type of a gcc2
27323    builtin and then its argument prototype would still apply.  */
27324 char SQLAllocEnv ();
27325 int
27326 main ()
27327 {
27328 SQLAllocEnv ();
27329   ;
27330   return 0;
27331 }
27332 _ACEOF
27333 rm -f conftest.$ac_objext conftest$ac_exeext
27334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27335   (eval $ac_link) 2>conftest.er1
27336   ac_status=$?
27337   grep -v '^ *+' conftest.er1 >conftest.err
27338   rm -f conftest.er1
27339   cat conftest.err >&5
27340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27341   (exit $ac_status); } &&
27342          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27344   (eval $ac_try) 2>&5
27345   ac_status=$?
27346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347   (exit $ac_status); }; } &&
27348          { ac_try='test -s conftest$ac_exeext'
27349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27350   (eval $ac_try) 2>&5
27351   ac_status=$?
27352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353   (exit $ac_status); }; }; then
27354   ac_cv_lib_unixodbc_SQLAllocEnv=yes
27355 else
27356   echo "$as_me: failed program was:" >&5
27357 sed 's/^/| /' conftest.$ac_ext >&5
27358
27359 ac_cv_lib_unixodbc_SQLAllocEnv=no
27360 fi
27361 rm -f conftest.err conftest.$ac_objext \
27362       conftest$ac_exeext conftest.$ac_ext
27363 LIBS=$ac_check_lib_save_LIBS
27364 fi
27365 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27366 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27367 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27368   ODBC_LINK=" -lunixodbc"
27369 else
27370
27371                     echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27372 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27373 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27374   echo $ECHO_N "(cached) $ECHO_C" >&6
27375 else
27376   ac_check_lib_save_LIBS=$LIBS
27377 LIBS="-lodbc  $LIBS"
27378 cat >conftest.$ac_ext <<_ACEOF
27379 /* confdefs.h.  */
27380 _ACEOF
27381 cat confdefs.h >>conftest.$ac_ext
27382 cat >>conftest.$ac_ext <<_ACEOF
27383 /* end confdefs.h.  */
27384
27385 /* Override any gcc2 internal prototype to avoid an error.  */
27386 #ifdef __cplusplus
27387 extern "C"
27388 #endif
27389 /* We use char because int might match the return type of a gcc2
27390    builtin and then its argument prototype would still apply.  */
27391 char SQLAllocEnv ();
27392 int
27393 main ()
27394 {
27395 SQLAllocEnv ();
27396   ;
27397   return 0;
27398 }
27399 _ACEOF
27400 rm -f conftest.$ac_objext conftest$ac_exeext
27401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27402   (eval $ac_link) 2>conftest.er1
27403   ac_status=$?
27404   grep -v '^ *+' conftest.er1 >conftest.err
27405   rm -f conftest.er1
27406   cat conftest.err >&5
27407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408   (exit $ac_status); } &&
27409          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27411   (eval $ac_try) 2>&5
27412   ac_status=$?
27413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414   (exit $ac_status); }; } &&
27415          { ac_try='test -s conftest$ac_exeext'
27416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27417   (eval $ac_try) 2>&5
27418   ac_status=$?
27419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420   (exit $ac_status); }; }; then
27421   ac_cv_lib_odbc_SQLAllocEnv=yes
27422 else
27423   echo "$as_me: failed program was:" >&5
27424 sed 's/^/| /' conftest.$ac_ext >&5
27425
27426 ac_cv_lib_odbc_SQLAllocEnv=no
27427 fi
27428 rm -f conftest.err conftest.$ac_objext \
27429       conftest$ac_exeext conftest.$ac_ext
27430 LIBS=$ac_check_lib_save_LIBS
27431 fi
27432 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27433 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27434 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27435   ODBC_LINK=" -lodbc"
27436 fi
27437
27438
27439 fi
27440
27441
27442 fi
27443
27444         fi
27445         if test "x$ODBC_LINK" = "x" ; then
27446             if test "$wxUSE_ODBC" = "sys" ; then
27447                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27448 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27449    { (exit 1); exit 1; }; }
27450             else
27451                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27452 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27453                 wxUSE_ODBC=builtin
27454             fi
27455         else
27456                         wxUSE_ODBC=sys
27457         fi
27458     fi
27459     if test "$wxUSE_ODBC" != "no" ; then
27460         cat >>confdefs.h <<\_ACEOF
27461 #define wxUSE_ODBC 1
27462 _ACEOF
27463
27464         if test "$wxUSE_ODBC" = "builtin" ; then
27465             cat >>confdefs.h <<\_ACEOF
27466 #define wxUSE_BUILTIN_IODBC 1
27467 _ACEOF
27468
27469         fi
27470         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27471
27472                 WXODBCFLAG="-D_IODBC_"
27473     fi
27474 fi
27475
27476
27477
27478 if test "$wxUSE_DISPLAY" = "yes"; then
27479     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
27480         echo "$as_me:$LINENO: checking for Xinerama" >&5
27481 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27482
27483 ac_find_libraries=
27484 for ac_dir in $SEARCH_LIB /usr/lib;
27485   do
27486     for ac_extension in a so sl dylib; do
27487       if test -f "$ac_dir/libXinerama.$ac_extension"; then
27488         ac_find_libraries=$ac_dir
27489         break 2
27490       fi
27491     done
27492   done
27493
27494         if test "$ac_find_libraries" != "" ; then
27495
27496   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27497   result=$?
27498   if test $result = 0; then
27499     ac_path_to_link=""
27500   else
27501     ac_path_to_link=" -L$ac_find_libraries"
27502   fi
27503
27504             if test "$ac_path_to_link" != " -L/usr/lib" ; then
27505                 LDFLAGS="$LDFLAGS $ac_path_to_link"
27506             fi
27507             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27508             echo "$as_me:$LINENO: result: yes" >&5
27509 echo "${ECHO_T}yes" >&6
27510
27511             echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27512 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27513
27514 ac_find_libraries=
27515 for ac_dir in $SEARCH_LIB /usr/lib;
27516   do
27517     for ac_extension in a so sl dylib; do
27518       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27519         ac_find_libraries=$ac_dir
27520         break 2
27521       fi
27522     done
27523   done
27524
27525             if test "$ac_find_libraries" != "" ; then
27526                 echo "$as_me:$LINENO: result: yes" >&5
27527 echo "${ECHO_T}yes" >&6
27528
27529 for ac_header in X11/extensions/xf86vmode.h
27530 do
27531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27532 echo "$as_me:$LINENO: checking for $ac_header" >&5
27533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27535   echo $ECHO_N "(cached) $ECHO_C" >&6
27536 else
27537   cat >conftest.$ac_ext <<_ACEOF
27538 /* confdefs.h.  */
27539 _ACEOF
27540 cat confdefs.h >>conftest.$ac_ext
27541 cat >>conftest.$ac_ext <<_ACEOF
27542 /* end confdefs.h.  */
27543
27544                                       #if HAVE_X11_XLIB_H
27545                                         #include <X11/Xlib.h>
27546                                       #endif
27547
27548
27549 #include <$ac_header>
27550 _ACEOF
27551 rm -f conftest.$ac_objext
27552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27553   (eval $ac_compile) 2>conftest.er1
27554   ac_status=$?
27555   grep -v '^ *+' conftest.er1 >conftest.err
27556   rm -f conftest.er1
27557   cat conftest.err >&5
27558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559   (exit $ac_status); } &&
27560          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27562   (eval $ac_try) 2>&5
27563   ac_status=$?
27564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565   (exit $ac_status); }; } &&
27566          { ac_try='test -s conftest.$ac_objext'
27567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27568   (eval $ac_try) 2>&5
27569   ac_status=$?
27570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571   (exit $ac_status); }; }; then
27572   eval "$as_ac_Header=yes"
27573 else
27574   echo "$as_me: failed program was:" >&5
27575 sed 's/^/| /' conftest.$ac_ext >&5
27576
27577 eval "$as_ac_Header=no"
27578 fi
27579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27580 fi
27581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27584   cat >>confdefs.h <<_ACEOF
27585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27586 _ACEOF
27587
27588                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27589
27590 fi
27591
27592 done
27593
27594             else
27595                 echo "$as_me:$LINENO: result: no" >&5
27596 echo "${ECHO_T}no" >&6
27597             fi
27598
27599         else
27600             echo "$as_me:$LINENO: result: no" >&5
27601 echo "${ECHO_T}no" >&6
27602             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27603 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
27604             wxUSE_DISPLAY="no"
27605         fi
27606     elif test "$wxUSE_MSW" = 1; then
27607
27608
27609 for ac_header in multimon.h ddraw.h
27610 do
27611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27612 echo "$as_me:$LINENO: checking for $ac_header" >&5
27613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27615   echo $ECHO_N "(cached) $ECHO_C" >&6
27616 else
27617   cat >conftest.$ac_ext <<_ACEOF
27618 /* confdefs.h.  */
27619 _ACEOF
27620 cat confdefs.h >>conftest.$ac_ext
27621 cat >>conftest.$ac_ext <<_ACEOF
27622 /* end confdefs.h.  */
27623 #include <windows.h>
27624
27625 #include <$ac_header>
27626 _ACEOF
27627 rm -f conftest.$ac_objext
27628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27629   (eval $ac_compile) 2>conftest.er1
27630   ac_status=$?
27631   grep -v '^ *+' conftest.er1 >conftest.err
27632   rm -f conftest.er1
27633   cat conftest.err >&5
27634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635   (exit $ac_status); } &&
27636          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27638   (eval $ac_try) 2>&5
27639   ac_status=$?
27640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641   (exit $ac_status); }; } &&
27642          { ac_try='test -s conftest.$ac_objext'
27643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27644   (eval $ac_try) 2>&5
27645   ac_status=$?
27646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647   (exit $ac_status); }; }; then
27648   eval "$as_ac_Header=yes"
27649 else
27650   echo "$as_me: failed program was:" >&5
27651 sed 's/^/| /' conftest.$ac_ext >&5
27652
27653 eval "$as_ac_Header=no"
27654 fi
27655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27656 fi
27657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27660   cat >>confdefs.h <<_ACEOF
27661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27662 _ACEOF
27663
27664 else
27665
27666                 wxUSE_DISPLAY="no"
27667                 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27668 echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
27669
27670 fi
27671
27672 done
27673
27674     fi
27675 fi
27676
27677
27678 if test "$wxUSE_MEDIACTRL" = "yes"; then
27679     if test "$wxUSE_MSW" = 1; then
27680         wxUSE_DIRECTSHOW="yes"
27681
27682 for ac_header in dshow.h
27683 do
27684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27685 echo "$as_me:$LINENO: checking for $ac_header" >&5
27686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27688   echo $ECHO_N "(cached) $ECHO_C" >&6
27689 else
27690   cat >conftest.$ac_ext <<_ACEOF
27691 /* confdefs.h.  */
27692 _ACEOF
27693 cat confdefs.h >>conftest.$ac_ext
27694 cat >>conftest.$ac_ext <<_ACEOF
27695 /* end confdefs.h.  */
27696 #include <windows.h>
27697
27698 #include <$ac_header>
27699 _ACEOF
27700 rm -f conftest.$ac_objext
27701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27702   (eval $ac_compile) 2>conftest.er1
27703   ac_status=$?
27704   grep -v '^ *+' conftest.er1 >conftest.err
27705   rm -f conftest.er1
27706   cat conftest.err >&5
27707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708   (exit $ac_status); } &&
27709          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27711   (eval $ac_try) 2>&5
27712   ac_status=$?
27713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714   (exit $ac_status); }; } &&
27715          { ac_try='test -s conftest.$ac_objext'
27716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27717   (eval $ac_try) 2>&5
27718   ac_status=$?
27719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720   (exit $ac_status); }; }; then
27721   eval "$as_ac_Header=yes"
27722 else
27723   echo "$as_me: failed program was:" >&5
27724 sed 's/^/| /' conftest.$ac_ext >&5
27725
27726 eval "$as_ac_Header=no"
27727 fi
27728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27729 fi
27730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27733   cat >>confdefs.h <<_ACEOF
27734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27735 _ACEOF
27736
27737 else
27738
27739                 wxUSE_DIRECTSHOW="no"
27740                 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
27741 echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
27742
27743 fi
27744
27745 done
27746
27747
27748        if test "$wxUSE_DIRECTSHOW" = "yes"; then
27749             cat >>confdefs.h <<\_ACEOF
27750 #define wxUSE_DIRECTSHOW 1
27751 _ACEOF
27752
27753             LIBS="$LIBS -lstrmiids"
27754        fi
27755     fi
27756
27757     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
27758     cat >>confdefs.h <<\_ACEOF
27759 #define wxUSE_MEDIACTRL 1
27760 _ACEOF
27761
27762 fi
27763
27764
27765 USE_OPENGL=0
27766 if test "$wxUSE_OPENGL" = "yes"; then
27767     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27768         OPENGL_LIBS="-framework OpenGL -framework AGL"
27769     elif test "$wxUSE_MSW" = 1; then
27770         OPENGL_LIBS="-lopengl32 -lglu32"
27771     else
27772
27773
27774 ac_find_includes=
27775 for ac_dir in $SEARCH_INCLUDE /usr/include;
27776   do
27777     if test -f "$ac_dir/GL/gl.h"; then
27778       ac_find_includes=$ac_dir
27779       break
27780     fi
27781   done
27782
27783         if test "$ac_find_includes" != "" ; then
27784             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27785 echo "${ECHO_T}found in $ac_find_includes" >&6
27786
27787     if test "x$ac_find_includes" = "x/usr/include"; then
27788     ac_path_to_include=""
27789   else
27790     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27791     result=$?
27792     if test $result = 0; then
27793       ac_path_to_include=""
27794     else
27795       ac_path_to_include=" -I$ac_find_includes"
27796     fi
27797   fi
27798
27799             CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27800         fi
27801
27802         if test "${ac_cv_header_GL_gl_h+set}" = set; then
27803   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27804 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27805 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27806   echo $ECHO_N "(cached) $ECHO_C" >&6
27807 fi
27808 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27809 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27810 else
27811   # Is the header compilable?
27812 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27813 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27814 cat >conftest.$ac_ext <<_ACEOF
27815 /* confdefs.h.  */
27816 _ACEOF
27817 cat confdefs.h >>conftest.$ac_ext
27818 cat >>conftest.$ac_ext <<_ACEOF
27819 /* end confdefs.h.  */
27820 $ac_includes_default
27821 #include <GL/gl.h>
27822 _ACEOF
27823 rm -f conftest.$ac_objext
27824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27825   (eval $ac_compile) 2>conftest.er1
27826   ac_status=$?
27827   grep -v '^ *+' conftest.er1 >conftest.err
27828   rm -f conftest.er1
27829   cat conftest.err >&5
27830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831   (exit $ac_status); } &&
27832          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27834   (eval $ac_try) 2>&5
27835   ac_status=$?
27836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837   (exit $ac_status); }; } &&
27838          { ac_try='test -s conftest.$ac_objext'
27839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27840   (eval $ac_try) 2>&5
27841   ac_status=$?
27842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843   (exit $ac_status); }; }; then
27844   ac_header_compiler=yes
27845 else
27846   echo "$as_me: failed program was:" >&5
27847 sed 's/^/| /' conftest.$ac_ext >&5
27848
27849 ac_header_compiler=no
27850 fi
27851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27853 echo "${ECHO_T}$ac_header_compiler" >&6
27854
27855 # Is the header present?
27856 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27857 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27858 cat >conftest.$ac_ext <<_ACEOF
27859 /* confdefs.h.  */
27860 _ACEOF
27861 cat confdefs.h >>conftest.$ac_ext
27862 cat >>conftest.$ac_ext <<_ACEOF
27863 /* end confdefs.h.  */
27864 #include <GL/gl.h>
27865 _ACEOF
27866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27868   ac_status=$?
27869   grep -v '^ *+' conftest.er1 >conftest.err
27870   rm -f conftest.er1
27871   cat conftest.err >&5
27872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27873   (exit $ac_status); } >/dev/null; then
27874   if test -s conftest.err; then
27875     ac_cpp_err=$ac_c_preproc_warn_flag
27876     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27877   else
27878     ac_cpp_err=
27879   fi
27880 else
27881   ac_cpp_err=yes
27882 fi
27883 if test -z "$ac_cpp_err"; then
27884   ac_header_preproc=yes
27885 else
27886   echo "$as_me: failed program was:" >&5
27887 sed 's/^/| /' conftest.$ac_ext >&5
27888
27889   ac_header_preproc=no
27890 fi
27891 rm -f conftest.err conftest.$ac_ext
27892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27893 echo "${ECHO_T}$ac_header_preproc" >&6
27894
27895 # So?  What about this header?
27896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27897   yes:no: )
27898     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27899 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27900     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27901 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27902     ac_header_preproc=yes
27903     ;;
27904   no:yes:* )
27905     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27906 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
27907     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
27908 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
27909     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27910 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27911     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
27912 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27913     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27914 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
27915     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27916 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
27917     (
27918       cat <<\_ASBOX
27919 ## ----------------------------------------- ##
27920 ## Report this to wx-dev@lists.wxwidgets.org ##
27921 ## ----------------------------------------- ##
27922 _ASBOX
27923     ) |
27924       sed "s/^/$as_me: WARNING:     /" >&2
27925     ;;
27926 esac
27927 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27928 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27929 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27930   echo $ECHO_N "(cached) $ECHO_C" >&6
27931 else
27932   ac_cv_header_GL_gl_h=$ac_header_preproc
27933 fi
27934 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27935 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27936
27937 fi
27938 if test $ac_cv_header_GL_gl_h = yes; then
27939
27940                 found_gl=0
27941
27942                 echo "$as_me:$LINENO: checking for -lGL" >&5
27943 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27944
27945 ac_find_libraries=
27946 for ac_dir in $SEARCH_LIB /usr/lib;
27947   do
27948     for ac_extension in a so sl dylib; do
27949       if test -f "$ac_dir/libGL.$ac_extension"; then
27950         ac_find_libraries=$ac_dir
27951         break 2
27952       fi
27953     done
27954   done
27955
27956                 if test "$ac_find_libraries" != "" ; then
27957
27958   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27959   result=$?
27960   if test $result = 0; then
27961     ac_path_to_link=""
27962   else
27963     ac_path_to_link=" -L$ac_find_libraries"
27964   fi
27965
27966                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
27967                         LDFLAGS_GL="$ac_path_to_link"
27968                     fi
27969
27970
27971 ac_find_libraries=
27972 for ac_dir in $SEARCH_LIB /usr/lib;
27973   do
27974     for ac_extension in a so sl dylib; do
27975       if test -f "$ac_dir/libGLU.$ac_extension"; then
27976         ac_find_libraries=$ac_dir
27977         break 2
27978       fi
27979     done
27980   done
27981
27982                     if test "$ac_find_libraries" != "" ; then
27983
27984   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27985   result=$?
27986   if test $result = 0; then
27987     ac_path_to_link=""
27988   else
27989     ac_path_to_link=" -L$ac_find_libraries"
27990   fi
27991
27992                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
27993                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
27994                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27995                         fi
27996
27997                         found_gl=1
27998                         OPENGL_LIBS="-lGL -lGLU"
27999                         echo "$as_me:$LINENO: result: yes" >&5
28000 echo "${ECHO_T}yes" >&6
28001                     fi
28002                 fi
28003
28004                 if test "$found_gl" != 1; then
28005                     echo "$as_me:$LINENO: result: no" >&5
28006 echo "${ECHO_T}no" >&6
28007                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
28008 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
28009
28010 ac_find_libraries=
28011 for ac_dir in $SEARCH_LIB /usr/lib;
28012   do
28013     for ac_extension in a so sl dylib; do
28014       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
28015         ac_find_libraries=$ac_dir
28016         break 2
28017       fi
28018     done
28019   done
28020
28021                     if test "$ac_find_libraries" != "" ; then
28022
28023   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28024   result=$?
28025   if test $result = 0; then
28026     ac_path_to_link=""
28027   else
28028     ac_path_to_link=" -L$ac_find_libraries"
28029   fi
28030
28031                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
28032                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
28033                         echo "$as_me:$LINENO: result: yes" >&5
28034 echo "${ECHO_T}yes" >&6
28035                     else
28036                         echo "$as_me:$LINENO: result: no" >&5
28037 echo "${ECHO_T}no" >&6
28038                     fi
28039                 fi
28040
28041 fi
28042
28043
28044
28045         if test "x$OPENGL_LIBS" = "x"; then
28046                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
28047 echo "$as_me: error: OpenGL libraries not available" >&2;}
28048    { (exit 1); exit 1; }; }
28049         fi
28050     fi
28051
28052     if test "$wxUSE_OPENGL" = "yes"; then
28053         USE_OPENGL=1
28054         cat >>confdefs.h <<\_ACEOF
28055 #define wxUSE_OPENGL 1
28056 _ACEOF
28057
28058         cat >>confdefs.h <<\_ACEOF
28059 #define wxUSE_GLCANVAS 1
28060 _ACEOF
28061
28062         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
28063     fi
28064 fi
28065
28066
28067 if test -n "$TOOLKIT" ; then
28068     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
28069 fi
28070
28071
28072
28073 if test "$wxUSE_SHARED" = "yes"; then
28074     case "${host}" in
28075       *-pc-msdosdjgpp )
28076                 wxUSE_SHARED=no
28077         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
28078 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
28079       ;;
28080     esac
28081 fi
28082
28083 if test "$wxUSE_SHARED" = "yes"; then
28084
28085
28086   found_versioning=no
28087
28088
28089     if test $found_versioning = no ; then
28090       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
28091 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
28092 if test "${wx_cv_version_script+set}" = set; then
28093   echo $ECHO_N "(cached) $ECHO_C" >&6
28094 else
28095
28096         echo "VER_1 { *; };" >conftest.sym
28097         echo "int main() { return 0; }" >conftest.cpp
28098
28099         if { ac_try='
28100                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
28101                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
28102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28103   (eval $ac_try) 2>&5
28104   ac_status=$?
28105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28106   (exit $ac_status); }; } ; then
28107           if test -s conftest.stderr ; then
28108               wx_cv_version_script=no
28109           else
28110               wx_cv_version_script=yes
28111           fi
28112         else
28113           wx_cv_version_script=no
28114         fi
28115         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
28116
28117 fi
28118 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
28119 echo "${ECHO_T}$wx_cv_version_script" >&6
28120       if test $wx_cv_version_script = yes ; then
28121         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
28122       fi
28123   fi
28124
28125
28126     case "${host}" in
28127       *-*-linux* | *-*-gnu* )
28128         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
28129         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
28130         ;;
28131
28132       *-*-solaris2* )
28133         if test "$GCC" = yes ; then
28134                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
28135
28136                                     saveLdflags="$LDFLAGS"
28137             LDFLAGS="$saveLdflags -Wl,-rpath,/"
28138             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
28139 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
28140             cat >conftest.$ac_ext <<_ACEOF
28141 /* confdefs.h.  */
28142 _ACEOF
28143 cat confdefs.h >>conftest.$ac_ext
28144 cat >>conftest.$ac_ext <<_ACEOF
28145 /* end confdefs.h.  */
28146
28147 int
28148 main ()
28149 {
28150
28151   ;
28152   return 0;
28153 }
28154 _ACEOF
28155 rm -f conftest.$ac_objext conftest$ac_exeext
28156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28157   (eval $ac_link) 2>conftest.er1
28158   ac_status=$?
28159   grep -v '^ *+' conftest.er1 >conftest.err
28160   rm -f conftest.er1
28161   cat conftest.err >&5
28162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163   (exit $ac_status); } &&
28164          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28166   (eval $ac_try) 2>&5
28167   ac_status=$?
28168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169   (exit $ac_status); }; } &&
28170          { ac_try='test -s conftest$ac_exeext'
28171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28172   (eval $ac_try) 2>&5
28173   ac_status=$?
28174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175   (exit $ac_status); }; }; then
28176
28177                     echo "$as_me:$LINENO: result: yes" >&5
28178 echo "${ECHO_T}yes" >&6
28179                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
28180                     WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
28181
28182 else
28183   echo "$as_me: failed program was:" >&5
28184 sed 's/^/| /' conftest.$ac_ext >&5
28185
28186
28187                     echo "$as_me:$LINENO: result: no" >&5
28188 echo "${ECHO_T}no" >&6
28189                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
28190 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
28191                     LDFLAGS="$saveLdflags -Wl,-R,/"
28192                     cat >conftest.$ac_ext <<_ACEOF
28193 /* confdefs.h.  */
28194 _ACEOF
28195 cat confdefs.h >>conftest.$ac_ext
28196 cat >>conftest.$ac_ext <<_ACEOF
28197 /* end confdefs.h.  */
28198
28199 int
28200 main ()
28201 {
28202
28203   ;
28204   return 0;
28205 }
28206 _ACEOF
28207 rm -f conftest.$ac_objext conftest$ac_exeext
28208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28209   (eval $ac_link) 2>conftest.er1
28210   ac_status=$?
28211   grep -v '^ *+' conftest.er1 >conftest.err
28212   rm -f conftest.er1
28213   cat conftest.err >&5
28214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215   (exit $ac_status); } &&
28216          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28218   (eval $ac_try) 2>&5
28219   ac_status=$?
28220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221   (exit $ac_status); }; } &&
28222          { ac_try='test -s conftest$ac_exeext'
28223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28224   (eval $ac_try) 2>&5
28225   ac_status=$?
28226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227   (exit $ac_status); }; }; then
28228
28229                             echo "$as_me:$LINENO: result: yes" >&5
28230 echo "${ECHO_T}yes" >&6
28231                             SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28232                             WXCONFIG_RPATH="-Wl,-R,\$libdir"
28233
28234 else
28235   echo "$as_me: failed program was:" >&5
28236 sed 's/^/| /' conftest.$ac_ext >&5
28237
28238
28239                             echo "$as_me:$LINENO: result: no" >&5
28240 echo "${ECHO_T}no" >&6
28241
28242 fi
28243 rm -f conftest.err conftest.$ac_objext \
28244       conftest$ac_exeext conftest.$ac_ext
28245
28246 fi
28247 rm -f conftest.err conftest.$ac_objext \
28248       conftest$ac_exeext conftest.$ac_ext
28249             LDFLAGS="$saveLdflags"
28250         else
28251             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
28252             WXCONFIG_RPATH="-R\$libdir"
28253         fi
28254       ;;
28255
28256       powerpc-*-darwin* )
28257         SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28258         cat <<EOF >change-install-names
28259 #!/bin/sh
28260 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28261 inst_cmd="install_name_tool "
28262 for i in \${libnames} ; do
28263     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28264 done
28265 \${inst_cmd} \${3}
28266 EOF
28267         chmod +x change-install-names
28268       ;;
28269
28270       *-*-cygwin* | *-*-mingw32* )
28271         TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28272         ;;
28273
28274     esac
28275
28276     if test $wxUSE_RPATH = "no"; then
28277         SAMPLES_RPATH_FLAG=''
28278         SAMPLES_RPATH_POSTLINK=''
28279         WXCONFIG_RPATH=''
28280     fi
28281
28282     SHARED=1
28283
28284 else
28285
28286     config_linkage_component="-static"
28287     SHARED=0
28288
28289 fi
28290
28291
28292 UNICODE=0
28293 lib_unicode_suffix=
28294 WX_CHARTYPE="ansi"
28295 if test "$wxUSE_UNICODE" = "yes"; then
28296     lib_unicode_suffix=u
28297     WX_CHARTYPE="unicode"
28298     UNICODE=1
28299 fi
28300
28301 lib_debug_suffix=
28302 WX_DEBUGTYPE="release"
28303 DEBUG_FLAG=0
28304 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
28305     lib_debug_suffix=d
28306     WX_DEBUGTYPE="debug"
28307     DEBUG_FLAG=1
28308 fi
28309
28310 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
28311 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
28312
28313 DEBUG_INFO=0
28314 if test "$wxUSE_DEBUG_INFO" = "yes"; then
28315     DEBUG_INFO=1
28316 fi
28317
28318 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
28319
28320 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
28321
28322 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
28323
28324 if test "$cross_compiling" = "yes"; then
28325     HOST_SUFFIX="-$host_alias"
28326     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
28327     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
28328 fi
28329
28330 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
28331 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
28332
28333
28334
28335 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
28336             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
28337     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
28338
28339         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
28340
28341     # Extract the first word of "Rez", so it can be a program name with args.
28342 set dummy Rez; ac_word=$2
28343 echo "$as_me:$LINENO: checking for $ac_word" >&5
28344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28345 if test "${ac_cv_prog_RESCOMP+set}" = set; then
28346   echo $ECHO_N "(cached) $ECHO_C" >&6
28347 else
28348   if test -n "$RESCOMP"; then
28349   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28350 else
28351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28352 for as_dir in $PATH
28353 do
28354   IFS=$as_save_IFS
28355   test -z "$as_dir" && as_dir=.
28356   for ac_exec_ext in '' $ac_executable_extensions; do
28357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28358     ac_cv_prog_RESCOMP="Rez"
28359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28360     break 2
28361   fi
28362 done
28363 done
28364
28365   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28366 fi
28367 fi
28368 RESCOMP=$ac_cv_prog_RESCOMP
28369 if test -n "$RESCOMP"; then
28370   echo "$as_me:$LINENO: result: $RESCOMP" >&5
28371 echo "${ECHO_T}$RESCOMP" >&6
28372 else
28373   echo "$as_me:$LINENO: result: no" >&5
28374 echo "${ECHO_T}no" >&6
28375 fi
28376
28377     # Extract the first word of "DeRez", so it can be a program name with args.
28378 set dummy DeRez; ac_word=$2
28379 echo "$as_me:$LINENO: checking for $ac_word" >&5
28380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28381 if test "${ac_cv_prog_DEREZ+set}" = set; then
28382   echo $ECHO_N "(cached) $ECHO_C" >&6
28383 else
28384   if test -n "$DEREZ"; then
28385   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28386 else
28387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28388 for as_dir in $PATH
28389 do
28390   IFS=$as_save_IFS
28391   test -z "$as_dir" && as_dir=.
28392   for ac_exec_ext in '' $ac_executable_extensions; do
28393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28394     ac_cv_prog_DEREZ="DeRez"
28395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28396     break 2
28397   fi
28398 done
28399 done
28400
28401   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28402 fi
28403 fi
28404 DEREZ=$ac_cv_prog_DEREZ
28405 if test -n "$DEREZ"; then
28406   echo "$as_me:$LINENO: result: $DEREZ" >&5
28407 echo "${ECHO_T}$DEREZ" >&6
28408 else
28409   echo "$as_me:$LINENO: result: no" >&5
28410 echo "${ECHO_T}no" >&6
28411 fi
28412
28413     # Extract the first word of "SetFile", so it can be a program name with args.
28414 set dummy SetFile; ac_word=$2
28415 echo "$as_me:$LINENO: checking for $ac_word" >&5
28416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28417 if test "${ac_cv_prog_SETFILE+set}" = set; then
28418   echo $ECHO_N "(cached) $ECHO_C" >&6
28419 else
28420   if test -n "$SETFILE"; then
28421   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28422 else
28423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28424 for as_dir in $PATH
28425 do
28426   IFS=$as_save_IFS
28427   test -z "$as_dir" && as_dir=.
28428   for ac_exec_ext in '' $ac_executable_extensions; do
28429   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28430     ac_cv_prog_SETFILE="SetFile"
28431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28432     break 2
28433   fi
28434 done
28435 done
28436
28437   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28438 fi
28439 fi
28440 SETFILE=$ac_cv_prog_SETFILE
28441 if test -n "$SETFILE"; then
28442   echo "$as_me:$LINENO: result: $SETFILE" >&5
28443 echo "${ECHO_T}$SETFILE" >&6
28444 else
28445   echo "$as_me:$LINENO: result: no" >&5
28446 echo "${ECHO_T}no" >&6
28447 fi
28448
28449
28450     MACSETFILE="\$(SETFILE)"
28451
28452             if test "$wxUSE_MAC" = 1; then
28453         MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28454
28455                         MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28456     else
28457         MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28458         MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28459     fi
28460 else
28461         MACSETFILE="@true"
28462     MACRESWXCONFIG="@true"
28463
28464         if test "$wxUSE_PM" = 1; then
28465         MACRESCOMP="emxbind -ep"
28466     else
28467         MACRESCOMP="@true"
28468     fi
28469 fi
28470
28471
28472
28473 echo "$as_me:$LINENO: checking for mode_t" >&5
28474 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28475 if test "${ac_cv_type_mode_t+set}" = set; then
28476   echo $ECHO_N "(cached) $ECHO_C" >&6
28477 else
28478   cat >conftest.$ac_ext <<_ACEOF
28479 /* confdefs.h.  */
28480 _ACEOF
28481 cat confdefs.h >>conftest.$ac_ext
28482 cat >>conftest.$ac_ext <<_ACEOF
28483 /* end confdefs.h.  */
28484 $ac_includes_default
28485 int
28486 main ()
28487 {
28488 if ((mode_t *) 0)
28489   return 0;
28490 if (sizeof (mode_t))
28491   return 0;
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   ac_cv_type_mode_t=yes
28518 else
28519   echo "$as_me: failed program was:" >&5
28520 sed 's/^/| /' conftest.$ac_ext >&5
28521
28522 ac_cv_type_mode_t=no
28523 fi
28524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28525 fi
28526 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28527 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28528 if test $ac_cv_type_mode_t = yes; then
28529   :
28530 else
28531
28532 cat >>confdefs.h <<_ACEOF
28533 #define mode_t int
28534 _ACEOF
28535
28536 fi
28537
28538 echo "$as_me:$LINENO: checking for off_t" >&5
28539 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28540 if test "${ac_cv_type_off_t+set}" = set; then
28541   echo $ECHO_N "(cached) $ECHO_C" >&6
28542 else
28543   cat >conftest.$ac_ext <<_ACEOF
28544 /* confdefs.h.  */
28545 _ACEOF
28546 cat confdefs.h >>conftest.$ac_ext
28547 cat >>conftest.$ac_ext <<_ACEOF
28548 /* end confdefs.h.  */
28549 $ac_includes_default
28550 int
28551 main ()
28552 {
28553 if ((off_t *) 0)
28554   return 0;
28555 if (sizeof (off_t))
28556   return 0;
28557   ;
28558   return 0;
28559 }
28560 _ACEOF
28561 rm -f conftest.$ac_objext
28562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28563   (eval $ac_compile) 2>conftest.er1
28564   ac_status=$?
28565   grep -v '^ *+' conftest.er1 >conftest.err
28566   rm -f conftest.er1
28567   cat conftest.err >&5
28568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569   (exit $ac_status); } &&
28570          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28572   (eval $ac_try) 2>&5
28573   ac_status=$?
28574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575   (exit $ac_status); }; } &&
28576          { ac_try='test -s conftest.$ac_objext'
28577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28578   (eval $ac_try) 2>&5
28579   ac_status=$?
28580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581   (exit $ac_status); }; }; then
28582   ac_cv_type_off_t=yes
28583 else
28584   echo "$as_me: failed program was:" >&5
28585 sed 's/^/| /' conftest.$ac_ext >&5
28586
28587 ac_cv_type_off_t=no
28588 fi
28589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28590 fi
28591 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28592 echo "${ECHO_T}$ac_cv_type_off_t" >&6
28593 if test $ac_cv_type_off_t = yes; then
28594   :
28595 else
28596
28597 cat >>confdefs.h <<_ACEOF
28598 #define off_t long
28599 _ACEOF
28600
28601 fi
28602
28603 echo "$as_me:$LINENO: checking for pid_t" >&5
28604 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28605 if test "${ac_cv_type_pid_t+set}" = set; then
28606   echo $ECHO_N "(cached) $ECHO_C" >&6
28607 else
28608   cat >conftest.$ac_ext <<_ACEOF
28609 /* confdefs.h.  */
28610 _ACEOF
28611 cat confdefs.h >>conftest.$ac_ext
28612 cat >>conftest.$ac_ext <<_ACEOF
28613 /* end confdefs.h.  */
28614 $ac_includes_default
28615 int
28616 main ()
28617 {
28618 if ((pid_t *) 0)
28619   return 0;
28620 if (sizeof (pid_t))
28621   return 0;
28622   ;
28623   return 0;
28624 }
28625 _ACEOF
28626 rm -f conftest.$ac_objext
28627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28628   (eval $ac_compile) 2>conftest.er1
28629   ac_status=$?
28630   grep -v '^ *+' conftest.er1 >conftest.err
28631   rm -f conftest.er1
28632   cat conftest.err >&5
28633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634   (exit $ac_status); } &&
28635          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28637   (eval $ac_try) 2>&5
28638   ac_status=$?
28639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640   (exit $ac_status); }; } &&
28641          { ac_try='test -s conftest.$ac_objext'
28642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28643   (eval $ac_try) 2>&5
28644   ac_status=$?
28645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646   (exit $ac_status); }; }; then
28647   ac_cv_type_pid_t=yes
28648 else
28649   echo "$as_me: failed program was:" >&5
28650 sed 's/^/| /' conftest.$ac_ext >&5
28651
28652 ac_cv_type_pid_t=no
28653 fi
28654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28655 fi
28656 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28657 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28658 if test $ac_cv_type_pid_t = yes; then
28659   :
28660 else
28661
28662 cat >>confdefs.h <<_ACEOF
28663 #define pid_t int
28664 _ACEOF
28665
28666 fi
28667
28668 echo "$as_me:$LINENO: checking for size_t" >&5
28669 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28670 if test "${ac_cv_type_size_t+set}" = set; then
28671   echo $ECHO_N "(cached) $ECHO_C" >&6
28672 else
28673   cat >conftest.$ac_ext <<_ACEOF
28674 /* confdefs.h.  */
28675 _ACEOF
28676 cat confdefs.h >>conftest.$ac_ext
28677 cat >>conftest.$ac_ext <<_ACEOF
28678 /* end confdefs.h.  */
28679 $ac_includes_default
28680 int
28681 main ()
28682 {
28683 if ((size_t *) 0)
28684   return 0;
28685 if (sizeof (size_t))
28686   return 0;
28687   ;
28688   return 0;
28689 }
28690 _ACEOF
28691 rm -f conftest.$ac_objext
28692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28693   (eval $ac_compile) 2>conftest.er1
28694   ac_status=$?
28695   grep -v '^ *+' conftest.er1 >conftest.err
28696   rm -f conftest.er1
28697   cat conftest.err >&5
28698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699   (exit $ac_status); } &&
28700          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28702   (eval $ac_try) 2>&5
28703   ac_status=$?
28704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705   (exit $ac_status); }; } &&
28706          { ac_try='test -s conftest.$ac_objext'
28707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28708   (eval $ac_try) 2>&5
28709   ac_status=$?
28710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711   (exit $ac_status); }; }; then
28712   ac_cv_type_size_t=yes
28713 else
28714   echo "$as_me: failed program was:" >&5
28715 sed 's/^/| /' conftest.$ac_ext >&5
28716
28717 ac_cv_type_size_t=no
28718 fi
28719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28720 fi
28721 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28722 echo "${ECHO_T}$ac_cv_type_size_t" >&6
28723 if test $ac_cv_type_size_t = yes; then
28724   :
28725 else
28726
28727 cat >>confdefs.h <<_ACEOF
28728 #define size_t unsigned
28729 _ACEOF
28730
28731 fi
28732
28733 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28734 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28735 if test "${ac_cv_type_uid_t+set}" = set; then
28736   echo $ECHO_N "(cached) $ECHO_C" >&6
28737 else
28738   cat >conftest.$ac_ext <<_ACEOF
28739 /* confdefs.h.  */
28740 _ACEOF
28741 cat confdefs.h >>conftest.$ac_ext
28742 cat >>conftest.$ac_ext <<_ACEOF
28743 /* end confdefs.h.  */
28744 #include <sys/types.h>
28745
28746 _ACEOF
28747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28748   $EGREP "uid_t" >/dev/null 2>&1; then
28749   ac_cv_type_uid_t=yes
28750 else
28751   ac_cv_type_uid_t=no
28752 fi
28753 rm -f conftest*
28754
28755 fi
28756 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28757 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28758 if test $ac_cv_type_uid_t = no; then
28759
28760 cat >>confdefs.h <<\_ACEOF
28761 #define uid_t int
28762 _ACEOF
28763
28764
28765 cat >>confdefs.h <<\_ACEOF
28766 #define gid_t int
28767 _ACEOF
28768
28769 fi
28770
28771
28772 echo "$as_me:$LINENO: checking for ssize_t" >&5
28773 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
28774 if test "${ac_cv_type_ssize_t+set}" = set; then
28775   echo $ECHO_N "(cached) $ECHO_C" >&6
28776 else
28777   cat >conftest.$ac_ext <<_ACEOF
28778 /* confdefs.h.  */
28779 _ACEOF
28780 cat confdefs.h >>conftest.$ac_ext
28781 cat >>conftest.$ac_ext <<_ACEOF
28782 /* end confdefs.h.  */
28783 $ac_includes_default
28784 int
28785 main ()
28786 {
28787 if ((ssize_t *) 0)
28788   return 0;
28789 if (sizeof (ssize_t))
28790   return 0;
28791   ;
28792   return 0;
28793 }
28794 _ACEOF
28795 rm -f conftest.$ac_objext
28796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28797   (eval $ac_compile) 2>conftest.er1
28798   ac_status=$?
28799   grep -v '^ *+' conftest.er1 >conftest.err
28800   rm -f conftest.er1
28801   cat conftest.err >&5
28802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803   (exit $ac_status); } &&
28804          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28806   (eval $ac_try) 2>&5
28807   ac_status=$?
28808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809   (exit $ac_status); }; } &&
28810          { ac_try='test -s conftest.$ac_objext'
28811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28812   (eval $ac_try) 2>&5
28813   ac_status=$?
28814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815   (exit $ac_status); }; }; then
28816   ac_cv_type_ssize_t=yes
28817 else
28818   echo "$as_me: failed program was:" >&5
28819 sed 's/^/| /' conftest.$ac_ext >&5
28820
28821 ac_cv_type_ssize_t=no
28822 fi
28823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28824 fi
28825 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
28826 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
28827 if test $ac_cv_type_ssize_t = yes; then
28828
28829 cat >>confdefs.h <<_ACEOF
28830 #define HAVE_SSIZE_T 1
28831 _ACEOF
28832
28833
28834 fi
28835
28836
28837
28838
28839 ac_ext=cc
28840 ac_cpp='$CXXCPP $CPPFLAGS'
28841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28844
28845 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28846 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28847 if test "${wx_cv_size_t_is_uint+set}" = set; then
28848   echo $ECHO_N "(cached) $ECHO_C" >&6
28849 else
28850
28851                             cat >conftest.$ac_ext <<_ACEOF
28852 /* confdefs.h.  */
28853 _ACEOF
28854 cat confdefs.h >>conftest.$ac_ext
28855 cat >>conftest.$ac_ext <<_ACEOF
28856 /* end confdefs.h.  */
28857 #include <stddef.h>
28858 int
28859 main ()
28860 {
28861
28862             return 0; }
28863
28864             struct Foo { void foo(size_t); void foo(unsigned int); };
28865
28866             int bar() {
28867
28868   ;
28869   return 0;
28870 }
28871 _ACEOF
28872 rm -f conftest.$ac_objext
28873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28874   (eval $ac_compile) 2>conftest.er1
28875   ac_status=$?
28876   grep -v '^ *+' conftest.er1 >conftest.err
28877   rm -f conftest.er1
28878   cat conftest.err >&5
28879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880   (exit $ac_status); } &&
28881          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28883   (eval $ac_try) 2>&5
28884   ac_status=$?
28885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886   (exit $ac_status); }; } &&
28887          { ac_try='test -s conftest.$ac_objext'
28888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28889   (eval $ac_try) 2>&5
28890   ac_status=$?
28891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892   (exit $ac_status); }; }; then
28893   wx_cv_size_t_is_uint=no
28894 else
28895   echo "$as_me: failed program was:" >&5
28896 sed 's/^/| /' conftest.$ac_ext >&5
28897
28898 wx_cv_size_t_is_uint=yes
28899
28900 fi
28901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28902
28903
28904 fi
28905 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28906 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28907
28908 if test "$wx_cv_size_t_is_uint" = "yes"; then
28909     cat >>confdefs.h <<\_ACEOF
28910 #define wxSIZE_T_IS_UINT 1
28911 _ACEOF
28912
28913 else
28914     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28915 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28916 if test "${wx_cv_size_t_is_ulong+set}" = set; then
28917   echo $ECHO_N "(cached) $ECHO_C" >&6
28918 else
28919   cat >conftest.$ac_ext <<_ACEOF
28920 /* confdefs.h.  */
28921 _ACEOF
28922 cat confdefs.h >>conftest.$ac_ext
28923 cat >>conftest.$ac_ext <<_ACEOF
28924 /* end confdefs.h.  */
28925 #include <stddef.h>
28926 int
28927 main ()
28928 {
28929
28930                 return 0; }
28931
28932                 struct Foo { void foo(size_t); void foo(unsigned long); };
28933
28934                 int bar() {
28935
28936   ;
28937   return 0;
28938 }
28939 _ACEOF
28940 rm -f conftest.$ac_objext
28941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28942   (eval $ac_compile) 2>conftest.er1
28943   ac_status=$?
28944   grep -v '^ *+' conftest.er1 >conftest.err
28945   rm -f conftest.er1
28946   cat conftest.err >&5
28947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948   (exit $ac_status); } &&
28949          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
28950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28951   (eval $ac_try) 2>&5
28952   ac_status=$?
28953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954   (exit $ac_status); }; } &&
28955          { ac_try='test -s conftest.$ac_objext'
28956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28957   (eval $ac_try) 2>&5
28958   ac_status=$?
28959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960   (exit $ac_status); }; }; then
28961   wx_cv_size_t_is_ulong=no
28962 else
28963   echo "$as_me: failed program was:" >&5
28964 sed 's/^/| /' conftest.$ac_ext >&5
28965
28966 wx_cv_size_t_is_ulong=yes
28967
28968 fi
28969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28970
28971 fi
28972 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28973 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28974
28975     if test "$wx_cv_size_t_is_ulong" = "yes"; then
28976         cat >>confdefs.h <<\_ACEOF
28977 #define wxSIZE_T_IS_ULONG 1
28978 _ACEOF
28979
28980     fi
28981 fi
28982
28983 ac_ext=c
28984 ac_cpp='$CPP $CPPFLAGS'
28985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28988
28989
28990
28991 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28992 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28993 if test "${wx_cv_struct_pw_gecos+set}" = set; then
28994   echo $ECHO_N "(cached) $ECHO_C" >&6
28995 else
28996
28997         cat >conftest.$ac_ext <<_ACEOF
28998 /* confdefs.h.  */
28999 _ACEOF
29000 cat confdefs.h >>conftest.$ac_ext
29001 cat >>conftest.$ac_ext <<_ACEOF
29002 /* end confdefs.h.  */
29003 #include <pwd.h>
29004 int
29005 main ()
29006 {
29007
29008                 char *p;
29009                 struct passwd *pw;
29010                 p = pw->pw_gecos;
29011
29012   ;
29013   return 0;
29014 }
29015 _ACEOF
29016 rm -f conftest.$ac_objext
29017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29018   (eval $ac_compile) 2>conftest.er1
29019   ac_status=$?
29020   grep -v '^ *+' conftest.er1 >conftest.err
29021   rm -f conftest.er1
29022   cat conftest.err >&5
29023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024   (exit $ac_status); } &&
29025          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29027   (eval $ac_try) 2>&5
29028   ac_status=$?
29029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030   (exit $ac_status); }; } &&
29031          { ac_try='test -s conftest.$ac_objext'
29032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29033   (eval $ac_try) 2>&5
29034   ac_status=$?
29035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29036   (exit $ac_status); }; }; then
29037
29038                 wx_cv_struct_pw_gecos=yes
29039
29040 else
29041   echo "$as_me: failed program was:" >&5
29042 sed 's/^/| /' conftest.$ac_ext >&5
29043
29044
29045                 wx_cv_struct_pw_gecos=no
29046
29047
29048 fi
29049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29050
29051
29052 fi
29053 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
29054 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
29055
29056 if test "$wx_cv_struct_pw_gecos" = "yes"; then
29057     cat >>confdefs.h <<\_ACEOF
29058 #define HAVE_PW_GECOS 1
29059 _ACEOF
29060
29061 fi
29062
29063
29064 if test "$wx_cv_sizeof_wchar_t" != "0"; then
29065     cat >>confdefs.h <<\_ACEOF
29066 #define wxUSE_WCHAR_T 1
29067 _ACEOF
29068
29069
29070         WCSLEN_FOUND=0
29071     WCHAR_LINK=
29072
29073 for ac_func in wcslen
29074 do
29075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29076 echo "$as_me:$LINENO: checking for $ac_func" >&5
29077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29078 if eval "test \"\${$as_ac_var+set}\" = set"; then
29079   echo $ECHO_N "(cached) $ECHO_C" >&6
29080 else
29081   cat >conftest.$ac_ext <<_ACEOF
29082 /* confdefs.h.  */
29083 _ACEOF
29084 cat confdefs.h >>conftest.$ac_ext
29085 cat >>conftest.$ac_ext <<_ACEOF
29086 /* end confdefs.h.  */
29087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29089 #define $ac_func innocuous_$ac_func
29090
29091 /* System header to define __stub macros and hopefully few prototypes,
29092     which can conflict with char $ac_func (); below.
29093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29094     <limits.h> exists even on freestanding compilers.  */
29095
29096 #ifdef __STDC__
29097 # include <limits.h>
29098 #else
29099 # include <assert.h>
29100 #endif
29101
29102 #undef $ac_func
29103
29104 /* Override any gcc2 internal prototype to avoid an error.  */
29105 #ifdef __cplusplus
29106 extern "C"
29107 {
29108 #endif
29109 /* We use char because int might match the return type of a gcc2
29110    builtin and then its argument prototype would still apply.  */
29111 char $ac_func ();
29112 /* The GNU C library defines this for functions which it implements
29113     to always fail with ENOSYS.  Some functions are actually named
29114     something starting with __ and the normal name is an alias.  */
29115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29116 choke me
29117 #else
29118 char (*f) () = $ac_func;
29119 #endif
29120 #ifdef __cplusplus
29121 }
29122 #endif
29123
29124 int
29125 main ()
29126 {
29127 return f != $ac_func;
29128   ;
29129   return 0;
29130 }
29131 _ACEOF
29132 rm -f conftest.$ac_objext conftest$ac_exeext
29133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29134   (eval $ac_link) 2>conftest.er1
29135   ac_status=$?
29136   grep -v '^ *+' conftest.er1 >conftest.err
29137   rm -f conftest.er1
29138   cat conftest.err >&5
29139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140   (exit $ac_status); } &&
29141          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29143   (eval $ac_try) 2>&5
29144   ac_status=$?
29145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146   (exit $ac_status); }; } &&
29147          { ac_try='test -s conftest$ac_exeext'
29148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29149   (eval $ac_try) 2>&5
29150   ac_status=$?
29151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152   (exit $ac_status); }; }; then
29153   eval "$as_ac_var=yes"
29154 else
29155   echo "$as_me: failed program was:" >&5
29156 sed 's/^/| /' conftest.$ac_ext >&5
29157
29158 eval "$as_ac_var=no"
29159 fi
29160 rm -f conftest.err conftest.$ac_objext \
29161       conftest$ac_exeext conftest.$ac_ext
29162 fi
29163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29165 if test `eval echo '${'$as_ac_var'}'` = yes; then
29166   cat >>confdefs.h <<_ACEOF
29167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29168 _ACEOF
29169  WCSLEN_FOUND=1
29170 fi
29171 done
29172
29173
29174     if test "$WCSLEN_FOUND" = 0; then
29175         if test "$TOOLKIT" = "MSW"; then
29176             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
29177 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
29178 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
29179   echo $ECHO_N "(cached) $ECHO_C" >&6
29180 else
29181   ac_check_lib_save_LIBS=$LIBS
29182 LIBS="-lmsvcrt  $LIBS"
29183 cat >conftest.$ac_ext <<_ACEOF
29184 /* confdefs.h.  */
29185 _ACEOF
29186 cat confdefs.h >>conftest.$ac_ext
29187 cat >>conftest.$ac_ext <<_ACEOF
29188 /* end confdefs.h.  */
29189
29190 /* Override any gcc2 internal prototype to avoid an error.  */
29191 #ifdef __cplusplus
29192 extern "C"
29193 #endif
29194 /* We use char because int might match the return type of a gcc2
29195    builtin and then its argument prototype would still apply.  */
29196 char wcslen ();
29197 int
29198 main ()
29199 {
29200 wcslen ();
29201   ;
29202   return 0;
29203 }
29204 _ACEOF
29205 rm -f conftest.$ac_objext conftest$ac_exeext
29206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29207   (eval $ac_link) 2>conftest.er1
29208   ac_status=$?
29209   grep -v '^ *+' conftest.er1 >conftest.err
29210   rm -f conftest.er1
29211   cat conftest.err >&5
29212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213   (exit $ac_status); } &&
29214          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29216   (eval $ac_try) 2>&5
29217   ac_status=$?
29218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219   (exit $ac_status); }; } &&
29220          { ac_try='test -s conftest$ac_exeext'
29221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29222   (eval $ac_try) 2>&5
29223   ac_status=$?
29224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225   (exit $ac_status); }; }; then
29226   ac_cv_lib_msvcrt_wcslen=yes
29227 else
29228   echo "$as_me: failed program was:" >&5
29229 sed 's/^/| /' conftest.$ac_ext >&5
29230
29231 ac_cv_lib_msvcrt_wcslen=no
29232 fi
29233 rm -f conftest.err conftest.$ac_objext \
29234       conftest$ac_exeext conftest.$ac_ext
29235 LIBS=$ac_check_lib_save_LIBS
29236 fi
29237 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
29238 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29239 if test $ac_cv_lib_msvcrt_wcslen = yes; then
29240   WCHAR_OK=1
29241 fi
29242
29243         else
29244             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29245 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29246 if test "${ac_cv_lib_w_wcslen+set}" = set; then
29247   echo $ECHO_N "(cached) $ECHO_C" >&6
29248 else
29249   ac_check_lib_save_LIBS=$LIBS
29250 LIBS="-lw  $LIBS"
29251 cat >conftest.$ac_ext <<_ACEOF
29252 /* confdefs.h.  */
29253 _ACEOF
29254 cat confdefs.h >>conftest.$ac_ext
29255 cat >>conftest.$ac_ext <<_ACEOF
29256 /* end confdefs.h.  */
29257
29258 /* Override any gcc2 internal prototype to avoid an error.  */
29259 #ifdef __cplusplus
29260 extern "C"
29261 #endif
29262 /* We use char because int might match the return type of a gcc2
29263    builtin and then its argument prototype would still apply.  */
29264 char wcslen ();
29265 int
29266 main ()
29267 {
29268 wcslen ();
29269   ;
29270   return 0;
29271 }
29272 _ACEOF
29273 rm -f conftest.$ac_objext conftest$ac_exeext
29274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29275   (eval $ac_link) 2>conftest.er1
29276   ac_status=$?
29277   grep -v '^ *+' conftest.er1 >conftest.err
29278   rm -f conftest.er1
29279   cat conftest.err >&5
29280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281   (exit $ac_status); } &&
29282          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29284   (eval $ac_try) 2>&5
29285   ac_status=$?
29286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287   (exit $ac_status); }; } &&
29288          { ac_try='test -s conftest$ac_exeext'
29289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29290   (eval $ac_try) 2>&5
29291   ac_status=$?
29292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293   (exit $ac_status); }; }; then
29294   ac_cv_lib_w_wcslen=yes
29295 else
29296   echo "$as_me: failed program was:" >&5
29297 sed 's/^/| /' conftest.$ac_ext >&5
29298
29299 ac_cv_lib_w_wcslen=no
29300 fi
29301 rm -f conftest.err conftest.$ac_objext \
29302       conftest$ac_exeext conftest.$ac_ext
29303 LIBS=$ac_check_lib_save_LIBS
29304 fi
29305 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29306 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29307 if test $ac_cv_lib_w_wcslen = yes; then
29308
29309                             WCHAR_LINK=" -lw"
29310                             WCSLEN_FOUND=1
29311
29312 fi
29313
29314         fi
29315     fi
29316
29317     if test "$WCSLEN_FOUND" = 1; then
29318         cat >>confdefs.h <<\_ACEOF
29319 #define HAVE_WCSLEN 1
29320 _ACEOF
29321
29322     fi
29323
29324         if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
29325         CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29326     fi
29327
29328
29329 for ac_func in wcsrtombs
29330 do
29331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29332 echo "$as_me:$LINENO: checking for $ac_func" >&5
29333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29334 if eval "test \"\${$as_ac_var+set}\" = set"; then
29335   echo $ECHO_N "(cached) $ECHO_C" >&6
29336 else
29337   cat >conftest.$ac_ext <<_ACEOF
29338 /* confdefs.h.  */
29339 _ACEOF
29340 cat confdefs.h >>conftest.$ac_ext
29341 cat >>conftest.$ac_ext <<_ACEOF
29342 /* end confdefs.h.  */
29343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29345 #define $ac_func innocuous_$ac_func
29346
29347 /* System header to define __stub macros and hopefully few prototypes,
29348     which can conflict with char $ac_func (); below.
29349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29350     <limits.h> exists even on freestanding compilers.  */
29351
29352 #ifdef __STDC__
29353 # include <limits.h>
29354 #else
29355 # include <assert.h>
29356 #endif
29357
29358 #undef $ac_func
29359
29360 /* Override any gcc2 internal prototype to avoid an error.  */
29361 #ifdef __cplusplus
29362 extern "C"
29363 {
29364 #endif
29365 /* We use char because int might match the return type of a gcc2
29366    builtin and then its argument prototype would still apply.  */
29367 char $ac_func ();
29368 /* The GNU C library defines this for functions which it implements
29369     to always fail with ENOSYS.  Some functions are actually named
29370     something starting with __ and the normal name is an alias.  */
29371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29372 choke me
29373 #else
29374 char (*f) () = $ac_func;
29375 #endif
29376 #ifdef __cplusplus
29377 }
29378 #endif
29379
29380 int
29381 main ()
29382 {
29383 return f != $ac_func;
29384   ;
29385   return 0;
29386 }
29387 _ACEOF
29388 rm -f conftest.$ac_objext conftest$ac_exeext
29389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29390   (eval $ac_link) 2>conftest.er1
29391   ac_status=$?
29392   grep -v '^ *+' conftest.er1 >conftest.err
29393   rm -f conftest.er1
29394   cat conftest.err >&5
29395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396   (exit $ac_status); } &&
29397          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29399   (eval $ac_try) 2>&5
29400   ac_status=$?
29401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402   (exit $ac_status); }; } &&
29403          { ac_try='test -s conftest$ac_exeext'
29404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405   (eval $ac_try) 2>&5
29406   ac_status=$?
29407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408   (exit $ac_status); }; }; then
29409   eval "$as_ac_var=yes"
29410 else
29411   echo "$as_me: failed program was:" >&5
29412 sed 's/^/| /' conftest.$ac_ext >&5
29413
29414 eval "$as_ac_var=no"
29415 fi
29416 rm -f conftest.err conftest.$ac_objext \
29417       conftest$ac_exeext conftest.$ac_ext
29418 fi
29419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29421 if test `eval echo '${'$as_ac_var'}'` = yes; then
29422   cat >>confdefs.h <<_ACEOF
29423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29424 _ACEOF
29425
29426 fi
29427 done
29428
29429 else
29430     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29431 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29432 fi
29433
29434
29435
29436 ac_ext=cc
29437 ac_cpp='$CXXCPP $CPPFLAGS'
29438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29441
29442
29443
29444 for ac_func in vsnprintf
29445 do
29446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29447 echo "$as_me:$LINENO: checking for $ac_func" >&5
29448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29449 if eval "test \"\${$as_ac_var+set}\" = set"; then
29450   echo $ECHO_N "(cached) $ECHO_C" >&6
29451 else
29452   cat >conftest.$ac_ext <<_ACEOF
29453 /* confdefs.h.  */
29454 _ACEOF
29455 cat confdefs.h >>conftest.$ac_ext
29456 cat >>conftest.$ac_ext <<_ACEOF
29457 /* end confdefs.h.  */
29458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29460 #define $ac_func innocuous_$ac_func
29461
29462 /* System header to define __stub macros and hopefully few prototypes,
29463     which can conflict with char $ac_func (); below.
29464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29465     <limits.h> exists even on freestanding compilers.  */
29466
29467 #ifdef __STDC__
29468 # include <limits.h>
29469 #else
29470 # include <assert.h>
29471 #endif
29472
29473 #undef $ac_func
29474
29475 /* Override any gcc2 internal prototype to avoid an error.  */
29476 #ifdef __cplusplus
29477 extern "C"
29478 {
29479 #endif
29480 /* We use char because int might match the return type of a gcc2
29481    builtin and then its argument prototype would still apply.  */
29482 char $ac_func ();
29483 /* The GNU C library defines this for functions which it implements
29484     to always fail with ENOSYS.  Some functions are actually named
29485     something starting with __ and the normal name is an alias.  */
29486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29487 choke me
29488 #else
29489 char (*f) () = $ac_func;
29490 #endif
29491 #ifdef __cplusplus
29492 }
29493 #endif
29494
29495 int
29496 main ()
29497 {
29498 return f != $ac_func;
29499   ;
29500   return 0;
29501 }
29502 _ACEOF
29503 rm -f conftest.$ac_objext conftest$ac_exeext
29504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29505   (eval $ac_link) 2>conftest.er1
29506   ac_status=$?
29507   grep -v '^ *+' conftest.er1 >conftest.err
29508   rm -f conftest.er1
29509   cat conftest.err >&5
29510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511   (exit $ac_status); } &&
29512          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29514   (eval $ac_try) 2>&5
29515   ac_status=$?
29516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517   (exit $ac_status); }; } &&
29518          { ac_try='test -s conftest$ac_exeext'
29519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29520   (eval $ac_try) 2>&5
29521   ac_status=$?
29522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523   (exit $ac_status); }; }; then
29524   eval "$as_ac_var=yes"
29525 else
29526   echo "$as_me: failed program was:" >&5
29527 sed 's/^/| /' conftest.$ac_ext >&5
29528
29529 eval "$as_ac_var=no"
29530 fi
29531 rm -f conftest.err conftest.$ac_objext \
29532       conftest$ac_exeext conftest.$ac_ext
29533 fi
29534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29536 if test `eval echo '${'$as_ac_var'}'` = yes; then
29537   cat >>confdefs.h <<_ACEOF
29538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29539 _ACEOF
29540
29541 fi
29542 done
29543
29544
29545 if test "$ac_cv_func_vsnprintf" = "yes"; then
29546         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29547 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29548 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29549   echo $ECHO_N "(cached) $ECHO_C" >&6
29550 else
29551
29552             cat >conftest.$ac_ext <<_ACEOF
29553 /* confdefs.h.  */
29554 _ACEOF
29555 cat confdefs.h >>conftest.$ac_ext
29556 cat >>conftest.$ac_ext <<_ACEOF
29557 /* end confdefs.h.  */
29558
29559                     #include <stdio.h>
29560                     #include <stdarg.h>
29561
29562 int
29563 main ()
29564 {
29565
29566                     char *buf;
29567                     va_list ap;
29568                     vsnprintf(buf, 10u, "%s", ap);
29569
29570   ;
29571   return 0;
29572 }
29573 _ACEOF
29574 rm -f conftest.$ac_objext
29575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29576   (eval $ac_compile) 2>conftest.er1
29577   ac_status=$?
29578   grep -v '^ *+' conftest.er1 >conftest.err
29579   rm -f conftest.er1
29580   cat conftest.err >&5
29581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29582   (exit $ac_status); } &&
29583          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29585   (eval $ac_try) 2>&5
29586   ac_status=$?
29587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29588   (exit $ac_status); }; } &&
29589          { ac_try='test -s conftest.$ac_objext'
29590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29591   (eval $ac_try) 2>&5
29592   ac_status=$?
29593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29594   (exit $ac_status); }; }; then
29595   wx_cv_func_vsnprintf_decl=yes
29596 else
29597   echo "$as_me: failed program was:" >&5
29598 sed 's/^/| /' conftest.$ac_ext >&5
29599
29600
29601                                                                                                                         cat >conftest.$ac_ext <<_ACEOF
29602 /* confdefs.h.  */
29603 _ACEOF
29604 cat confdefs.h >>conftest.$ac_ext
29605 cat >>conftest.$ac_ext <<_ACEOF
29606 /* end confdefs.h.  */
29607
29608                             #include <stdio.h>
29609                             #include <stdarg.h>
29610                             using namespace std;
29611
29612 int
29613 main ()
29614 {
29615
29616                             char *buf;
29617                             va_list ap;
29618                             vsnprintf(buf, 10u, "%s", ap);
29619
29620   ;
29621   return 0;
29622 }
29623 _ACEOF
29624 rm -f conftest.$ac_objext
29625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29626   (eval $ac_compile) 2>conftest.er1
29627   ac_status=$?
29628   grep -v '^ *+' conftest.er1 >conftest.err
29629   rm -f conftest.er1
29630   cat conftest.err >&5
29631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632   (exit $ac_status); } &&
29633          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29635   (eval $ac_try) 2>&5
29636   ac_status=$?
29637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638   (exit $ac_status); }; } &&
29639          { ac_try='test -s conftest.$ac_objext'
29640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29641   (eval $ac_try) 2>&5
29642   ac_status=$?
29643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644   (exit $ac_status); }; }; then
29645   wx_cv_func_vsnprintf_decl=yes
29646 else
29647   echo "$as_me: failed program was:" >&5
29648 sed 's/^/| /' conftest.$ac_ext >&5
29649
29650 wx_cv_func_vsnprintf_decl=no
29651
29652 fi
29653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29654
29655
29656 fi
29657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29658
29659
29660 fi
29661 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29662 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29663
29664     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29665         cat >>confdefs.h <<\_ACEOF
29666 #define HAVE_VSNPRINTF_DECL 1
29667 _ACEOF
29668
29669     fi
29670 fi
29671
29672 if test "$wxUSE_UNICODE" = yes; then
29673
29674
29675
29676
29677
29678
29679 for ac_func in wputc wputchar putws fputws wprintf vswprintf
29680 do
29681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29682 echo "$as_me:$LINENO: checking for $ac_func" >&5
29683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29684 if eval "test \"\${$as_ac_var+set}\" = set"; then
29685   echo $ECHO_N "(cached) $ECHO_C" >&6
29686 else
29687   cat >conftest.$ac_ext <<_ACEOF
29688 /* confdefs.h.  */
29689 _ACEOF
29690 cat confdefs.h >>conftest.$ac_ext
29691 cat >>conftest.$ac_ext <<_ACEOF
29692 /* end confdefs.h.  */
29693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29695 #define $ac_func innocuous_$ac_func
29696
29697 /* System header to define __stub macros and hopefully few prototypes,
29698     which can conflict with char $ac_func (); below.
29699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29700     <limits.h> exists even on freestanding compilers.  */
29701
29702 #ifdef __STDC__
29703 # include <limits.h>
29704 #else
29705 # include <assert.h>
29706 #endif
29707
29708 #undef $ac_func
29709
29710 /* Override any gcc2 internal prototype to avoid an error.  */
29711 #ifdef __cplusplus
29712 extern "C"
29713 {
29714 #endif
29715 /* We use char because int might match the return type of a gcc2
29716    builtin and then its argument prototype would still apply.  */
29717 char $ac_func ();
29718 /* The GNU C library defines this for functions which it implements
29719     to always fail with ENOSYS.  Some functions are actually named
29720     something starting with __ and the normal name is an alias.  */
29721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29722 choke me
29723 #else
29724 char (*f) () = $ac_func;
29725 #endif
29726 #ifdef __cplusplus
29727 }
29728 #endif
29729
29730 int
29731 main ()
29732 {
29733 return f != $ac_func;
29734   ;
29735   return 0;
29736 }
29737 _ACEOF
29738 rm -f conftest.$ac_objext conftest$ac_exeext
29739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29740   (eval $ac_link) 2>conftest.er1
29741   ac_status=$?
29742   grep -v '^ *+' conftest.er1 >conftest.err
29743   rm -f conftest.er1
29744   cat conftest.err >&5
29745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746   (exit $ac_status); } &&
29747          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29749   (eval $ac_try) 2>&5
29750   ac_status=$?
29751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752   (exit $ac_status); }; } &&
29753          { ac_try='test -s conftest$ac_exeext'
29754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29755   (eval $ac_try) 2>&5
29756   ac_status=$?
29757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29758   (exit $ac_status); }; }; then
29759   eval "$as_ac_var=yes"
29760 else
29761   echo "$as_me: failed program was:" >&5
29762 sed 's/^/| /' conftest.$ac_ext >&5
29763
29764 eval "$as_ac_var=no"
29765 fi
29766 rm -f conftest.err conftest.$ac_objext \
29767       conftest$ac_exeext conftest.$ac_ext
29768 fi
29769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29771 if test `eval echo '${'$as_ac_var'}'` = yes; then
29772   cat >>confdefs.h <<_ACEOF
29773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29774 _ACEOF
29775
29776 fi
29777 done
29778
29779
29780                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29781 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29782     cat >conftest.$ac_ext <<_ACEOF
29783 /* confdefs.h.  */
29784 _ACEOF
29785 cat confdefs.h >>conftest.$ac_ext
29786 cat >>conftest.$ac_ext <<_ACEOF
29787 /* end confdefs.h.  */
29788 #include <wchar.h>
29789 int
29790 main ()
29791 {
29792 &_vsnwprintf;
29793   ;
29794   return 0;
29795 }
29796 _ACEOF
29797 rm -f conftest.$ac_objext
29798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29799   (eval $ac_compile) 2>conftest.er1
29800   ac_status=$?
29801   grep -v '^ *+' conftest.er1 >conftest.err
29802   rm -f conftest.er1
29803   cat conftest.err >&5
29804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29805   (exit $ac_status); } &&
29806          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29808   (eval $ac_try) 2>&5
29809   ac_status=$?
29810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811   (exit $ac_status); }; } &&
29812          { ac_try='test -s conftest.$ac_objext'
29813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29814   (eval $ac_try) 2>&5
29815   ac_status=$?
29816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817   (exit $ac_status); }; }; then
29818   echo "$as_me:$LINENO: result: yes" >&5
29819 echo "${ECHO_T}yes" >&6
29820                     cat >>confdefs.h <<\_ACEOF
29821 #define HAVE__VSNWPRINTF 1
29822 _ACEOF
29823
29824 else
29825   echo "$as_me: failed program was:" >&5
29826 sed 's/^/| /' conftest.$ac_ext >&5
29827
29828 echo "$as_me:$LINENO: result: no" >&5
29829 echo "${ECHO_T}no" >&6
29830 fi
29831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
29832 fi
29833
29834 ac_ext=c
29835 ac_cpp='$CPP $CPPFLAGS'
29836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29839
29840
29841
29842
29843 if test "$TOOLKIT" != "MSW"; then
29844
29845
29846
29847
29848 ac_ext=cc
29849 ac_cpp='$CXXCPP $CPPFLAGS'
29850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29853
29854
29855
29856
29857 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29858 if test "${with_libiconv_prefix+set}" = set; then
29859   withval="$with_libiconv_prefix"
29860
29861     for dir in `echo "$withval" | tr : ' '`; do
29862       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29863       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29864     done
29865
29866 fi;
29867
29868   echo "$as_me:$LINENO: checking for iconv" >&5
29869 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29870 if test "${am_cv_func_iconv+set}" = set; then
29871   echo $ECHO_N "(cached) $ECHO_C" >&6
29872 else
29873
29874     am_cv_func_iconv="no, consider installing GNU libiconv"
29875     am_cv_lib_iconv=no
29876     cat >conftest.$ac_ext <<_ACEOF
29877 /* confdefs.h.  */
29878 _ACEOF
29879 cat confdefs.h >>conftest.$ac_ext
29880 cat >>conftest.$ac_ext <<_ACEOF
29881 /* end confdefs.h.  */
29882 #include <stdlib.h>
29883 #include <iconv.h>
29884 int
29885 main ()
29886 {
29887 iconv_t cd = iconv_open("","");
29888        iconv(cd,NULL,NULL,NULL,NULL);
29889        iconv_close(cd);
29890   ;
29891   return 0;
29892 }
29893 _ACEOF
29894 rm -f conftest.$ac_objext conftest$ac_exeext
29895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29896   (eval $ac_link) 2>conftest.er1
29897   ac_status=$?
29898   grep -v '^ *+' conftest.er1 >conftest.err
29899   rm -f conftest.er1
29900   cat conftest.err >&5
29901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29902   (exit $ac_status); } &&
29903          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29905   (eval $ac_try) 2>&5
29906   ac_status=$?
29907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908   (exit $ac_status); }; } &&
29909          { ac_try='test -s conftest$ac_exeext'
29910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29911   (eval $ac_try) 2>&5
29912   ac_status=$?
29913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914   (exit $ac_status); }; }; then
29915   am_cv_func_iconv=yes
29916 else
29917   echo "$as_me: failed program was:" >&5
29918 sed 's/^/| /' conftest.$ac_ext >&5
29919
29920 fi
29921 rm -f conftest.err conftest.$ac_objext \
29922       conftest$ac_exeext conftest.$ac_ext
29923     if test "$am_cv_func_iconv" != yes; then
29924       am_save_LIBS="$LIBS"
29925       LIBS="$LIBS -liconv"
29926       cat >conftest.$ac_ext <<_ACEOF
29927 /* confdefs.h.  */
29928 _ACEOF
29929 cat confdefs.h >>conftest.$ac_ext
29930 cat >>conftest.$ac_ext <<_ACEOF
29931 /* end confdefs.h.  */
29932 #include <stdlib.h>
29933 #include <iconv.h>
29934 int
29935 main ()
29936 {
29937 iconv_t cd = iconv_open("","");
29938          iconv(cd,NULL,NULL,NULL,NULL);
29939          iconv_close(cd);
29940   ;
29941   return 0;
29942 }
29943 _ACEOF
29944 rm -f conftest.$ac_objext conftest$ac_exeext
29945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29946   (eval $ac_link) 2>conftest.er1
29947   ac_status=$?
29948   grep -v '^ *+' conftest.er1 >conftest.err
29949   rm -f conftest.er1
29950   cat conftest.err >&5
29951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952   (exit $ac_status); } &&
29953          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
29954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29955   (eval $ac_try) 2>&5
29956   ac_status=$?
29957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29958   (exit $ac_status); }; } &&
29959          { ac_try='test -s conftest$ac_exeext'
29960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29961   (eval $ac_try) 2>&5
29962   ac_status=$?
29963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964   (exit $ac_status); }; }; then
29965   am_cv_lib_iconv=yes
29966         am_cv_func_iconv=yes
29967 else
29968   echo "$as_me: failed program was:" >&5
29969 sed 's/^/| /' conftest.$ac_ext >&5
29970
29971 fi
29972 rm -f conftest.err conftest.$ac_objext \
29973       conftest$ac_exeext conftest.$ac_ext
29974       LIBS="$am_save_LIBS"
29975     fi
29976
29977 fi
29978 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29979 echo "${ECHO_T}$am_cv_func_iconv" >&6
29980   if test "$am_cv_func_iconv" = yes; then
29981
29982 cat >>confdefs.h <<\_ACEOF
29983 #define HAVE_ICONV 1
29984 _ACEOF
29985
29986     echo "$as_me:$LINENO: checking if iconv needs const" >&5
29987 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29988 if test "${wx_cv_func_iconv_const+set}" = set; then
29989   echo $ECHO_N "(cached) $ECHO_C" >&6
29990 else
29991   cat >conftest.$ac_ext <<_ACEOF
29992 /* confdefs.h.  */
29993 _ACEOF
29994 cat confdefs.h >>conftest.$ac_ext
29995 cat >>conftest.$ac_ext <<_ACEOF
29996 /* end confdefs.h.  */
29997
29998 #include <stdlib.h>
29999 #include <iconv.h>
30000 extern
30001 #ifdef __cplusplus
30002 "C"
30003 #endif
30004 #if defined(__STDC__) || defined(__cplusplus)
30005 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
30006 #else
30007 size_t iconv();
30008 #endif
30009
30010 int
30011 main ()
30012 {
30013
30014   ;
30015   return 0;
30016 }
30017 _ACEOF
30018 rm -f conftest.$ac_objext
30019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30020   (eval $ac_compile) 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_cxx_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_objext'
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   wx_cv_func_iconv_const="no"
30040 else
30041   echo "$as_me: failed program was:" >&5
30042 sed 's/^/| /' conftest.$ac_ext >&5
30043
30044 wx_cv_func_iconv_const="yes"
30045
30046 fi
30047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30048
30049 fi
30050 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
30051 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
30052
30053     iconv_const=
30054     if test "x$wx_cv_func_iconv_const" = "xyes"; then
30055         iconv_const="const"
30056     fi
30057
30058
30059 cat >>confdefs.h <<_ACEOF
30060 #define ICONV_CONST $iconv_const
30061 _ACEOF
30062
30063   fi
30064   LIBICONV=
30065   if test "$am_cv_lib_iconv" = yes; then
30066     LIBICONV="-liconv"
30067   fi
30068
30069
30070 LIBS="$LIBICONV $LIBS"
30071 ac_ext=c
30072 ac_cpp='$CPP $CPPFLAGS'
30073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30076
30077
30078 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30079
30080 for ac_func in sigaction
30081 do
30082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30083 echo "$as_me:$LINENO: checking for $ac_func" >&5
30084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30085 if eval "test \"\${$as_ac_var+set}\" = set"; then
30086   echo $ECHO_N "(cached) $ECHO_C" >&6
30087 else
30088   cat >conftest.$ac_ext <<_ACEOF
30089 /* confdefs.h.  */
30090 _ACEOF
30091 cat confdefs.h >>conftest.$ac_ext
30092 cat >>conftest.$ac_ext <<_ACEOF
30093 /* end confdefs.h.  */
30094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30096 #define $ac_func innocuous_$ac_func
30097
30098 /* System header to define __stub macros and hopefully few prototypes,
30099     which can conflict with char $ac_func (); below.
30100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30101     <limits.h> exists even on freestanding compilers.  */
30102
30103 #ifdef __STDC__
30104 # include <limits.h>
30105 #else
30106 # include <assert.h>
30107 #endif
30108
30109 #undef $ac_func
30110
30111 /* Override any gcc2 internal prototype to avoid an error.  */
30112 #ifdef __cplusplus
30113 extern "C"
30114 {
30115 #endif
30116 /* We use char because int might match the return type of a gcc2
30117    builtin and then its argument prototype would still apply.  */
30118 char $ac_func ();
30119 /* The GNU C library defines this for functions which it implements
30120     to always fail with ENOSYS.  Some functions are actually named
30121     something starting with __ and the normal name is an alias.  */
30122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30123 choke me
30124 #else
30125 char (*f) () = $ac_func;
30126 #endif
30127 #ifdef __cplusplus
30128 }
30129 #endif
30130
30131 int
30132 main ()
30133 {
30134 return f != $ac_func;
30135   ;
30136   return 0;
30137 }
30138 _ACEOF
30139 rm -f conftest.$ac_objext conftest$ac_exeext
30140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30141   (eval $ac_link) 2>conftest.er1
30142   ac_status=$?
30143   grep -v '^ *+' conftest.er1 >conftest.err
30144   rm -f conftest.er1
30145   cat conftest.err >&5
30146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147   (exit $ac_status); } &&
30148          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30150   (eval $ac_try) 2>&5
30151   ac_status=$?
30152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153   (exit $ac_status); }; } &&
30154          { ac_try='test -s conftest$ac_exeext'
30155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30156   (eval $ac_try) 2>&5
30157   ac_status=$?
30158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30159   (exit $ac_status); }; }; then
30160   eval "$as_ac_var=yes"
30161 else
30162   echo "$as_me: failed program was:" >&5
30163 sed 's/^/| /' conftest.$ac_ext >&5
30164
30165 eval "$as_ac_var=no"
30166 fi
30167 rm -f conftest.err conftest.$ac_objext \
30168       conftest$ac_exeext conftest.$ac_ext
30169 fi
30170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30172 if test `eval echo '${'$as_ac_var'}'` = yes; then
30173   cat >>confdefs.h <<_ACEOF
30174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30175 _ACEOF
30176
30177 fi
30178 done
30179
30180
30181     if test "$ac_cv_func_sigaction" = "no"; then
30182         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
30183 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
30184         wxUSE_ON_FATAL_EXCEPTION=no
30185     fi
30186
30187     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30188
30189
30190       ac_ext=cc
30191 ac_cpp='$CXXCPP $CPPFLAGS'
30192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30195
30196
30197       echo "$as_me:$LINENO: checking for sa_handler type" >&5
30198 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
30199 if test "${wx_cv_type_sa_handler+set}" = set; then
30200   echo $ECHO_N "(cached) $ECHO_C" >&6
30201 else
30202
30203         cat >conftest.$ac_ext <<_ACEOF
30204 /* confdefs.h.  */
30205 _ACEOF
30206 cat confdefs.h >>conftest.$ac_ext
30207 cat >>conftest.$ac_ext <<_ACEOF
30208 /* end confdefs.h.  */
30209 #include <signal.h>
30210 int
30211 main ()
30212 {
30213
30214                         extern void testSigHandler(int);
30215
30216                         struct sigaction sa;
30217                         sa.sa_handler = testSigHandler;
30218
30219   ;
30220   return 0;
30221 }
30222 _ACEOF
30223 rm -f conftest.$ac_objext
30224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30225   (eval $ac_compile) 2>conftest.er1
30226   ac_status=$?
30227   grep -v '^ *+' conftest.er1 >conftest.err
30228   rm -f conftest.er1
30229   cat conftest.err >&5
30230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231   (exit $ac_status); } &&
30232          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30234   (eval $ac_try) 2>&5
30235   ac_status=$?
30236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237   (exit $ac_status); }; } &&
30238          { ac_try='test -s conftest.$ac_objext'
30239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30240   (eval $ac_try) 2>&5
30241   ac_status=$?
30242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243   (exit $ac_status); }; }; then
30244
30245                         wx_cv_type_sa_handler=int
30246
30247 else
30248   echo "$as_me: failed program was:" >&5
30249 sed 's/^/| /' conftest.$ac_ext >&5
30250
30251
30252                         wx_cv_type_sa_handler=void
30253
30254 fi
30255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30256
30257 fi
30258 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
30259 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
30260
30261       ac_ext=c
30262 ac_cpp='$CPP $CPPFLAGS'
30263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30266
30267
30268       cat >>confdefs.h <<_ACEOF
30269 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
30270 _ACEOF
30271
30272     fi
30273 fi
30274
30275 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30276
30277
30278     ac_ext=cc
30279 ac_cpp='$CXXCPP $CPPFLAGS'
30280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30283
30284
30285     echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
30286 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
30287 if test "${wx_cv_func_backtrace+set}" = set; then
30288   echo $ECHO_N "(cached) $ECHO_C" >&6
30289 else
30290
30291             cat >conftest.$ac_ext <<_ACEOF
30292 /* confdefs.h.  */
30293 _ACEOF
30294 cat confdefs.h >>conftest.$ac_ext
30295 cat >>conftest.$ac_ext <<_ACEOF
30296 /* end confdefs.h.  */
30297 #include <execinfo.h>
30298 int
30299 main ()
30300 {
30301
30302                     void *trace[1];
30303                     char **messages;
30304
30305                     backtrace(trace, 1);
30306                     messages = backtrace_symbols(trace, 1);
30307
30308   ;
30309   return 0;
30310 }
30311 _ACEOF
30312 rm -f conftest.$ac_objext
30313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30314   (eval $ac_compile) 2>conftest.er1
30315   ac_status=$?
30316   grep -v '^ *+' conftest.er1 >conftest.err
30317   rm -f conftest.er1
30318   cat conftest.err >&5
30319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30320   (exit $ac_status); } &&
30321          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30323   (eval $ac_try) 2>&5
30324   ac_status=$?
30325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30326   (exit $ac_status); }; } &&
30327          { ac_try='test -s conftest.$ac_objext'
30328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30329   (eval $ac_try) 2>&5
30330   ac_status=$?
30331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332   (exit $ac_status); }; }; then
30333   wx_cv_func_backtrace=yes
30334 else
30335   echo "$as_me: failed program was:" >&5
30336 sed 's/^/| /' conftest.$ac_ext >&5
30337
30338 wx_cv_func_backtrace=no
30339
30340 fi
30341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30342
30343
30344 fi
30345 echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
30346 echo "${ECHO_T}$wx_cv_func_backtrace" >&6
30347
30348
30349     if test "$wx_cv_func_backtrace" = "no"; then
30350         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
30351 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
30352         wxUSE_STACKWALKER=no
30353     else
30354         echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
30355 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
30356 if test "${wx_cv_func_cxa_demangle+set}" = set; then
30357   echo $ECHO_N "(cached) $ECHO_C" >&6
30358 else
30359
30360                 cat >conftest.$ac_ext <<_ACEOF
30361 /* confdefs.h.  */
30362 _ACEOF
30363 cat confdefs.h >>conftest.$ac_ext
30364 cat >>conftest.$ac_ext <<_ACEOF
30365 /* end confdefs.h.  */
30366 #include <cxxabi.h>
30367 int
30368 main ()
30369 {
30370
30371                         int rc;
30372                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
30373
30374   ;
30375   return 0;
30376 }
30377 _ACEOF
30378 rm -f conftest.$ac_objext
30379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30380   (eval $ac_compile) 2>conftest.er1
30381   ac_status=$?
30382   grep -v '^ *+' conftest.er1 >conftest.err
30383   rm -f conftest.er1
30384   cat conftest.err >&5
30385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386   (exit $ac_status); } &&
30387          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30389   (eval $ac_try) 2>&5
30390   ac_status=$?
30391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392   (exit $ac_status); }; } &&
30393          { ac_try='test -s conftest.$ac_objext'
30394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30395   (eval $ac_try) 2>&5
30396   ac_status=$?
30397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398   (exit $ac_status); }; }; then
30399   wx_cv_func_cxa_demangle=yes
30400 else
30401   echo "$as_me: failed program was:" >&5
30402 sed 's/^/| /' conftest.$ac_ext >&5
30403
30404 wx_cv_func_cxa_demangle=no
30405
30406 fi
30407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30408
30409
30410 fi
30411 echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
30412 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
30413
30414         if test "$wx_cv_func_cxa_demangle" = "yes"; then
30415             cat >>confdefs.h <<\_ACEOF
30416 #define HAVE_CXA_DEMANGLE 1
30417 _ACEOF
30418
30419         fi
30420     fi
30421
30422     ac_ext=c
30423 ac_cpp='$CPP $CPPFLAGS'
30424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30427
30428 fi
30429
30430
30431
30432 for ac_func in mkstemp mktemp
30433 do
30434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30435 echo "$as_me:$LINENO: checking for $ac_func" >&5
30436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30437 if eval "test \"\${$as_ac_var+set}\" = set"; then
30438   echo $ECHO_N "(cached) $ECHO_C" >&6
30439 else
30440   cat >conftest.$ac_ext <<_ACEOF
30441 /* confdefs.h.  */
30442 _ACEOF
30443 cat confdefs.h >>conftest.$ac_ext
30444 cat >>conftest.$ac_ext <<_ACEOF
30445 /* end confdefs.h.  */
30446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30448 #define $ac_func innocuous_$ac_func
30449
30450 /* System header to define __stub macros and hopefully few prototypes,
30451     which can conflict with char $ac_func (); below.
30452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30453     <limits.h> exists even on freestanding compilers.  */
30454
30455 #ifdef __STDC__
30456 # include <limits.h>
30457 #else
30458 # include <assert.h>
30459 #endif
30460
30461 #undef $ac_func
30462
30463 /* Override any gcc2 internal prototype to avoid an error.  */
30464 #ifdef __cplusplus
30465 extern "C"
30466 {
30467 #endif
30468 /* We use char because int might match the return type of a gcc2
30469    builtin and then its argument prototype would still apply.  */
30470 char $ac_func ();
30471 /* The GNU C library defines this for functions which it implements
30472     to always fail with ENOSYS.  Some functions are actually named
30473     something starting with __ and the normal name is an alias.  */
30474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30475 choke me
30476 #else
30477 char (*f) () = $ac_func;
30478 #endif
30479 #ifdef __cplusplus
30480 }
30481 #endif
30482
30483 int
30484 main ()
30485 {
30486 return f != $ac_func;
30487   ;
30488   return 0;
30489 }
30490 _ACEOF
30491 rm -f conftest.$ac_objext conftest$ac_exeext
30492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30493   (eval $ac_link) 2>conftest.er1
30494   ac_status=$?
30495   grep -v '^ *+' conftest.er1 >conftest.err
30496   rm -f conftest.er1
30497   cat conftest.err >&5
30498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499   (exit $ac_status); } &&
30500          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30502   (eval $ac_try) 2>&5
30503   ac_status=$?
30504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30505   (exit $ac_status); }; } &&
30506          { ac_try='test -s conftest$ac_exeext'
30507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30508   (eval $ac_try) 2>&5
30509   ac_status=$?
30510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30511   (exit $ac_status); }; }; then
30512   eval "$as_ac_var=yes"
30513 else
30514   echo "$as_me: failed program was:" >&5
30515 sed 's/^/| /' conftest.$ac_ext >&5
30516
30517 eval "$as_ac_var=no"
30518 fi
30519 rm -f conftest.err conftest.$ac_objext \
30520       conftest$ac_exeext conftest.$ac_ext
30521 fi
30522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30524 if test `eval echo '${'$as_ac_var'}'` = yes; then
30525   cat >>confdefs.h <<_ACEOF
30526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30527 _ACEOF
30528  break
30529 fi
30530 done
30531
30532
30533 echo "$as_me:$LINENO: checking for statfs" >&5
30534 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30535 if test "${wx_cv_func_statfs+set}" = set; then
30536   echo $ECHO_N "(cached) $ECHO_C" >&6
30537 else
30538   cat >conftest.$ac_ext <<_ACEOF
30539 /* confdefs.h.  */
30540 _ACEOF
30541 cat confdefs.h >>conftest.$ac_ext
30542 cat >>conftest.$ac_ext <<_ACEOF
30543 /* end confdefs.h.  */
30544
30545              #if defined(__BSD__)
30546                #include <sys/param.h>
30547                #include <sys/mount.h>
30548              #else
30549                #include <sys/vfs.h>
30550              #endif
30551
30552 int
30553 main ()
30554 {
30555
30556              long l;
30557              struct statfs fs;
30558              statfs("/", &fs);
30559              l = fs.f_bsize;
30560              l += fs.f_blocks;
30561              l += fs.f_bavail;
30562
30563   ;
30564   return 0;
30565 }
30566 _ACEOF
30567 rm -f conftest.$ac_objext
30568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30569   (eval $ac_compile) 2>conftest.er1
30570   ac_status=$?
30571   grep -v '^ *+' conftest.er1 >conftest.err
30572   rm -f conftest.er1
30573   cat conftest.err >&5
30574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575   (exit $ac_status); } &&
30576          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30578   (eval $ac_try) 2>&5
30579   ac_status=$?
30580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581   (exit $ac_status); }; } &&
30582          { ac_try='test -s conftest.$ac_objext'
30583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30584   (eval $ac_try) 2>&5
30585   ac_status=$?
30586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587   (exit $ac_status); }; }; then
30588
30589              wx_cv_func_statfs=yes
30590
30591 else
30592   echo "$as_me: failed program was:" >&5
30593 sed 's/^/| /' conftest.$ac_ext >&5
30594
30595
30596              wx_cv_func_statfs=no
30597
30598
30599 fi
30600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30601
30602 fi
30603 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30604 echo "${ECHO_T}$wx_cv_func_statfs" >&6
30605
30606 if test "$wx_cv_func_statfs" = "yes"; then
30607     wx_cv_type_statvfs_t="struct statfs"
30608     cat >>confdefs.h <<\_ACEOF
30609 #define HAVE_STATFS 1
30610 _ACEOF
30611
30612 else
30613     echo "$as_me:$LINENO: checking for statvfs" >&5
30614 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30615 if test "${wx_cv_func_statvfs+set}" = set; then
30616   echo $ECHO_N "(cached) $ECHO_C" >&6
30617 else
30618   cat >conftest.$ac_ext <<_ACEOF
30619 /* confdefs.h.  */
30620 _ACEOF
30621 cat confdefs.h >>conftest.$ac_ext
30622 cat >>conftest.$ac_ext <<_ACEOF
30623 /* end confdefs.h.  */
30624
30625                 #include <stddef.h>
30626                 #include <sys/statvfs.h>
30627
30628 int
30629 main ()
30630 {
30631
30632                 statvfs("/", NULL);
30633
30634   ;
30635   return 0;
30636 }
30637 _ACEOF
30638 rm -f conftest.$ac_objext
30639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30640   (eval $ac_compile) 2>conftest.er1
30641   ac_status=$?
30642   grep -v '^ *+' conftest.er1 >conftest.err
30643   rm -f conftest.er1
30644   cat conftest.err >&5
30645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30646   (exit $ac_status); } &&
30647          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30649   (eval $ac_try) 2>&5
30650   ac_status=$?
30651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652   (exit $ac_status); }; } &&
30653          { ac_try='test -s conftest.$ac_objext'
30654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30655   (eval $ac_try) 2>&5
30656   ac_status=$?
30657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658   (exit $ac_status); }; }; then
30659   wx_cv_func_statvfs=yes
30660 else
30661   echo "$as_me: failed program was:" >&5
30662 sed 's/^/| /' conftest.$ac_ext >&5
30663
30664 wx_cv_func_statvfs=no
30665
30666 fi
30667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30668
30669 fi
30670 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30671 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30672
30673     if test "$wx_cv_func_statvfs" = "yes"; then
30674
30675
30676         ac_ext=cc
30677 ac_cpp='$CXXCPP $CPPFLAGS'
30678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30681
30682
30683         echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30684 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30685 if test "${wx_cv_type_statvfs_t+set}" = set; then
30686   echo $ECHO_N "(cached) $ECHO_C" >&6
30687 else
30688   cat >conftest.$ac_ext <<_ACEOF
30689 /* confdefs.h.  */
30690 _ACEOF
30691 cat confdefs.h >>conftest.$ac_ext
30692 cat >>conftest.$ac_ext <<_ACEOF
30693 /* end confdefs.h.  */
30694
30695                     #include <sys/statvfs.h>
30696
30697 int
30698 main ()
30699 {
30700
30701                     long l;
30702                     statvfs_t fs;
30703                     statvfs("/", &fs);
30704                     l = fs.f_bsize;
30705                     l += fs.f_blocks;
30706                     l += fs.f_bavail;
30707
30708   ;
30709   return 0;
30710 }
30711 _ACEOF
30712 rm -f conftest.$ac_objext
30713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30714   (eval $ac_compile) 2>conftest.er1
30715   ac_status=$?
30716   grep -v '^ *+' conftest.er1 >conftest.err
30717   rm -f conftest.er1
30718   cat conftest.err >&5
30719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720   (exit $ac_status); } &&
30721          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30723   (eval $ac_try) 2>&5
30724   ac_status=$?
30725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726   (exit $ac_status); }; } &&
30727          { ac_try='test -s conftest.$ac_objext'
30728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30729   (eval $ac_try) 2>&5
30730   ac_status=$?
30731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732   (exit $ac_status); }; }; then
30733   wx_cv_type_statvfs_t=statvfs_t
30734 else
30735   echo "$as_me: failed program was:" >&5
30736 sed 's/^/| /' conftest.$ac_ext >&5
30737
30738
30739                     cat >conftest.$ac_ext <<_ACEOF
30740 /* confdefs.h.  */
30741 _ACEOF
30742 cat confdefs.h >>conftest.$ac_ext
30743 cat >>conftest.$ac_ext <<_ACEOF
30744 /* end confdefs.h.  */
30745
30746                             #include <sys/statvfs.h>
30747
30748 int
30749 main ()
30750 {
30751
30752                             long l;
30753                             struct statvfs fs;
30754                             statvfs("/", &fs);
30755                             l = fs.f_bsize;
30756                             l += fs.f_blocks;
30757                             l += fs.f_bavail;
30758
30759   ;
30760   return 0;
30761 }
30762 _ACEOF
30763 rm -f conftest.$ac_objext
30764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30765   (eval $ac_compile) 2>conftest.er1
30766   ac_status=$?
30767   grep -v '^ *+' conftest.er1 >conftest.err
30768   rm -f conftest.er1
30769   cat conftest.err >&5
30770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771   (exit $ac_status); } &&
30772          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30774   (eval $ac_try) 2>&5
30775   ac_status=$?
30776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777   (exit $ac_status); }; } &&
30778          { ac_try='test -s conftest.$ac_objext'
30779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30780   (eval $ac_try) 2>&5
30781   ac_status=$?
30782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783   (exit $ac_status); }; }; then
30784   wx_cv_type_statvfs_t="struct statvfs"
30785 else
30786   echo "$as_me: failed program was:" >&5
30787 sed 's/^/| /' conftest.$ac_ext >&5
30788
30789 wx_cv_type_statvfs_t="unknown"
30790
30791 fi
30792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30793
30794
30795 fi
30796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30797
30798 fi
30799 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30800 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30801
30802         ac_ext=c
30803 ac_cpp='$CPP $CPPFLAGS'
30804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30807
30808
30809         if test "$wx_cv_type_statvfs_t" != "unknown"; then
30810             cat >>confdefs.h <<\_ACEOF
30811 #define HAVE_STATVFS 1
30812 _ACEOF
30813
30814         fi
30815     else
30816                 wx_cv_type_statvfs_t="unknown"
30817     fi
30818 fi
30819
30820 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30821     cat >>confdefs.h <<_ACEOF
30822 #define WX_STATFS_T $wx_cv_type_statvfs_t
30823 _ACEOF
30824
30825 else
30826     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30827 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30828 fi
30829
30830 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30831
30832
30833 for ac_func in fcntl flock
30834 do
30835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30836 echo "$as_me:$LINENO: checking for $ac_func" >&5
30837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30838 if eval "test \"\${$as_ac_var+set}\" = set"; then
30839   echo $ECHO_N "(cached) $ECHO_C" >&6
30840 else
30841   cat >conftest.$ac_ext <<_ACEOF
30842 /* confdefs.h.  */
30843 _ACEOF
30844 cat confdefs.h >>conftest.$ac_ext
30845 cat >>conftest.$ac_ext <<_ACEOF
30846 /* end confdefs.h.  */
30847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30849 #define $ac_func innocuous_$ac_func
30850
30851 /* System header to define __stub macros and hopefully few prototypes,
30852     which can conflict with char $ac_func (); below.
30853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30854     <limits.h> exists even on freestanding compilers.  */
30855
30856 #ifdef __STDC__
30857 # include <limits.h>
30858 #else
30859 # include <assert.h>
30860 #endif
30861
30862 #undef $ac_func
30863
30864 /* Override any gcc2 internal prototype to avoid an error.  */
30865 #ifdef __cplusplus
30866 extern "C"
30867 {
30868 #endif
30869 /* We use char because int might match the return type of a gcc2
30870    builtin and then its argument prototype would still apply.  */
30871 char $ac_func ();
30872 /* The GNU C library defines this for functions which it implements
30873     to always fail with ENOSYS.  Some functions are actually named
30874     something starting with __ and the normal name is an alias.  */
30875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30876 choke me
30877 #else
30878 char (*f) () = $ac_func;
30879 #endif
30880 #ifdef __cplusplus
30881 }
30882 #endif
30883
30884 int
30885 main ()
30886 {
30887 return f != $ac_func;
30888   ;
30889   return 0;
30890 }
30891 _ACEOF
30892 rm -f conftest.$ac_objext conftest$ac_exeext
30893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30894   (eval $ac_link) 2>conftest.er1
30895   ac_status=$?
30896   grep -v '^ *+' conftest.er1 >conftest.err
30897   rm -f conftest.er1
30898   cat conftest.err >&5
30899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900   (exit $ac_status); } &&
30901          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30903   (eval $ac_try) 2>&5
30904   ac_status=$?
30905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906   (exit $ac_status); }; } &&
30907          { ac_try='test -s conftest$ac_exeext'
30908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30909   (eval $ac_try) 2>&5
30910   ac_status=$?
30911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30912   (exit $ac_status); }; }; then
30913   eval "$as_ac_var=yes"
30914 else
30915   echo "$as_me: failed program was:" >&5
30916 sed 's/^/| /' conftest.$ac_ext >&5
30917
30918 eval "$as_ac_var=no"
30919 fi
30920 rm -f conftest.err conftest.$ac_objext \
30921       conftest$ac_exeext conftest.$ac_ext
30922 fi
30923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30925 if test `eval echo '${'$as_ac_var'}'` = yes; then
30926   cat >>confdefs.h <<_ACEOF
30927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30928 _ACEOF
30929  break
30930 fi
30931 done
30932
30933
30934     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30935         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30936 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30937         wxUSE_SNGLINST_CHECKER=no
30938     fi
30939 fi
30940
30941
30942 for ac_func in timegm
30943 do
30944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30945 echo "$as_me:$LINENO: checking for $ac_func" >&5
30946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30947 if eval "test \"\${$as_ac_var+set}\" = set"; then
30948   echo $ECHO_N "(cached) $ECHO_C" >&6
30949 else
30950   cat >conftest.$ac_ext <<_ACEOF
30951 /* confdefs.h.  */
30952 _ACEOF
30953 cat confdefs.h >>conftest.$ac_ext
30954 cat >>conftest.$ac_ext <<_ACEOF
30955 /* end confdefs.h.  */
30956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30958 #define $ac_func innocuous_$ac_func
30959
30960 /* System header to define __stub macros and hopefully few prototypes,
30961     which can conflict with char $ac_func (); below.
30962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30963     <limits.h> exists even on freestanding compilers.  */
30964
30965 #ifdef __STDC__
30966 # include <limits.h>
30967 #else
30968 # include <assert.h>
30969 #endif
30970
30971 #undef $ac_func
30972
30973 /* Override any gcc2 internal prototype to avoid an error.  */
30974 #ifdef __cplusplus
30975 extern "C"
30976 {
30977 #endif
30978 /* We use char because int might match the return type of a gcc2
30979    builtin and then its argument prototype would still apply.  */
30980 char $ac_func ();
30981 /* The GNU C library defines this for functions which it implements
30982     to always fail with ENOSYS.  Some functions are actually named
30983     something starting with __ and the normal name is an alias.  */
30984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30985 choke me
30986 #else
30987 char (*f) () = $ac_func;
30988 #endif
30989 #ifdef __cplusplus
30990 }
30991 #endif
30992
30993 int
30994 main ()
30995 {
30996 return f != $ac_func;
30997   ;
30998   return 0;
30999 }
31000 _ACEOF
31001 rm -f conftest.$ac_objext conftest$ac_exeext
31002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31003   (eval $ac_link) 2>conftest.er1
31004   ac_status=$?
31005   grep -v '^ *+' conftest.er1 >conftest.err
31006   rm -f conftest.er1
31007   cat conftest.err >&5
31008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009   (exit $ac_status); } &&
31010          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31012   (eval $ac_try) 2>&5
31013   ac_status=$?
31014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015   (exit $ac_status); }; } &&
31016          { ac_try='test -s conftest$ac_exeext'
31017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31018   (eval $ac_try) 2>&5
31019   ac_status=$?
31020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31021   (exit $ac_status); }; }; then
31022   eval "$as_ac_var=yes"
31023 else
31024   echo "$as_me: failed program was:" >&5
31025 sed 's/^/| /' conftest.$ac_ext >&5
31026
31027 eval "$as_ac_var=no"
31028 fi
31029 rm -f conftest.err conftest.$ac_objext \
31030       conftest$ac_exeext conftest.$ac_ext
31031 fi
31032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31034 if test `eval echo '${'$as_ac_var'}'` = yes; then
31035   cat >>confdefs.h <<_ACEOF
31036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31037 _ACEOF
31038
31039 fi
31040 done
31041
31042
31043
31044
31045 for ac_func in putenv setenv
31046 do
31047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31048 echo "$as_me:$LINENO: checking for $ac_func" >&5
31049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31050 if eval "test \"\${$as_ac_var+set}\" = set"; then
31051   echo $ECHO_N "(cached) $ECHO_C" >&6
31052 else
31053   cat >conftest.$ac_ext <<_ACEOF
31054 /* confdefs.h.  */
31055 _ACEOF
31056 cat confdefs.h >>conftest.$ac_ext
31057 cat >>conftest.$ac_ext <<_ACEOF
31058 /* end confdefs.h.  */
31059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31061 #define $ac_func innocuous_$ac_func
31062
31063 /* System header to define __stub macros and hopefully few prototypes,
31064     which can conflict with char $ac_func (); below.
31065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31066     <limits.h> exists even on freestanding compilers.  */
31067
31068 #ifdef __STDC__
31069 # include <limits.h>
31070 #else
31071 # include <assert.h>
31072 #endif
31073
31074 #undef $ac_func
31075
31076 /* Override any gcc2 internal prototype to avoid an error.  */
31077 #ifdef __cplusplus
31078 extern "C"
31079 {
31080 #endif
31081 /* We use char because int might match the return type of a gcc2
31082    builtin and then its argument prototype would still apply.  */
31083 char $ac_func ();
31084 /* The GNU C library defines this for functions which it implements
31085     to always fail with ENOSYS.  Some functions are actually named
31086     something starting with __ and the normal name is an alias.  */
31087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31088 choke me
31089 #else
31090 char (*f) () = $ac_func;
31091 #endif
31092 #ifdef __cplusplus
31093 }
31094 #endif
31095
31096 int
31097 main ()
31098 {
31099 return f != $ac_func;
31100   ;
31101   return 0;
31102 }
31103 _ACEOF
31104 rm -f conftest.$ac_objext conftest$ac_exeext
31105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31106   (eval $ac_link) 2>conftest.er1
31107   ac_status=$?
31108   grep -v '^ *+' conftest.er1 >conftest.err
31109   rm -f conftest.er1
31110   cat conftest.err >&5
31111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112   (exit $ac_status); } &&
31113          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31115   (eval $ac_try) 2>&5
31116   ac_status=$?
31117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31118   (exit $ac_status); }; } &&
31119          { ac_try='test -s conftest$ac_exeext'
31120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31121   (eval $ac_try) 2>&5
31122   ac_status=$?
31123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124   (exit $ac_status); }; }; then
31125   eval "$as_ac_var=yes"
31126 else
31127   echo "$as_me: failed program was:" >&5
31128 sed 's/^/| /' conftest.$ac_ext >&5
31129
31130 eval "$as_ac_var=no"
31131 fi
31132 rm -f conftest.err conftest.$ac_objext \
31133       conftest$ac_exeext conftest.$ac_ext
31134 fi
31135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31137 if test `eval echo '${'$as_ac_var'}'` = yes; then
31138   cat >>confdefs.h <<_ACEOF
31139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31140 _ACEOF
31141  break
31142 fi
31143 done
31144
31145
31146 HAVE_SOME_SLEEP_FUNC=0
31147 if test "$USE_BEOS" = 1; then
31148             cat >>confdefs.h <<\_ACEOF
31149 #define HAVE_SLEEP 1
31150 _ACEOF
31151
31152     HAVE_SOME_SLEEP_FUNC=1
31153 fi
31154
31155 if test "$USE_DARWIN" = 1; then
31156             cat >>confdefs.h <<\_ACEOF
31157 #define HAVE_USLEEP 1
31158 _ACEOF
31159
31160     HAVE_SOME_SLEEP_FUNC=1
31161 fi
31162
31163 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
31164         POSIX4_LINK=
31165
31166 for ac_func in nanosleep
31167 do
31168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31169 echo "$as_me:$LINENO: checking for $ac_func" >&5
31170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31171 if eval "test \"\${$as_ac_var+set}\" = set"; then
31172   echo $ECHO_N "(cached) $ECHO_C" >&6
31173 else
31174   cat >conftest.$ac_ext <<_ACEOF
31175 /* confdefs.h.  */
31176 _ACEOF
31177 cat confdefs.h >>conftest.$ac_ext
31178 cat >>conftest.$ac_ext <<_ACEOF
31179 /* end confdefs.h.  */
31180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31182 #define $ac_func innocuous_$ac_func
31183
31184 /* System header to define __stub macros and hopefully few prototypes,
31185     which can conflict with char $ac_func (); below.
31186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31187     <limits.h> exists even on freestanding compilers.  */
31188
31189 #ifdef __STDC__
31190 # include <limits.h>
31191 #else
31192 # include <assert.h>
31193 #endif
31194
31195 #undef $ac_func
31196
31197 /* Override any gcc2 internal prototype to avoid an error.  */
31198 #ifdef __cplusplus
31199 extern "C"
31200 {
31201 #endif
31202 /* We use char because int might match the return type of a gcc2
31203    builtin and then its argument prototype would still apply.  */
31204 char $ac_func ();
31205 /* The GNU C library defines this for functions which it implements
31206     to always fail with ENOSYS.  Some functions are actually named
31207     something starting with __ and the normal name is an alias.  */
31208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31209 choke me
31210 #else
31211 char (*f) () = $ac_func;
31212 #endif
31213 #ifdef __cplusplus
31214 }
31215 #endif
31216
31217 int
31218 main ()
31219 {
31220 return f != $ac_func;
31221   ;
31222   return 0;
31223 }
31224 _ACEOF
31225 rm -f conftest.$ac_objext conftest$ac_exeext
31226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31227   (eval $ac_link) 2>conftest.er1
31228   ac_status=$?
31229   grep -v '^ *+' conftest.er1 >conftest.err
31230   rm -f conftest.er1
31231   cat conftest.err >&5
31232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233   (exit $ac_status); } &&
31234          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31236   (eval $ac_try) 2>&5
31237   ac_status=$?
31238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239   (exit $ac_status); }; } &&
31240          { ac_try='test -s conftest$ac_exeext'
31241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31242   (eval $ac_try) 2>&5
31243   ac_status=$?
31244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31245   (exit $ac_status); }; }; then
31246   eval "$as_ac_var=yes"
31247 else
31248   echo "$as_me: failed program was:" >&5
31249 sed 's/^/| /' conftest.$ac_ext >&5
31250
31251 eval "$as_ac_var=no"
31252 fi
31253 rm -f conftest.err conftest.$ac_objext \
31254       conftest$ac_exeext conftest.$ac_ext
31255 fi
31256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31258 if test `eval echo '${'$as_ac_var'}'` = yes; then
31259   cat >>confdefs.h <<_ACEOF
31260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31261 _ACEOF
31262  cat >>confdefs.h <<\_ACEOF
31263 #define HAVE_NANOSLEEP 1
31264 _ACEOF
31265
31266 else
31267
31268             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
31269 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
31270 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
31271   echo $ECHO_N "(cached) $ECHO_C" >&6
31272 else
31273   ac_check_lib_save_LIBS=$LIBS
31274 LIBS="-lposix4  $LIBS"
31275 cat >conftest.$ac_ext <<_ACEOF
31276 /* confdefs.h.  */
31277 _ACEOF
31278 cat confdefs.h >>conftest.$ac_ext
31279 cat >>conftest.$ac_ext <<_ACEOF
31280 /* end confdefs.h.  */
31281
31282 /* Override any gcc2 internal prototype to avoid an error.  */
31283 #ifdef __cplusplus
31284 extern "C"
31285 #endif
31286 /* We use char because int might match the return type of a gcc2
31287    builtin and then its argument prototype would still apply.  */
31288 char nanosleep ();
31289 int
31290 main ()
31291 {
31292 nanosleep ();
31293   ;
31294   return 0;
31295 }
31296 _ACEOF
31297 rm -f conftest.$ac_objext conftest$ac_exeext
31298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31299   (eval $ac_link) 2>conftest.er1
31300   ac_status=$?
31301   grep -v '^ *+' conftest.er1 >conftest.err
31302   rm -f conftest.er1
31303   cat conftest.err >&5
31304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31305   (exit $ac_status); } &&
31306          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31308   (eval $ac_try) 2>&5
31309   ac_status=$?
31310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311   (exit $ac_status); }; } &&
31312          { ac_try='test -s conftest$ac_exeext'
31313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31314   (eval $ac_try) 2>&5
31315   ac_status=$?
31316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317   (exit $ac_status); }; }; then
31318   ac_cv_lib_posix4_nanosleep=yes
31319 else
31320   echo "$as_me: failed program was:" >&5
31321 sed 's/^/| /' conftest.$ac_ext >&5
31322
31323 ac_cv_lib_posix4_nanosleep=no
31324 fi
31325 rm -f conftest.err conftest.$ac_objext \
31326       conftest$ac_exeext conftest.$ac_ext
31327 LIBS=$ac_check_lib_save_LIBS
31328 fi
31329 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
31330 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
31331 if test $ac_cv_lib_posix4_nanosleep = yes; then
31332
31333                     cat >>confdefs.h <<\_ACEOF
31334 #define HAVE_NANOSLEEP 1
31335 _ACEOF
31336
31337                     POSIX4_LINK=" -lposix4"
31338
31339 else
31340
31341
31342 for ac_func in usleep
31343 do
31344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31345 echo "$as_me:$LINENO: checking for $ac_func" >&5
31346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31347 if eval "test \"\${$as_ac_var+set}\" = set"; then
31348   echo $ECHO_N "(cached) $ECHO_C" >&6
31349 else
31350   cat >conftest.$ac_ext <<_ACEOF
31351 /* confdefs.h.  */
31352 _ACEOF
31353 cat confdefs.h >>conftest.$ac_ext
31354 cat >>conftest.$ac_ext <<_ACEOF
31355 /* end confdefs.h.  */
31356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31358 #define $ac_func innocuous_$ac_func
31359
31360 /* System header to define __stub macros and hopefully few prototypes,
31361     which can conflict with char $ac_func (); below.
31362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31363     <limits.h> exists even on freestanding compilers.  */
31364
31365 #ifdef __STDC__
31366 # include <limits.h>
31367 #else
31368 # include <assert.h>
31369 #endif
31370
31371 #undef $ac_func
31372
31373 /* Override any gcc2 internal prototype to avoid an error.  */
31374 #ifdef __cplusplus
31375 extern "C"
31376 {
31377 #endif
31378 /* We use char because int might match the return type of a gcc2
31379    builtin and then its argument prototype would still apply.  */
31380 char $ac_func ();
31381 /* The GNU C library defines this for functions which it implements
31382     to always fail with ENOSYS.  Some functions are actually named
31383     something starting with __ and the normal name is an alias.  */
31384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31385 choke me
31386 #else
31387 char (*f) () = $ac_func;
31388 #endif
31389 #ifdef __cplusplus
31390 }
31391 #endif
31392
31393 int
31394 main ()
31395 {
31396 return f != $ac_func;
31397   ;
31398   return 0;
31399 }
31400 _ACEOF
31401 rm -f conftest.$ac_objext conftest$ac_exeext
31402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31403   (eval $ac_link) 2>conftest.er1
31404   ac_status=$?
31405   grep -v '^ *+' conftest.er1 >conftest.err
31406   rm -f conftest.er1
31407   cat conftest.err >&5
31408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31409   (exit $ac_status); } &&
31410          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31412   (eval $ac_try) 2>&5
31413   ac_status=$?
31414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31415   (exit $ac_status); }; } &&
31416          { ac_try='test -s conftest$ac_exeext'
31417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31418   (eval $ac_try) 2>&5
31419   ac_status=$?
31420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421   (exit $ac_status); }; }; then
31422   eval "$as_ac_var=yes"
31423 else
31424   echo "$as_me: failed program was:" >&5
31425 sed 's/^/| /' conftest.$ac_ext >&5
31426
31427 eval "$as_ac_var=no"
31428 fi
31429 rm -f conftest.err conftest.$ac_objext \
31430       conftest$ac_exeext conftest.$ac_ext
31431 fi
31432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31434 if test `eval echo '${'$as_ac_var'}'` = yes; then
31435   cat >>confdefs.h <<_ACEOF
31436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31437 _ACEOF
31438  cat >>confdefs.h <<\_ACEOF
31439 #define HAVE_USLEEP 1
31440 _ACEOF
31441
31442 else
31443   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
31444 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
31445
31446 fi
31447 done
31448
31449
31450
31451 fi
31452
31453
31454
31455 fi
31456 done
31457
31458 fi
31459
31460
31461
31462 for ac_func in uname gethostname
31463 do
31464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31465 echo "$as_me:$LINENO: checking for $ac_func" >&5
31466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31467 if eval "test \"\${$as_ac_var+set}\" = set"; then
31468   echo $ECHO_N "(cached) $ECHO_C" >&6
31469 else
31470   cat >conftest.$ac_ext <<_ACEOF
31471 /* confdefs.h.  */
31472 _ACEOF
31473 cat confdefs.h >>conftest.$ac_ext
31474 cat >>conftest.$ac_ext <<_ACEOF
31475 /* end confdefs.h.  */
31476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31478 #define $ac_func innocuous_$ac_func
31479
31480 /* System header to define __stub macros and hopefully few prototypes,
31481     which can conflict with char $ac_func (); below.
31482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31483     <limits.h> exists even on freestanding compilers.  */
31484
31485 #ifdef __STDC__
31486 # include <limits.h>
31487 #else
31488 # include <assert.h>
31489 #endif
31490
31491 #undef $ac_func
31492
31493 /* Override any gcc2 internal prototype to avoid an error.  */
31494 #ifdef __cplusplus
31495 extern "C"
31496 {
31497 #endif
31498 /* We use char because int might match the return type of a gcc2
31499    builtin and then its argument prototype would still apply.  */
31500 char $ac_func ();
31501 /* The GNU C library defines this for functions which it implements
31502     to always fail with ENOSYS.  Some functions are actually named
31503     something starting with __ and the normal name is an alias.  */
31504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31505 choke me
31506 #else
31507 char (*f) () = $ac_func;
31508 #endif
31509 #ifdef __cplusplus
31510 }
31511 #endif
31512
31513 int
31514 main ()
31515 {
31516 return f != $ac_func;
31517   ;
31518   return 0;
31519 }
31520 _ACEOF
31521 rm -f conftest.$ac_objext conftest$ac_exeext
31522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31523   (eval $ac_link) 2>conftest.er1
31524   ac_status=$?
31525   grep -v '^ *+' conftest.er1 >conftest.err
31526   rm -f conftest.er1
31527   cat conftest.err >&5
31528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529   (exit $ac_status); } &&
31530          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31532   (eval $ac_try) 2>&5
31533   ac_status=$?
31534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535   (exit $ac_status); }; } &&
31536          { ac_try='test -s conftest$ac_exeext'
31537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31538   (eval $ac_try) 2>&5
31539   ac_status=$?
31540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541   (exit $ac_status); }; }; then
31542   eval "$as_ac_var=yes"
31543 else
31544   echo "$as_me: failed program was:" >&5
31545 sed 's/^/| /' conftest.$ac_ext >&5
31546
31547 eval "$as_ac_var=no"
31548 fi
31549 rm -f conftest.err conftest.$ac_objext \
31550       conftest$ac_exeext conftest.$ac_ext
31551 fi
31552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31553 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31554 if test `eval echo '${'$as_ac_var'}'` = yes; then
31555   cat >>confdefs.h <<_ACEOF
31556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31557 _ACEOF
31558  break
31559 fi
31560 done
31561
31562
31563
31564
31565 ac_ext=cc
31566 ac_cpp='$CXXCPP $CPPFLAGS'
31567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31570
31571
31572
31573 for ac_func in strtok_r
31574 do
31575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31576 echo "$as_me:$LINENO: checking for $ac_func" >&5
31577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31578 if eval "test \"\${$as_ac_var+set}\" = set"; then
31579   echo $ECHO_N "(cached) $ECHO_C" >&6
31580 else
31581   cat >conftest.$ac_ext <<_ACEOF
31582 /* confdefs.h.  */
31583 _ACEOF
31584 cat confdefs.h >>conftest.$ac_ext
31585 cat >>conftest.$ac_ext <<_ACEOF
31586 /* end confdefs.h.  */
31587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31588    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31589 #define $ac_func innocuous_$ac_func
31590
31591 /* System header to define __stub macros and hopefully few prototypes,
31592     which can conflict with char $ac_func (); below.
31593     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31594     <limits.h> exists even on freestanding compilers.  */
31595
31596 #ifdef __STDC__
31597 # include <limits.h>
31598 #else
31599 # include <assert.h>
31600 #endif
31601
31602 #undef $ac_func
31603
31604 /* Override any gcc2 internal prototype to avoid an error.  */
31605 #ifdef __cplusplus
31606 extern "C"
31607 {
31608 #endif
31609 /* We use char because int might match the return type of a gcc2
31610    builtin and then its argument prototype would still apply.  */
31611 char $ac_func ();
31612 /* The GNU C library defines this for functions which it implements
31613     to always fail with ENOSYS.  Some functions are actually named
31614     something starting with __ and the normal name is an alias.  */
31615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31616 choke me
31617 #else
31618 char (*f) () = $ac_func;
31619 #endif
31620 #ifdef __cplusplus
31621 }
31622 #endif
31623
31624 int
31625 main ()
31626 {
31627 return f != $ac_func;
31628   ;
31629   return 0;
31630 }
31631 _ACEOF
31632 rm -f conftest.$ac_objext conftest$ac_exeext
31633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31634   (eval $ac_link) 2>conftest.er1
31635   ac_status=$?
31636   grep -v '^ *+' conftest.er1 >conftest.err
31637   rm -f conftest.er1
31638   cat conftest.err >&5
31639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640   (exit $ac_status); } &&
31641          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31643   (eval $ac_try) 2>&5
31644   ac_status=$?
31645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646   (exit $ac_status); }; } &&
31647          { ac_try='test -s conftest$ac_exeext'
31648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31649   (eval $ac_try) 2>&5
31650   ac_status=$?
31651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652   (exit $ac_status); }; }; then
31653   eval "$as_ac_var=yes"
31654 else
31655   echo "$as_me: failed program was:" >&5
31656 sed 's/^/| /' conftest.$ac_ext >&5
31657
31658 eval "$as_ac_var=no"
31659 fi
31660 rm -f conftest.err conftest.$ac_objext \
31661       conftest$ac_exeext conftest.$ac_ext
31662 fi
31663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31665 if test `eval echo '${'$as_ac_var'}'` = yes; then
31666   cat >>confdefs.h <<_ACEOF
31667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31668 _ACEOF
31669
31670 fi
31671 done
31672
31673
31674 ac_ext=c
31675 ac_cpp='$CPP $CPPFLAGS'
31676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31679
31680
31681 INET_LINK=
31682
31683 for ac_func in inet_addr
31684 do
31685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31686 echo "$as_me:$LINENO: checking for $ac_func" >&5
31687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31688 if eval "test \"\${$as_ac_var+set}\" = set"; then
31689   echo $ECHO_N "(cached) $ECHO_C" >&6
31690 else
31691   cat >conftest.$ac_ext <<_ACEOF
31692 /* confdefs.h.  */
31693 _ACEOF
31694 cat confdefs.h >>conftest.$ac_ext
31695 cat >>conftest.$ac_ext <<_ACEOF
31696 /* end confdefs.h.  */
31697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31698    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31699 #define $ac_func innocuous_$ac_func
31700
31701 /* System header to define __stub macros and hopefully few prototypes,
31702     which can conflict with char $ac_func (); below.
31703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31704     <limits.h> exists even on freestanding compilers.  */
31705
31706 #ifdef __STDC__
31707 # include <limits.h>
31708 #else
31709 # include <assert.h>
31710 #endif
31711
31712 #undef $ac_func
31713
31714 /* Override any gcc2 internal prototype to avoid an error.  */
31715 #ifdef __cplusplus
31716 extern "C"
31717 {
31718 #endif
31719 /* We use char because int might match the return type of a gcc2
31720    builtin and then its argument prototype would still apply.  */
31721 char $ac_func ();
31722 /* The GNU C library defines this for functions which it implements
31723     to always fail with ENOSYS.  Some functions are actually named
31724     something starting with __ and the normal name is an alias.  */
31725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31726 choke me
31727 #else
31728 char (*f) () = $ac_func;
31729 #endif
31730 #ifdef __cplusplus
31731 }
31732 #endif
31733
31734 int
31735 main ()
31736 {
31737 return f != $ac_func;
31738   ;
31739   return 0;
31740 }
31741 _ACEOF
31742 rm -f conftest.$ac_objext conftest$ac_exeext
31743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31744   (eval $ac_link) 2>conftest.er1
31745   ac_status=$?
31746   grep -v '^ *+' conftest.er1 >conftest.err
31747   rm -f conftest.er1
31748   cat conftest.err >&5
31749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750   (exit $ac_status); } &&
31751          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31753   (eval $ac_try) 2>&5
31754   ac_status=$?
31755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31756   (exit $ac_status); }; } &&
31757          { ac_try='test -s conftest$ac_exeext'
31758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31759   (eval $ac_try) 2>&5
31760   ac_status=$?
31761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762   (exit $ac_status); }; }; then
31763   eval "$as_ac_var=yes"
31764 else
31765   echo "$as_me: failed program was:" >&5
31766 sed 's/^/| /' conftest.$ac_ext >&5
31767
31768 eval "$as_ac_var=no"
31769 fi
31770 rm -f conftest.err conftest.$ac_objext \
31771       conftest$ac_exeext conftest.$ac_ext
31772 fi
31773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31775 if test `eval echo '${'$as_ac_var'}'` = yes; then
31776   cat >>confdefs.h <<_ACEOF
31777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31778 _ACEOF
31779  cat >>confdefs.h <<\_ACEOF
31780 #define HAVE_INET_ADDR 1
31781 _ACEOF
31782
31783 else
31784
31785         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31786 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31787 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31788   echo $ECHO_N "(cached) $ECHO_C" >&6
31789 else
31790   ac_check_lib_save_LIBS=$LIBS
31791 LIBS="-lnsl  $LIBS"
31792 cat >conftest.$ac_ext <<_ACEOF
31793 /* confdefs.h.  */
31794 _ACEOF
31795 cat confdefs.h >>conftest.$ac_ext
31796 cat >>conftest.$ac_ext <<_ACEOF
31797 /* end confdefs.h.  */
31798
31799 /* Override any gcc2 internal prototype to avoid an error.  */
31800 #ifdef __cplusplus
31801 extern "C"
31802 #endif
31803 /* We use char because int might match the return type of a gcc2
31804    builtin and then its argument prototype would still apply.  */
31805 char inet_addr ();
31806 int
31807 main ()
31808 {
31809 inet_addr ();
31810   ;
31811   return 0;
31812 }
31813 _ACEOF
31814 rm -f conftest.$ac_objext conftest$ac_exeext
31815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31816   (eval $ac_link) 2>conftest.er1
31817   ac_status=$?
31818   grep -v '^ *+' conftest.er1 >conftest.err
31819   rm -f conftest.er1
31820   cat conftest.err >&5
31821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822   (exit $ac_status); } &&
31823          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31825   (eval $ac_try) 2>&5
31826   ac_status=$?
31827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828   (exit $ac_status); }; } &&
31829          { ac_try='test -s conftest$ac_exeext'
31830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31831   (eval $ac_try) 2>&5
31832   ac_status=$?
31833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31834   (exit $ac_status); }; }; then
31835   ac_cv_lib_nsl_inet_addr=yes
31836 else
31837   echo "$as_me: failed program was:" >&5
31838 sed 's/^/| /' conftest.$ac_ext >&5
31839
31840 ac_cv_lib_nsl_inet_addr=no
31841 fi
31842 rm -f conftest.err conftest.$ac_objext \
31843       conftest$ac_exeext conftest.$ac_ext
31844 LIBS=$ac_check_lib_save_LIBS
31845 fi
31846 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31847 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31848 if test $ac_cv_lib_nsl_inet_addr = yes; then
31849   INET_LINK="nsl"
31850 else
31851
31852                 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31853 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31854 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31855   echo $ECHO_N "(cached) $ECHO_C" >&6
31856 else
31857   ac_check_lib_save_LIBS=$LIBS
31858 LIBS="-lresolv  $LIBS"
31859 cat >conftest.$ac_ext <<_ACEOF
31860 /* confdefs.h.  */
31861 _ACEOF
31862 cat confdefs.h >>conftest.$ac_ext
31863 cat >>conftest.$ac_ext <<_ACEOF
31864 /* end confdefs.h.  */
31865
31866 /* Override any gcc2 internal prototype to avoid an error.  */
31867 #ifdef __cplusplus
31868 extern "C"
31869 #endif
31870 /* We use char because int might match the return type of a gcc2
31871    builtin and then its argument prototype would still apply.  */
31872 char inet_addr ();
31873 int
31874 main ()
31875 {
31876 inet_addr ();
31877   ;
31878   return 0;
31879 }
31880 _ACEOF
31881 rm -f conftest.$ac_objext conftest$ac_exeext
31882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31883   (eval $ac_link) 2>conftest.er1
31884   ac_status=$?
31885   grep -v '^ *+' conftest.er1 >conftest.err
31886   rm -f conftest.er1
31887   cat conftest.err >&5
31888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889   (exit $ac_status); } &&
31890          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
31896          { ac_try='test -s conftest$ac_exeext'
31897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31898   (eval $ac_try) 2>&5
31899   ac_status=$?
31900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901   (exit $ac_status); }; }; then
31902   ac_cv_lib_resolv_inet_addr=yes
31903 else
31904   echo "$as_me: failed program was:" >&5
31905 sed 's/^/| /' conftest.$ac_ext >&5
31906
31907 ac_cv_lib_resolv_inet_addr=no
31908 fi
31909 rm -f conftest.err conftest.$ac_objext \
31910       conftest$ac_exeext conftest.$ac_ext
31911 LIBS=$ac_check_lib_save_LIBS
31912 fi
31913 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31914 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31915 if test $ac_cv_lib_resolv_inet_addr = yes; then
31916   INET_LINK="resolv"
31917 else
31918
31919                         echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31920 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31921 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31922   echo $ECHO_N "(cached) $ECHO_C" >&6
31923 else
31924   ac_check_lib_save_LIBS=$LIBS
31925 LIBS="-lsocket  $LIBS"
31926 cat >conftest.$ac_ext <<_ACEOF
31927 /* confdefs.h.  */
31928 _ACEOF
31929 cat confdefs.h >>conftest.$ac_ext
31930 cat >>conftest.$ac_ext <<_ACEOF
31931 /* end confdefs.h.  */
31932
31933 /* Override any gcc2 internal prototype to avoid an error.  */
31934 #ifdef __cplusplus
31935 extern "C"
31936 #endif
31937 /* We use char because int might match the return type of a gcc2
31938    builtin and then its argument prototype would still apply.  */
31939 char inet_addr ();
31940 int
31941 main ()
31942 {
31943 inet_addr ();
31944   ;
31945   return 0;
31946 }
31947 _ACEOF
31948 rm -f conftest.$ac_objext conftest$ac_exeext
31949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31950   (eval $ac_link) 2>conftest.er1
31951   ac_status=$?
31952   grep -v '^ *+' conftest.er1 >conftest.err
31953   rm -f conftest.er1
31954   cat conftest.err >&5
31955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956   (exit $ac_status); } &&
31957          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31959   (eval $ac_try) 2>&5
31960   ac_status=$?
31961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31962   (exit $ac_status); }; } &&
31963          { ac_try='test -s conftest$ac_exeext'
31964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31965   (eval $ac_try) 2>&5
31966   ac_status=$?
31967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968   (exit $ac_status); }; }; then
31969   ac_cv_lib_socket_inet_addr=yes
31970 else
31971   echo "$as_me: failed program was:" >&5
31972 sed 's/^/| /' conftest.$ac_ext >&5
31973
31974 ac_cv_lib_socket_inet_addr=no
31975 fi
31976 rm -f conftest.err conftest.$ac_objext \
31977       conftest$ac_exeext conftest.$ac_ext
31978 LIBS=$ac_check_lib_save_LIBS
31979 fi
31980 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31981 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31982 if test $ac_cv_lib_socket_inet_addr = yes; then
31983   INET_LINK="socket"
31984
31985 fi
31986
31987
31988
31989 fi
31990
31991
31992
31993 fi
31994
31995
31996
31997 fi
31998 done
31999
32000
32001
32002 for ac_func in inet_aton
32003 do
32004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32005 echo "$as_me:$LINENO: checking for $ac_func" >&5
32006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32007 if eval "test \"\${$as_ac_var+set}\" = set"; then
32008   echo $ECHO_N "(cached) $ECHO_C" >&6
32009 else
32010   cat >conftest.$ac_ext <<_ACEOF
32011 /* confdefs.h.  */
32012 _ACEOF
32013 cat confdefs.h >>conftest.$ac_ext
32014 cat >>conftest.$ac_ext <<_ACEOF
32015 /* end confdefs.h.  */
32016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32018 #define $ac_func innocuous_$ac_func
32019
32020 /* System header to define __stub macros and hopefully few prototypes,
32021     which can conflict with char $ac_func (); below.
32022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32023     <limits.h> exists even on freestanding compilers.  */
32024
32025 #ifdef __STDC__
32026 # include <limits.h>
32027 #else
32028 # include <assert.h>
32029 #endif
32030
32031 #undef $ac_func
32032
32033 /* Override any gcc2 internal prototype to avoid an error.  */
32034 #ifdef __cplusplus
32035 extern "C"
32036 {
32037 #endif
32038 /* We use char because int might match the return type of a gcc2
32039    builtin and then its argument prototype would still apply.  */
32040 char $ac_func ();
32041 /* The GNU C library defines this for functions which it implements
32042     to always fail with ENOSYS.  Some functions are actually named
32043     something starting with __ and the normal name is an alias.  */
32044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32045 choke me
32046 #else
32047 char (*f) () = $ac_func;
32048 #endif
32049 #ifdef __cplusplus
32050 }
32051 #endif
32052
32053 int
32054 main ()
32055 {
32056 return f != $ac_func;
32057   ;
32058   return 0;
32059 }
32060 _ACEOF
32061 rm -f conftest.$ac_objext conftest$ac_exeext
32062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32063   (eval $ac_link) 2>conftest.er1
32064   ac_status=$?
32065   grep -v '^ *+' conftest.er1 >conftest.err
32066   rm -f conftest.er1
32067   cat conftest.err >&5
32068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069   (exit $ac_status); } &&
32070          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32072   (eval $ac_try) 2>&5
32073   ac_status=$?
32074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075   (exit $ac_status); }; } &&
32076          { ac_try='test -s conftest$ac_exeext'
32077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32078   (eval $ac_try) 2>&5
32079   ac_status=$?
32080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32081   (exit $ac_status); }; }; then
32082   eval "$as_ac_var=yes"
32083 else
32084   echo "$as_me: failed program was:" >&5
32085 sed 's/^/| /' conftest.$ac_ext >&5
32086
32087 eval "$as_ac_var=no"
32088 fi
32089 rm -f conftest.err conftest.$ac_objext \
32090       conftest$ac_exeext conftest.$ac_ext
32091 fi
32092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32094 if test `eval echo '${'$as_ac_var'}'` = yes; then
32095   cat >>confdefs.h <<_ACEOF
32096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32097 _ACEOF
32098  cat >>confdefs.h <<\_ACEOF
32099 #define HAVE_INET_ATON 1
32100 _ACEOF
32101
32102 else
32103
32104                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
32105 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
32106 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
32107 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
32108   echo $ECHO_N "(cached) $ECHO_C" >&6
32109 else
32110   ac_check_lib_save_LIBS=$LIBS
32111 LIBS="-l$INET_LINK  $LIBS"
32112 cat >conftest.$ac_ext <<_ACEOF
32113 /* confdefs.h.  */
32114 _ACEOF
32115 cat confdefs.h >>conftest.$ac_ext
32116 cat >>conftest.$ac_ext <<_ACEOF
32117 /* end confdefs.h.  */
32118
32119 /* Override any gcc2 internal prototype to avoid an error.  */
32120 #ifdef __cplusplus
32121 extern "C"
32122 #endif
32123 /* We use char because int might match the return type of a gcc2
32124    builtin and then its argument prototype would still apply.  */
32125 char inet_aton ();
32126 int
32127 main ()
32128 {
32129 inet_aton ();
32130   ;
32131   return 0;
32132 }
32133 _ACEOF
32134 rm -f conftest.$ac_objext conftest$ac_exeext
32135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32136   (eval $ac_link) 2>conftest.er1
32137   ac_status=$?
32138   grep -v '^ *+' conftest.er1 >conftest.err
32139   rm -f conftest.er1
32140   cat conftest.err >&5
32141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142   (exit $ac_status); } &&
32143          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32145   (eval $ac_try) 2>&5
32146   ac_status=$?
32147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32148   (exit $ac_status); }; } &&
32149          { ac_try='test -s conftest$ac_exeext'
32150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32151   (eval $ac_try) 2>&5
32152   ac_status=$?
32153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32154   (exit $ac_status); }; }; then
32155   eval "$as_ac_Lib=yes"
32156 else
32157   echo "$as_me: failed program was:" >&5
32158 sed 's/^/| /' conftest.$ac_ext >&5
32159
32160 eval "$as_ac_Lib=no"
32161 fi
32162 rm -f conftest.err conftest.$ac_objext \
32163       conftest$ac_exeext conftest.$ac_ext
32164 LIBS=$ac_check_lib_save_LIBS
32165 fi
32166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
32167 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
32168 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32169   cat >>confdefs.h <<\_ACEOF
32170 #define HAVE_INET_ATON 1
32171 _ACEOF
32172
32173 fi
32174
32175
32176 fi
32177 done
32178
32179
32180 if test "x$INET_LINK" != "x"; then
32181     cat >>confdefs.h <<\_ACEOF
32182 #define HAVE_INET_ADDR 1
32183 _ACEOF
32184
32185     INET_LINK=" -l$INET_LINK"
32186 fi
32187
32188 fi
32189
32190
32191
32192 EXTRALIBS_ESD=
32193 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
32194 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
32195 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
32196   echo $ECHO_N "(cached) $ECHO_C" >&6
32197 else
32198   ac_check_lib_save_LIBS=$LIBS
32199 LIBS="-lesd  $LIBS"
32200 cat >conftest.$ac_ext <<_ACEOF
32201 /* confdefs.h.  */
32202 _ACEOF
32203 cat confdefs.h >>conftest.$ac_ext
32204 cat >>conftest.$ac_ext <<_ACEOF
32205 /* end confdefs.h.  */
32206
32207 /* Override any gcc2 internal prototype to avoid an error.  */
32208 #ifdef __cplusplus
32209 extern "C"
32210 #endif
32211 /* We use char because int might match the return type of a gcc2
32212    builtin and then its argument prototype would still apply.  */
32213 char esd_close ();
32214 int
32215 main ()
32216 {
32217 esd_close ();
32218   ;
32219   return 0;
32220 }
32221 _ACEOF
32222 rm -f conftest.$ac_objext conftest$ac_exeext
32223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32224   (eval $ac_link) 2>conftest.er1
32225   ac_status=$?
32226   grep -v '^ *+' conftest.er1 >conftest.err
32227   rm -f conftest.er1
32228   cat conftest.err >&5
32229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230   (exit $ac_status); } &&
32231          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32233   (eval $ac_try) 2>&5
32234   ac_status=$?
32235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236   (exit $ac_status); }; } &&
32237          { ac_try='test -s conftest$ac_exeext'
32238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32239   (eval $ac_try) 2>&5
32240   ac_status=$?
32241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32242   (exit $ac_status); }; }; then
32243   ac_cv_lib_esd_esd_close=yes
32244 else
32245   echo "$as_me: failed program was:" >&5
32246 sed 's/^/| /' conftest.$ac_ext >&5
32247
32248 ac_cv_lib_esd_esd_close=no
32249 fi
32250 rm -f conftest.err conftest.$ac_objext \
32251       conftest$ac_exeext conftest.$ac_ext
32252 LIBS=$ac_check_lib_save_LIBS
32253 fi
32254 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
32255 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
32256 if test $ac_cv_lib_esd_esd_close = yes; then
32257
32258
32259 for ac_header in esd.h
32260 do
32261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32263   echo "$as_me:$LINENO: checking for $ac_header" >&5
32264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32266   echo $ECHO_N "(cached) $ECHO_C" >&6
32267 fi
32268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32270 else
32271   # Is the header compilable?
32272 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32274 cat >conftest.$ac_ext <<_ACEOF
32275 /* confdefs.h.  */
32276 _ACEOF
32277 cat confdefs.h >>conftest.$ac_ext
32278 cat >>conftest.$ac_ext <<_ACEOF
32279 /* end confdefs.h.  */
32280 $ac_includes_default
32281 #include <$ac_header>
32282 _ACEOF
32283 rm -f conftest.$ac_objext
32284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32285   (eval $ac_compile) 2>conftest.er1
32286   ac_status=$?
32287   grep -v '^ *+' conftest.er1 >conftest.err
32288   rm -f conftest.er1
32289   cat conftest.err >&5
32290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291   (exit $ac_status); } &&
32292          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32294   (eval $ac_try) 2>&5
32295   ac_status=$?
32296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297   (exit $ac_status); }; } &&
32298          { ac_try='test -s conftest.$ac_objext'
32299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32300   (eval $ac_try) 2>&5
32301   ac_status=$?
32302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303   (exit $ac_status); }; }; then
32304   ac_header_compiler=yes
32305 else
32306   echo "$as_me: failed program was:" >&5
32307 sed 's/^/| /' conftest.$ac_ext >&5
32308
32309 ac_header_compiler=no
32310 fi
32311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32313 echo "${ECHO_T}$ac_header_compiler" >&6
32314
32315 # Is the header present?
32316 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32318 cat >conftest.$ac_ext <<_ACEOF
32319 /* confdefs.h.  */
32320 _ACEOF
32321 cat confdefs.h >>conftest.$ac_ext
32322 cat >>conftest.$ac_ext <<_ACEOF
32323 /* end confdefs.h.  */
32324 #include <$ac_header>
32325 _ACEOF
32326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32327   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32328   ac_status=$?
32329   grep -v '^ *+' conftest.er1 >conftest.err
32330   rm -f conftest.er1
32331   cat conftest.err >&5
32332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333   (exit $ac_status); } >/dev/null; then
32334   if test -s conftest.err; then
32335     ac_cpp_err=$ac_c_preproc_warn_flag
32336     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32337   else
32338     ac_cpp_err=
32339   fi
32340 else
32341   ac_cpp_err=yes
32342 fi
32343 if test -z "$ac_cpp_err"; then
32344   ac_header_preproc=yes
32345 else
32346   echo "$as_me: failed program was:" >&5
32347 sed 's/^/| /' conftest.$ac_ext >&5
32348
32349   ac_header_preproc=no
32350 fi
32351 rm -f conftest.err conftest.$ac_ext
32352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32353 echo "${ECHO_T}$ac_header_preproc" >&6
32354
32355 # So?  What about this header?
32356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32357   yes:no: )
32358     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32360     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32362     ac_header_preproc=yes
32363     ;;
32364   no:yes:* )
32365     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32367     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32368 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32369     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32370 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32371     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32372 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32373     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32375     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32377     (
32378       cat <<\_ASBOX
32379 ## ----------------------------------------- ##
32380 ## Report this to wx-dev@lists.wxwidgets.org ##
32381 ## ----------------------------------------- ##
32382 _ASBOX
32383     ) |
32384       sed "s/^/$as_me: WARNING:     /" >&2
32385     ;;
32386 esac
32387 echo "$as_me:$LINENO: checking for $ac_header" >&5
32388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32390   echo $ECHO_N "(cached) $ECHO_C" >&6
32391 else
32392   eval "$as_ac_Header=\$ac_header_preproc"
32393 fi
32394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32396
32397 fi
32398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32399   cat >>confdefs.h <<_ACEOF
32400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32401 _ACEOF
32402
32403     EXTRALIBS_ESD="-lesd"
32404
32405 fi
32406
32407 done
32408
32409
32410 fi
32411
32412
32413
32414 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
32415 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
32416 cat >conftest.$ac_ext <<_ACEOF
32417 /* confdefs.h.  */
32418 _ACEOF
32419 cat confdefs.h >>conftest.$ac_ext
32420 cat >>conftest.$ac_ext <<_ACEOF
32421 /* end confdefs.h.  */
32422 #ifdef __linux__
32423                 #include <linux/cdrom.h>
32424                 #else
32425                 /* For Solaris */
32426                 #include <sys/cdio.h>
32427                 #endif
32428
32429 int
32430 main ()
32431 {
32432 struct cdrom_tocentry entry, old_entry;
32433   ;
32434   return 0;
32435 }
32436 _ACEOF
32437 rm -f conftest.$ac_objext
32438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32439   (eval $ac_compile) 2>conftest.er1
32440   ac_status=$?
32441   grep -v '^ *+' conftest.er1 >conftest.err
32442   rm -f conftest.er1
32443   cat conftest.err >&5
32444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445   (exit $ac_status); } &&
32446          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32448   (eval $ac_try) 2>&5
32449   ac_status=$?
32450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32451   (exit $ac_status); }; } &&
32452          { ac_try='test -s conftest.$ac_objext'
32453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32454   (eval $ac_try) 2>&5
32455   ac_status=$?
32456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457   (exit $ac_status); }; }; then
32458   echo "$as_me:$LINENO: result: yes" >&5
32459 echo "${ECHO_T}yes" >&6
32460                 cat >>confdefs.h <<\_ACEOF
32461 #define HAVE_KNOWN_CDROM_INTERFACE 1
32462 _ACEOF
32463
32464 else
32465   echo "$as_me: failed program was:" >&5
32466 sed 's/^/| /' conftest.$ac_ext >&5
32467
32468 echo "$as_me:$LINENO: result: no" >&5
32469 echo "${ECHO_T}no" >&6
32470 fi
32471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32472
32473
32474 cat >confcache <<\_ACEOF
32475 # This file is a shell script that caches the results of configure
32476 # tests run on this system so they can be shared between configure
32477 # scripts and configure runs, see configure's option --config-cache.
32478 # It is not useful on other systems.  If it contains results you don't
32479 # want to keep, you may remove or edit it.
32480 #
32481 # config.status only pays attention to the cache file if you give it
32482 # the --recheck option to rerun configure.
32483 #
32484 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32485 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32486 # following values.
32487
32488 _ACEOF
32489
32490 # The following way of writing the cache mishandles newlines in values,
32491 # but we know of no workaround that is simple, portable, and efficient.
32492 # So, don't put newlines in cache variables' values.
32493 # Ultrix sh set writes to stderr and can't be redirected directly,
32494 # and sets the high bit in the cache file unless we assign to the vars.
32495 {
32496   (set) 2>&1 |
32497     case `(ac_space=' '; set | grep ac_space) 2>&1` in
32498     *ac_space=\ *)
32499       # `set' does not quote correctly, so add quotes (double-quote
32500       # substitution turns \\\\ into \\, and sed turns \\ into \).
32501       sed -n \
32502         "s/'/'\\\\''/g;
32503           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32504       ;;
32505     *)
32506       # `set' quotes correctly as required by POSIX, so do not add quotes.
32507       sed -n \
32508         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
32509       ;;
32510     esac;
32511 } |
32512   sed '
32513      t clear
32514      : clear
32515      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32516      t end
32517      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32518      : end' >>confcache
32519 if diff $cache_file confcache >/dev/null 2>&1; then :; else
32520   if test -w $cache_file; then
32521     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32522     cat confcache >$cache_file
32523   else
32524     echo "not updating unwritable cache $cache_file"
32525   fi
32526 fi
32527 rm -f confcache
32528
32529
32530 CPP_MT_FLAG=
32531 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32532
32533
32534     THREADS_LINK=
32535     THREADS_CFLAGS=
32536
32537     if test "$wxUSE_THREADS" = "yes" ; then
32538         if test "$USE_BEOS" = 1; then
32539             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32540 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32541             wxUSE_THREADS="no"
32542         fi
32543     fi
32544
32545     if test "$wxUSE_THREADS" = "yes" ; then
32546
32547
32548                                 THREAD_OPTS="-pthread"
32549         case "${host}" in
32550           *-*-solaris2* | *-*-sunos4* )
32551                 if test "x$GCC" = "xyes"; then
32552                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
32553                 else
32554                     THREAD_OPTS="-mt $THREAD_OPTS"
32555                 fi
32556                 ;;
32557           *-*-freebsd*)
32558                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32559                 ;;
32560           *-*-darwin* | *-*-cygwin* )
32561                                                 THREAD_OPTS=""
32562                 ;;
32563           *-*-aix*)
32564                                 THREAD_OPTS="pthreads"
32565                 ;;
32566           *-hp-hpux* )
32567                                                                 if test "x$GCC" != "xyes"; then
32568                     THREAD_OPTS=""
32569                 fi
32570                 ;;
32571
32572           *-*-irix* )
32573                                                                 if test "x$GCC" = "xyes"; then
32574                     THREAD_OPTS=""
32575                 fi
32576                 ;;
32577
32578           *-*-*UnixWare*)
32579                                 if test "x$GCC" != "xyes"; then
32580                     THREAD_OPTS="-Ethread"
32581                 fi
32582                 ;;
32583         esac
32584
32585                                 THREAD_OPTS="$THREAD_OPTS pthread none"
32586
32587                 THREADS_OK=no
32588         for flag in $THREAD_OPTS; do
32589             case $flag in
32590                 none)
32591                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32592 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32593                     ;;
32594
32595                 -*)
32596                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32597 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32598                     THREADS_CFLAGS="$flag"
32599                     ;;
32600
32601                 *)
32602                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32603 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32604                     THREADS_LINK="-l$flag"
32605                     ;;
32606               esac
32607
32608               save_LIBS="$LIBS"
32609               save_CFLAGS="$CFLAGS"
32610               LIBS="$THREADS_LINK $LIBS"
32611               CFLAGS="$THREADS_CFLAGS $CFLAGS"
32612
32613               cat >conftest.$ac_ext <<_ACEOF
32614 /* confdefs.h.  */
32615 _ACEOF
32616 cat confdefs.h >>conftest.$ac_ext
32617 cat >>conftest.$ac_ext <<_ACEOF
32618 /* end confdefs.h.  */
32619 #include <pthread.h>
32620 int
32621 main ()
32622 {
32623 pthread_create(0,0,0,0);
32624   ;
32625   return 0;
32626 }
32627 _ACEOF
32628 rm -f conftest.$ac_objext conftest$ac_exeext
32629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32630   (eval $ac_link) 2>conftest.er1
32631   ac_status=$?
32632   grep -v '^ *+' conftest.er1 >conftest.err
32633   rm -f conftest.er1
32634   cat conftest.err >&5
32635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636   (exit $ac_status); } &&
32637          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32639   (eval $ac_try) 2>&5
32640   ac_status=$?
32641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642   (exit $ac_status); }; } &&
32643          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
32649   THREADS_OK=yes
32650 else
32651   echo "$as_me: failed program was:" >&5
32652 sed 's/^/| /' conftest.$ac_ext >&5
32653
32654 fi
32655 rm -f conftest.err conftest.$ac_objext \
32656       conftest$ac_exeext conftest.$ac_ext
32657
32658               LIBS="$save_LIBS"
32659               CFLAGS="$save_CFLAGS"
32660
32661               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32662 echo "${ECHO_T}$THREADS_OK" >&6
32663               if test "x$THREADS_OK" = "xyes"; then
32664                       break;
32665               fi
32666
32667               THREADS_LINK=""
32668               THREADS_CFLAGS=""
32669       done
32670
32671       if test "x$THREADS_OK" != "xyes"; then
32672           wxUSE_THREADS=no
32673           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32674 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32675       else
32676                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32677           LIBS="$THREADS_LINK $LIBS"
32678
32679           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32680 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32681           flag=no
32682           case "${host}" in
32683             *-aix*)
32684                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32685                 flag="-D_THREAD_SAFE"
32686                 ;;
32687             *-freebsd*)
32688                 flag="-D_THREAD_SAFE"
32689                 ;;
32690             *-hp-hpux* )
32691                 flag="-D_REENTRANT"
32692                 if test "x$GCC" != "xyes"; then
32693                                         flag="$flag -D_RWSTD_MULTI_THREAD"
32694                 fi
32695                 ;;
32696             *solaris* | alpha*-osf*)
32697                 flag="-D_REENTRANT"
32698                 ;;
32699           esac
32700           echo "$as_me:$LINENO: result: ${flag}" >&5
32701 echo "${ECHO_T}${flag}" >&6
32702           if test "x$flag" != xno; then
32703               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32704           fi
32705
32706           if test "x$THREADS_CFLAGS" != "x"; then
32707                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
32708             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32709           fi
32710       fi
32711     fi
32712
32713         if test "$wxUSE_THREADS" = "yes" ; then
32714
32715 for ac_func in thr_setconcurrency
32716 do
32717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32718 echo "$as_me:$LINENO: checking for $ac_func" >&5
32719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32720 if eval "test \"\${$as_ac_var+set}\" = set"; then
32721   echo $ECHO_N "(cached) $ECHO_C" >&6
32722 else
32723   cat >conftest.$ac_ext <<_ACEOF
32724 /* confdefs.h.  */
32725 _ACEOF
32726 cat confdefs.h >>conftest.$ac_ext
32727 cat >>conftest.$ac_ext <<_ACEOF
32728 /* end confdefs.h.  */
32729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32731 #define $ac_func innocuous_$ac_func
32732
32733 /* System header to define __stub macros and hopefully few prototypes,
32734     which can conflict with char $ac_func (); below.
32735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32736     <limits.h> exists even on freestanding compilers.  */
32737
32738 #ifdef __STDC__
32739 # include <limits.h>
32740 #else
32741 # include <assert.h>
32742 #endif
32743
32744 #undef $ac_func
32745
32746 /* Override any gcc2 internal prototype to avoid an error.  */
32747 #ifdef __cplusplus
32748 extern "C"
32749 {
32750 #endif
32751 /* We use char because int might match the return type of a gcc2
32752    builtin and then its argument prototype would still apply.  */
32753 char $ac_func ();
32754 /* The GNU C library defines this for functions which it implements
32755     to always fail with ENOSYS.  Some functions are actually named
32756     something starting with __ and the normal name is an alias.  */
32757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32758 choke me
32759 #else
32760 char (*f) () = $ac_func;
32761 #endif
32762 #ifdef __cplusplus
32763 }
32764 #endif
32765
32766 int
32767 main ()
32768 {
32769 return f != $ac_func;
32770   ;
32771   return 0;
32772 }
32773 _ACEOF
32774 rm -f conftest.$ac_objext conftest$ac_exeext
32775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32776   (eval $ac_link) 2>conftest.er1
32777   ac_status=$?
32778   grep -v '^ *+' conftest.er1 >conftest.err
32779   rm -f conftest.er1
32780   cat conftest.err >&5
32781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32782   (exit $ac_status); } &&
32783          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32785   (eval $ac_try) 2>&5
32786   ac_status=$?
32787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788   (exit $ac_status); }; } &&
32789          { ac_try='test -s conftest$ac_exeext'
32790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32791   (eval $ac_try) 2>&5
32792   ac_status=$?
32793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32794   (exit $ac_status); }; }; then
32795   eval "$as_ac_var=yes"
32796 else
32797   echo "$as_me: failed program was:" >&5
32798 sed 's/^/| /' conftest.$ac_ext >&5
32799
32800 eval "$as_ac_var=no"
32801 fi
32802 rm -f conftest.err conftest.$ac_objext \
32803       conftest$ac_exeext conftest.$ac_ext
32804 fi
32805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32807 if test `eval echo '${'$as_ac_var'}'` = yes; then
32808   cat >>confdefs.h <<_ACEOF
32809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32810 _ACEOF
32811
32812 fi
32813 done
32814
32815
32816
32817 for ac_header in sched.h
32818 do
32819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32821   echo "$as_me:$LINENO: checking for $ac_header" >&5
32822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32824   echo $ECHO_N "(cached) $ECHO_C" >&6
32825 fi
32826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32828 else
32829   # Is the header compilable?
32830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32832 cat >conftest.$ac_ext <<_ACEOF
32833 /* confdefs.h.  */
32834 _ACEOF
32835 cat confdefs.h >>conftest.$ac_ext
32836 cat >>conftest.$ac_ext <<_ACEOF
32837 /* end confdefs.h.  */
32838 $ac_includes_default
32839 #include <$ac_header>
32840 _ACEOF
32841 rm -f conftest.$ac_objext
32842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32843   (eval $ac_compile) 2>conftest.er1
32844   ac_status=$?
32845   grep -v '^ *+' conftest.er1 >conftest.err
32846   rm -f conftest.er1
32847   cat conftest.err >&5
32848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32849   (exit $ac_status); } &&
32850          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32852   (eval $ac_try) 2>&5
32853   ac_status=$?
32854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32855   (exit $ac_status); }; } &&
32856          { ac_try='test -s conftest.$ac_objext'
32857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32858   (eval $ac_try) 2>&5
32859   ac_status=$?
32860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861   (exit $ac_status); }; }; then
32862   ac_header_compiler=yes
32863 else
32864   echo "$as_me: failed program was:" >&5
32865 sed 's/^/| /' conftest.$ac_ext >&5
32866
32867 ac_header_compiler=no
32868 fi
32869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32871 echo "${ECHO_T}$ac_header_compiler" >&6
32872
32873 # Is the header present?
32874 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32876 cat >conftest.$ac_ext <<_ACEOF
32877 /* confdefs.h.  */
32878 _ACEOF
32879 cat confdefs.h >>conftest.$ac_ext
32880 cat >>conftest.$ac_ext <<_ACEOF
32881 /* end confdefs.h.  */
32882 #include <$ac_header>
32883 _ACEOF
32884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32885   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32886   ac_status=$?
32887   grep -v '^ *+' conftest.er1 >conftest.err
32888   rm -f conftest.er1
32889   cat conftest.err >&5
32890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32891   (exit $ac_status); } >/dev/null; then
32892   if test -s conftest.err; then
32893     ac_cpp_err=$ac_c_preproc_warn_flag
32894     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32895   else
32896     ac_cpp_err=
32897   fi
32898 else
32899   ac_cpp_err=yes
32900 fi
32901 if test -z "$ac_cpp_err"; then
32902   ac_header_preproc=yes
32903 else
32904   echo "$as_me: failed program was:" >&5
32905 sed 's/^/| /' conftest.$ac_ext >&5
32906
32907   ac_header_preproc=no
32908 fi
32909 rm -f conftest.err conftest.$ac_ext
32910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32911 echo "${ECHO_T}$ac_header_preproc" >&6
32912
32913 # So?  What about this header?
32914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32915   yes:no: )
32916     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32920     ac_header_preproc=yes
32921     ;;
32922   no:yes:* )
32923     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32925     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32926 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32927     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32929     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32930 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32933     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32935     (
32936       cat <<\_ASBOX
32937 ## ----------------------------------------- ##
32938 ## Report this to wx-dev@lists.wxwidgets.org ##
32939 ## ----------------------------------------- ##
32940 _ASBOX
32941     ) |
32942       sed "s/^/$as_me: WARNING:     /" >&2
32943     ;;
32944 esac
32945 echo "$as_me:$LINENO: checking for $ac_header" >&5
32946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32948   echo $ECHO_N "(cached) $ECHO_C" >&6
32949 else
32950   eval "$as_ac_Header=\$ac_header_preproc"
32951 fi
32952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32954
32955 fi
32956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32957   cat >>confdefs.h <<_ACEOF
32958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32959 _ACEOF
32960
32961 fi
32962
32963 done
32964
32965       if test "$ac_cv_header_sched_h" = "yes"; then
32966           echo "$as_me:$LINENO: checking for sched_yield" >&5
32967 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32968 if test "${ac_cv_func_sched_yield+set}" = set; then
32969   echo $ECHO_N "(cached) $ECHO_C" >&6
32970 else
32971   cat >conftest.$ac_ext <<_ACEOF
32972 /* confdefs.h.  */
32973 _ACEOF
32974 cat confdefs.h >>conftest.$ac_ext
32975 cat >>conftest.$ac_ext <<_ACEOF
32976 /* end confdefs.h.  */
32977 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32978    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32979 #define sched_yield innocuous_sched_yield
32980
32981 /* System header to define __stub macros and hopefully few prototypes,
32982     which can conflict with char sched_yield (); below.
32983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32984     <limits.h> exists even on freestanding compilers.  */
32985
32986 #ifdef __STDC__
32987 # include <limits.h>
32988 #else
32989 # include <assert.h>
32990 #endif
32991
32992 #undef sched_yield
32993
32994 /* Override any gcc2 internal prototype to avoid an error.  */
32995 #ifdef __cplusplus
32996 extern "C"
32997 {
32998 #endif
32999 /* We use char because int might match the return type of a gcc2
33000    builtin and then its argument prototype would still apply.  */
33001 char sched_yield ();
33002 /* The GNU C library defines this for functions which it implements
33003     to always fail with ENOSYS.  Some functions are actually named
33004     something starting with __ and the normal name is an alias.  */
33005 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
33006 choke me
33007 #else
33008 char (*f) () = sched_yield;
33009 #endif
33010 #ifdef __cplusplus
33011 }
33012 #endif
33013
33014 int
33015 main ()
33016 {
33017 return f != sched_yield;
33018   ;
33019   return 0;
33020 }
33021 _ACEOF
33022 rm -f conftest.$ac_objext conftest$ac_exeext
33023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33024   (eval $ac_link) 2>conftest.er1
33025   ac_status=$?
33026   grep -v '^ *+' conftest.er1 >conftest.err
33027   rm -f conftest.er1
33028   cat conftest.err >&5
33029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33030   (exit $ac_status); } &&
33031          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33033   (eval $ac_try) 2>&5
33034   ac_status=$?
33035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33036   (exit $ac_status); }; } &&
33037          { ac_try='test -s conftest$ac_exeext'
33038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33039   (eval $ac_try) 2>&5
33040   ac_status=$?
33041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33042   (exit $ac_status); }; }; then
33043   ac_cv_func_sched_yield=yes
33044 else
33045   echo "$as_me: failed program was:" >&5
33046 sed 's/^/| /' conftest.$ac_ext >&5
33047
33048 ac_cv_func_sched_yield=no
33049 fi
33050 rm -f conftest.err conftest.$ac_objext \
33051       conftest$ac_exeext conftest.$ac_ext
33052 fi
33053 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
33054 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
33055 if test $ac_cv_func_sched_yield = yes; then
33056   cat >>confdefs.h <<\_ACEOF
33057 #define HAVE_SCHED_YIELD 1
33058 _ACEOF
33059
33060 else
33061
33062                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
33063 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
33064 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
33065   echo $ECHO_N "(cached) $ECHO_C" >&6
33066 else
33067   ac_check_lib_save_LIBS=$LIBS
33068 LIBS="-lposix4  $LIBS"
33069 cat >conftest.$ac_ext <<_ACEOF
33070 /* confdefs.h.  */
33071 _ACEOF
33072 cat confdefs.h >>conftest.$ac_ext
33073 cat >>conftest.$ac_ext <<_ACEOF
33074 /* end confdefs.h.  */
33075
33076 /* Override any gcc2 internal prototype to avoid an error.  */
33077 #ifdef __cplusplus
33078 extern "C"
33079 #endif
33080 /* We use char because int might match the return type of a gcc2
33081    builtin and then its argument prototype would still apply.  */
33082 char sched_yield ();
33083 int
33084 main ()
33085 {
33086 sched_yield ();
33087   ;
33088   return 0;
33089 }
33090 _ACEOF
33091 rm -f conftest.$ac_objext conftest$ac_exeext
33092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33093   (eval $ac_link) 2>conftest.er1
33094   ac_status=$?
33095   grep -v '^ *+' conftest.er1 >conftest.err
33096   rm -f conftest.er1
33097   cat conftest.err >&5
33098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099   (exit $ac_status); } &&
33100          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33102   (eval $ac_try) 2>&5
33103   ac_status=$?
33104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105   (exit $ac_status); }; } &&
33106          { ac_try='test -s conftest$ac_exeext'
33107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33108   (eval $ac_try) 2>&5
33109   ac_status=$?
33110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111   (exit $ac_status); }; }; then
33112   ac_cv_lib_posix4_sched_yield=yes
33113 else
33114   echo "$as_me: failed program was:" >&5
33115 sed 's/^/| /' conftest.$ac_ext >&5
33116
33117 ac_cv_lib_posix4_sched_yield=no
33118 fi
33119 rm -f conftest.err conftest.$ac_objext \
33120       conftest$ac_exeext conftest.$ac_ext
33121 LIBS=$ac_check_lib_save_LIBS
33122 fi
33123 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
33124 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
33125 if test $ac_cv_lib_posix4_sched_yield = yes; then
33126   cat >>confdefs.h <<\_ACEOF
33127 #define HAVE_SCHED_YIELD 1
33128 _ACEOF
33129  POSIX4_LINK=" -lposix4"
33130 else
33131   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
33132 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
33133
33134 fi
33135
33136
33137
33138 fi
33139
33140       fi
33141
33142                                           HAVE_PRIOR_FUNCS=0
33143       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
33144 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
33145 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
33146   echo $ECHO_N "(cached) $ECHO_C" >&6
33147 else
33148   cat >conftest.$ac_ext <<_ACEOF
33149 /* confdefs.h.  */
33150 _ACEOF
33151 cat confdefs.h >>conftest.$ac_ext
33152 cat >>conftest.$ac_ext <<_ACEOF
33153 /* end confdefs.h.  */
33154 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
33155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33156 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
33157
33158 /* System header to define __stub macros and hopefully few prototypes,
33159     which can conflict with char pthread_attr_getschedpolicy (); below.
33160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33161     <limits.h> exists even on freestanding compilers.  */
33162
33163 #ifdef __STDC__
33164 # include <limits.h>
33165 #else
33166 # include <assert.h>
33167 #endif
33168
33169 #undef pthread_attr_getschedpolicy
33170
33171 /* Override any gcc2 internal prototype to avoid an error.  */
33172 #ifdef __cplusplus
33173 extern "C"
33174 {
33175 #endif
33176 /* We use char because int might match the return type of a gcc2
33177    builtin and then its argument prototype would still apply.  */
33178 char pthread_attr_getschedpolicy ();
33179 /* The GNU C library defines this for functions which it implements
33180     to always fail with ENOSYS.  Some functions are actually named
33181     something starting with __ and the normal name is an alias.  */
33182 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
33183 choke me
33184 #else
33185 char (*f) () = pthread_attr_getschedpolicy;
33186 #endif
33187 #ifdef __cplusplus
33188 }
33189 #endif
33190
33191 int
33192 main ()
33193 {
33194 return f != pthread_attr_getschedpolicy;
33195   ;
33196   return 0;
33197 }
33198 _ACEOF
33199 rm -f conftest.$ac_objext conftest$ac_exeext
33200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33201   (eval $ac_link) 2>conftest.er1
33202   ac_status=$?
33203   grep -v '^ *+' conftest.er1 >conftest.err
33204   rm -f conftest.er1
33205   cat conftest.err >&5
33206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33207   (exit $ac_status); } &&
33208          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33210   (eval $ac_try) 2>&5
33211   ac_status=$?
33212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213   (exit $ac_status); }; } &&
33214          { ac_try='test -s conftest$ac_exeext'
33215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33216   (eval $ac_try) 2>&5
33217   ac_status=$?
33218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33219   (exit $ac_status); }; }; then
33220   ac_cv_func_pthread_attr_getschedpolicy=yes
33221 else
33222   echo "$as_me: failed program was:" >&5
33223 sed 's/^/| /' conftest.$ac_ext >&5
33224
33225 ac_cv_func_pthread_attr_getschedpolicy=no
33226 fi
33227 rm -f conftest.err conftest.$ac_objext \
33228       conftest$ac_exeext conftest.$ac_ext
33229 fi
33230 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
33231 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
33232 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
33233   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
33234 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
33235 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
33236   echo $ECHO_N "(cached) $ECHO_C" >&6
33237 else
33238   cat >conftest.$ac_ext <<_ACEOF
33239 /* confdefs.h.  */
33240 _ACEOF
33241 cat confdefs.h >>conftest.$ac_ext
33242 cat >>conftest.$ac_ext <<_ACEOF
33243 /* end confdefs.h.  */
33244 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
33245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33246 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
33247
33248 /* System header to define __stub macros and hopefully few prototypes,
33249     which can conflict with char pthread_attr_setschedparam (); below.
33250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33251     <limits.h> exists even on freestanding compilers.  */
33252
33253 #ifdef __STDC__
33254 # include <limits.h>
33255 #else
33256 # include <assert.h>
33257 #endif
33258
33259 #undef pthread_attr_setschedparam
33260
33261 /* Override any gcc2 internal prototype to avoid an error.  */
33262 #ifdef __cplusplus
33263 extern "C"
33264 {
33265 #endif
33266 /* We use char because int might match the return type of a gcc2
33267    builtin and then its argument prototype would still apply.  */
33268 char pthread_attr_setschedparam ();
33269 /* The GNU C library defines this for functions which it implements
33270     to always fail with ENOSYS.  Some functions are actually named
33271     something starting with __ and the normal name is an alias.  */
33272 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
33273 choke me
33274 #else
33275 char (*f) () = pthread_attr_setschedparam;
33276 #endif
33277 #ifdef __cplusplus
33278 }
33279 #endif
33280
33281 int
33282 main ()
33283 {
33284 return f != pthread_attr_setschedparam;
33285   ;
33286   return 0;
33287 }
33288 _ACEOF
33289 rm -f conftest.$ac_objext conftest$ac_exeext
33290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33291   (eval $ac_link) 2>conftest.er1
33292   ac_status=$?
33293   grep -v '^ *+' conftest.er1 >conftest.err
33294   rm -f conftest.er1
33295   cat conftest.err >&5
33296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297   (exit $ac_status); } &&
33298          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33300   (eval $ac_try) 2>&5
33301   ac_status=$?
33302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33303   (exit $ac_status); }; } &&
33304          { ac_try='test -s conftest$ac_exeext'
33305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33306   (eval $ac_try) 2>&5
33307   ac_status=$?
33308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309   (exit $ac_status); }; }; then
33310   ac_cv_func_pthread_attr_setschedparam=yes
33311 else
33312   echo "$as_me: failed program was:" >&5
33313 sed 's/^/| /' conftest.$ac_ext >&5
33314
33315 ac_cv_func_pthread_attr_setschedparam=no
33316 fi
33317 rm -f conftest.err conftest.$ac_objext \
33318       conftest$ac_exeext conftest.$ac_ext
33319 fi
33320 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
33321 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
33322 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
33323   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
33324 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
33325 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
33326   echo $ECHO_N "(cached) $ECHO_C" >&6
33327 else
33328   cat >conftest.$ac_ext <<_ACEOF
33329 /* confdefs.h.  */
33330 _ACEOF
33331 cat confdefs.h >>conftest.$ac_ext
33332 cat >>conftest.$ac_ext <<_ACEOF
33333 /* end confdefs.h.  */
33334 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
33335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33336 #define sched_get_priority_max innocuous_sched_get_priority_max
33337
33338 /* System header to define __stub macros and hopefully few prototypes,
33339     which can conflict with char sched_get_priority_max (); below.
33340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33341     <limits.h> exists even on freestanding compilers.  */
33342
33343 #ifdef __STDC__
33344 # include <limits.h>
33345 #else
33346 # include <assert.h>
33347 #endif
33348
33349 #undef sched_get_priority_max
33350
33351 /* Override any gcc2 internal prototype to avoid an error.  */
33352 #ifdef __cplusplus
33353 extern "C"
33354 {
33355 #endif
33356 /* We use char because int might match the return type of a gcc2
33357    builtin and then its argument prototype would still apply.  */
33358 char sched_get_priority_max ();
33359 /* The GNU C library defines this for functions which it implements
33360     to always fail with ENOSYS.  Some functions are actually named
33361     something starting with __ and the normal name is an alias.  */
33362 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
33363 choke me
33364 #else
33365 char (*f) () = sched_get_priority_max;
33366 #endif
33367 #ifdef __cplusplus
33368 }
33369 #endif
33370
33371 int
33372 main ()
33373 {
33374 return f != sched_get_priority_max;
33375   ;
33376   return 0;
33377 }
33378 _ACEOF
33379 rm -f conftest.$ac_objext conftest$ac_exeext
33380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33381   (eval $ac_link) 2>conftest.er1
33382   ac_status=$?
33383   grep -v '^ *+' conftest.er1 >conftest.err
33384   rm -f conftest.er1
33385   cat conftest.err >&5
33386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33387   (exit $ac_status); } &&
33388          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33390   (eval $ac_try) 2>&5
33391   ac_status=$?
33392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393   (exit $ac_status); }; } &&
33394          { ac_try='test -s conftest$ac_exeext'
33395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33396   (eval $ac_try) 2>&5
33397   ac_status=$?
33398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399   (exit $ac_status); }; }; then
33400   ac_cv_func_sched_get_priority_max=yes
33401 else
33402   echo "$as_me: failed program was:" >&5
33403 sed 's/^/| /' conftest.$ac_ext >&5
33404
33405 ac_cv_func_sched_get_priority_max=no
33406 fi
33407 rm -f conftest.err conftest.$ac_objext \
33408       conftest$ac_exeext conftest.$ac_ext
33409 fi
33410 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
33411 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
33412 if test $ac_cv_func_sched_get_priority_max = yes; then
33413   HAVE_PRIOR_FUNCS=1
33414 else
33415   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
33416 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
33417 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
33418   echo $ECHO_N "(cached) $ECHO_C" >&6
33419 else
33420   ac_check_lib_save_LIBS=$LIBS
33421 LIBS="-lposix4  $LIBS"
33422 cat >conftest.$ac_ext <<_ACEOF
33423 /* confdefs.h.  */
33424 _ACEOF
33425 cat confdefs.h >>conftest.$ac_ext
33426 cat >>conftest.$ac_ext <<_ACEOF
33427 /* end confdefs.h.  */
33428
33429 /* Override any gcc2 internal prototype to avoid an error.  */
33430 #ifdef __cplusplus
33431 extern "C"
33432 #endif
33433 /* We use char because int might match the return type of a gcc2
33434    builtin and then its argument prototype would still apply.  */
33435 char sched_get_priority_max ();
33436 int
33437 main ()
33438 {
33439 sched_get_priority_max ();
33440   ;
33441   return 0;
33442 }
33443 _ACEOF
33444 rm -f conftest.$ac_objext conftest$ac_exeext
33445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33446   (eval $ac_link) 2>conftest.er1
33447   ac_status=$?
33448   grep -v '^ *+' conftest.er1 >conftest.err
33449   rm -f conftest.er1
33450   cat conftest.err >&5
33451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33452   (exit $ac_status); } &&
33453          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33455   (eval $ac_try) 2>&5
33456   ac_status=$?
33457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33458   (exit $ac_status); }; } &&
33459          { ac_try='test -s conftest$ac_exeext'
33460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33461   (eval $ac_try) 2>&5
33462   ac_status=$?
33463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33464   (exit $ac_status); }; }; then
33465   ac_cv_lib_posix4_sched_get_priority_max=yes
33466 else
33467   echo "$as_me: failed program was:" >&5
33468 sed 's/^/| /' conftest.$ac_ext >&5
33469
33470 ac_cv_lib_posix4_sched_get_priority_max=no
33471 fi
33472 rm -f conftest.err conftest.$ac_objext \
33473       conftest$ac_exeext conftest.$ac_ext
33474 LIBS=$ac_check_lib_save_LIBS
33475 fi
33476 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33477 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33478 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33479
33480                                 HAVE_PRIOR_FUNCS=1
33481                                 POSIX4_LINK=" -lposix4"
33482
33483 fi
33484
33485
33486 fi
33487
33488
33489 fi
33490
33491
33492 fi
33493
33494
33495       if test "$HAVE_PRIOR_FUNCS" = 1; then
33496         cat >>confdefs.h <<\_ACEOF
33497 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33498 _ACEOF
33499
33500       else
33501         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33502 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33503       fi
33504
33505       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33506 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33507 if test "${ac_cv_func_pthread_cancel+set}" = set; then
33508   echo $ECHO_N "(cached) $ECHO_C" >&6
33509 else
33510   cat >conftest.$ac_ext <<_ACEOF
33511 /* confdefs.h.  */
33512 _ACEOF
33513 cat confdefs.h >>conftest.$ac_ext
33514 cat >>conftest.$ac_ext <<_ACEOF
33515 /* end confdefs.h.  */
33516 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33518 #define pthread_cancel innocuous_pthread_cancel
33519
33520 /* System header to define __stub macros and hopefully few prototypes,
33521     which can conflict with char pthread_cancel (); below.
33522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33523     <limits.h> exists even on freestanding compilers.  */
33524
33525 #ifdef __STDC__
33526 # include <limits.h>
33527 #else
33528 # include <assert.h>
33529 #endif
33530
33531 #undef pthread_cancel
33532
33533 /* Override any gcc2 internal prototype to avoid an error.  */
33534 #ifdef __cplusplus
33535 extern "C"
33536 {
33537 #endif
33538 /* We use char because int might match the return type of a gcc2
33539    builtin and then its argument prototype would still apply.  */
33540 char pthread_cancel ();
33541 /* The GNU C library defines this for functions which it implements
33542     to always fail with ENOSYS.  Some functions are actually named
33543     something starting with __ and the normal name is an alias.  */
33544 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33545 choke me
33546 #else
33547 char (*f) () = pthread_cancel;
33548 #endif
33549 #ifdef __cplusplus
33550 }
33551 #endif
33552
33553 int
33554 main ()
33555 {
33556 return f != pthread_cancel;
33557   ;
33558   return 0;
33559 }
33560 _ACEOF
33561 rm -f conftest.$ac_objext conftest$ac_exeext
33562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33563   (eval $ac_link) 2>conftest.er1
33564   ac_status=$?
33565   grep -v '^ *+' conftest.er1 >conftest.err
33566   rm -f conftest.er1
33567   cat conftest.err >&5
33568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33569   (exit $ac_status); } &&
33570          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33572   (eval $ac_try) 2>&5
33573   ac_status=$?
33574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33575   (exit $ac_status); }; } &&
33576          { ac_try='test -s conftest$ac_exeext'
33577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33578   (eval $ac_try) 2>&5
33579   ac_status=$?
33580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581   (exit $ac_status); }; }; then
33582   ac_cv_func_pthread_cancel=yes
33583 else
33584   echo "$as_me: failed program was:" >&5
33585 sed 's/^/| /' conftest.$ac_ext >&5
33586
33587 ac_cv_func_pthread_cancel=no
33588 fi
33589 rm -f conftest.err conftest.$ac_objext \
33590       conftest$ac_exeext conftest.$ac_ext
33591 fi
33592 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33593 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33594 if test $ac_cv_func_pthread_cancel = yes; then
33595   cat >>confdefs.h <<\_ACEOF
33596 #define HAVE_PTHREAD_CANCEL 1
33597 _ACEOF
33598
33599 else
33600   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33601 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33602 fi
33603
33604
33605
33606
33607       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33608 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33609 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33610   echo $ECHO_N "(cached) $ECHO_C" >&6
33611 else
33612
33613         cat >conftest.$ac_ext <<_ACEOF
33614 /* confdefs.h.  */
33615 _ACEOF
33616 cat confdefs.h >>conftest.$ac_ext
33617 cat >>conftest.$ac_ext <<_ACEOF
33618 /* end confdefs.h.  */
33619 #include <pthread.h>
33620 int
33621 main ()
33622 {
33623
33624                pthread_mutexattr_t attr;
33625                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
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
33653                wx_cv_type_pthread_mutexattr_t=yes
33654
33655 else
33656   echo "$as_me: failed program was:" >&5
33657 sed 's/^/| /' conftest.$ac_ext >&5
33658
33659
33660                wx_cv_type_pthread_mutexattr_t=no
33661
33662
33663 fi
33664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33665
33666 fi
33667 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33668 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33669
33670       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33671         cat >>confdefs.h <<\_ACEOF
33672 #define HAVE_PTHREAD_MUTEXATTR_T 1
33673 _ACEOF
33674
33675       else
33676                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33677 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33678 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33679   echo $ECHO_N "(cached) $ECHO_C" >&6
33680 else
33681
33682             cat >conftest.$ac_ext <<_ACEOF
33683 /* confdefs.h.  */
33684 _ACEOF
33685 cat confdefs.h >>conftest.$ac_ext
33686 cat >>conftest.$ac_ext <<_ACEOF
33687 /* end confdefs.h.  */
33688 #include <pthread.h>
33689 int
33690 main ()
33691 {
33692
33693                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33694
33695   ;
33696   return 0;
33697 }
33698 _ACEOF
33699 rm -f conftest.$ac_objext
33700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33701   (eval $ac_compile) 2>conftest.er1
33702   ac_status=$?
33703   grep -v '^ *+' conftest.er1 >conftest.err
33704   rm -f conftest.er1
33705   cat conftest.err >&5
33706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707   (exit $ac_status); } &&
33708          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33710   (eval $ac_try) 2>&5
33711   ac_status=$?
33712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713   (exit $ac_status); }; } &&
33714          { ac_try='test -s conftest.$ac_objext'
33715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33716   (eval $ac_try) 2>&5
33717   ac_status=$?
33718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719   (exit $ac_status); }; }; then
33720
33721                     wx_cv_type_pthread_rec_mutex_init=yes
33722
33723 else
33724   echo "$as_me: failed program was:" >&5
33725 sed 's/^/| /' conftest.$ac_ext >&5
33726
33727
33728                     wx_cv_type_pthread_rec_mutex_init=no
33729
33730
33731 fi
33732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33733
33734 fi
33735 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33736 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33737         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33738           cat >>confdefs.h <<\_ACEOF
33739 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33740 _ACEOF
33741
33742         else
33743                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33744 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33745         fi
33746       fi
33747     fi
33748
33749 else
33750     if test "$wxUSE_THREADS" = "yes" ; then
33751       case "${host}" in
33752         *-*-mingw32* )
33753                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33754 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33755 if test "${wx_cv_cflags_mthread+set}" = set; then
33756   echo $ECHO_N "(cached) $ECHO_C" >&6
33757 else
33758
33759                     CFLAGS_OLD="$CFLAGS"
33760                     CFLAGS="$CFLAGS -mthreads"
33761                     cat >conftest.$ac_ext <<_ACEOF
33762 /* confdefs.h.  */
33763 _ACEOF
33764 cat confdefs.h >>conftest.$ac_ext
33765 cat >>conftest.$ac_ext <<_ACEOF
33766 /* end confdefs.h.  */
33767
33768 int
33769 main ()
33770 {
33771
33772   ;
33773   return 0;
33774 }
33775 _ACEOF
33776 rm -f conftest.$ac_objext
33777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33778   (eval $ac_compile) 2>conftest.er1
33779   ac_status=$?
33780   grep -v '^ *+' conftest.er1 >conftest.err
33781   rm -f conftest.er1
33782   cat conftest.err >&5
33783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33784   (exit $ac_status); } &&
33785          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33787   (eval $ac_try) 2>&5
33788   ac_status=$?
33789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33790   (exit $ac_status); }; } &&
33791          { ac_try='test -s conftest.$ac_objext'
33792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33793   (eval $ac_try) 2>&5
33794   ac_status=$?
33795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796   (exit $ac_status); }; }; then
33797   wx_cv_cflags_mthread=yes
33798 else
33799   echo "$as_me: failed program was:" >&5
33800 sed 's/^/| /' conftest.$ac_ext >&5
33801
33802 wx_cv_cflags_mthread=no
33803
33804 fi
33805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33806
33807
33808 fi
33809 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33810 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33811
33812             if test "$wx_cv_cflags_mthread" = "yes"; then
33813                                 CXXFLAGS="$CXXFLAGS -mthreads"
33814                 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33815                 LDFLAGS="$LDFLAGS -mthreads"
33816             else
33817                                 CFLAGS="$CFLAGS_OLD"
33818             fi
33819         ;;
33820         *-pc-os2*emx )
33821             CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33822             CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33823             LDFLAGS="$LDFLAGS -Zmt"
33824         ;;
33825       esac
33826     fi
33827 fi
33828
33829 if test "$wxUSE_THREADS" = "yes"; then
33830   cat >>confdefs.h <<\_ACEOF
33831 #define wxUSE_THREADS 1
33832 _ACEOF
33833
33834
33835   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33836 else
33837       if test "$ac_cv_func_strtok_r" = "yes"; then
33838     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33839 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33840     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33841         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33842         echo "$as_me:$LINENO: result: yes" >&5
33843 echo "${ECHO_T}yes" >&6
33844     else
33845         echo "$as_me:$LINENO: result: no" >&5
33846 echo "${ECHO_T}no" >&6
33847     fi
33848   fi
33849 fi
33850
33851 if test "$WXGTK20" = 1 ; then
33852   cat >>confdefs.h <<_ACEOF
33853 #define __WXGTK20__ $WXGTK20
33854 _ACEOF
33855
33856   WXGTK12=1
33857 fi
33858
33859 if test "$WXGTK12" = 1 ; then
33860   cat >>confdefs.h <<_ACEOF
33861 #define __WXGTK12__ $WXGTK12
33862 _ACEOF
33863
33864 fi
33865
33866 if test "$WXGTK127" = 1 ; then
33867   cat >>confdefs.h <<_ACEOF
33868 #define __WXGTK127__ $WXGTK127
33869 _ACEOF
33870
33871 fi
33872
33873 if test "$WXGPE" = 1 ; then
33874   cat >>confdefs.h <<_ACEOF
33875 #define __WXGPE__ $WXGPE
33876 _ACEOF
33877
33878 fi
33879
33880 WXDEBUG=
33881
33882 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33883     WXDEBUG="-g"
33884     wxUSE_OPTIMISE=no
33885 fi
33886
33887 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33888     wxUSE_DEBUG_INFO=yes
33889     WXDEBUG="-ggdb"
33890 fi
33891
33892 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33893     cat >>confdefs.h <<\_ACEOF
33894 #define WXDEBUG 1
33895 _ACEOF
33896
33897     WXDEBUG_DEFINE="-D__WXDEBUG__"
33898 else
33899     if test "$wxUSE_GTK" = 1 ; then
33900         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33901     fi
33902 fi
33903
33904 if test "$wxUSE_MEM_TRACING" = "yes" ; then
33905     cat >>confdefs.h <<\_ACEOF
33906 #define wxUSE_MEMORY_TRACING 1
33907 _ACEOF
33908
33909     cat >>confdefs.h <<\_ACEOF
33910 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33911 _ACEOF
33912
33913     cat >>confdefs.h <<\_ACEOF
33914 #define wxUSE_DEBUG_NEW_ALWAYS 1
33915 _ACEOF
33916
33917     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33918 fi
33919
33920 if test "$wxUSE_DMALLOC" = "yes" ; then
33921     DMALLOC_LIBS="-ldmalloc"
33922 fi
33923
33924 PROFILE=
33925 if test "$wxUSE_PROFILE" = "yes" ; then
33926     PROFILE=" -pg"
33927 fi
33928
33929 CODE_GEN_FLAGS=
33930 CODE_GEN_FLAGS_CXX=
33931 if test "$GCC" = "yes" ; then
33932     if test "$wxUSE_NO_RTTI" = "yes" ; then
33933         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33934     fi
33935     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33936         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33937     fi
33938     if test "$wxUSE_PERMISSIVE" = "yes" ; then
33939         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33940     fi
33941
33942                                                 case "${host}" in
33943       powerpc*-*-aix* )
33944         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33945         ;;
33946       *-hppa* )
33947         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33948         ;;
33949     esac
33950 fi
33951
33952 OPTIMISE=
33953 if test "$wxUSE_OPTIMISE" = "no" ; then
33954     if test "$GCC" = yes ; then
33955                         OPTIMISE="-O0"
33956     fi
33957 else
33958     if test "$GCC" = yes ; then
33959         OPTIMISE="-O2"
33960
33961                 case "${host}" in
33962             i586-*-*|i686-*-* )
33963             OPTIMISE="${OPTIMISE} "
33964         ;;
33965         esac
33966     else
33967         OPTIMISE="-O"
33968     fi
33969 fi
33970
33971
33972 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33973     cat >>confdefs.h <<\_ACEOF
33974 #define WXWIN_COMPATIBILITY_2_2 1
33975 _ACEOF
33976
33977
33978     WXWIN_COMPATIBILITY_2_4="yes"
33979 fi
33980
33981 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33982     cat >>confdefs.h <<\_ACEOF
33983 #define WXWIN_COMPATIBILITY_2_4 1
33984 _ACEOF
33985
33986 fi
33987
33988
33989 if test "$wxUSE_GUI" = "yes"; then
33990     cat >>confdefs.h <<\_ACEOF
33991 #define wxUSE_GUI 1
33992 _ACEOF
33993
33994
33995                                             fi
33996
33997
33998 if test "$wxUSE_UNIX" = "yes"; then
33999   cat >>confdefs.h <<\_ACEOF
34000 #define wxUSE_UNIX 1
34001 _ACEOF
34002
34003 fi
34004
34005
34006 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34007
34008     HAVE_DL_FUNCS=0
34009     HAVE_SHL_FUNCS=0
34010     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34011         if test "$USE_DARWIN" = 1; then
34012                         HAVE_DL_FUNCS=1
34013         else
34014
34015 for ac_func in dlopen
34016 do
34017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34018 echo "$as_me:$LINENO: checking for $ac_func" >&5
34019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34020 if eval "test \"\${$as_ac_var+set}\" = set"; then
34021   echo $ECHO_N "(cached) $ECHO_C" >&6
34022 else
34023   cat >conftest.$ac_ext <<_ACEOF
34024 /* confdefs.h.  */
34025 _ACEOF
34026 cat confdefs.h >>conftest.$ac_ext
34027 cat >>conftest.$ac_ext <<_ACEOF
34028 /* end confdefs.h.  */
34029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34031 #define $ac_func innocuous_$ac_func
34032
34033 /* System header to define __stub macros and hopefully few prototypes,
34034     which can conflict with char $ac_func (); below.
34035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34036     <limits.h> exists even on freestanding compilers.  */
34037
34038 #ifdef __STDC__
34039 # include <limits.h>
34040 #else
34041 # include <assert.h>
34042 #endif
34043
34044 #undef $ac_func
34045
34046 /* Override any gcc2 internal prototype to avoid an error.  */
34047 #ifdef __cplusplus
34048 extern "C"
34049 {
34050 #endif
34051 /* We use char because int might match the return type of a gcc2
34052    builtin and then its argument prototype would still apply.  */
34053 char $ac_func ();
34054 /* The GNU C library defines this for functions which it implements
34055     to always fail with ENOSYS.  Some functions are actually named
34056     something starting with __ and the normal name is an alias.  */
34057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34058 choke me
34059 #else
34060 char (*f) () = $ac_func;
34061 #endif
34062 #ifdef __cplusplus
34063 }
34064 #endif
34065
34066 int
34067 main ()
34068 {
34069 return f != $ac_func;
34070   ;
34071   return 0;
34072 }
34073 _ACEOF
34074 rm -f conftest.$ac_objext conftest$ac_exeext
34075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34076   (eval $ac_link) 2>conftest.er1
34077   ac_status=$?
34078   grep -v '^ *+' conftest.er1 >conftest.err
34079   rm -f conftest.er1
34080   cat conftest.err >&5
34081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082   (exit $ac_status); } &&
34083          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34085   (eval $ac_try) 2>&5
34086   ac_status=$?
34087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34088   (exit $ac_status); }; } &&
34089          { ac_try='test -s conftest$ac_exeext'
34090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34091   (eval $ac_try) 2>&5
34092   ac_status=$?
34093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34094   (exit $ac_status); }; }; then
34095   eval "$as_ac_var=yes"
34096 else
34097   echo "$as_me: failed program was:" >&5
34098 sed 's/^/| /' conftest.$ac_ext >&5
34099
34100 eval "$as_ac_var=no"
34101 fi
34102 rm -f conftest.err conftest.$ac_objext \
34103       conftest$ac_exeext conftest.$ac_ext
34104 fi
34105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34107 if test `eval echo '${'$as_ac_var'}'` = yes; then
34108   cat >>confdefs.h <<_ACEOF
34109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34110 _ACEOF
34111
34112                 cat >>confdefs.h <<\_ACEOF
34113 #define HAVE_DLOPEN 1
34114 _ACEOF
34115
34116                 HAVE_DL_FUNCS=1
34117
34118 else
34119
34120                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
34121 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
34122 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
34123   echo $ECHO_N "(cached) $ECHO_C" >&6
34124 else
34125   ac_check_lib_save_LIBS=$LIBS
34126 LIBS="-ldl  $LIBS"
34127 cat >conftest.$ac_ext <<_ACEOF
34128 /* confdefs.h.  */
34129 _ACEOF
34130 cat confdefs.h >>conftest.$ac_ext
34131 cat >>conftest.$ac_ext <<_ACEOF
34132 /* end confdefs.h.  */
34133
34134 /* Override any gcc2 internal prototype to avoid an error.  */
34135 #ifdef __cplusplus
34136 extern "C"
34137 #endif
34138 /* We use char because int might match the return type of a gcc2
34139    builtin and then its argument prototype would still apply.  */
34140 char dlopen ();
34141 int
34142 main ()
34143 {
34144 dlopen ();
34145   ;
34146   return 0;
34147 }
34148 _ACEOF
34149 rm -f conftest.$ac_objext conftest$ac_exeext
34150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34151   (eval $ac_link) 2>conftest.er1
34152   ac_status=$?
34153   grep -v '^ *+' conftest.er1 >conftest.err
34154   rm -f conftest.er1
34155   cat conftest.err >&5
34156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157   (exit $ac_status); } &&
34158          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34160   (eval $ac_try) 2>&5
34161   ac_status=$?
34162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34163   (exit $ac_status); }; } &&
34164          { ac_try='test -s conftest$ac_exeext'
34165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34166   (eval $ac_try) 2>&5
34167   ac_status=$?
34168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34169   (exit $ac_status); }; }; then
34170   ac_cv_lib_dl_dlopen=yes
34171 else
34172   echo "$as_me: failed program was:" >&5
34173 sed 's/^/| /' conftest.$ac_ext >&5
34174
34175 ac_cv_lib_dl_dlopen=no
34176 fi
34177 rm -f conftest.err conftest.$ac_objext \
34178       conftest$ac_exeext conftest.$ac_ext
34179 LIBS=$ac_check_lib_save_LIBS
34180 fi
34181 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
34182 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
34183 if test $ac_cv_lib_dl_dlopen = yes; then
34184
34185                                 cat >>confdefs.h <<\_ACEOF
34186 #define HAVE_DLOPEN 1
34187 _ACEOF
34188
34189                                 HAVE_DL_FUNCS=1
34190                                 DL_LINK=" -ldl$DL_LINK"
34191
34192 else
34193
34194
34195 for ac_func in shl_load
34196 do
34197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34198 echo "$as_me:$LINENO: checking for $ac_func" >&5
34199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34200 if eval "test \"\${$as_ac_var+set}\" = set"; then
34201   echo $ECHO_N "(cached) $ECHO_C" >&6
34202 else
34203   cat >conftest.$ac_ext <<_ACEOF
34204 /* confdefs.h.  */
34205 _ACEOF
34206 cat confdefs.h >>conftest.$ac_ext
34207 cat >>conftest.$ac_ext <<_ACEOF
34208 /* end confdefs.h.  */
34209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34211 #define $ac_func innocuous_$ac_func
34212
34213 /* System header to define __stub macros and hopefully few prototypes,
34214     which can conflict with char $ac_func (); below.
34215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34216     <limits.h> exists even on freestanding compilers.  */
34217
34218 #ifdef __STDC__
34219 # include <limits.h>
34220 #else
34221 # include <assert.h>
34222 #endif
34223
34224 #undef $ac_func
34225
34226 /* Override any gcc2 internal prototype to avoid an error.  */
34227 #ifdef __cplusplus
34228 extern "C"
34229 {
34230 #endif
34231 /* We use char because int might match the return type of a gcc2
34232    builtin and then its argument prototype would still apply.  */
34233 char $ac_func ();
34234 /* The GNU C library defines this for functions which it implements
34235     to always fail with ENOSYS.  Some functions are actually named
34236     something starting with __ and the normal name is an alias.  */
34237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34238 choke me
34239 #else
34240 char (*f) () = $ac_func;
34241 #endif
34242 #ifdef __cplusplus
34243 }
34244 #endif
34245
34246 int
34247 main ()
34248 {
34249 return f != $ac_func;
34250   ;
34251   return 0;
34252 }
34253 _ACEOF
34254 rm -f conftest.$ac_objext conftest$ac_exeext
34255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34256   (eval $ac_link) 2>conftest.er1
34257   ac_status=$?
34258   grep -v '^ *+' conftest.er1 >conftest.err
34259   rm -f conftest.er1
34260   cat conftest.err >&5
34261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34262   (exit $ac_status); } &&
34263          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34265   (eval $ac_try) 2>&5
34266   ac_status=$?
34267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34268   (exit $ac_status); }; } &&
34269          { ac_try='test -s conftest$ac_exeext'
34270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34271   (eval $ac_try) 2>&5
34272   ac_status=$?
34273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34274   (exit $ac_status); }; }; then
34275   eval "$as_ac_var=yes"
34276 else
34277   echo "$as_me: failed program was:" >&5
34278 sed 's/^/| /' conftest.$ac_ext >&5
34279
34280 eval "$as_ac_var=no"
34281 fi
34282 rm -f conftest.err conftest.$ac_objext \
34283       conftest$ac_exeext conftest.$ac_ext
34284 fi
34285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34287 if test `eval echo '${'$as_ac_var'}'` = yes; then
34288   cat >>confdefs.h <<_ACEOF
34289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34290 _ACEOF
34291
34292                                                 cat >>confdefs.h <<\_ACEOF
34293 #define HAVE_SHL_LOAD 1
34294 _ACEOF
34295
34296                                                 HAVE_SHL_FUNCS=1
34297
34298 else
34299
34300                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34301 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34302 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34303   echo $ECHO_N "(cached) $ECHO_C" >&6
34304 else
34305   ac_check_lib_save_LIBS=$LIBS
34306 LIBS="-lshl_load  $LIBS"
34307 cat >conftest.$ac_ext <<_ACEOF
34308 /* confdefs.h.  */
34309 _ACEOF
34310 cat confdefs.h >>conftest.$ac_ext
34311 cat >>conftest.$ac_ext <<_ACEOF
34312 /* end confdefs.h.  */
34313
34314 /* Override any gcc2 internal prototype to avoid an error.  */
34315 #ifdef __cplusplus
34316 extern "C"
34317 #endif
34318 /* We use char because int might match the return type of a gcc2
34319    builtin and then its argument prototype would still apply.  */
34320 char dld ();
34321 int
34322 main ()
34323 {
34324 dld ();
34325   ;
34326   return 0;
34327 }
34328 _ACEOF
34329 rm -f conftest.$ac_objext conftest$ac_exeext
34330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34331   (eval $ac_link) 2>conftest.er1
34332   ac_status=$?
34333   grep -v '^ *+' conftest.er1 >conftest.err
34334   rm -f conftest.er1
34335   cat conftest.err >&5
34336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337   (exit $ac_status); } &&
34338          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34340   (eval $ac_try) 2>&5
34341   ac_status=$?
34342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34343   (exit $ac_status); }; } &&
34344          { ac_try='test -s conftest$ac_exeext'
34345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34346   (eval $ac_try) 2>&5
34347   ac_status=$?
34348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34349   (exit $ac_status); }; }; then
34350   ac_cv_lib_shl_load_dld=yes
34351 else
34352   echo "$as_me: failed program was:" >&5
34353 sed 's/^/| /' conftest.$ac_ext >&5
34354
34355 ac_cv_lib_shl_load_dld=no
34356 fi
34357 rm -f conftest.err conftest.$ac_objext \
34358       conftest$ac_exeext conftest.$ac_ext
34359 LIBS=$ac_check_lib_save_LIBS
34360 fi
34361 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34362 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34363 if test $ac_cv_lib_shl_load_dld = yes; then
34364
34365                                                                 HAVE_SHL_FUNCS=1
34366                                                                 DL_LINK=" -ldld$DL_LINK"
34367
34368 fi
34369
34370
34371 fi
34372 done
34373
34374
34375 fi
34376
34377
34378 fi
34379 done
34380
34381
34382                 if test "$HAVE_DL_FUNCS" = 1; then
34383
34384 for ac_func in dlerror
34385 do
34386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34387 echo "$as_me:$LINENO: checking for $ac_func" >&5
34388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34389 if eval "test \"\${$as_ac_var+set}\" = set"; then
34390   echo $ECHO_N "(cached) $ECHO_C" >&6
34391 else
34392   cat >conftest.$ac_ext <<_ACEOF
34393 /* confdefs.h.  */
34394 _ACEOF
34395 cat confdefs.h >>conftest.$ac_ext
34396 cat >>conftest.$ac_ext <<_ACEOF
34397 /* end confdefs.h.  */
34398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34400 #define $ac_func innocuous_$ac_func
34401
34402 /* System header to define __stub macros and hopefully few prototypes,
34403     which can conflict with char $ac_func (); below.
34404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34405     <limits.h> exists even on freestanding compilers.  */
34406
34407 #ifdef __STDC__
34408 # include <limits.h>
34409 #else
34410 # include <assert.h>
34411 #endif
34412
34413 #undef $ac_func
34414
34415 /* Override any gcc2 internal prototype to avoid an error.  */
34416 #ifdef __cplusplus
34417 extern "C"
34418 {
34419 #endif
34420 /* We use char because int might match the return type of a gcc2
34421    builtin and then its argument prototype would still apply.  */
34422 char $ac_func ();
34423 /* The GNU C library defines this for functions which it implements
34424     to always fail with ENOSYS.  Some functions are actually named
34425     something starting with __ and the normal name is an alias.  */
34426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34427 choke me
34428 #else
34429 char (*f) () = $ac_func;
34430 #endif
34431 #ifdef __cplusplus
34432 }
34433 #endif
34434
34435 int
34436 main ()
34437 {
34438 return f != $ac_func;
34439   ;
34440   return 0;
34441 }
34442 _ACEOF
34443 rm -f conftest.$ac_objext conftest$ac_exeext
34444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34445   (eval $ac_link) 2>conftest.er1
34446   ac_status=$?
34447   grep -v '^ *+' conftest.er1 >conftest.err
34448   rm -f conftest.er1
34449   cat conftest.err >&5
34450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34451   (exit $ac_status); } &&
34452          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34454   (eval $ac_try) 2>&5
34455   ac_status=$?
34456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34457   (exit $ac_status); }; } &&
34458          { ac_try='test -s conftest$ac_exeext'
34459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34460   (eval $ac_try) 2>&5
34461   ac_status=$?
34462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463   (exit $ac_status); }; }; then
34464   eval "$as_ac_var=yes"
34465 else
34466   echo "$as_me: failed program was:" >&5
34467 sed 's/^/| /' conftest.$ac_ext >&5
34468
34469 eval "$as_ac_var=no"
34470 fi
34471 rm -f conftest.err conftest.$ac_objext \
34472       conftest$ac_exeext conftest.$ac_ext
34473 fi
34474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34476 if test `eval echo '${'$as_ac_var'}'` = yes; then
34477   cat >>confdefs.h <<_ACEOF
34478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34479 _ACEOF
34480  cat >>confdefs.h <<\_ACEOF
34481 #define HAVE_DLERROR 1
34482 _ACEOF
34483
34484 else
34485
34486                     echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34487 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34488 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34489   echo $ECHO_N "(cached) $ECHO_C" >&6
34490 else
34491   ac_check_lib_save_LIBS=$LIBS
34492 LIBS="-ldl  $LIBS"
34493 cat >conftest.$ac_ext <<_ACEOF
34494 /* confdefs.h.  */
34495 _ACEOF
34496 cat confdefs.h >>conftest.$ac_ext
34497 cat >>conftest.$ac_ext <<_ACEOF
34498 /* end confdefs.h.  */
34499
34500 /* Override any gcc2 internal prototype to avoid an error.  */
34501 #ifdef __cplusplus
34502 extern "C"
34503 #endif
34504 /* We use char because int might match the return type of a gcc2
34505    builtin and then its argument prototype would still apply.  */
34506 char dlerror ();
34507 int
34508 main ()
34509 {
34510 dlerror ();
34511   ;
34512   return 0;
34513 }
34514 _ACEOF
34515 rm -f conftest.$ac_objext conftest$ac_exeext
34516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34517   (eval $ac_link) 2>conftest.er1
34518   ac_status=$?
34519   grep -v '^ *+' conftest.er1 >conftest.err
34520   rm -f conftest.er1
34521   cat conftest.err >&5
34522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523   (exit $ac_status); } &&
34524          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34526   (eval $ac_try) 2>&5
34527   ac_status=$?
34528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34529   (exit $ac_status); }; } &&
34530          { ac_try='test -s conftest$ac_exeext'
34531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34532   (eval $ac_try) 2>&5
34533   ac_status=$?
34534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34535   (exit $ac_status); }; }; then
34536   ac_cv_lib_dl_dlerror=yes
34537 else
34538   echo "$as_me: failed program was:" >&5
34539 sed 's/^/| /' conftest.$ac_ext >&5
34540
34541 ac_cv_lib_dl_dlerror=no
34542 fi
34543 rm -f conftest.err conftest.$ac_objext \
34544       conftest$ac_exeext conftest.$ac_ext
34545 LIBS=$ac_check_lib_save_LIBS
34546 fi
34547 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34548 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34549 if test $ac_cv_lib_dl_dlerror = yes; then
34550   cat >>confdefs.h <<\_ACEOF
34551 #define HAVE_DLERROR 1
34552 _ACEOF
34553
34554 fi
34555
34556
34557
34558 fi
34559 done
34560
34561         fi
34562         fi
34563
34564         if test "$HAVE_DL_FUNCS" = 0; then
34565             if test "$HAVE_SHL_FUNCS" = 0; then
34566               if test "$USE_UNIX" = 1; then
34567                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34568 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34569                   wxUSE_DYNAMIC_LOADER=no
34570                   wxUSE_DYNLIB_CLASS=no
34571               else
34572                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34573 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34574               fi
34575             fi
34576         fi
34577     fi
34578 fi
34579
34580 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34581     cat >>confdefs.h <<\_ACEOF
34582 #define wxUSE_DYNAMIC_LOADER 1
34583 _ACEOF
34584
34585 fi
34586 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34587     cat >>confdefs.h <<\_ACEOF
34588 #define wxUSE_DYNLIB_CLASS 1
34589 _ACEOF
34590
34591 fi
34592
34593
34594
34595 if test "$wxUSE_PLUGINS" = "yes" ; then
34596     if test "$wxUSE_SHARED" = "no" ; then
34597         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34598 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34599         wxUSE_PLUGINS=no
34600     fi
34601     if test "$wxUSE_MONOLITHIC" = "yes" ; then
34602         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34603 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34604         wxUSE_PLUGINS=no
34605     fi
34606     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34607         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34608 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34609         wxUSE_PLUGINS=no
34610     fi
34611     if test "$wxUSE_PLUGINS" = "yes" ; then
34612         cat >>confdefs.h <<\_ACEOF
34613 #define wxUSE_PLUGINS 1
34614 _ACEOF
34615
34616     fi
34617 fi
34618
34619
34620 if test "$wxUSE_STL" = "yes"; then
34621   cat >>confdefs.h <<\_ACEOF
34622 #define wxUSE_STL 1
34623 _ACEOF
34624
34625 fi
34626
34627 if test "$wxUSE_APPLE_IEEE" = "yes"; then
34628   cat >>confdefs.h <<\_ACEOF
34629 #define wxUSE_APPLE_IEEE 1
34630 _ACEOF
34631
34632 fi
34633
34634 if test "$wxUSE_TIMER" = "yes"; then
34635   cat >>confdefs.h <<\_ACEOF
34636 #define wxUSE_TIMER 1
34637 _ACEOF
34638
34639 fi
34640
34641 WITH_PLUGIN_SDL=0
34642 if test "$wxUSE_SOUND" = "yes"; then
34643       if test "$USE_UNIX" = "1" ; then
34644
34645 for ac_header in sys/soundcard.h
34646 do
34647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34649   echo "$as_me:$LINENO: checking for $ac_header" >&5
34650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34652   echo $ECHO_N "(cached) $ECHO_C" >&6
34653 fi
34654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34656 else
34657   # Is the header compilable?
34658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34660 cat >conftest.$ac_ext <<_ACEOF
34661 /* confdefs.h.  */
34662 _ACEOF
34663 cat confdefs.h >>conftest.$ac_ext
34664 cat >>conftest.$ac_ext <<_ACEOF
34665 /* end confdefs.h.  */
34666 $ac_includes_default
34667 #include <$ac_header>
34668 _ACEOF
34669 rm -f conftest.$ac_objext
34670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34671   (eval $ac_compile) 2>conftest.er1
34672   ac_status=$?
34673   grep -v '^ *+' conftest.er1 >conftest.err
34674   rm -f conftest.er1
34675   cat conftest.err >&5
34676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34677   (exit $ac_status); } &&
34678          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34680   (eval $ac_try) 2>&5
34681   ac_status=$?
34682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683   (exit $ac_status); }; } &&
34684          { ac_try='test -s conftest.$ac_objext'
34685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34686   (eval $ac_try) 2>&5
34687   ac_status=$?
34688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34689   (exit $ac_status); }; }; then
34690   ac_header_compiler=yes
34691 else
34692   echo "$as_me: failed program was:" >&5
34693 sed 's/^/| /' conftest.$ac_ext >&5
34694
34695 ac_header_compiler=no
34696 fi
34697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34699 echo "${ECHO_T}$ac_header_compiler" >&6
34700
34701 # Is the header present?
34702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34704 cat >conftest.$ac_ext <<_ACEOF
34705 /* confdefs.h.  */
34706 _ACEOF
34707 cat confdefs.h >>conftest.$ac_ext
34708 cat >>conftest.$ac_ext <<_ACEOF
34709 /* end confdefs.h.  */
34710 #include <$ac_header>
34711 _ACEOF
34712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34713   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34714   ac_status=$?
34715   grep -v '^ *+' conftest.er1 >conftest.err
34716   rm -f conftest.er1
34717   cat conftest.err >&5
34718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719   (exit $ac_status); } >/dev/null; then
34720   if test -s conftest.err; then
34721     ac_cpp_err=$ac_c_preproc_warn_flag
34722     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34723   else
34724     ac_cpp_err=
34725   fi
34726 else
34727   ac_cpp_err=yes
34728 fi
34729 if test -z "$ac_cpp_err"; then
34730   ac_header_preproc=yes
34731 else
34732   echo "$as_me: failed program was:" >&5
34733 sed 's/^/| /' conftest.$ac_ext >&5
34734
34735   ac_header_preproc=no
34736 fi
34737 rm -f conftest.err conftest.$ac_ext
34738 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34739 echo "${ECHO_T}$ac_header_preproc" >&6
34740
34741 # So?  What about this header?
34742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34743   yes:no: )
34744     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34747 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34748     ac_header_preproc=yes
34749     ;;
34750   no:yes:* )
34751     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34753     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34754 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34755     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34756 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34757     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34758 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34759     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34761     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34762 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34763     (
34764       cat <<\_ASBOX
34765 ## ----------------------------------------- ##
34766 ## Report this to wx-dev@lists.wxwidgets.org ##
34767 ## ----------------------------------------- ##
34768 _ASBOX
34769     ) |
34770       sed "s/^/$as_me: WARNING:     /" >&2
34771     ;;
34772 esac
34773 echo "$as_me:$LINENO: checking for $ac_header" >&5
34774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34776   echo $ECHO_N "(cached) $ECHO_C" >&6
34777 else
34778   eval "$as_ac_Header=\$ac_header_preproc"
34779 fi
34780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34782
34783 fi
34784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34785   cat >>confdefs.h <<_ACEOF
34786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34787 _ACEOF
34788
34789 fi
34790
34791 done
34792
34793
34794     if test "$wxUSE_LIBSDL" != "no"; then
34795
34796 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34797 if test "${with_sdl_prefix+set}" = set; then
34798   withval="$with_sdl_prefix"
34799   sdl_prefix="$withval"
34800 else
34801   sdl_prefix=""
34802 fi;
34803
34804 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34805 if test "${with_sdl_exec_prefix+set}" = set; then
34806   withval="$with_sdl_exec_prefix"
34807   sdl_exec_prefix="$withval"
34808 else
34809   sdl_exec_prefix=""
34810 fi;
34811 # Check whether --enable-sdltest or --disable-sdltest was given.
34812 if test "${enable_sdltest+set}" = set; then
34813   enableval="$enable_sdltest"
34814
34815 else
34816   enable_sdltest=yes
34817 fi;
34818
34819   if test x$sdl_exec_prefix != x ; then
34820      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34821      if test x${SDL_CONFIG+set} != xset ; then
34822         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34823      fi
34824   fi
34825   if test x$sdl_prefix != x ; then
34826      sdl_args="$sdl_args --prefix=$sdl_prefix"
34827      if test x${SDL_CONFIG+set} != xset ; then
34828         SDL_CONFIG=$sdl_prefix/bin/sdl-config
34829      fi
34830   fi
34831
34832
34833   PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34834   # Extract the first word of "sdl-config", so it can be a program name with args.
34835 set dummy sdl-config; ac_word=$2
34836 echo "$as_me:$LINENO: checking for $ac_word" >&5
34837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34838 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34839   echo $ECHO_N "(cached) $ECHO_C" >&6
34840 else
34841   case $SDL_CONFIG in
34842   [\\/]* | ?:[\\/]*)
34843   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34844   ;;
34845   *)
34846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34847 for as_dir in $PATH
34848 do
34849   IFS=$as_save_IFS
34850   test -z "$as_dir" && as_dir=.
34851   for ac_exec_ext in '' $ac_executable_extensions; do
34852   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34853     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34855     break 2
34856   fi
34857 done
34858 done
34859
34860   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34861   ;;
34862 esac
34863 fi
34864 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34865
34866 if test -n "$SDL_CONFIG"; then
34867   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34868 echo "${ECHO_T}$SDL_CONFIG" >&6
34869 else
34870   echo "$as_me:$LINENO: result: no" >&5
34871 echo "${ECHO_T}no" >&6
34872 fi
34873
34874   min_sdl_version=1.2.0
34875   echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34876 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34877   no_sdl=""
34878   if test "$SDL_CONFIG" = "no" ; then
34879     no_sdl=yes
34880   else
34881     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34882     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34883
34884     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34885            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34886     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34887            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34888     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34889            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34890     if test "x$enable_sdltest" = "xyes" ; then
34891       ac_save_CFLAGS="$CFLAGS"
34892       ac_save_LIBS="$LIBS"
34893       CFLAGS="$CFLAGS $SDL_CFLAGS"
34894       LIBS="$LIBS $SDL_LIBS"
34895       rm -f conf.sdltest
34896       if test "$cross_compiling" = yes; then
34897   echo $ac_n "cross compiling; assumed OK... $ac_c"
34898 else
34899   cat >conftest.$ac_ext <<_ACEOF
34900 /* confdefs.h.  */
34901 _ACEOF
34902 cat confdefs.h >>conftest.$ac_ext
34903 cat >>conftest.$ac_ext <<_ACEOF
34904 /* end confdefs.h.  */
34905
34906 #include <stdio.h>
34907 #include <stdlib.h>
34908 #include <string.h>
34909 #include "SDL.h"
34910
34911 char*
34912 my_strdup (char *str)
34913 {
34914   char *new_str;
34915
34916   if (str)
34917     {
34918       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34919       strcpy (new_str, str);
34920     }
34921   else
34922     new_str = NULL;
34923
34924   return new_str;
34925 }
34926
34927 int main (int argc, char *argv[])
34928 {
34929   int major, minor, micro;
34930   char *tmp_version;
34931
34932   /* This hangs on some systems (?)
34933   system ("touch conf.sdltest");
34934   */
34935   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34936
34937   /* HP/UX 9 (%@#!) writes to sscanf strings */
34938   tmp_version = my_strdup("$min_sdl_version");
34939   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34940      printf("%s, bad version string\n", "$min_sdl_version");
34941      exit(1);
34942    }
34943
34944    if (($sdl_major_version > major) ||
34945       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34946       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34947     {
34948       return 0;
34949     }
34950   else
34951     {
34952       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34953       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34954       printf("*** best to upgrade to the required version.\n");
34955       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34956       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34957       printf("*** config.cache before re-running configure\n");
34958       return 1;
34959     }
34960 }
34961
34962
34963 _ACEOF
34964 rm -f conftest$ac_exeext
34965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34966   (eval $ac_link) 2>&5
34967   ac_status=$?
34968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34969   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34971   (eval $ac_try) 2>&5
34972   ac_status=$?
34973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34974   (exit $ac_status); }; }; then
34975   :
34976 else
34977   echo "$as_me: program exited with status $ac_status" >&5
34978 echo "$as_me: failed program was:" >&5
34979 sed 's/^/| /' conftest.$ac_ext >&5
34980
34981 ( exit $ac_status )
34982 no_sdl=yes
34983 fi
34984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34985 fi
34986        CFLAGS="$ac_save_CFLAGS"
34987        LIBS="$ac_save_LIBS"
34988      fi
34989   fi
34990   if test "x$no_sdl" = x ; then
34991      echo "$as_me:$LINENO: result: yes" >&5
34992 echo "${ECHO_T}yes" >&6
34993
34994                     EXTRALIBS_SDL="$SDL_LIBS"
34995                     CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34996                     cat >>confdefs.h <<\_ACEOF
34997 #define wxUSE_LIBSDL 1
34998 _ACEOF
34999
35000
35001   else
35002      echo "$as_me:$LINENO: result: no" >&5
35003 echo "${ECHO_T}no" >&6
35004      if test "$SDL_CONFIG" = "no" ; then
35005        echo "*** The sdl-config script installed by SDL could not be found"
35006        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
35007        echo "*** your path, or set the SDL_CONFIG environment variable to the"
35008        echo "*** full path to sdl-config."
35009      else
35010        if test -f conf.sdltest ; then
35011         :
35012        else
35013           echo "*** Could not run SDL test program, checking why..."
35014           CFLAGS="$CFLAGS $SDL_CFLAGS"
35015           LIBS="$LIBS $SDL_LIBS"
35016           cat >conftest.$ac_ext <<_ACEOF
35017 /* confdefs.h.  */
35018 _ACEOF
35019 cat confdefs.h >>conftest.$ac_ext
35020 cat >>conftest.$ac_ext <<_ACEOF
35021 /* end confdefs.h.  */
35022
35023 #include <stdio.h>
35024 #include "SDL.h"
35025
35026 int main(int argc, char *argv[])
35027 { return 0; }
35028 #undef  main
35029 #define main K_and_R_C_main
35030
35031 int
35032 main ()
35033 {
35034  return 0;
35035   ;
35036   return 0;
35037 }
35038 _ACEOF
35039 rm -f conftest.$ac_objext conftest$ac_exeext
35040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35041   (eval $ac_link) 2>conftest.er1
35042   ac_status=$?
35043   grep -v '^ *+' conftest.er1 >conftest.err
35044   rm -f conftest.er1
35045   cat conftest.err >&5
35046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35047   (exit $ac_status); } &&
35048          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
35054          { ac_try='test -s conftest$ac_exeext'
35055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35056   (eval $ac_try) 2>&5
35057   ac_status=$?
35058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35059   (exit $ac_status); }; }; then
35060    echo "*** The test program compiled, but did not run. This usually means"
35061           echo "*** that the run-time linker is not finding SDL or finding the wrong"
35062           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
35063           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
35064           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
35065           echo "*** is required on your system"
35066           echo "***"
35067           echo "*** If you have an old version installed, it is best to remove it, although"
35068           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
35069 else
35070   echo "$as_me: failed program was:" >&5
35071 sed 's/^/| /' conftest.$ac_ext >&5
35072
35073  echo "*** The test program failed to compile or link. See the file config.log for the"
35074           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
35075           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
35076           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
35077 fi
35078 rm -f conftest.err conftest.$ac_objext \
35079       conftest$ac_exeext conftest.$ac_ext
35080           CFLAGS="$ac_save_CFLAGS"
35081           LIBS="$ac_save_LIBS"
35082        fi
35083      fi
35084      SDL_CFLAGS=""
35085      SDL_LIBS=""
35086      wxUSE_LIBSDL="no"
35087   fi
35088
35089
35090   rm -f conf.sdltest
35091
35092       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
35093         WITH_PLUGIN_SDL=1
35094       fi
35095     fi
35096   fi
35097
35098   cat >>confdefs.h <<\_ACEOF
35099 #define wxUSE_SOUND 1
35100 _ACEOF
35101
35102   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
35103 fi
35104
35105 if test "$WXGTK20" = 1; then
35106     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35107         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
35108
35109
35110   succeeded=no
35111
35112   if test -z "$PKG_CONFIG"; then
35113     # Extract the first word of "pkg-config", so it can be a program name with args.
35114 set dummy pkg-config; ac_word=$2
35115 echo "$as_me:$LINENO: checking for $ac_word" >&5
35116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35117 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35118   echo $ECHO_N "(cached) $ECHO_C" >&6
35119 else
35120   case $PKG_CONFIG in
35121   [\\/]* | ?:[\\/]*)
35122   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35123   ;;
35124   *)
35125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35126 for as_dir in $PATH
35127 do
35128   IFS=$as_save_IFS
35129   test -z "$as_dir" && as_dir=.
35130   for ac_exec_ext in '' $ac_executable_extensions; do
35131   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35132     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35134     break 2
35135   fi
35136 done
35137 done
35138
35139   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
35140   ;;
35141 esac
35142 fi
35143 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35144
35145 if test -n "$PKG_CONFIG"; then
35146   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35147 echo "${ECHO_T}$PKG_CONFIG" >&6
35148 else
35149   echo "$as_me:$LINENO: result: no" >&5
35150 echo "${ECHO_T}no" >&6
35151 fi
35152
35153   fi
35154
35155   if test "$PKG_CONFIG" = "no" ; then
35156      echo "*** The pkg-config script could not be found. Make sure it is"
35157      echo "*** in your path, or set the PKG_CONFIG environment variable"
35158      echo "*** to the full path to pkg-config."
35159      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
35160   else
35161      PKG_CONFIG_MIN_VERSION=0.9.0
35162      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
35163         echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
35164 echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
35165
35166         if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
35167             echo "$as_me:$LINENO: result: yes" >&5
35168 echo "${ECHO_T}yes" >&6
35169             succeeded=yes
35170
35171             echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
35172 echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
35173             LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
35174             echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
35175 echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
35176
35177             echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
35178 echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
35179             LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
35180             echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
35181 echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
35182         else
35183             LIBGNOMEPRINTUI_CFLAGS=""
35184             LIBGNOMEPRINTUI_LIBS=""
35185             ## If we have a custom action on failure, don't print errors, but
35186             ## do set a variable so people can do so.
35187             LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
35188
35189         fi
35190
35191
35192
35193      else
35194         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
35195         echo "*** See http://www.freedesktop.org/software/pkgconfig"
35196      fi
35197   fi
35198
35199   if test $succeeded = yes; then
35200
35201                         CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
35202                         cat >>confdefs.h <<\_ACEOF
35203 #define wxUSE_LIBGNOMEPRINT 1
35204 _ACEOF
35205
35206
35207   else
35208
35209                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
35210 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
35211                         wxUSE_LIBGNOMEPRINT="no"
35212
35213
35214   fi
35215
35216         fi
35217     fi
35218 fi
35219
35220
35221 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
35222   cat >>confdefs.h <<\_ACEOF
35223 #define wxUSE_CMDLINE_PARSER 1
35224 _ACEOF
35225
35226 fi
35227
35228 if test "$wxUSE_STOPWATCH" = "yes"; then
35229   cat >>confdefs.h <<\_ACEOF
35230 #define wxUSE_STOPWATCH 1
35231 _ACEOF
35232
35233 fi
35234
35235 if test "$wxUSE_DATETIME" = "yes"; then
35236   cat >>confdefs.h <<\_ACEOF
35237 #define wxUSE_DATETIME 1
35238 _ACEOF
35239
35240 fi
35241
35242 if test "$wxUSE_FILE" = "yes"; then
35243   cat >>confdefs.h <<\_ACEOF
35244 #define wxUSE_FILE 1
35245 _ACEOF
35246
35247 fi
35248
35249 if test "$wxUSE_FFILE" = "yes"; then
35250   cat >>confdefs.h <<\_ACEOF
35251 #define wxUSE_FFILE 1
35252 _ACEOF
35253
35254 fi
35255
35256 if test "$wxUSE_FILESYSTEM" = "yes"; then
35257   cat >>confdefs.h <<\_ACEOF
35258 #define wxUSE_FILESYSTEM 1
35259 _ACEOF
35260
35261 fi
35262
35263 if test "$wxUSE_FS_ZIP" = "yes"; then
35264   cat >>confdefs.h <<\_ACEOF
35265 #define wxUSE_FS_ZIP 1
35266 _ACEOF
35267
35268 fi
35269
35270 if test "$wxUSE_ZIPSTREAM" = "yes"; then
35271   cat >>confdefs.h <<\_ACEOF
35272 #define wxUSE_ZIPSTREAM 1
35273 _ACEOF
35274
35275 fi
35276
35277 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35278   cat >>confdefs.h <<\_ACEOF
35279 #define wxUSE_ON_FATAL_EXCEPTION 1
35280 _ACEOF
35281
35282 fi
35283
35284 if test "$wxUSE_STACKWALKER" = "yes"; then
35285     cat >>confdefs.h <<\_ACEOF
35286 #define wxUSE_STACKWALKER 1
35287 _ACEOF
35288
35289 fi
35290
35291 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35292   cat >>confdefs.h <<\_ACEOF
35293 #define wxUSE_SNGLINST_CHECKER 1
35294 _ACEOF
35295
35296 fi
35297
35298 if test "$wxUSE_BUSYINFO" = "yes"; then
35299   cat >>confdefs.h <<\_ACEOF
35300 #define wxUSE_BUSYINFO 1
35301 _ACEOF
35302
35303 fi
35304
35305 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
35306   cat >>confdefs.h <<\_ACEOF
35307 #define wxUSE_STD_IOSTREAM 1
35308 _ACEOF
35309
35310 fi
35311
35312 if test "$wxUSE_TEXTBUFFER" = "yes"; then
35313     cat >>confdefs.h <<\_ACEOF
35314 #define wxUSE_TEXTBUFFER 1
35315 _ACEOF
35316
35317 fi
35318
35319 if test "$wxUSE_TEXTFILE" = "yes"; then
35320   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
35321     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
35322 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
35323   else
35324     cat >>confdefs.h <<\_ACEOF
35325 #define wxUSE_TEXTFILE 1
35326 _ACEOF
35327
35328   fi
35329 fi
35330
35331 if test "$wxUSE_CONFIG" = "yes" ; then
35332   if test "$wxUSE_TEXTFILE" != "yes"; then
35333     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
35334 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
35335   else
35336     cat >>confdefs.h <<\_ACEOF
35337 #define wxUSE_CONFIG 1
35338 _ACEOF
35339
35340     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
35341   fi
35342 fi
35343
35344 if test "$wxUSE_INTL" = "yes" ; then
35345   if test "$wxUSE_FILE" != "yes"; then
35346     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
35347 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
35348   else
35349     cat >>confdefs.h <<\_ACEOF
35350 #define wxUSE_INTL 1
35351 _ACEOF
35352
35353     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
35354     GUIDIST="$GUIDIST INTL_DIST"
35355   fi
35356 fi
35357
35358 if test "$wxUSE_LOG" = "yes"; then
35359   cat >>confdefs.h <<\_ACEOF
35360 #define wxUSE_LOG 1
35361 _ACEOF
35362
35363
35364     if test "$wxUSE_LOGGUI" = "yes"; then
35365       cat >>confdefs.h <<\_ACEOF
35366 #define wxUSE_LOGGUI 1
35367 _ACEOF
35368
35369     fi
35370
35371     if test "$wxUSE_LOGWINDOW" = "yes"; then
35372       cat >>confdefs.h <<\_ACEOF
35373 #define wxUSE_LOGWINDOW 1
35374 _ACEOF
35375
35376     fi
35377
35378     if test "$wxUSE_LOGDIALOG" = "yes"; then
35379       cat >>confdefs.h <<\_ACEOF
35380 #define wxUSE_LOG_DIALOG 1
35381 _ACEOF
35382
35383     fi
35384 fi
35385
35386 if test "$wxUSE_LONGLONG" = "yes"; then
35387   cat >>confdefs.h <<\_ACEOF
35388 #define wxUSE_LONGLONG 1
35389 _ACEOF
35390
35391 fi
35392
35393 if test "$wxUSE_GEOMETRY" = "yes"; then
35394   cat >>confdefs.h <<\_ACEOF
35395 #define wxUSE_GEOMETRY 1
35396 _ACEOF
35397
35398 fi
35399
35400 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
35401   cat >>confdefs.h <<\_ACEOF
35402 #define wxUSE_DIALUP_MANAGER 1
35403 _ACEOF
35404
35405   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
35406 fi
35407
35408 if test "$wxUSE_STREAMS" = "yes" ; then
35409   cat >>confdefs.h <<\_ACEOF
35410 #define wxUSE_STREAMS 1
35411 _ACEOF
35412
35413 fi
35414
35415
35416 if test "$wxUSE_DATETIME" = "yes"; then
35417
35418 for ac_func in strptime
35419 do
35420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35421 echo "$as_me:$LINENO: checking for $ac_func" >&5
35422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35423 if eval "test \"\${$as_ac_var+set}\" = set"; then
35424   echo $ECHO_N "(cached) $ECHO_C" >&6
35425 else
35426   cat >conftest.$ac_ext <<_ACEOF
35427 /* confdefs.h.  */
35428 _ACEOF
35429 cat confdefs.h >>conftest.$ac_ext
35430 cat >>conftest.$ac_ext <<_ACEOF
35431 /* end confdefs.h.  */
35432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35434 #define $ac_func innocuous_$ac_func
35435
35436 /* System header to define __stub macros and hopefully few prototypes,
35437     which can conflict with char $ac_func (); below.
35438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35439     <limits.h> exists even on freestanding compilers.  */
35440
35441 #ifdef __STDC__
35442 # include <limits.h>
35443 #else
35444 # include <assert.h>
35445 #endif
35446
35447 #undef $ac_func
35448
35449 /* Override any gcc2 internal prototype to avoid an error.  */
35450 #ifdef __cplusplus
35451 extern "C"
35452 {
35453 #endif
35454 /* We use char because int might match the return type of a gcc2
35455    builtin and then its argument prototype would still apply.  */
35456 char $ac_func ();
35457 /* The GNU C library defines this for functions which it implements
35458     to always fail with ENOSYS.  Some functions are actually named
35459     something starting with __ and the normal name is an alias.  */
35460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35461 choke me
35462 #else
35463 char (*f) () = $ac_func;
35464 #endif
35465 #ifdef __cplusplus
35466 }
35467 #endif
35468
35469 int
35470 main ()
35471 {
35472 return f != $ac_func;
35473   ;
35474   return 0;
35475 }
35476 _ACEOF
35477 rm -f conftest.$ac_objext conftest$ac_exeext
35478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35479   (eval $ac_link) 2>conftest.er1
35480   ac_status=$?
35481   grep -v '^ *+' conftest.er1 >conftest.err
35482   rm -f conftest.er1
35483   cat conftest.err >&5
35484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35485   (exit $ac_status); } &&
35486          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35488   (eval $ac_try) 2>&5
35489   ac_status=$?
35490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35491   (exit $ac_status); }; } &&
35492          { ac_try='test -s conftest$ac_exeext'
35493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35494   (eval $ac_try) 2>&5
35495   ac_status=$?
35496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35497   (exit $ac_status); }; }; then
35498   eval "$as_ac_var=yes"
35499 else
35500   echo "$as_me: failed program was:" >&5
35501 sed 's/^/| /' conftest.$ac_ext >&5
35502
35503 eval "$as_ac_var=no"
35504 fi
35505 rm -f conftest.err conftest.$ac_objext \
35506       conftest$ac_exeext conftest.$ac_ext
35507 fi
35508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35509 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35510 if test `eval echo '${'$as_ac_var'}'` = yes; then
35511   cat >>confdefs.h <<_ACEOF
35512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35513 _ACEOF
35514
35515 fi
35516 done
35517
35518
35519             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
35520 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
35521 if test "${wx_cv_var_timezone+set}" = set; then
35522   echo $ECHO_N "(cached) $ECHO_C" >&6
35523 else
35524
35525                         cat >conftest.$ac_ext <<_ACEOF
35526 /* confdefs.h.  */
35527 _ACEOF
35528 cat confdefs.h >>conftest.$ac_ext
35529 cat >>conftest.$ac_ext <<_ACEOF
35530 /* end confdefs.h.  */
35531
35532                                 #include <time.h>
35533
35534 int
35535 main ()
35536 {
35537
35538                                 int tz;
35539                                 tz = timezone;
35540
35541   ;
35542   return 0;
35543 }
35544 _ACEOF
35545 rm -f conftest.$ac_objext
35546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35547   (eval $ac_compile) 2>conftest.er1
35548   ac_status=$?
35549   grep -v '^ *+' conftest.er1 >conftest.err
35550   rm -f conftest.er1
35551   cat conftest.err >&5
35552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35553   (exit $ac_status); } &&
35554          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35556   (eval $ac_try) 2>&5
35557   ac_status=$?
35558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35559   (exit $ac_status); }; } &&
35560          { ac_try='test -s conftest.$ac_objext'
35561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35562   (eval $ac_try) 2>&5
35563   ac_status=$?
35564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35565   (exit $ac_status); }; }; then
35566
35567                                 wx_cv_var_timezone=timezone
35568
35569 else
35570   echo "$as_me: failed program was:" >&5
35571 sed 's/^/| /' conftest.$ac_ext >&5
35572
35573
35574                                 cat >conftest.$ac_ext <<_ACEOF
35575 /* confdefs.h.  */
35576 _ACEOF
35577 cat confdefs.h >>conftest.$ac_ext
35578 cat >>conftest.$ac_ext <<_ACEOF
35579 /* end confdefs.h.  */
35580
35581                                         #include <time.h>
35582
35583 int
35584 main ()
35585 {
35586
35587                                         int tz;
35588                                         tz = _timezone;
35589
35590   ;
35591   return 0;
35592 }
35593 _ACEOF
35594 rm -f conftest.$ac_objext
35595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35596   (eval $ac_compile) 2>conftest.er1
35597   ac_status=$?
35598   grep -v '^ *+' conftest.er1 >conftest.err
35599   rm -f conftest.er1
35600   cat conftest.err >&5
35601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35602   (exit $ac_status); } &&
35603          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35605   (eval $ac_try) 2>&5
35606   ac_status=$?
35607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35608   (exit $ac_status); }; } &&
35609          { ac_try='test -s conftest.$ac_objext'
35610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35611   (eval $ac_try) 2>&5
35612   ac_status=$?
35613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35614   (exit $ac_status); }; }; then
35615
35616                                         wx_cv_var_timezone=_timezone
35617
35618 else
35619   echo "$as_me: failed program was:" >&5
35620 sed 's/^/| /' conftest.$ac_ext >&5
35621
35622
35623                                         cat >conftest.$ac_ext <<_ACEOF
35624 /* confdefs.h.  */
35625 _ACEOF
35626 cat confdefs.h >>conftest.$ac_ext
35627 cat >>conftest.$ac_ext <<_ACEOF
35628 /* end confdefs.h.  */
35629
35630                                                 #include <time.h>
35631
35632 int
35633 main ()
35634 {
35635
35636                                                 int tz;
35637                                                 tz = __timezone;
35638
35639   ;
35640   return 0;
35641 }
35642 _ACEOF
35643 rm -f conftest.$ac_objext
35644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35645   (eval $ac_compile) 2>conftest.er1
35646   ac_status=$?
35647   grep -v '^ *+' conftest.er1 >conftest.err
35648   rm -f conftest.er1
35649   cat conftest.err >&5
35650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651   (exit $ac_status); } &&
35652          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35654   (eval $ac_try) 2>&5
35655   ac_status=$?
35656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35657   (exit $ac_status); }; } &&
35658          { ac_try='test -s conftest.$ac_objext'
35659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35660   (eval $ac_try) 2>&5
35661   ac_status=$?
35662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35663   (exit $ac_status); }; }; then
35664
35665                                                 wx_cv_var_timezone=__timezone
35666
35667 else
35668   echo "$as_me: failed program was:" >&5
35669 sed 's/^/| /' conftest.$ac_ext >&5
35670
35671
35672                                                 if test "$USE_DOS" = 0 ; then
35673                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35674 echo "$as_me: WARNING: no timezone variable" >&2;}
35675                                                 fi
35676
35677
35678 fi
35679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35680
35681
35682 fi
35683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35684
35685
35686 fi
35687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35688
35689
35690 fi
35691 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35692 echo "${ECHO_T}$wx_cv_var_timezone" >&6
35693
35694         if test "x$wx_cv_var_timezone" != x ; then
35695         cat >>confdefs.h <<_ACEOF
35696 #define WX_TIMEZONE $wx_cv_var_timezone
35697 _ACEOF
35698
35699     fi
35700
35701
35702 for ac_func in localtime
35703 do
35704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35705 echo "$as_me:$LINENO: checking for $ac_func" >&5
35706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35707 if eval "test \"\${$as_ac_var+set}\" = set"; then
35708   echo $ECHO_N "(cached) $ECHO_C" >&6
35709 else
35710   cat >conftest.$ac_ext <<_ACEOF
35711 /* confdefs.h.  */
35712 _ACEOF
35713 cat confdefs.h >>conftest.$ac_ext
35714 cat >>conftest.$ac_ext <<_ACEOF
35715 /* end confdefs.h.  */
35716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35718 #define $ac_func innocuous_$ac_func
35719
35720 /* System header to define __stub macros and hopefully few prototypes,
35721     which can conflict with char $ac_func (); below.
35722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35723     <limits.h> exists even on freestanding compilers.  */
35724
35725 #ifdef __STDC__
35726 # include <limits.h>
35727 #else
35728 # include <assert.h>
35729 #endif
35730
35731 #undef $ac_func
35732
35733 /* Override any gcc2 internal prototype to avoid an error.  */
35734 #ifdef __cplusplus
35735 extern "C"
35736 {
35737 #endif
35738 /* We use char because int might match the return type of a gcc2
35739    builtin and then its argument prototype would still apply.  */
35740 char $ac_func ();
35741 /* The GNU C library defines this for functions which it implements
35742     to always fail with ENOSYS.  Some functions are actually named
35743     something starting with __ and the normal name is an alias.  */
35744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35745 choke me
35746 #else
35747 char (*f) () = $ac_func;
35748 #endif
35749 #ifdef __cplusplus
35750 }
35751 #endif
35752
35753 int
35754 main ()
35755 {
35756 return f != $ac_func;
35757   ;
35758   return 0;
35759 }
35760 _ACEOF
35761 rm -f conftest.$ac_objext conftest$ac_exeext
35762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35763   (eval $ac_link) 2>conftest.er1
35764   ac_status=$?
35765   grep -v '^ *+' conftest.er1 >conftest.err
35766   rm -f conftest.er1
35767   cat conftest.err >&5
35768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35769   (exit $ac_status); } &&
35770          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35772   (eval $ac_try) 2>&5
35773   ac_status=$?
35774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35775   (exit $ac_status); }; } &&
35776          { ac_try='test -s conftest$ac_exeext'
35777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35778   (eval $ac_try) 2>&5
35779   ac_status=$?
35780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35781   (exit $ac_status); }; }; then
35782   eval "$as_ac_var=yes"
35783 else
35784   echo "$as_me: failed program was:" >&5
35785 sed 's/^/| /' conftest.$ac_ext >&5
35786
35787 eval "$as_ac_var=no"
35788 fi
35789 rm -f conftest.err conftest.$ac_objext \
35790       conftest$ac_exeext conftest.$ac_ext
35791 fi
35792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35794 if test `eval echo '${'$as_ac_var'}'` = yes; then
35795   cat >>confdefs.h <<_ACEOF
35796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35797 _ACEOF
35798
35799 fi
35800 done
35801
35802
35803     if test "$ac_cv_func_localtime" = "yes"; then
35804         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35805 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35806 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35807   echo $ECHO_N "(cached) $ECHO_C" >&6
35808 else
35809
35810             cat >conftest.$ac_ext <<_ACEOF
35811 /* confdefs.h.  */
35812 _ACEOF
35813 cat confdefs.h >>conftest.$ac_ext
35814 cat >>conftest.$ac_ext <<_ACEOF
35815 /* end confdefs.h.  */
35816
35817                     #include <time.h>
35818
35819 int
35820 main ()
35821 {
35822
35823                     struct tm tm;
35824                     tm.tm_gmtoff++;
35825
35826   ;
35827   return 0;
35828 }
35829 _ACEOF
35830 rm -f conftest.$ac_objext
35831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35832   (eval $ac_compile) 2>conftest.er1
35833   ac_status=$?
35834   grep -v '^ *+' conftest.er1 >conftest.err
35835   rm -f conftest.er1
35836   cat conftest.err >&5
35837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35838   (exit $ac_status); } &&
35839          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35841   (eval $ac_try) 2>&5
35842   ac_status=$?
35843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35844   (exit $ac_status); }; } &&
35845          { ac_try='test -s conftest.$ac_objext'
35846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35847   (eval $ac_try) 2>&5
35848   ac_status=$?
35849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35850   (exit $ac_status); }; }; then
35851
35852                     wx_cv_struct_tm_has_gmtoff=yes
35853
35854 else
35855   echo "$as_me: failed program was:" >&5
35856 sed 's/^/| /' conftest.$ac_ext >&5
35857
35858 wx_cv_struct_tm_has_gmtoff=no
35859
35860 fi
35861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35862
35863 fi
35864 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35865 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35866     fi
35867
35868     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35869         cat >>confdefs.h <<\_ACEOF
35870 #define WX_GMTOFF_IN_TM 1
35871 _ACEOF
35872
35873     fi
35874
35875
35876
35877 for ac_func in gettimeofday ftime
35878 do
35879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35880 echo "$as_me:$LINENO: checking for $ac_func" >&5
35881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35882 if eval "test \"\${$as_ac_var+set}\" = set"; then
35883   echo $ECHO_N "(cached) $ECHO_C" >&6
35884 else
35885   cat >conftest.$ac_ext <<_ACEOF
35886 /* confdefs.h.  */
35887 _ACEOF
35888 cat confdefs.h >>conftest.$ac_ext
35889 cat >>conftest.$ac_ext <<_ACEOF
35890 /* end confdefs.h.  */
35891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35892    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35893 #define $ac_func innocuous_$ac_func
35894
35895 /* System header to define __stub macros and hopefully few prototypes,
35896     which can conflict with char $ac_func (); below.
35897     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35898     <limits.h> exists even on freestanding compilers.  */
35899
35900 #ifdef __STDC__
35901 # include <limits.h>
35902 #else
35903 # include <assert.h>
35904 #endif
35905
35906 #undef $ac_func
35907
35908 /* Override any gcc2 internal prototype to avoid an error.  */
35909 #ifdef __cplusplus
35910 extern "C"
35911 {
35912 #endif
35913 /* We use char because int might match the return type of a gcc2
35914    builtin and then its argument prototype would still apply.  */
35915 char $ac_func ();
35916 /* The GNU C library defines this for functions which it implements
35917     to always fail with ENOSYS.  Some functions are actually named
35918     something starting with __ and the normal name is an alias.  */
35919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35920 choke me
35921 #else
35922 char (*f) () = $ac_func;
35923 #endif
35924 #ifdef __cplusplus
35925 }
35926 #endif
35927
35928 int
35929 main ()
35930 {
35931 return f != $ac_func;
35932   ;
35933   return 0;
35934 }
35935 _ACEOF
35936 rm -f conftest.$ac_objext conftest$ac_exeext
35937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35938   (eval $ac_link) 2>conftest.er1
35939   ac_status=$?
35940   grep -v '^ *+' conftest.er1 >conftest.err
35941   rm -f conftest.er1
35942   cat conftest.err >&5
35943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35944   (exit $ac_status); } &&
35945          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35947   (eval $ac_try) 2>&5
35948   ac_status=$?
35949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35950   (exit $ac_status); }; } &&
35951          { ac_try='test -s conftest$ac_exeext'
35952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35953   (eval $ac_try) 2>&5
35954   ac_status=$?
35955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35956   (exit $ac_status); }; }; then
35957   eval "$as_ac_var=yes"
35958 else
35959   echo "$as_me: failed program was:" >&5
35960 sed 's/^/| /' conftest.$ac_ext >&5
35961
35962 eval "$as_ac_var=no"
35963 fi
35964 rm -f conftest.err conftest.$ac_objext \
35965       conftest$ac_exeext conftest.$ac_ext
35966 fi
35967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35969 if test `eval echo '${'$as_ac_var'}'` = yes; then
35970   cat >>confdefs.h <<_ACEOF
35971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35972 _ACEOF
35973  break
35974 fi
35975 done
35976
35977
35978     if test "$ac_cv_func_gettimeofday" = "yes"; then
35979         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35980 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35981 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35982   echo $ECHO_N "(cached) $ECHO_C" >&6
35983 else
35984
35985
35986
35987             ac_ext=cc
35988 ac_cpp='$CXXCPP $CPPFLAGS'
35989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35992
35993
35994             cat >conftest.$ac_ext <<_ACEOF
35995 /* confdefs.h.  */
35996 _ACEOF
35997 cat confdefs.h >>conftest.$ac_ext
35998 cat >>conftest.$ac_ext <<_ACEOF
35999 /* end confdefs.h.  */
36000
36001                     #include <sys/time.h>
36002                     #include <unistd.h>
36003
36004 int
36005 main ()
36006 {
36007
36008                     struct timeval tv;
36009                     gettimeofday(&tv, NULL);
36010
36011   ;
36012   return 0;
36013 }
36014 _ACEOF
36015 rm -f conftest.$ac_objext
36016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36017   (eval $ac_compile) 2>conftest.er1
36018   ac_status=$?
36019   grep -v '^ *+' conftest.er1 >conftest.err
36020   rm -f conftest.er1
36021   cat conftest.err >&5
36022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36023   (exit $ac_status); } &&
36024          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36026   (eval $ac_try) 2>&5
36027   ac_status=$?
36028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36029   (exit $ac_status); }; } &&
36030          { ac_try='test -s conftest.$ac_objext'
36031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36032   (eval $ac_try) 2>&5
36033   ac_status=$?
36034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36035   (exit $ac_status); }; }; then
36036   wx_cv_func_gettimeofday_has_2_args=yes
36037 else
36038   echo "$as_me: failed program was:" >&5
36039 sed 's/^/| /' conftest.$ac_ext >&5
36040
36041 cat >conftest.$ac_ext <<_ACEOF
36042 /* confdefs.h.  */
36043 _ACEOF
36044 cat confdefs.h >>conftest.$ac_ext
36045 cat >>conftest.$ac_ext <<_ACEOF
36046 /* end confdefs.h.  */
36047
36048                         #include <sys/time.h>
36049                         #include <unistd.h>
36050
36051 int
36052 main ()
36053 {
36054
36055                         struct timeval tv;
36056                         gettimeofday(&tv);
36057
36058   ;
36059   return 0;
36060 }
36061 _ACEOF
36062 rm -f conftest.$ac_objext
36063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36064   (eval $ac_compile) 2>conftest.er1
36065   ac_status=$?
36066   grep -v '^ *+' conftest.er1 >conftest.err
36067   rm -f conftest.er1
36068   cat conftest.err >&5
36069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36070   (exit $ac_status); } &&
36071          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36073   (eval $ac_try) 2>&5
36074   ac_status=$?
36075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36076   (exit $ac_status); }; } &&
36077          { ac_try='test -s conftest.$ac_objext'
36078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36079   (eval $ac_try) 2>&5
36080   ac_status=$?
36081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36082   (exit $ac_status); }; }; then
36083   wx_cv_func_gettimeofday_has_2_args=no
36084 else
36085   echo "$as_me: failed program was:" >&5
36086 sed 's/^/| /' conftest.$ac_ext >&5
36087
36088
36089                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
36090 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
36091                         wx_cv_func_gettimeofday_has_2_args=unknown
36092
36093
36094 fi
36095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36096
36097 fi
36098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36099             ac_ext=c
36100 ac_cpp='$CPP $CPPFLAGS'
36101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36104
36105
36106 fi
36107 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
36108 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
36109
36110         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
36111             cat >>confdefs.h <<\_ACEOF
36112 #define WX_GETTIMEOFDAY_NO_TZ 1
36113 _ACEOF
36114
36115         fi
36116     fi
36117
36118     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
36119 fi
36120
36121
36122 if test "$wxUSE_SOCKETS" = "yes"; then
36123     if test "$wxUSE_MGL" = "1"; then
36124         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
36125 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
36126         wxUSE_SOCKETS="no"
36127     fi
36128 fi
36129
36130 if test "$wxUSE_SOCKETS" = "yes"; then
36131         if test "$TOOLKIT" != "MSW"; then
36132                 echo "$as_me:$LINENO: checking for socket" >&5
36133 echo $ECHO_N "checking for socket... $ECHO_C" >&6
36134 if test "${ac_cv_func_socket+set}" = set; then
36135   echo $ECHO_N "(cached) $ECHO_C" >&6
36136 else
36137   cat >conftest.$ac_ext <<_ACEOF
36138 /* confdefs.h.  */
36139 _ACEOF
36140 cat confdefs.h >>conftest.$ac_ext
36141 cat >>conftest.$ac_ext <<_ACEOF
36142 /* end confdefs.h.  */
36143 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
36144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36145 #define socket innocuous_socket
36146
36147 /* System header to define __stub macros and hopefully few prototypes,
36148     which can conflict with char socket (); below.
36149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36150     <limits.h> exists even on freestanding compilers.  */
36151
36152 #ifdef __STDC__
36153 # include <limits.h>
36154 #else
36155 # include <assert.h>
36156 #endif
36157
36158 #undef socket
36159
36160 /* Override any gcc2 internal prototype to avoid an error.  */
36161 #ifdef __cplusplus
36162 extern "C"
36163 {
36164 #endif
36165 /* We use char because int might match the return type of a gcc2
36166    builtin and then its argument prototype would still apply.  */
36167 char socket ();
36168 /* The GNU C library defines this for functions which it implements
36169     to always fail with ENOSYS.  Some functions are actually named
36170     something starting with __ and the normal name is an alias.  */
36171 #if defined (__stub_socket) || defined (__stub___socket)
36172 choke me
36173 #else
36174 char (*f) () = socket;
36175 #endif
36176 #ifdef __cplusplus
36177 }
36178 #endif
36179
36180 int
36181 main ()
36182 {
36183 return f != socket;
36184   ;
36185   return 0;
36186 }
36187 _ACEOF
36188 rm -f conftest.$ac_objext conftest$ac_exeext
36189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36190   (eval $ac_link) 2>conftest.er1
36191   ac_status=$?
36192   grep -v '^ *+' conftest.er1 >conftest.err
36193   rm -f conftest.er1
36194   cat conftest.err >&5
36195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36196   (exit $ac_status); } &&
36197          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36199   (eval $ac_try) 2>&5
36200   ac_status=$?
36201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202   (exit $ac_status); }; } &&
36203          { ac_try='test -s conftest$ac_exeext'
36204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36205   (eval $ac_try) 2>&5
36206   ac_status=$?
36207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36208   (exit $ac_status); }; }; then
36209   ac_cv_func_socket=yes
36210 else
36211   echo "$as_me: failed program was:" >&5
36212 sed 's/^/| /' conftest.$ac_ext >&5
36213
36214 ac_cv_func_socket=no
36215 fi
36216 rm -f conftest.err conftest.$ac_objext \
36217       conftest$ac_exeext conftest.$ac_ext
36218 fi
36219 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
36220 echo "${ECHO_T}$ac_cv_func_socket" >&6
36221 if test $ac_cv_func_socket = yes; then
36222   :
36223 else
36224
36225                 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
36226 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
36227 if test "${ac_cv_lib_socket_socket+set}" = set; then
36228   echo $ECHO_N "(cached) $ECHO_C" >&6
36229 else
36230   ac_check_lib_save_LIBS=$LIBS
36231 LIBS="-lsocket  $LIBS"
36232 cat >conftest.$ac_ext <<_ACEOF
36233 /* confdefs.h.  */
36234 _ACEOF
36235 cat confdefs.h >>conftest.$ac_ext
36236 cat >>conftest.$ac_ext <<_ACEOF
36237 /* end confdefs.h.  */
36238
36239 /* Override any gcc2 internal prototype to avoid an error.  */
36240 #ifdef __cplusplus
36241 extern "C"
36242 #endif
36243 /* We use char because int might match the return type of a gcc2
36244    builtin and then its argument prototype would still apply.  */
36245 char socket ();
36246 int
36247 main ()
36248 {
36249 socket ();
36250   ;
36251   return 0;
36252 }
36253 _ACEOF
36254 rm -f conftest.$ac_objext conftest$ac_exeext
36255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36256   (eval $ac_link) 2>conftest.er1
36257   ac_status=$?
36258   grep -v '^ *+' conftest.er1 >conftest.err
36259   rm -f conftest.er1
36260   cat conftest.err >&5
36261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36262   (exit $ac_status); } &&
36263          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36265   (eval $ac_try) 2>&5
36266   ac_status=$?
36267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36268   (exit $ac_status); }; } &&
36269          { ac_try='test -s conftest$ac_exeext'
36270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36271   (eval $ac_try) 2>&5
36272   ac_status=$?
36273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36274   (exit $ac_status); }; }; then
36275   ac_cv_lib_socket_socket=yes
36276 else
36277   echo "$as_me: failed program was:" >&5
36278 sed 's/^/| /' conftest.$ac_ext >&5
36279
36280 ac_cv_lib_socket_socket=no
36281 fi
36282 rm -f conftest.err conftest.$ac_objext \
36283       conftest$ac_exeext conftest.$ac_ext
36284 LIBS=$ac_check_lib_save_LIBS
36285 fi
36286 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
36287 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
36288 if test $ac_cv_lib_socket_socket = yes; then
36289   if test "$INET_LINK" != " -lsocket"; then
36290                         INET_LINK="$INET_LINK -lsocket"
36291                     fi
36292 else
36293
36294                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
36295 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
36296                         wxUSE_SOCKETS=no
36297
36298
36299 fi
36300
36301
36302
36303 fi
36304
36305     fi
36306 fi
36307
36308 if test "$wxUSE_SOCKETS" = "yes" ; then
36309                 if test "$TOOLKIT" != "MSW"; then
36310                                         ac_ext=cc
36311 ac_cpp='$CXXCPP $CPPFLAGS'
36312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36315
36316         echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
36317 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
36318 if test "${wx_cv_type_getsockname3+set}" = set; then
36319   echo $ECHO_N "(cached) $ECHO_C" >&6
36320 else
36321
36322                 cat >conftest.$ac_ext <<_ACEOF
36323 /* confdefs.h.  */
36324 _ACEOF
36325 cat confdefs.h >>conftest.$ac_ext
36326 cat >>conftest.$ac_ext <<_ACEOF
36327 /* end confdefs.h.  */
36328
36329                         #include <sys/types.h>
36330                         #include <sys/socket.h>
36331
36332 int
36333 main ()
36334 {
36335
36336                         socklen_t len;
36337                         getsockname(0, 0, &len);
36338
36339   ;
36340   return 0;
36341 }
36342 _ACEOF
36343 rm -f conftest.$ac_objext
36344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36345   (eval $ac_compile) 2>conftest.er1
36346   ac_status=$?
36347   grep -v '^ *+' conftest.er1 >conftest.err
36348   rm -f conftest.er1
36349   cat conftest.err >&5
36350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36351   (exit $ac_status); } &&
36352          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36354   (eval $ac_try) 2>&5
36355   ac_status=$?
36356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36357   (exit $ac_status); }; } &&
36358          { ac_try='test -s conftest.$ac_objext'
36359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36360   (eval $ac_try) 2>&5
36361   ac_status=$?
36362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36363   (exit $ac_status); }; }; then
36364   wx_cv_type_getsockname3=socklen_t
36365 else
36366   echo "$as_me: failed program was:" >&5
36367 sed 's/^/| /' conftest.$ac_ext >&5
36368
36369
36370                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
36371                         if test "$GCC" = yes ; then
36372                             CFLAGS="$CFLAGS -Werror"
36373                         fi
36374
36375                         cat >conftest.$ac_ext <<_ACEOF
36376 /* confdefs.h.  */
36377 _ACEOF
36378 cat confdefs.h >>conftest.$ac_ext
36379 cat >>conftest.$ac_ext <<_ACEOF
36380 /* end confdefs.h.  */
36381
36382                                 #include <sys/types.h>
36383                                 #include <sys/socket.h>
36384
36385 int
36386 main ()
36387 {
36388
36389                                 size_t len;
36390                                 getsockname(0, 0, &len);
36391
36392   ;
36393   return 0;
36394 }
36395 _ACEOF
36396 rm -f conftest.$ac_objext
36397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36398   (eval $ac_compile) 2>conftest.er1
36399   ac_status=$?
36400   grep -v '^ *+' conftest.er1 >conftest.err
36401   rm -f conftest.er1
36402   cat conftest.err >&5
36403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36404   (exit $ac_status); } &&
36405          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36407   (eval $ac_try) 2>&5
36408   ac_status=$?
36409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36410   (exit $ac_status); }; } &&
36411          { ac_try='test -s conftest.$ac_objext'
36412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36413   (eval $ac_try) 2>&5
36414   ac_status=$?
36415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36416   (exit $ac_status); }; }; then
36417   wx_cv_type_getsockname3=size_t
36418 else
36419   echo "$as_me: failed program was:" >&5
36420 sed 's/^/| /' conftest.$ac_ext >&5
36421
36422 cat >conftest.$ac_ext <<_ACEOF
36423 /* confdefs.h.  */
36424 _ACEOF
36425 cat confdefs.h >>conftest.$ac_ext
36426 cat >>conftest.$ac_ext <<_ACEOF
36427 /* end confdefs.h.  */
36428
36429                                     #include <sys/types.h>
36430                                     #include <sys/socket.h>
36431
36432 int
36433 main ()
36434 {
36435
36436                                     int len;
36437                                     getsockname(0, 0, &len);
36438
36439   ;
36440   return 0;
36441 }
36442 _ACEOF
36443 rm -f conftest.$ac_objext
36444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36445   (eval $ac_compile) 2>conftest.er1
36446   ac_status=$?
36447   grep -v '^ *+' conftest.er1 >conftest.err
36448   rm -f conftest.er1
36449   cat conftest.err >&5
36450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451   (exit $ac_status); } &&
36452          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36454   (eval $ac_try) 2>&5
36455   ac_status=$?
36456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36457   (exit $ac_status); }; } &&
36458          { ac_try='test -s conftest.$ac_objext'
36459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36460   (eval $ac_try) 2>&5
36461   ac_status=$?
36462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36463   (exit $ac_status); }; }; then
36464   wx_cv_type_getsockname3=int
36465 else
36466   echo "$as_me: failed program was:" >&5
36467 sed 's/^/| /' conftest.$ac_ext >&5
36468
36469 wx_cv_type_getsockname3=unknown
36470
36471 fi
36472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36473
36474 fi
36475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36476
36477                         CFLAGS="$CFLAGS_OLD"
36478
36479
36480 fi
36481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36482
36483 fi
36484 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
36485 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
36486
36487         if test "$wx_cv_type_getsockname3" = "unknown"; then
36488             wxUSE_SOCKETS=no
36489             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36490 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36491         else
36492             cat >>confdefs.h <<_ACEOF
36493 #define SOCKLEN_T $wx_cv_type_getsockname3
36494 _ACEOF
36495
36496         fi
36497                 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
36498 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
36499 if test "${wx_cv_type_getsockopt5+set}" = set; then
36500   echo $ECHO_N "(cached) $ECHO_C" >&6
36501 else
36502
36503                 cat >conftest.$ac_ext <<_ACEOF
36504 /* confdefs.h.  */
36505 _ACEOF
36506 cat confdefs.h >>conftest.$ac_ext
36507 cat >>conftest.$ac_ext <<_ACEOF
36508 /* end confdefs.h.  */
36509
36510                         #include <sys/types.h>
36511                         #include <sys/socket.h>
36512
36513 int
36514 main ()
36515 {
36516
36517                         socklen_t len;
36518                         getsockopt(0, 0, 0, 0, &len);
36519
36520   ;
36521   return 0;
36522 }
36523 _ACEOF
36524 rm -f conftest.$ac_objext
36525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36526   (eval $ac_compile) 2>conftest.er1
36527   ac_status=$?
36528   grep -v '^ *+' conftest.er1 >conftest.err
36529   rm -f conftest.er1
36530   cat conftest.err >&5
36531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532   (exit $ac_status); } &&
36533          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36535   (eval $ac_try) 2>&5
36536   ac_status=$?
36537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36538   (exit $ac_status); }; } &&
36539          { ac_try='test -s conftest.$ac_objext'
36540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36541   (eval $ac_try) 2>&5
36542   ac_status=$?
36543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36544   (exit $ac_status); }; }; then
36545   wx_cv_type_getsockopt5=socklen_t
36546 else
36547   echo "$as_me: failed program was:" >&5
36548 sed 's/^/| /' conftest.$ac_ext >&5
36549
36550
36551                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
36552                         if test "$GCC" = yes ; then
36553                             CFLAGS="$CFLAGS -Werror"
36554                         fi
36555
36556                         cat >conftest.$ac_ext <<_ACEOF
36557 /* confdefs.h.  */
36558 _ACEOF
36559 cat confdefs.h >>conftest.$ac_ext
36560 cat >>conftest.$ac_ext <<_ACEOF
36561 /* end confdefs.h.  */
36562
36563                                 #include <sys/types.h>
36564                                 #include <sys/socket.h>
36565
36566 int
36567 main ()
36568 {
36569
36570                                 size_t len;
36571                                 getsockopt(0, 0, 0, 0, &len);
36572
36573   ;
36574   return 0;
36575 }
36576 _ACEOF
36577 rm -f conftest.$ac_objext
36578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36579   (eval $ac_compile) 2>conftest.er1
36580   ac_status=$?
36581   grep -v '^ *+' conftest.er1 >conftest.err
36582   rm -f conftest.er1
36583   cat conftest.err >&5
36584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36585   (exit $ac_status); } &&
36586          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36588   (eval $ac_try) 2>&5
36589   ac_status=$?
36590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36591   (exit $ac_status); }; } &&
36592          { ac_try='test -s conftest.$ac_objext'
36593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36594   (eval $ac_try) 2>&5
36595   ac_status=$?
36596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36597   (exit $ac_status); }; }; then
36598   wx_cv_type_getsockopt5=size_t
36599 else
36600   echo "$as_me: failed program was:" >&5
36601 sed 's/^/| /' conftest.$ac_ext >&5
36602
36603 cat >conftest.$ac_ext <<_ACEOF
36604 /* confdefs.h.  */
36605 _ACEOF
36606 cat confdefs.h >>conftest.$ac_ext
36607 cat >>conftest.$ac_ext <<_ACEOF
36608 /* end confdefs.h.  */
36609
36610                                     #include <sys/types.h>
36611                                     #include <sys/socket.h>
36612
36613 int
36614 main ()
36615 {
36616
36617                                     int len;
36618                                     getsockopt(0, 0, 0, 0, &len);
36619
36620   ;
36621   return 0;
36622 }
36623 _ACEOF
36624 rm -f conftest.$ac_objext
36625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36626   (eval $ac_compile) 2>conftest.er1
36627   ac_status=$?
36628   grep -v '^ *+' conftest.er1 >conftest.err
36629   rm -f conftest.er1
36630   cat conftest.err >&5
36631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36632   (exit $ac_status); } &&
36633          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
36634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36635   (eval $ac_try) 2>&5
36636   ac_status=$?
36637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36638   (exit $ac_status); }; } &&
36639          { ac_try='test -s conftest.$ac_objext'
36640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36641   (eval $ac_try) 2>&5
36642   ac_status=$?
36643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36644   (exit $ac_status); }; }; then
36645   wx_cv_type_getsockopt5=int
36646 else
36647   echo "$as_me: failed program was:" >&5
36648 sed 's/^/| /' conftest.$ac_ext >&5
36649
36650 wx_cv_type_getsockopt5=unknown
36651
36652 fi
36653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36654
36655 fi
36656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36657
36658                         CFLAGS="$CFLAGS_OLD"
36659
36660
36661 fi
36662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36663
36664 fi
36665 echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
36666 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
36667
36668         if test "$wx_cv_type_getsockopt5" = "unknown"; then
36669             wxUSE_SOCKETS=no
36670             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36671 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36672         else
36673             cat >>confdefs.h <<_ACEOF
36674 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
36675 _ACEOF
36676
36677         fi
36678         ac_ext=c
36679 ac_cpp='$CPP $CPPFLAGS'
36680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36683
36684     fi
36685 fi
36686
36687 if test "$wxUSE_SOCKETS" = "yes" ; then
36688     cat >>confdefs.h <<\_ACEOF
36689 #define wxUSE_SOCKETS 1
36690 _ACEOF
36691
36692     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
36693 fi
36694
36695 if test "$wxUSE_PROTOCOL" = "yes"; then
36696     if test "$wxUSE_SOCKETS" != "yes"; then
36697         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
36698 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
36699         wxUSE_PROTOCOL=no
36700     fi
36701 fi
36702
36703 if test "$wxUSE_PROTOCOL" = "yes"; then
36704     cat >>confdefs.h <<\_ACEOF
36705 #define wxUSE_PROTOCOL 1
36706 _ACEOF
36707
36708
36709     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
36710         cat >>confdefs.h <<\_ACEOF
36711 #define wxUSE_PROTOCOL_HTTP 1
36712 _ACEOF
36713
36714     fi
36715     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
36716         cat >>confdefs.h <<\_ACEOF
36717 #define wxUSE_PROTOCOL_FTP 1
36718 _ACEOF
36719
36720     fi
36721     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
36722         cat >>confdefs.h <<\_ACEOF
36723 #define wxUSE_PROTOCOL_FILE 1
36724 _ACEOF
36725
36726     fi
36727 else
36728     if test "$wxUSE_FS_INET" = "yes"; then
36729         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
36730 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
36731         wxUSE_FS_INET="no"
36732     fi
36733 fi
36734
36735 if test "$wxUSE_URL" = "yes"; then
36736     if test "$wxUSE_PROTOCOL" != "yes"; then
36737         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
36738 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
36739         wxUSE_URL=no
36740     fi
36741     if test "$wxUSE_URL" = "yes"; then
36742         cat >>confdefs.h <<\_ACEOF
36743 #define wxUSE_URL 1
36744 _ACEOF
36745
36746     fi
36747 fi
36748
36749 if test "$wxUSE_FS_INET" = "yes"; then
36750   cat >>confdefs.h <<\_ACEOF
36751 #define wxUSE_FS_INET 1
36752 _ACEOF
36753
36754 fi
36755
36756
36757 if test "$wxUSE_GUI" = "yes"; then
36758
36759     if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
36760         { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
36761 echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
36762         wxUSE_JOYSTICK=no
36763      fi
36764
36765          if test "$TOOLKIT" != "MSW"; then
36766         if test "$wxUSE_JOYSTICK" = "yes"; then
36767
36768 for ac_header in linux/joystick.h
36769 do
36770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36772   echo "$as_me:$LINENO: checking for $ac_header" >&5
36773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36775   echo $ECHO_N "(cached) $ECHO_C" >&6
36776 fi
36777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36779 else
36780   # Is the header compilable?
36781 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36783 cat >conftest.$ac_ext <<_ACEOF
36784 /* confdefs.h.  */
36785 _ACEOF
36786 cat confdefs.h >>conftest.$ac_ext
36787 cat >>conftest.$ac_ext <<_ACEOF
36788 /* end confdefs.h.  */
36789 $ac_includes_default
36790 #include <$ac_header>
36791 _ACEOF
36792 rm -f conftest.$ac_objext
36793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36794   (eval $ac_compile) 2>conftest.er1
36795   ac_status=$?
36796   grep -v '^ *+' conftest.er1 >conftest.err
36797   rm -f conftest.er1
36798   cat conftest.err >&5
36799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36800   (exit $ac_status); } &&
36801          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36803   (eval $ac_try) 2>&5
36804   ac_status=$?
36805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36806   (exit $ac_status); }; } &&
36807          { ac_try='test -s conftest.$ac_objext'
36808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36809   (eval $ac_try) 2>&5
36810   ac_status=$?
36811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36812   (exit $ac_status); }; }; then
36813   ac_header_compiler=yes
36814 else
36815   echo "$as_me: failed program was:" >&5
36816 sed 's/^/| /' conftest.$ac_ext >&5
36817
36818 ac_header_compiler=no
36819 fi
36820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36822 echo "${ECHO_T}$ac_header_compiler" >&6
36823
36824 # Is the header present?
36825 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36827 cat >conftest.$ac_ext <<_ACEOF
36828 /* confdefs.h.  */
36829 _ACEOF
36830 cat confdefs.h >>conftest.$ac_ext
36831 cat >>conftest.$ac_ext <<_ACEOF
36832 /* end confdefs.h.  */
36833 #include <$ac_header>
36834 _ACEOF
36835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36836   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36837   ac_status=$?
36838   grep -v '^ *+' conftest.er1 >conftest.err
36839   rm -f conftest.er1
36840   cat conftest.err >&5
36841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36842   (exit $ac_status); } >/dev/null; then
36843   if test -s conftest.err; then
36844     ac_cpp_err=$ac_c_preproc_warn_flag
36845     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36846   else
36847     ac_cpp_err=
36848   fi
36849 else
36850   ac_cpp_err=yes
36851 fi
36852 if test -z "$ac_cpp_err"; then
36853   ac_header_preproc=yes
36854 else
36855   echo "$as_me: failed program was:" >&5
36856 sed 's/^/| /' conftest.$ac_ext >&5
36857
36858   ac_header_preproc=no
36859 fi
36860 rm -f conftest.err conftest.$ac_ext
36861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36862 echo "${ECHO_T}$ac_header_preproc" >&6
36863
36864 # So?  What about this header?
36865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36866   yes:no: )
36867     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36871     ac_header_preproc=yes
36872     ;;
36873   no:yes:* )
36874     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36876     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36877 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36878     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36880     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36881 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36884     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36886     (
36887       cat <<\_ASBOX
36888 ## ----------------------------------------- ##
36889 ## Report this to wx-dev@lists.wxwidgets.org ##
36890 ## ----------------------------------------- ##
36891 _ASBOX
36892     ) |
36893       sed "s/^/$as_me: WARNING:     /" >&2
36894     ;;
36895 esac
36896 echo "$as_me:$LINENO: checking for $ac_header" >&5
36897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36899   echo $ECHO_N "(cached) $ECHO_C" >&6
36900 else
36901   eval "$as_ac_Header=\$ac_header_preproc"
36902 fi
36903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36905
36906 fi
36907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36908   cat >>confdefs.h <<_ACEOF
36909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36910 _ACEOF
36911
36912 fi
36913
36914 done
36915
36916             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36917                 wxUSE_JOYSTICK=no
36918                 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36919 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36920             fi
36921         fi
36922     fi
36923
36924     if test "$wxUSE_JOYSTICK" = "yes"; then
36925         cat >>confdefs.h <<\_ACEOF
36926 #define wxUSE_JOYSTICK 1
36927 _ACEOF
36928
36929         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36930     fi
36931 fi
36932
36933
36934
36935 if test "$wxUSE_FONTMAP" = "yes" ; then
36936   cat >>confdefs.h <<\_ACEOF
36937 #define wxUSE_FONTMAP 1
36938 _ACEOF
36939
36940 fi
36941
36942 if test "$wxUSE_UNICODE" = "yes" ; then
36943   cat >>confdefs.h <<\_ACEOF
36944 #define wxUSE_UNICODE 1
36945 _ACEOF
36946
36947
36948   if test "$USE_WIN32" != 1; then
36949       wxUSE_UNICODE_MSLU=no
36950   fi
36951
36952   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36953         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36954 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36955 if test "${ac_cv_lib_unicows_main+set}" = set; then
36956   echo $ECHO_N "(cached) $ECHO_C" >&6
36957 else
36958   ac_check_lib_save_LIBS=$LIBS
36959 LIBS="-lunicows  $LIBS"
36960 cat >conftest.$ac_ext <<_ACEOF
36961 /* confdefs.h.  */
36962 _ACEOF
36963 cat confdefs.h >>conftest.$ac_ext
36964 cat >>conftest.$ac_ext <<_ACEOF
36965 /* end confdefs.h.  */
36966
36967
36968 int
36969 main ()
36970 {
36971 main ();
36972   ;
36973   return 0;
36974 }
36975 _ACEOF
36976 rm -f conftest.$ac_objext conftest$ac_exeext
36977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36978   (eval $ac_link) 2>conftest.er1
36979   ac_status=$?
36980   grep -v '^ *+' conftest.er1 >conftest.err
36981   rm -f conftest.er1
36982   cat conftest.err >&5
36983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36984   (exit $ac_status); } &&
36985          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36987   (eval $ac_try) 2>&5
36988   ac_status=$?
36989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36990   (exit $ac_status); }; } &&
36991          { ac_try='test -s conftest$ac_exeext'
36992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36993   (eval $ac_try) 2>&5
36994   ac_status=$?
36995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36996   (exit $ac_status); }; }; then
36997   ac_cv_lib_unicows_main=yes
36998 else
36999   echo "$as_me: failed program was:" >&5
37000 sed 's/^/| /' conftest.$ac_ext >&5
37001
37002 ac_cv_lib_unicows_main=no
37003 fi
37004 rm -f conftest.err conftest.$ac_objext \
37005       conftest$ac_exeext conftest.$ac_ext
37006 LIBS=$ac_check_lib_save_LIBS
37007 fi
37008 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
37009 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
37010 if test $ac_cv_lib_unicows_main = yes; then
37011
37012                 cat >>confdefs.h <<\_ACEOF
37013 #define wxUSE_UNICODE_MSLU 1
37014 _ACEOF
37015
37016
37017 else
37018
37019                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37020                              Applications will only run on Windows NT/2000/XP!" >&5
37021 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37022                              Applications will only run on Windows NT/2000/XP!" >&2;}
37023                 wxUSE_UNICODE_MSLU=no
37024
37025 fi
37026
37027     fi
37028 fi
37029
37030 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
37031   cat >>confdefs.h <<\_ACEOF
37032 #define wxUSE_EXPERIMENTAL_PRINTF 1
37033 _ACEOF
37034
37035 fi
37036
37037
37038 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
37039   cat >>confdefs.h <<\_ACEOF
37040 #define wxUSE_POSTSCRIPT 1
37041 _ACEOF
37042
37043 fi
37044
37045 cat >>confdefs.h <<\_ACEOF
37046 #define wxUSE_AFM_FOR_POSTSCRIPT 1
37047 _ACEOF
37048
37049
37050 cat >>confdefs.h <<\_ACEOF
37051 #define wxUSE_NORMALIZED_PS_FONTS 1
37052 _ACEOF
37053
37054
37055
37056 if test "$wxUSE_CONSTRAINTS" = "yes"; then
37057     cat >>confdefs.h <<\_ACEOF
37058 #define wxUSE_CONSTRAINTS 1
37059 _ACEOF
37060
37061     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
37062 fi
37063
37064 if test "$wxUSE_MDI" = "yes"; then
37065     cat >>confdefs.h <<\_ACEOF
37066 #define wxUSE_MDI 1
37067 _ACEOF
37068
37069
37070     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37071         cat >>confdefs.h <<\_ACEOF
37072 #define wxUSE_MDI_ARCHITECTURE 1
37073 _ACEOF
37074
37075         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
37076     fi
37077 fi
37078
37079 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
37080     cat >>confdefs.h <<\_ACEOF
37081 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
37082 _ACEOF
37083
37084     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
37085     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37086         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
37087     fi
37088 fi
37089
37090 if test "$wxUSE_HELP" = "yes"; then
37091     cat >>confdefs.h <<\_ACEOF
37092 #define wxUSE_HELP 1
37093 _ACEOF
37094
37095     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
37096
37097     if test "$wxUSE_MSW" = 1; then
37098       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
37099         cat >>confdefs.h <<\_ACEOF
37100 #define wxUSE_MS_HTML_HELP 1
37101 _ACEOF
37102
37103       fi
37104     fi
37105
37106     if test "$wxUSE_WXHTML_HELP" = "yes"; then
37107       if test "$wxUSE_HTML" = "yes"; then
37108         cat >>confdefs.h <<\_ACEOF
37109 #define wxUSE_WXHTML_HELP 1
37110 _ACEOF
37111
37112       else
37113         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
37114 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
37115         wxUSE_WXHTML_HELP=no
37116       fi
37117     fi
37118 fi
37119
37120 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37121     if test "$wxUSE_CONSTRAINTS" != "yes"; then
37122         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
37123 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
37124     else
37125         cat >>confdefs.h <<\_ACEOF
37126 #define wxUSE_PRINTING_ARCHITECTURE 1
37127 _ACEOF
37128
37129     fi
37130     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
37131 fi
37132
37133 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
37134     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
37135 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
37136    { (exit 1); exit 1; }; }
37137 fi
37138
37139
37140 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
37141                           -o "$wxUSE_CLIPBOARD"     = "yes" \
37142                           -o "$wxUSE_OLE"     = "yes" \
37143                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
37144
37145 for ac_header in ole2.h
37146 do
37147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37149   echo "$as_me:$LINENO: checking for $ac_header" >&5
37150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37152   echo $ECHO_N "(cached) $ECHO_C" >&6
37153 fi
37154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37156 else
37157   # Is the header compilable?
37158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37160 cat >conftest.$ac_ext <<_ACEOF
37161 /* confdefs.h.  */
37162 _ACEOF
37163 cat confdefs.h >>conftest.$ac_ext
37164 cat >>conftest.$ac_ext <<_ACEOF
37165 /* end confdefs.h.  */
37166 $ac_includes_default
37167 #include <$ac_header>
37168 _ACEOF
37169 rm -f conftest.$ac_objext
37170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37171   (eval $ac_compile) 2>conftest.er1
37172   ac_status=$?
37173   grep -v '^ *+' conftest.er1 >conftest.err
37174   rm -f conftest.er1
37175   cat conftest.err >&5
37176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37177   (exit $ac_status); } &&
37178          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37180   (eval $ac_try) 2>&5
37181   ac_status=$?
37182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37183   (exit $ac_status); }; } &&
37184          { ac_try='test -s conftest.$ac_objext'
37185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37186   (eval $ac_try) 2>&5
37187   ac_status=$?
37188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37189   (exit $ac_status); }; }; then
37190   ac_header_compiler=yes
37191 else
37192   echo "$as_me: failed program was:" >&5
37193 sed 's/^/| /' conftest.$ac_ext >&5
37194
37195 ac_header_compiler=no
37196 fi
37197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37199 echo "${ECHO_T}$ac_header_compiler" >&6
37200
37201 # Is the header present?
37202 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37204 cat >conftest.$ac_ext <<_ACEOF
37205 /* confdefs.h.  */
37206 _ACEOF
37207 cat confdefs.h >>conftest.$ac_ext
37208 cat >>conftest.$ac_ext <<_ACEOF
37209 /* end confdefs.h.  */
37210 #include <$ac_header>
37211 _ACEOF
37212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37213   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37214   ac_status=$?
37215   grep -v '^ *+' conftest.er1 >conftest.err
37216   rm -f conftest.er1
37217   cat conftest.err >&5
37218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37219   (exit $ac_status); } >/dev/null; then
37220   if test -s conftest.err; then
37221     ac_cpp_err=$ac_c_preproc_warn_flag
37222     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37223   else
37224     ac_cpp_err=
37225   fi
37226 else
37227   ac_cpp_err=yes
37228 fi
37229 if test -z "$ac_cpp_err"; then
37230   ac_header_preproc=yes
37231 else
37232   echo "$as_me: failed program was:" >&5
37233 sed 's/^/| /' conftest.$ac_ext >&5
37234
37235   ac_header_preproc=no
37236 fi
37237 rm -f conftest.err conftest.$ac_ext
37238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37239 echo "${ECHO_T}$ac_header_preproc" >&6
37240
37241 # So?  What about this header?
37242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37243   yes:no: )
37244     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37248     ac_header_preproc=yes
37249     ;;
37250   no:yes:* )
37251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37253     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37254 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37255     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37257     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37258 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37261     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37263     (
37264       cat <<\_ASBOX
37265 ## ----------------------------------------- ##
37266 ## Report this to wx-dev@lists.wxwidgets.org ##
37267 ## ----------------------------------------- ##
37268 _ASBOX
37269     ) |
37270       sed "s/^/$as_me: WARNING:     /" >&2
37271     ;;
37272 esac
37273 echo "$as_me:$LINENO: checking for $ac_header" >&5
37274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37276   echo $ECHO_N "(cached) $ECHO_C" >&6
37277 else
37278   eval "$as_ac_Header=\$ac_header_preproc"
37279 fi
37280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37282
37283 fi
37284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37285   cat >>confdefs.h <<_ACEOF
37286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37287 _ACEOF
37288
37289 fi
37290
37291 done
37292
37293
37294     if test "$ac_cv_header_ole2_h" = "yes" ; then
37295         if test "$GCC" = yes ; then
37296
37297
37298             ac_ext=cc
37299 ac_cpp='$CXXCPP $CPPFLAGS'
37300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37303
37304
37305             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
37306 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
37307             cat >conftest.$ac_ext <<_ACEOF
37308 /* confdefs.h.  */
37309 _ACEOF
37310 cat confdefs.h >>conftest.$ac_ext
37311 cat >>conftest.$ac_ext <<_ACEOF
37312 /* end confdefs.h.  */
37313 #include <windows.h>
37314                             #include <ole2.h>
37315 int
37316 main ()
37317 {
37318
37319   ;
37320   return 0;
37321 }
37322 _ACEOF
37323 rm -f conftest.$ac_objext
37324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37325   (eval $ac_compile) 2>conftest.er1
37326   ac_status=$?
37327   grep -v '^ *+' conftest.er1 >conftest.err
37328   rm -f conftest.er1
37329   cat conftest.err >&5
37330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37331   (exit $ac_status); } &&
37332          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37334   (eval $ac_try) 2>&5
37335   ac_status=$?
37336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37337   (exit $ac_status); }; } &&
37338          { ac_try='test -s conftest.$ac_objext'
37339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37340   (eval $ac_try) 2>&5
37341   ac_status=$?
37342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37343   (exit $ac_status); }; }; then
37344   echo "$as_me:$LINENO: result: no" >&5
37345 echo "${ECHO_T}no" >&6
37346 else
37347   echo "$as_me: failed program was:" >&5
37348 sed 's/^/| /' conftest.$ac_ext >&5
37349
37350 echo "$as_me:$LINENO: result: yes" >&5
37351 echo "${ECHO_T}yes" >&6
37352                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
37353 fi
37354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37355             ac_ext=c
37356 ac_cpp='$CPP $CPPFLAGS'
37357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37360
37361             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
37362             if test "$wxUSE_OLE" = "yes" ; then
37363                 cat >>confdefs.h <<\_ACEOF
37364 #define wxUSE_OLE 1
37365 _ACEOF
37366
37367             fi
37368         fi
37369
37370                 if test "$wxUSE_DATAOBJ" = "yes" ; then
37371             cat >>confdefs.h <<\_ACEOF
37372 #define wxUSE_DATAOBJ 1
37373 _ACEOF
37374
37375         fi
37376     else
37377         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
37378 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
37379
37380         wxUSE_CLIPBOARD=no
37381         wxUSE_DRAG_AND_DROP=no
37382         wxUSE_DATAOBJ=no
37383         wxUSE_OLE=no
37384     fi
37385
37386     if test "$wxUSE_METAFILE" = "yes"; then
37387         cat >>confdefs.h <<\_ACEOF
37388 #define wxUSE_METAFILE 1
37389 _ACEOF
37390
37391
37392                 cat >>confdefs.h <<\_ACEOF
37393 #define wxUSE_ENH_METAFILE 1
37394 _ACEOF
37395
37396     fi
37397 fi
37398
37399 if test "$wxUSE_IPC" = "yes"; then
37400     if test "$wxUSE_SOCKETS" != "yes"; then
37401         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
37402 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
37403     fi
37404
37405     cat >>confdefs.h <<\_ACEOF
37406 #define wxUSE_IPC 1
37407 _ACEOF
37408
37409 fi
37410
37411 if test "$wxUSE_CLIPBOARD" = "yes"; then
37412     if test "$wxUSE_MGL" = 1; then
37413         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
37414 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
37415         wxUSE_CLIPBOARD=no
37416     fi
37417
37418     if test "$wxUSE_CLIPBOARD" = "yes"; then
37419         cat >>confdefs.h <<\_ACEOF
37420 #define wxUSE_CLIPBOARD 1
37421 _ACEOF
37422
37423
37424                 cat >>confdefs.h <<\_ACEOF
37425 #define wxUSE_DATAOBJ 1
37426 _ACEOF
37427
37428     fi
37429 fi
37430
37431 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
37432     if test "$wxUSE_GTK" = 1; then
37433         if test "$WXGTK12" != 1; then
37434             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
37435 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
37436             wxUSE_DRAG_AND_DROP=no
37437         fi
37438     fi
37439
37440     if test "$wxUSE_MOTIF" = 1; then
37441         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
37442 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
37443         wxUSE_DRAG_AND_DROP=no
37444     fi
37445
37446     if test "$wxUSE_X11" = 1; then
37447         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
37448 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
37449         wxUSE_DRAG_AND_DROP=no
37450     fi
37451
37452     if test "$wxUSE_MGL" = 1; then
37453         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
37454 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
37455         wxUSE_DRAG_AND_DROP=no
37456     fi
37457
37458     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
37459         cat >>confdefs.h <<\_ACEOF
37460 #define wxUSE_DRAG_AND_DROP 1
37461 _ACEOF
37462
37463     fi
37464
37465 fi
37466
37467 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
37468     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
37469 fi
37470
37471 if test "$wxUSE_SPLINES" = "yes" ; then
37472   cat >>confdefs.h <<\_ACEOF
37473 #define wxUSE_SPLINES 1
37474 _ACEOF
37475
37476 fi
37477
37478
37479 USES_CONTROLS=0
37480 if test "$wxUSE_CONTROLS" = "yes"; then
37481   USES_CONTROLS=1
37482 fi
37483
37484 if test "$wxUSE_ACCEL" = "yes"; then
37485   cat >>confdefs.h <<\_ACEOF
37486 #define wxUSE_ACCEL 1
37487 _ACEOF
37488
37489   USES_CONTROLS=1
37490 fi
37491
37492 if test "$wxUSE_BUTTON" = "yes"; then
37493   cat >>confdefs.h <<\_ACEOF
37494 #define wxUSE_BUTTON 1
37495 _ACEOF
37496
37497   USES_CONTROLS=1
37498 fi
37499
37500 if test "$wxUSE_BMPBUTTON" = "yes"; then
37501   cat >>confdefs.h <<\_ACEOF
37502 #define wxUSE_BMPBUTTON 1
37503 _ACEOF
37504
37505   USES_CONTROLS=1
37506 fi
37507
37508 if test "$wxUSE_CALCTRL" = "yes"; then
37509   cat >>confdefs.h <<\_ACEOF
37510 #define wxUSE_CALENDARCTRL 1
37511 _ACEOF
37512
37513   USES_CONTROLS=1
37514   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
37515 fi
37516
37517 if test "$wxUSE_CARET" = "yes"; then
37518   cat >>confdefs.h <<\_ACEOF
37519 #define wxUSE_CARET 1
37520 _ACEOF
37521
37522   USES_CONTROLS=1
37523   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
37524 fi
37525
37526 if test "$wxUSE_COMBOBOX" = "yes"; then
37527   cat >>confdefs.h <<\_ACEOF
37528 #define wxUSE_COMBOBOX 1
37529 _ACEOF
37530
37531   USES_CONTROLS=1
37532 fi
37533
37534 if test "$wxUSE_CHOICE" = "yes"; then
37535   cat >>confdefs.h <<\_ACEOF
37536 #define wxUSE_CHOICE 1
37537 _ACEOF
37538
37539   USES_CONTROLS=1
37540 fi
37541
37542 if test "$wxUSE_CHOICEBOOK" = "yes"; then
37543     cat >>confdefs.h <<\_ACEOF
37544 #define wxUSE_CHOICEBOOK 1
37545 _ACEOF
37546
37547     USES_CONTROLS=1
37548 fi
37549
37550 if test "$wxUSE_CHECKBOX" = "yes"; then
37551   cat >>confdefs.h <<\_ACEOF
37552 #define wxUSE_CHECKBOX 1
37553 _ACEOF
37554
37555   USES_CONTROLS=1
37556 fi
37557
37558 if test "$wxUSE_CHECKLST" = "yes"; then
37559   cat >>confdefs.h <<\_ACEOF
37560 #define wxUSE_CHECKLISTBOX 1
37561 _ACEOF
37562
37563   USES_CONTROLS=1
37564   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
37565 fi
37566
37567 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
37568   cat >>confdefs.h <<\_ACEOF
37569 #define wxUSE_DATEPICKCTRL 1
37570 _ACEOF
37571
37572   USES_CONTROLS=1
37573 fi
37574
37575 if test "$wxUSE_DISPLAY" = "yes"; then
37576     cat >>confdefs.h <<\_ACEOF
37577 #define wxUSE_DISPLAY 1
37578 _ACEOF
37579
37580     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
37581 fi
37582
37583 if test "$wxUSE_GAUGE" = "yes"; then
37584   cat >>confdefs.h <<\_ACEOF
37585 #define wxUSE_GAUGE 1
37586 _ACEOF
37587
37588   USES_CONTROLS=1
37589 fi
37590
37591 if test "$wxUSE_GRID" = "yes"; then
37592   cat >>confdefs.h <<\_ACEOF
37593 #define wxUSE_GRID 1
37594 _ACEOF
37595
37596   USES_CONTROLS=1
37597   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
37598 fi
37599
37600 if test "$wxUSE_IMAGLIST" = "yes"; then
37601     cat >>confdefs.h <<\_ACEOF
37602 #define wxUSE_IMAGLIST 1
37603 _ACEOF
37604
37605 fi
37606
37607 if test "$wxUSE_LISTBOOK" = "yes"; then
37608     cat >>confdefs.h <<\_ACEOF
37609 #define wxUSE_LISTBOOK 1
37610 _ACEOF
37611
37612     USES_CONTROLS=1
37613 fi
37614
37615 if test "$wxUSE_LISTBOX" = "yes"; then
37616     cat >>confdefs.h <<\_ACEOF
37617 #define wxUSE_LISTBOX 1
37618 _ACEOF
37619
37620     USES_CONTROLS=1
37621 fi
37622
37623 if test "$wxUSE_LISTCTRL" = "yes"; then
37624     if test "$wxUSE_IMAGLIST" = "yes"; then
37625         cat >>confdefs.h <<\_ACEOF
37626 #define wxUSE_LISTCTRL 1
37627 _ACEOF
37628
37629         USES_CONTROLS=1
37630         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
37631     else
37632         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
37633 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
37634     fi
37635 fi
37636
37637 if test "$wxUSE_NOTEBOOK" = "yes"; then
37638     cat >>confdefs.h <<\_ACEOF
37639 #define wxUSE_NOTEBOOK 1
37640 _ACEOF
37641
37642     USES_CONTROLS=1
37643     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
37644 fi
37645
37646
37647 if test "$wxUSE_RADIOBOX" = "yes"; then
37648     cat >>confdefs.h <<\_ACEOF
37649 #define wxUSE_RADIOBOX 1
37650 _ACEOF
37651
37652     USES_CONTROLS=1
37653 fi
37654
37655 if test "$wxUSE_RADIOBTN" = "yes"; then
37656     cat >>confdefs.h <<\_ACEOF
37657 #define wxUSE_RADIOBTN 1
37658 _ACEOF
37659
37660     USES_CONTROLS=1
37661 fi
37662
37663 if test "$wxUSE_SASH" = "yes"; then
37664     cat >>confdefs.h <<\_ACEOF
37665 #define wxUSE_SASH 1
37666 _ACEOF
37667
37668     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
37669 fi
37670
37671 if test "$wxUSE_SCROLLBAR" = "yes"; then
37672     cat >>confdefs.h <<\_ACEOF
37673 #define wxUSE_SCROLLBAR 1
37674 _ACEOF
37675
37676     USES_CONTROLS=1
37677     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
37678 fi
37679
37680 if test "$wxUSE_SLIDER" = "yes"; then
37681     cat >>confdefs.h <<\_ACEOF
37682 #define wxUSE_SLIDER 1
37683 _ACEOF
37684
37685     USES_CONTROLS=1
37686 fi
37687
37688 if test "$wxUSE_SPINBTN" = "yes"; then
37689     cat >>confdefs.h <<\_ACEOF
37690 #define wxUSE_SPINBTN 1
37691 _ACEOF
37692
37693     USES_CONTROLS=1
37694 fi
37695
37696 if test "$wxUSE_SPINCTRL" = "yes"; then
37697     cat >>confdefs.h <<\_ACEOF
37698 #define wxUSE_SPINCTRL 1
37699 _ACEOF
37700
37701     USES_CONTROLS=1
37702 fi
37703
37704 if test "$wxUSE_SPLITTER" = "yes"; then
37705     cat >>confdefs.h <<\_ACEOF
37706 #define wxUSE_SPLITTER 1
37707 _ACEOF
37708
37709     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
37710 fi
37711
37712 if test "$wxUSE_STATBMP" = "yes"; then
37713     cat >>confdefs.h <<\_ACEOF
37714 #define wxUSE_STATBMP 1
37715 _ACEOF
37716
37717     USES_CONTROLS=1
37718 fi
37719
37720 if test "$wxUSE_STATBOX" = "yes"; then
37721     cat >>confdefs.h <<\_ACEOF
37722 #define wxUSE_STATBOX 1
37723 _ACEOF
37724
37725     USES_CONTROLS=1
37726 fi
37727
37728 if test "$wxUSE_STATTEXT" = "yes"; then
37729     cat >>confdefs.h <<\_ACEOF
37730 #define wxUSE_STATTEXT 1
37731 _ACEOF
37732
37733     USES_CONTROLS=1
37734 fi
37735
37736 if test "$wxUSE_STATLINE" = "yes"; then
37737     cat >>confdefs.h <<\_ACEOF
37738 #define wxUSE_STATLINE 1
37739 _ACEOF
37740
37741     USES_CONTROLS=1
37742 fi
37743
37744 if test "$wxUSE_STATUSBAR" = "yes"; then
37745         cat >>confdefs.h <<\_ACEOF
37746 #define wxUSE_NATIVE_STATUSBAR 1
37747 _ACEOF
37748
37749     cat >>confdefs.h <<\_ACEOF
37750 #define wxUSE_STATUSBAR 1
37751 _ACEOF
37752
37753     USES_CONTROLS=1
37754
37755     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
37756 fi
37757
37758 if test "$wxUSE_TABDIALOG" = "yes"; then
37759     cat >>confdefs.h <<\_ACEOF
37760 #define wxUSE_TAB_DIALOG 1
37761 _ACEOF
37762
37763     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
37764 fi
37765
37766 if test "$wxUSE_TEXTCTRL" = "yes"; then
37767     cat >>confdefs.h <<\_ACEOF
37768 #define wxUSE_TEXTCTRL 1
37769 _ACEOF
37770
37771     USES_CONTROLS=1
37772     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
37773 fi
37774
37775 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37776     if test "$wxUSE_COCOA" = 1 ; then
37777         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
37778 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
37779         wxUSE_TOGGLEBTN=no
37780     else
37781         if test "$wxUSE_PM" = 1; then
37782             { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
37783 echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
37784             wxUSE_TOGGLEBTN=no
37785         fi
37786     fi
37787     if test "$wxUSE_UNIVERSAL" = "yes"; then
37788         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
37789 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37790         wxUSE_TOGGLEBTN=no
37791     fi
37792
37793     if test "$wxUSE_TOGGLEBTN" = "yes"; then
37794         cat >>confdefs.h <<\_ACEOF
37795 #define wxUSE_TOGGLEBTN 1
37796 _ACEOF
37797
37798         USES_CONTROLS=1
37799     fi
37800 fi
37801
37802 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
37803     cat >>confdefs.h <<\_ACEOF
37804 #define wxUSE_TOOLBAR_SIMPLE 1
37805 _ACEOF
37806
37807     wxUSE_TOOLBAR="yes"
37808     USES_CONTROLS=1
37809 fi
37810
37811 if test "$wxUSE_TOOLBAR" = "yes"; then
37812     cat >>confdefs.h <<\_ACEOF
37813 #define wxUSE_TOOLBAR 1
37814 _ACEOF
37815
37816     USES_CONTROLS=1
37817
37818         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
37819         wxUSE_TOOLBAR_NATIVE="yes"
37820     fi
37821
37822     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
37823         cat >>confdefs.h <<\_ACEOF
37824 #define wxUSE_TOOLBAR_NATIVE 1
37825 _ACEOF
37826
37827         USES_CONTROLS=1
37828     fi
37829
37830     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
37831 fi
37832
37833 if test "$wxUSE_TOOLTIPS" = "yes"; then
37834     if test "$wxUSE_MOTIF" = 1; then
37835         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37836 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
37837     else
37838         if test "$wxUSE_UNIVERSAL" = "yes"; then
37839             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37840 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
37841         else
37842             cat >>confdefs.h <<\_ACEOF
37843 #define wxUSE_TOOLTIPS 1
37844 _ACEOF
37845
37846         fi
37847     fi
37848 fi
37849
37850 if test "$wxUSE_TREECTRL" = "yes"; then
37851     if test "$wxUSE_IMAGLIST" = "yes"; then
37852         cat >>confdefs.h <<\_ACEOF
37853 #define wxUSE_TREECTRL 1
37854 _ACEOF
37855
37856         USES_CONTROLS=1
37857         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37858     else
37859         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37860 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37861     fi
37862 fi
37863
37864 if test "$wxUSE_POPUPWIN" = "yes"; then
37865     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37866         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37867 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37868     else
37869         if test "$wxUSE_PM" = 1; then
37870             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37871 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37872         else
37873             cat >>confdefs.h <<\_ACEOF
37874 #define wxUSE_POPUPWIN 1
37875 _ACEOF
37876
37877
37878             USES_CONTROLS=1
37879         fi
37880     fi
37881 fi
37882
37883 if test "$wxUSE_TIPWINDOW" = "yes"; then
37884     if test "$wxUSE_PM" = 1; then
37885         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37886 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37887     else
37888         cat >>confdefs.h <<\_ACEOF
37889 #define wxUSE_TIPWINDOW 1
37890 _ACEOF
37891
37892     fi
37893 fi
37894
37895 if test "$USES_CONTROLS" = 1; then
37896     cat >>confdefs.h <<\_ACEOF
37897 #define wxUSE_CONTROLS 1
37898 _ACEOF
37899
37900 fi
37901
37902
37903 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37904     cat >>confdefs.h <<\_ACEOF
37905 #define wxUSE_ACCESSIBILITY 1
37906 _ACEOF
37907
37908     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37909 fi
37910
37911 if test "$wxUSE_DRAGIMAGE" = "yes"; then
37912     cat >>confdefs.h <<\_ACEOF
37913 #define wxUSE_DRAGIMAGE 1
37914 _ACEOF
37915
37916     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37917 fi
37918
37919 if test "$wxUSE_EXCEPTIONS" = "yes"; then
37920     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37921         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
37922 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
37923     else
37924         cat >>confdefs.h <<\_ACEOF
37925 #define wxUSE_EXCEPTIONS 1
37926 _ACEOF
37927
37928         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
37929     fi
37930 fi
37931
37932 USE_HTML=0
37933 if test "$wxUSE_HTML" = "yes"; then
37934     cat >>confdefs.h <<\_ACEOF
37935 #define wxUSE_HTML 1
37936 _ACEOF
37937
37938     USE_HTML=1
37939     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
37940     if test "$wxUSE_MAC" = 1; then
37941         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
37942     fi
37943 fi
37944 if test "$wxUSE_WEBKIT" = "yes"; then
37945     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
37946         old_CPPFLAGS="$CPPFLAGS"
37947         CPPFLAGS="$CPPFLAGS -x objective-c++"
37948         echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
37949 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
37950 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
37951   echo $ECHO_N "(cached) $ECHO_C" >&6
37952 else
37953   cat >conftest.$ac_ext <<_ACEOF
37954 /* confdefs.h.  */
37955 _ACEOF
37956 cat confdefs.h >>conftest.$ac_ext
37957 cat >>conftest.$ac_ext <<_ACEOF
37958 /* end confdefs.h.  */
37959 #include <Carbon/Carbon.h>
37960
37961 #include <WebKit/HIWebView.h>
37962 _ACEOF
37963 rm -f conftest.$ac_objext
37964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37965   (eval $ac_compile) 2>conftest.er1
37966   ac_status=$?
37967   grep -v '^ *+' conftest.er1 >conftest.err
37968   rm -f conftest.er1
37969   cat conftest.err >&5
37970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37971   (exit $ac_status); } &&
37972          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37974   (eval $ac_try) 2>&5
37975   ac_status=$?
37976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977   (exit $ac_status); }; } &&
37978          { ac_try='test -s conftest.$ac_objext'
37979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37980   (eval $ac_try) 2>&5
37981   ac_status=$?
37982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37983   (exit $ac_status); }; }; then
37984   ac_cv_header_WebKit_HIWebView_h=yes
37985 else
37986   echo "$as_me: failed program was:" >&5
37987 sed 's/^/| /' conftest.$ac_ext >&5
37988
37989 ac_cv_header_WebKit_HIWebView_h=no
37990 fi
37991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37992 fi
37993 echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
37994 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
37995 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
37996
37997                            cat >>confdefs.h <<\_ACEOF
37998 #define wxUSE_WEBKIT 1
37999 _ACEOF
38000
38001                            WEBKIT_LINK="-framework WebKit"
38002
38003 else
38004
38005                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
38006 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
38007                            wxUSE_WEBKIT=no
38008
38009 fi
38010
38011
38012         CPPFLAGS="$old_CPPFLAGS"
38013     elif test "$wxUSE_COCOA" = 1; then
38014         cat >>confdefs.h <<\_ACEOF
38015 #define wxUSE_WEBKIT 1
38016 _ACEOF
38017
38018     else
38019         wxUSE_WEBKIT=no
38020     fi
38021 fi
38022
38023 USE_XRC=0
38024 if test "$wxUSE_XRC" = "yes"; then
38025     if test "$wxUSE_XML" != "yes"; then
38026         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
38027 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
38028         wxUSE_XRC=no
38029     else
38030         cat >>confdefs.h <<\_ACEOF
38031 #define wxUSE_XRC 1
38032 _ACEOF
38033
38034         USE_XRC=1
38035         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
38036     fi
38037 fi
38038
38039 if test "$wxUSE_MENUS" = "yes"; then
38040     cat >>confdefs.h <<\_ACEOF
38041 #define wxUSE_MENUS 1
38042 _ACEOF
38043
38044     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
38045 fi
38046
38047 if test "$wxUSE_METAFILE" = "yes"; then
38048     cat >>confdefs.h <<\_ACEOF
38049 #define wxUSE_METAFILE 1
38050 _ACEOF
38051
38052 fi
38053
38054 if test "$wxUSE_MIMETYPE" = "yes"; then
38055     cat >>confdefs.h <<\_ACEOF
38056 #define wxUSE_MIMETYPE 1
38057 _ACEOF
38058
38059 fi
38060
38061 if test "$wxUSE_MINIFRAME" = "yes"; then
38062     cat >>confdefs.h <<\_ACEOF
38063 #define wxUSE_MINIFRAME 1
38064 _ACEOF
38065
38066     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
38067 fi
38068
38069 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
38070     cat >>confdefs.h <<\_ACEOF
38071 #define wxUSE_SYSTEM_OPTIONS 1
38072 _ACEOF
38073
38074     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
38075         "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
38076         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
38077     fi
38078 fi
38079
38080
38081 if test "$wxUSE_VALIDATORS" = "yes"; then
38082     cat >>confdefs.h <<\_ACEOF
38083 #define wxUSE_VALIDATORS 1
38084 _ACEOF
38085
38086     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
38087 fi
38088
38089 if test "$wxUSE_PALETTE" = "yes" ; then
38090   cat >>confdefs.h <<\_ACEOF
38091 #define wxUSE_PALETTE 1
38092 _ACEOF
38093
38094 fi
38095
38096 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
38097     LIBS=" -lunicows $LIBS"
38098 fi
38099
38100
38101 if test "$wxUSE_IMAGE" = "yes" ; then
38102     cat >>confdefs.h <<\_ACEOF
38103 #define wxUSE_IMAGE 1
38104 _ACEOF
38105
38106
38107     if test "$wxUSE_GIF" = "yes" ; then
38108       cat >>confdefs.h <<\_ACEOF
38109 #define wxUSE_GIF 1
38110 _ACEOF
38111
38112     fi
38113
38114     if test "$wxUSE_PCX" = "yes" ; then
38115       cat >>confdefs.h <<\_ACEOF
38116 #define wxUSE_PCX 1
38117 _ACEOF
38118
38119     fi
38120
38121     if test "$wxUSE_IFF" = "yes" ; then
38122       cat >>confdefs.h <<\_ACEOF
38123 #define wxUSE_IFF 1
38124 _ACEOF
38125
38126     fi
38127
38128     if test "$wxUSE_PNM" = "yes" ; then
38129       cat >>confdefs.h <<\_ACEOF
38130 #define wxUSE_PNM 1
38131 _ACEOF
38132
38133     fi
38134
38135     if test "$wxUSE_XPM" = "yes" ; then
38136       cat >>confdefs.h <<\_ACEOF
38137 #define wxUSE_XPM 1
38138 _ACEOF
38139
38140     fi
38141
38142     if test "$wxUSE_ICO_CUR" = "yes" ; then
38143       cat >>confdefs.h <<\_ACEOF
38144 #define wxUSE_ICO_CUR 1
38145 _ACEOF
38146
38147     fi
38148 fi
38149
38150
38151 if test "$wxUSE_CHOICEDLG" = "yes"; then
38152     cat >>confdefs.h <<\_ACEOF
38153 #define wxUSE_CHOICEDLG 1
38154 _ACEOF
38155
38156 fi
38157
38158 if test "$wxUSE_COLOURDLG" = "yes"; then
38159     cat >>confdefs.h <<\_ACEOF
38160 #define wxUSE_COLOURDLG 1
38161 _ACEOF
38162
38163 fi
38164
38165 if test "$wxUSE_FILEDLG" = "yes"; then
38166     cat >>confdefs.h <<\_ACEOF
38167 #define wxUSE_FILEDLG 1
38168 _ACEOF
38169
38170 fi
38171
38172 if test "$wxUSE_FINDREPLDLG" = "yes"; then
38173     cat >>confdefs.h <<\_ACEOF
38174 #define wxUSE_FINDREPLDLG 1
38175 _ACEOF
38176
38177 fi
38178
38179 if test "$wxUSE_FONTDLG" = "yes"; then
38180     cat >>confdefs.h <<\_ACEOF
38181 #define wxUSE_FONTDLG 1
38182 _ACEOF
38183
38184 fi
38185
38186 if test "$wxUSE_DIRDLG" = "yes"; then
38187     if test "$wxUSE_TREECTRL" != "yes"; then
38188         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
38189 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
38190     else
38191         cat >>confdefs.h <<\_ACEOF
38192 #define wxUSE_DIRDLG 1
38193 _ACEOF
38194
38195     fi
38196 fi
38197
38198 if test "$wxUSE_MSGDLG" = "yes"; then
38199     cat >>confdefs.h <<\_ACEOF
38200 #define wxUSE_MSGDLG 1
38201 _ACEOF
38202
38203 fi
38204
38205 if test "$wxUSE_NUMBERDLG" = "yes"; then
38206     cat >>confdefs.h <<\_ACEOF
38207 #define wxUSE_NUMBERDLG 1
38208 _ACEOF
38209
38210 fi
38211
38212 if test "$wxUSE_PROGRESSDLG" = "yes"; then
38213     if test "$wxUSE_CONSTRAINTS" != "yes"; then
38214        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
38215 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
38216     else
38217         cat >>confdefs.h <<\_ACEOF
38218 #define wxUSE_PROGRESSDLG 1
38219 _ACEOF
38220
38221     fi
38222 fi
38223
38224 if test "$wxUSE_SPLASH" = "yes"; then
38225     cat >>confdefs.h <<\_ACEOF
38226 #define wxUSE_SPLASH 1
38227 _ACEOF
38228
38229     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
38230 fi
38231
38232 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
38233     if test "$wxUSE_CONSTRAINTS" != "yes"; then
38234        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
38235 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
38236     else
38237         cat >>confdefs.h <<\_ACEOF
38238 #define wxUSE_STARTUP_TIPS 1
38239 _ACEOF
38240
38241     fi
38242 fi
38243
38244 if test "$wxUSE_TEXTDLG" = "yes"; then
38245     cat >>confdefs.h <<\_ACEOF
38246 #define wxUSE_TEXTDLG 1
38247 _ACEOF
38248
38249 fi
38250
38251 if test "$wxUSE_WIZARDDLG" = "yes"; then
38252     cat >>confdefs.h <<\_ACEOF
38253 #define wxUSE_WIZARDDLG 1
38254 _ACEOF
38255
38256     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
38257 fi
38258
38259
38260 if test "$cross_compiling" = "yes"; then
38261         OSINFO="\"$host\""
38262 else
38263         OSINFO=`uname -s -r -m`
38264     OSINFO="\"$OSINFO\""
38265 fi
38266
38267 cat >>confdefs.h <<_ACEOF
38268 #define WXWIN_OS_DESCRIPTION $OSINFO
38269 _ACEOF
38270
38271
38272
38273 if test "x$prefix" != "xNONE"; then
38274     wxPREFIX=$prefix
38275 else
38276     wxPREFIX=$ac_default_prefix
38277 fi
38278
38279 cat >>confdefs.h <<_ACEOF
38280 #define wxINSTALL_PREFIX "$wxPREFIX"
38281 _ACEOF
38282
38283
38284
38285
38286 CORE_BASE_LIBS="net base"
38287 CORE_GUI_LIBS="adv core"
38288
38289 if test "$wxUSE_XML" = "yes" ; then
38290     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
38291 fi
38292 if test "$wxUSE_ODBC" != "no" ; then
38293     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
38294     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
38295 fi
38296 if test "$wxUSE_HTML" = "yes" ; then
38297     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
38298 fi
38299 if test "$wxUSE_XRC" = "yes" ; then
38300     CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
38301 fi
38302
38303 if test "$wxUSE_GUI" != "yes"; then
38304     CORE_GUI_LIBS=""
38305 fi
38306
38307
38308
38309
38310
38311
38312
38313
38314 if test "$wxUSE_MAC" = 1 ; then
38315     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
38316         if test "$USE_DARWIN" = 1; then
38317             LDFLAGS="$LDFLAGS -framework QuickTime"
38318         else
38319             LDFLAGS="$LDFLAGS -lQuickTimeLib"
38320         fi
38321     fi
38322     if test "$USE_DARWIN" = 1; then
38323         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
38324     else
38325         LDFLAGS="$LDFLAGS -lCarbonLib"
38326     fi
38327 fi
38328 if test "$wxUSE_COCOA" = 1 ; then
38329     LDFLAGS="$LDFLAGS -framework Cocoa"
38330 fi
38331
38332
38333 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
38334
38335 have_cos=0
38336 have_floor=0
38337
38338 for ac_func in cos
38339 do
38340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38341 echo "$as_me:$LINENO: checking for $ac_func" >&5
38342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38343 if eval "test \"\${$as_ac_var+set}\" = set"; then
38344   echo $ECHO_N "(cached) $ECHO_C" >&6
38345 else
38346   cat >conftest.$ac_ext <<_ACEOF
38347 /* confdefs.h.  */
38348 _ACEOF
38349 cat confdefs.h >>conftest.$ac_ext
38350 cat >>conftest.$ac_ext <<_ACEOF
38351 /* end confdefs.h.  */
38352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38354 #define $ac_func innocuous_$ac_func
38355
38356 /* System header to define __stub macros and hopefully few prototypes,
38357     which can conflict with char $ac_func (); below.
38358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38359     <limits.h> exists even on freestanding compilers.  */
38360
38361 #ifdef __STDC__
38362 # include <limits.h>
38363 #else
38364 # include <assert.h>
38365 #endif
38366
38367 #undef $ac_func
38368
38369 /* Override any gcc2 internal prototype to avoid an error.  */
38370 #ifdef __cplusplus
38371 extern "C"
38372 {
38373 #endif
38374 /* We use char because int might match the return type of a gcc2
38375    builtin and then its argument prototype would still apply.  */
38376 char $ac_func ();
38377 /* The GNU C library defines this for functions which it implements
38378     to always fail with ENOSYS.  Some functions are actually named
38379     something starting with __ and the normal name is an alias.  */
38380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38381 choke me
38382 #else
38383 char (*f) () = $ac_func;
38384 #endif
38385 #ifdef __cplusplus
38386 }
38387 #endif
38388
38389 int
38390 main ()
38391 {
38392 return f != $ac_func;
38393   ;
38394   return 0;
38395 }
38396 _ACEOF
38397 rm -f conftest.$ac_objext conftest$ac_exeext
38398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38399   (eval $ac_link) 2>conftest.er1
38400   ac_status=$?
38401   grep -v '^ *+' conftest.er1 >conftest.err
38402   rm -f conftest.er1
38403   cat conftest.err >&5
38404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38405   (exit $ac_status); } &&
38406          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38408   (eval $ac_try) 2>&5
38409   ac_status=$?
38410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38411   (exit $ac_status); }; } &&
38412          { ac_try='test -s conftest$ac_exeext'
38413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38414   (eval $ac_try) 2>&5
38415   ac_status=$?
38416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38417   (exit $ac_status); }; }; then
38418   eval "$as_ac_var=yes"
38419 else
38420   echo "$as_me: failed program was:" >&5
38421 sed 's/^/| /' conftest.$ac_ext >&5
38422
38423 eval "$as_ac_var=no"
38424 fi
38425 rm -f conftest.err conftest.$ac_objext \
38426       conftest$ac_exeext conftest.$ac_ext
38427 fi
38428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38430 if test `eval echo '${'$as_ac_var'}'` = yes; then
38431   cat >>confdefs.h <<_ACEOF
38432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38433 _ACEOF
38434  have_cos=1
38435 fi
38436 done
38437
38438
38439 for ac_func in floor
38440 do
38441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38442 echo "$as_me:$LINENO: checking for $ac_func" >&5
38443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38444 if eval "test \"\${$as_ac_var+set}\" = set"; then
38445   echo $ECHO_N "(cached) $ECHO_C" >&6
38446 else
38447   cat >conftest.$ac_ext <<_ACEOF
38448 /* confdefs.h.  */
38449 _ACEOF
38450 cat confdefs.h >>conftest.$ac_ext
38451 cat >>conftest.$ac_ext <<_ACEOF
38452 /* end confdefs.h.  */
38453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38454    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38455 #define $ac_func innocuous_$ac_func
38456
38457 /* System header to define __stub macros and hopefully few prototypes,
38458     which can conflict with char $ac_func (); below.
38459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38460     <limits.h> exists even on freestanding compilers.  */
38461
38462 #ifdef __STDC__
38463 # include <limits.h>
38464 #else
38465 # include <assert.h>
38466 #endif
38467
38468 #undef $ac_func
38469
38470 /* Override any gcc2 internal prototype to avoid an error.  */
38471 #ifdef __cplusplus
38472 extern "C"
38473 {
38474 #endif
38475 /* We use char because int might match the return type of a gcc2
38476    builtin and then its argument prototype would still apply.  */
38477 char $ac_func ();
38478 /* The GNU C library defines this for functions which it implements
38479     to always fail with ENOSYS.  Some functions are actually named
38480     something starting with __ and the normal name is an alias.  */
38481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38482 choke me
38483 #else
38484 char (*f) () = $ac_func;
38485 #endif
38486 #ifdef __cplusplus
38487 }
38488 #endif
38489
38490 int
38491 main ()
38492 {
38493 return f != $ac_func;
38494   ;
38495   return 0;
38496 }
38497 _ACEOF
38498 rm -f conftest.$ac_objext conftest$ac_exeext
38499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38500   (eval $ac_link) 2>conftest.er1
38501   ac_status=$?
38502   grep -v '^ *+' conftest.er1 >conftest.err
38503   rm -f conftest.er1
38504   cat conftest.err >&5
38505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38506   (exit $ac_status); } &&
38507          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38509   (eval $ac_try) 2>&5
38510   ac_status=$?
38511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38512   (exit $ac_status); }; } &&
38513          { ac_try='test -s conftest$ac_exeext'
38514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38515   (eval $ac_try) 2>&5
38516   ac_status=$?
38517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38518   (exit $ac_status); }; }; then
38519   eval "$as_ac_var=yes"
38520 else
38521   echo "$as_me: failed program was:" >&5
38522 sed 's/^/| /' conftest.$ac_ext >&5
38523
38524 eval "$as_ac_var=no"
38525 fi
38526 rm -f conftest.err conftest.$ac_objext \
38527       conftest$ac_exeext conftest.$ac_ext
38528 fi
38529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38531 if test `eval echo '${'$as_ac_var'}'` = yes; then
38532   cat >>confdefs.h <<_ACEOF
38533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38534 _ACEOF
38535  have_floor=1
38536 fi
38537 done
38538
38539 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
38540 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
38541 if test "$have_cos" = 1 -a "$have_floor" = 1; then
38542     echo "$as_me:$LINENO: result: yes" >&5
38543 echo "${ECHO_T}yes" >&6
38544 else
38545     echo "$as_me:$LINENO: result: no" >&5
38546 echo "${ECHO_T}no" >&6
38547     LIBS="$LIBS -lm"
38548     # use different functions to avoid configure caching
38549     have_sin=0
38550     have_ceil=0
38551
38552 for ac_func in sin
38553 do
38554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38555 echo "$as_me:$LINENO: checking for $ac_func" >&5
38556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38557 if eval "test \"\${$as_ac_var+set}\" = set"; then
38558   echo $ECHO_N "(cached) $ECHO_C" >&6
38559 else
38560   cat >conftest.$ac_ext <<_ACEOF
38561 /* confdefs.h.  */
38562 _ACEOF
38563 cat confdefs.h >>conftest.$ac_ext
38564 cat >>conftest.$ac_ext <<_ACEOF
38565 /* end confdefs.h.  */
38566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38568 #define $ac_func innocuous_$ac_func
38569
38570 /* System header to define __stub macros and hopefully few prototypes,
38571     which can conflict with char $ac_func (); below.
38572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38573     <limits.h> exists even on freestanding compilers.  */
38574
38575 #ifdef __STDC__
38576 # include <limits.h>
38577 #else
38578 # include <assert.h>
38579 #endif
38580
38581 #undef $ac_func
38582
38583 /* Override any gcc2 internal prototype to avoid an error.  */
38584 #ifdef __cplusplus
38585 extern "C"
38586 {
38587 #endif
38588 /* We use char because int might match the return type of a gcc2
38589    builtin and then its argument prototype would still apply.  */
38590 char $ac_func ();
38591 /* The GNU C library defines this for functions which it implements
38592     to always fail with ENOSYS.  Some functions are actually named
38593     something starting with __ and the normal name is an alias.  */
38594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38595 choke me
38596 #else
38597 char (*f) () = $ac_func;
38598 #endif
38599 #ifdef __cplusplus
38600 }
38601 #endif
38602
38603 int
38604 main ()
38605 {
38606 return f != $ac_func;
38607   ;
38608   return 0;
38609 }
38610 _ACEOF
38611 rm -f conftest.$ac_objext conftest$ac_exeext
38612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38613   (eval $ac_link) 2>conftest.er1
38614   ac_status=$?
38615   grep -v '^ *+' conftest.er1 >conftest.err
38616   rm -f conftest.er1
38617   cat conftest.err >&5
38618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38619   (exit $ac_status); } &&
38620          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38622   (eval $ac_try) 2>&5
38623   ac_status=$?
38624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38625   (exit $ac_status); }; } &&
38626          { ac_try='test -s conftest$ac_exeext'
38627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38628   (eval $ac_try) 2>&5
38629   ac_status=$?
38630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38631   (exit $ac_status); }; }; then
38632   eval "$as_ac_var=yes"
38633 else
38634   echo "$as_me: failed program was:" >&5
38635 sed 's/^/| /' conftest.$ac_ext >&5
38636
38637 eval "$as_ac_var=no"
38638 fi
38639 rm -f conftest.err conftest.$ac_objext \
38640       conftest$ac_exeext conftest.$ac_ext
38641 fi
38642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38644 if test `eval echo '${'$as_ac_var'}'` = yes; then
38645   cat >>confdefs.h <<_ACEOF
38646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38647 _ACEOF
38648  have_sin=1
38649 fi
38650 done
38651
38652
38653 for ac_func in ceil
38654 do
38655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38656 echo "$as_me:$LINENO: checking for $ac_func" >&5
38657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38658 if eval "test \"\${$as_ac_var+set}\" = set"; then
38659   echo $ECHO_N "(cached) $ECHO_C" >&6
38660 else
38661   cat >conftest.$ac_ext <<_ACEOF
38662 /* confdefs.h.  */
38663 _ACEOF
38664 cat confdefs.h >>conftest.$ac_ext
38665 cat >>conftest.$ac_ext <<_ACEOF
38666 /* end confdefs.h.  */
38667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38669 #define $ac_func innocuous_$ac_func
38670
38671 /* System header to define __stub macros and hopefully few prototypes,
38672     which can conflict with char $ac_func (); below.
38673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38674     <limits.h> exists even on freestanding compilers.  */
38675
38676 #ifdef __STDC__
38677 # include <limits.h>
38678 #else
38679 # include <assert.h>
38680 #endif
38681
38682 #undef $ac_func
38683
38684 /* Override any gcc2 internal prototype to avoid an error.  */
38685 #ifdef __cplusplus
38686 extern "C"
38687 {
38688 #endif
38689 /* We use char because int might match the return type of a gcc2
38690    builtin and then its argument prototype would still apply.  */
38691 char $ac_func ();
38692 /* The GNU C library defines this for functions which it implements
38693     to always fail with ENOSYS.  Some functions are actually named
38694     something starting with __ and the normal name is an alias.  */
38695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38696 choke me
38697 #else
38698 char (*f) () = $ac_func;
38699 #endif
38700 #ifdef __cplusplus
38701 }
38702 #endif
38703
38704 int
38705 main ()
38706 {
38707 return f != $ac_func;
38708   ;
38709   return 0;
38710 }
38711 _ACEOF
38712 rm -f conftest.$ac_objext conftest$ac_exeext
38713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38714   (eval $ac_link) 2>conftest.er1
38715   ac_status=$?
38716   grep -v '^ *+' conftest.er1 >conftest.err
38717   rm -f conftest.er1
38718   cat conftest.err >&5
38719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38720   (exit $ac_status); } &&
38721          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38723   (eval $ac_try) 2>&5
38724   ac_status=$?
38725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38726   (exit $ac_status); }; } &&
38727          { ac_try='test -s conftest$ac_exeext'
38728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38729   (eval $ac_try) 2>&5
38730   ac_status=$?
38731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38732   (exit $ac_status); }; }; then
38733   eval "$as_ac_var=yes"
38734 else
38735   echo "$as_me: failed program was:" >&5
38736 sed 's/^/| /' conftest.$ac_ext >&5
38737
38738 eval "$as_ac_var=no"
38739 fi
38740 rm -f conftest.err conftest.$ac_objext \
38741       conftest$ac_exeext conftest.$ac_ext
38742 fi
38743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38745 if test `eval echo '${'$as_ac_var'}'` = yes; then
38746   cat >>confdefs.h <<_ACEOF
38747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38748 _ACEOF
38749  have_ceil=1
38750 fi
38751 done
38752
38753     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
38754 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
38755     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
38756         echo "$as_me:$LINENO: result: yes" >&5
38757 echo "${ECHO_T}yes" >&6
38758     else
38759         echo "$as_me:$LINENO: result: no" >&5
38760 echo "${ECHO_T}no" >&6
38761         # not sure we should warn the user, crash, etc.
38762     fi
38763 fi
38764
38765 if test "$wxUSE_GUI" = "yes"; then
38766
38767
38768             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
38769                      drawing dynamic erase event exec font image \
38770                      minimal propsize rotate shaped widgets render"
38771
38772     if test "$wxUSE_MONOLITHIC" != "yes"; then
38773         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
38774     fi
38775 else
38776     SAMPLES_SUBDIRS="console"
38777 fi
38778
38779
38780 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
38781 -I\${top_srcdir}/include $TOOLKIT_INCLUDE"
38782
38783 if test "$GXX" = yes ; then
38784         CWARNINGS="-Wall"
38785     CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
38786         fi
38787
38788 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
38789
38790 CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
38791 CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
38792 CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
38793
38794 if test "x$MWCC" = "xyes"; then
38795
38796             CC="$CC -cwd source -I-"
38797     CXX="$CXX -cwd source -I-"
38798 fi
38799
38800
38801 LIBS=`echo $LIBS`
38802 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
38803 EXTRALIBS_XML="$EXPAT_LINK"
38804 EXTRALIBS_HTML="$MSPACK_LINK"
38805 EXTRALIBS_ODBC="$ODBC_LINK"
38806 if test "$wxUSE_GUI" = "yes"; then
38807     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
38808 fi
38809 if test "$wxUSE_OPENGL" = "yes"; then
38810     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
38811 fi
38812
38813 LDFLAGS="$LDFLAGS $PROFILE"
38814
38815 if test "$wxUSE_GTK" = 1; then
38816     WXCONFIG_INCLUDE=
38817 else
38818     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
38819 fi
38820
38821 WXCONFIG_EXTRALIBS="$LIBS"
38822
38823 if test "$wxUSE_REGEX" = "builtin" ; then
38824     wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
38825 fi
38826 if test "$wxUSE_EXPAT" = "builtin" ; then
38827     wxconfig_3rdparty="$wxconfig_3rdparty expat"
38828 fi
38829 if test "$wxUSE_ODBC" = "builtin" ; then
38830     wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38831 fi
38832 if test "$wxUSE_LIBTIFF" = "builtin" ; then
38833     wxconfig_3rdparty="$wxconfig_3rdparty tiff"
38834 fi
38835 if test "$wxUSE_LIBJPEG" = "builtin" ; then
38836     wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
38837 fi
38838 if test "$wxUSE_LIBPNG" = "builtin" ; then
38839     wxconfig_3rdparty="$wxconfig_3rdparty png"
38840 fi
38841 if test "$wxUSE_ZLIB" = "builtin" ; then
38842     wxconfig_3rdparty="$wxconfig_3rdparty zlib"
38843 fi
38844 if test "$wxUSE_ODBC" = "builtin" ; then
38845     wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38846 fi
38847
38848 for i in $wxconfig_3rdparty ; do
38849     WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
38850 done
38851
38852
38853 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
38854     WXUNIV=1
38855 else
38856     WXUNIV=0
38857 fi
38858
38859
38860
38861
38862
38863
38864
38865
38866
38867 if test $wxUSE_MONOLITHIC = "yes" ; then
38868     MONOLITHIC=1
38869 else
38870     MONOLITHIC=0
38871 fi
38872
38873 if test $wxUSE_PLUGINS = "yes" ; then
38874     USE_PLUGINS=1
38875 else
38876     USE_PLUGINS=0
38877 fi
38878
38879 if test $wxUSE_ODBC != "no" ; then
38880     USE_ODBC=1
38881 else
38882     USE_ODBC=0
38883 fi
38884
38885 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
38886     OFFICIAL_BUILD=1
38887 else
38888     OFFICIAL_BUILD=0
38889 fi
38890
38891
38892
38893
38894
38895
38896
38897
38898
38899
38900
38901
38902
38903
38904
38905
38906
38907
38908
38909
38910
38911
38912
38913 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38914
38915
38916
38917
38918
38919
38920
38921
38922 case "$TOOLKIT" in
38923     GTK)
38924         TOOLKIT_USER="GTK+"
38925         if test "$WXGTK20" = 1; then
38926             TOOLKIT_USER="$TOOLKIT_USER 2"
38927         fi
38928         ;;
38929
38930     *)
38931         TOOLKIT_USER=$TOOLKIT_LOWERCASE
38932         ;;
38933 esac
38934
38935
38936
38937
38938     if test "x$BAKEFILE_HOST" = "x"; then
38939         BAKEFILE_HOST="${host}"
38940     fi
38941
38942     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38943
38944     if test -n "$ac_tool_prefix"; then
38945   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38946 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38947 echo "$as_me:$LINENO: checking for $ac_word" >&5
38948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38949 if test "${ac_cv_prog_RANLIB+set}" = set; then
38950   echo $ECHO_N "(cached) $ECHO_C" >&6
38951 else
38952   if test -n "$RANLIB"; then
38953   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38954 else
38955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38956 for as_dir in $PATH
38957 do
38958   IFS=$as_save_IFS
38959   test -z "$as_dir" && as_dir=.
38960   for ac_exec_ext in '' $ac_executable_extensions; do
38961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38962     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38964     break 2
38965   fi
38966 done
38967 done
38968
38969 fi
38970 fi
38971 RANLIB=$ac_cv_prog_RANLIB
38972 if test -n "$RANLIB"; then
38973   echo "$as_me:$LINENO: result: $RANLIB" >&5
38974 echo "${ECHO_T}$RANLIB" >&6
38975 else
38976   echo "$as_me:$LINENO: result: no" >&5
38977 echo "${ECHO_T}no" >&6
38978 fi
38979
38980 fi
38981 if test -z "$ac_cv_prog_RANLIB"; then
38982   ac_ct_RANLIB=$RANLIB
38983   # Extract the first word of "ranlib", so it can be a program name with args.
38984 set dummy ranlib; ac_word=$2
38985 echo "$as_me:$LINENO: checking for $ac_word" >&5
38986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38987 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38988   echo $ECHO_N "(cached) $ECHO_C" >&6
38989 else
38990   if test -n "$ac_ct_RANLIB"; then
38991   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38992 else
38993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38994 for as_dir in $PATH
38995 do
38996   IFS=$as_save_IFS
38997   test -z "$as_dir" && as_dir=.
38998   for ac_exec_ext in '' $ac_executable_extensions; do
38999   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39000     ac_cv_prog_ac_ct_RANLIB="ranlib"
39001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39002     break 2
39003   fi
39004 done
39005 done
39006
39007   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
39008 fi
39009 fi
39010 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
39011 if test -n "$ac_ct_RANLIB"; then
39012   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
39013 echo "${ECHO_T}$ac_ct_RANLIB" >&6
39014 else
39015   echo "$as_me:$LINENO: result: no" >&5
39016 echo "${ECHO_T}no" >&6
39017 fi
39018
39019   RANLIB=$ac_ct_RANLIB
39020 else
39021   RANLIB="$ac_cv_prog_RANLIB"
39022 fi
39023
39024     # Find a good install program.  We prefer a C program (faster),
39025 # so one script is as good as another.  But avoid the broken or
39026 # incompatible versions:
39027 # SysV /etc/install, /usr/sbin/install
39028 # SunOS /usr/etc/install
39029 # IRIX /sbin/install
39030 # AIX /bin/install
39031 # AmigaOS /C/install, which installs bootblocks on floppy discs
39032 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
39033 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
39034 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
39035 # OS/2's system install, which has a completely different semantic
39036 # ./install, which can be erroneously created by make from ./install.sh.
39037 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
39038 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
39039 if test -z "$INSTALL"; then
39040 if test "${ac_cv_path_install+set}" = set; then
39041   echo $ECHO_N "(cached) $ECHO_C" >&6
39042 else
39043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39044 for as_dir in $PATH
39045 do
39046   IFS=$as_save_IFS
39047   test -z "$as_dir" && as_dir=.
39048   # Account for people who put trailing slashes in PATH elements.
39049 case $as_dir/ in
39050   ./ | .// | /cC/* | \
39051   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
39052   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
39053   /usr/ucb/* ) ;;
39054   *)
39055     # OSF1 and SCO ODT 3.0 have their own names for install.
39056     # Don't use installbsd from OSF since it installs stuff as root
39057     # by default.
39058     for ac_prog in ginstall scoinst install; do
39059       for ac_exec_ext in '' $ac_executable_extensions; do
39060         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
39061           if test $ac_prog = install &&
39062             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39063             # AIX install.  It has an incompatible calling convention.
39064             :
39065           elif test $ac_prog = install &&
39066             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39067             # program-specific install script used by HP pwplus--don't use.
39068             :
39069           else
39070             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
39071             break 3
39072           fi
39073         fi
39074       done
39075     done
39076     ;;
39077 esac
39078 done
39079
39080
39081 fi
39082   if test "${ac_cv_path_install+set}" = set; then
39083     INSTALL=$ac_cv_path_install
39084   else
39085     # As a last resort, use the slow shell script.  We don't cache a
39086     # path for INSTALL within a source directory, because that will
39087     # break other packages using the cache if that directory is
39088     # removed, or if the path is relative.
39089     INSTALL=$ac_install_sh
39090   fi
39091 fi
39092 echo "$as_me:$LINENO: result: $INSTALL" >&5
39093 echo "${ECHO_T}$INSTALL" >&6
39094
39095 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
39096 # It thinks the first close brace ends the variable substitution.
39097 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
39098
39099 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
39100
39101 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39102
39103     echo "$as_me:$LINENO: checking whether ln -s works" >&5
39104 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
39105 LN_S=$as_ln_s
39106 if test "$LN_S" = "ln -s"; then
39107   echo "$as_me:$LINENO: result: yes" >&5
39108 echo "${ECHO_T}yes" >&6
39109 else
39110   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
39111 echo "${ECHO_T}no, using $LN_S" >&6
39112 fi
39113
39114
39115     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
39116 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
39117 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
39118 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
39119   echo $ECHO_N "(cached) $ECHO_C" >&6
39120 else
39121   cat >conftest.make <<\_ACEOF
39122 all:
39123         @echo 'ac_maketemp="$(MAKE)"'
39124 _ACEOF
39125 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
39126 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
39127 if test -n "$ac_maketemp"; then
39128   eval ac_cv_prog_make_${ac_make}_set=yes
39129 else
39130   eval ac_cv_prog_make_${ac_make}_set=no
39131 fi
39132 rm -f conftest.make
39133 fi
39134 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
39135   echo "$as_me:$LINENO: result: yes" >&5
39136 echo "${ECHO_T}yes" >&6
39137   SET_MAKE=
39138 else
39139   echo "$as_me:$LINENO: result: no" >&5
39140 echo "${ECHO_T}no" >&6
39141   SET_MAKE="MAKE=${MAKE-make}"
39142 fi
39143
39144
39145
39146     if test -n "$ac_tool_prefix"; then
39147   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
39148 set dummy ${ac_tool_prefix}ar; ac_word=$2
39149 echo "$as_me:$LINENO: checking for $ac_word" >&5
39150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39151 if test "${ac_cv_prog_AR+set}" = set; then
39152   echo $ECHO_N "(cached) $ECHO_C" >&6
39153 else
39154   if test -n "$AR"; then
39155   ac_cv_prog_AR="$AR" # Let the user override the test.
39156 else
39157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39158 for as_dir in $PATH
39159 do
39160   IFS=$as_save_IFS
39161   test -z "$as_dir" && as_dir=.
39162   for ac_exec_ext in '' $ac_executable_extensions; do
39163   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39164     ac_cv_prog_AR="${ac_tool_prefix}ar"
39165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39166     break 2
39167   fi
39168 done
39169 done
39170
39171 fi
39172 fi
39173 AR=$ac_cv_prog_AR
39174 if test -n "$AR"; then
39175   echo "$as_me:$LINENO: result: $AR" >&5
39176 echo "${ECHO_T}$AR" >&6
39177 else
39178   echo "$as_me:$LINENO: result: no" >&5
39179 echo "${ECHO_T}no" >&6
39180 fi
39181
39182 fi
39183 if test -z "$ac_cv_prog_AR"; then
39184   ac_ct_AR=$AR
39185   # Extract the first word of "ar", so it can be a program name with args.
39186 set dummy ar; ac_word=$2
39187 echo "$as_me:$LINENO: checking for $ac_word" >&5
39188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39189 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
39190   echo $ECHO_N "(cached) $ECHO_C" >&6
39191 else
39192   if test -n "$ac_ct_AR"; then
39193   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
39194 else
39195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39196 for as_dir in $PATH
39197 do
39198   IFS=$as_save_IFS
39199   test -z "$as_dir" && as_dir=.
39200   for ac_exec_ext in '' $ac_executable_extensions; do
39201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39202     ac_cv_prog_ac_ct_AR="ar"
39203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39204     break 2
39205   fi
39206 done
39207 done
39208
39209   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
39210 fi
39211 fi
39212 ac_ct_AR=$ac_cv_prog_ac_ct_AR
39213 if test -n "$ac_ct_AR"; then
39214   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
39215 echo "${ECHO_T}$ac_ct_AR" >&6
39216 else
39217   echo "$as_me:$LINENO: result: no" >&5
39218 echo "${ECHO_T}no" >&6
39219 fi
39220
39221   AR=$ac_ct_AR
39222 else
39223   AR="$ac_cv_prog_AR"
39224 fi
39225
39226     if test -n "$ac_tool_prefix"; then
39227   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
39228 set dummy ${ac_tool_prefix}strip; ac_word=$2
39229 echo "$as_me:$LINENO: checking for $ac_word" >&5
39230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39231 if test "${ac_cv_prog_STRIP+set}" = set; then
39232   echo $ECHO_N "(cached) $ECHO_C" >&6
39233 else
39234   if test -n "$STRIP"; then
39235   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
39236 else
39237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39238 for as_dir in $PATH
39239 do
39240   IFS=$as_save_IFS
39241   test -z "$as_dir" && as_dir=.
39242   for ac_exec_ext in '' $ac_executable_extensions; do
39243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39244     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
39245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39246     break 2
39247   fi
39248 done
39249 done
39250
39251 fi
39252 fi
39253 STRIP=$ac_cv_prog_STRIP
39254 if test -n "$STRIP"; then
39255   echo "$as_me:$LINENO: result: $STRIP" >&5
39256 echo "${ECHO_T}$STRIP" >&6
39257 else
39258   echo "$as_me:$LINENO: result: no" >&5
39259 echo "${ECHO_T}no" >&6
39260 fi
39261
39262 fi
39263 if test -z "$ac_cv_prog_STRIP"; then
39264   ac_ct_STRIP=$STRIP
39265   # Extract the first word of "strip", so it can be a program name with args.
39266 set dummy strip; ac_word=$2
39267 echo "$as_me:$LINENO: checking for $ac_word" >&5
39268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39269 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
39270   echo $ECHO_N "(cached) $ECHO_C" >&6
39271 else
39272   if test -n "$ac_ct_STRIP"; then
39273   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
39274 else
39275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39276 for as_dir in $PATH
39277 do
39278   IFS=$as_save_IFS
39279   test -z "$as_dir" && as_dir=.
39280   for ac_exec_ext in '' $ac_executable_extensions; do
39281   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39282     ac_cv_prog_ac_ct_STRIP="strip"
39283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39284     break 2
39285   fi
39286 done
39287 done
39288
39289   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
39290 fi
39291 fi
39292 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
39293 if test -n "$ac_ct_STRIP"; then
39294   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
39295 echo "${ECHO_T}$ac_ct_STRIP" >&6
39296 else
39297   echo "$as_me:$LINENO: result: no" >&5
39298 echo "${ECHO_T}no" >&6
39299 fi
39300
39301   STRIP=$ac_ct_STRIP
39302 else
39303   STRIP="$ac_cv_prog_STRIP"
39304 fi
39305
39306     if test -n "$ac_tool_prefix"; then
39307   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
39308 set dummy ${ac_tool_prefix}nm; ac_word=$2
39309 echo "$as_me:$LINENO: checking for $ac_word" >&5
39310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39311 if test "${ac_cv_prog_NM+set}" = set; then
39312   echo $ECHO_N "(cached) $ECHO_C" >&6
39313 else
39314   if test -n "$NM"; then
39315   ac_cv_prog_NM="$NM" # Let the user override the test.
39316 else
39317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39318 for as_dir in $PATH
39319 do
39320   IFS=$as_save_IFS
39321   test -z "$as_dir" && as_dir=.
39322   for ac_exec_ext in '' $ac_executable_extensions; do
39323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39324     ac_cv_prog_NM="${ac_tool_prefix}nm"
39325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39326     break 2
39327   fi
39328 done
39329 done
39330
39331 fi
39332 fi
39333 NM=$ac_cv_prog_NM
39334 if test -n "$NM"; then
39335   echo "$as_me:$LINENO: result: $NM" >&5
39336 echo "${ECHO_T}$NM" >&6
39337 else
39338   echo "$as_me:$LINENO: result: no" >&5
39339 echo "${ECHO_T}no" >&6
39340 fi
39341
39342 fi
39343 if test -z "$ac_cv_prog_NM"; then
39344   ac_ct_NM=$NM
39345   # Extract the first word of "nm", so it can be a program name with args.
39346 set dummy nm; ac_word=$2
39347 echo "$as_me:$LINENO: checking for $ac_word" >&5
39348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39349 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
39350   echo $ECHO_N "(cached) $ECHO_C" >&6
39351 else
39352   if test -n "$ac_ct_NM"; then
39353   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
39354 else
39355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39356 for as_dir in $PATH
39357 do
39358   IFS=$as_save_IFS
39359   test -z "$as_dir" && as_dir=.
39360   for ac_exec_ext in '' $ac_executable_extensions; do
39361   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39362     ac_cv_prog_ac_ct_NM="nm"
39363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39364     break 2
39365   fi
39366 done
39367 done
39368
39369   test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
39370 fi
39371 fi
39372 ac_ct_NM=$ac_cv_prog_ac_ct_NM
39373 if test -n "$ac_ct_NM"; then
39374   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
39375 echo "${ECHO_T}$ac_ct_NM" >&6
39376 else
39377   echo "$as_me:$LINENO: result: no" >&5
39378 echo "${ECHO_T}no" >&6
39379 fi
39380
39381   NM=$ac_ct_NM
39382 else
39383   NM="$ac_cv_prog_NM"
39384 fi
39385
39386
39387     case ${BAKEFILE_HOST} in
39388         *-hp-hpux* )
39389                                     INSTALL_DIR="mkdir -p"
39390             ;;
39391         *)  INSTALL_DIR="$INSTALL -d"
39392             ;;
39393     esac
39394
39395
39396     LDFLAGS_GUI=
39397     case ${BAKEFILE_HOST} in
39398         *-*-cygwin* | *-*-mingw32* )
39399         LDFLAGS_GUI="-mwindows"
39400     esac
39401
39402
39403     fi
39404
39405         echo "$as_me:$LINENO: checking if make is GNU make" >&5
39406 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
39407 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
39408   echo $ECHO_N "(cached) $ECHO_C" >&6
39409 else
39410
39411         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
39412                 egrep -s GNU > /dev/null); then
39413             bakefile_cv_prog_makeisgnu="yes"
39414         else
39415             bakefile_cv_prog_makeisgnu="no"
39416         fi
39417
39418 fi
39419 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
39420 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
39421
39422     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
39423         IF_GNU_MAKE=""
39424     else
39425         IF_GNU_MAKE="#"
39426     fi
39427
39428
39429
39430     PLATFORM_UNIX=0
39431     PLATFORM_WIN32=0
39432     PLATFORM_MSDOS=0
39433     PLATFORM_MAC=0
39434     PLATFORM_MACOS=0
39435     PLATFORM_MACOSX=0
39436     PLATFORM_OS2=0
39437     PLATFORM_BEOS=0
39438
39439     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
39440         case "${BAKEFILE_HOST}" in
39441             *-*-cygwin* | *-*-mingw32* )
39442                 PLATFORM_WIN32=1
39443             ;;
39444             *-pc-msdosdjgpp )
39445                 PLATFORM_MSDOS=1
39446             ;;
39447             *-pc-os2_emx | *-pc-os2-emx )
39448                 PLATFORM_OS2=1
39449             ;;
39450             powerpc-*-darwin* )
39451                 PLATFORM_MAC=1
39452                 PLATFORM_MACOSX=1
39453             ;;
39454             *-*-beos* )
39455                 PLATFORM_BEOS=1
39456             ;;
39457             powerpc-apple-macos* )
39458                 PLATFORM_MAC=1
39459                 PLATFORM_MACOS=1
39460             ;;
39461             * )
39462                 PLATFORM_UNIX=1
39463             ;;
39464         esac
39465     else
39466         case "$BAKEFILE_FORCE_PLATFORM" in
39467             win32 )
39468                 PLATFORM_WIN32=1
39469             ;;
39470             msdos )
39471                 PLATFORM_MSDOS=1
39472             ;;
39473             os2 )
39474                 PLATFORM_OS2=1
39475             ;;
39476             darwin )
39477                 PLATFORM_MAC=1
39478                 PLATFORM_MACOSX=1
39479             ;;
39480             unix )
39481                 PLATFORM_UNIX=1
39482             ;;
39483             beos )
39484                 PLATFORM_BEOS=1
39485             ;;
39486             * )
39487                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
39488 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
39489    { (exit 1); exit 1; }; }
39490             ;;
39491         esac
39492     fi
39493
39494
39495
39496
39497
39498
39499
39500
39501
39502
39503
39504     # Check whether --enable-omf or --disable-omf was given.
39505 if test "${enable_omf+set}" = set; then
39506   enableval="$enable_omf"
39507   bk_os2_use_omf="$enableval"
39508 fi;
39509
39510     case "${BAKEFILE_HOST}" in
39511       *-*-darwin* )
39512                         CFLAGS="$CFLAGS -fno-common"
39513         CXXFLAGS="$CXXFLAGS -fno-common"
39514         ;;
39515
39516       *-pc-os2_emx | *-pc-os2-emx )
39517         if test "x$bk_os2_use_omf" = "xyes" ; then
39518             AR=emxomfar
39519             RANLIB=:
39520             LDFLAGS="-Zomf $LDFLAGS"
39521             CFLAGS="-Zomf $CFLAGS"
39522             CXXFLAGS="-Zomf $CXXFLAGS"
39523             OS2_LIBEXT="lib"
39524         else
39525             OS2_LIBEXT="a"
39526         fi
39527         ;;
39528
39529       i*86-*-beos* )
39530         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
39531         ;;
39532     esac
39533
39534
39535     SO_SUFFIX="so"
39536     SO_SUFFIX_MODULE="so"
39537     EXEEXT=""
39538     LIBPREFIX="lib"
39539     LIBEXT=".a"
39540     DLLPREFIX="lib"
39541     DLLPREFIX_MODULE=""
39542     DLLIMP_SUFFIX=""
39543
39544     case "${BAKEFILE_HOST}" in
39545         *-hp-hpux* )
39546             SO_SUFFIX="sl"
39547             SO_SUFFIX_MODULE="sl"
39548         ;;
39549         *-*-aix* )
39550                                                                         SO_SUFFIX="a"
39551             SO_SUFFIX_MODULE="a"
39552         ;;
39553         *-*-cygwin* | *-*-mingw32* )
39554             SO_SUFFIX="dll"
39555             SO_SUFFIX_MODULE="dll"
39556             DLLIMP_SUFFIX="dll.a"
39557             EXEEXT=".exe"
39558             DLLPREFIX=""
39559         ;;
39560         *-pc-msdosdjgpp )
39561             EXEEXT=".exe"
39562             DLLPREFIX=""
39563         ;;
39564         *-pc-os2_emx | *-pc-os2-emx )
39565             SO_SUFFIX="dll"
39566             SO_SUFFIX_MODULE="dll"
39567             DLLIMP_SUFFIX=$OS2_LIBEXT
39568             EXEEXT=".exe"
39569             DLLPREFIX=""
39570             LIBPREFIX=""
39571             LIBEXT=".$OS2_LIBEXT"
39572         ;;
39573         powerpc-*-darwin* )
39574             SO_SUFFIX="dylib"
39575             SO_SUFFIX_MODULE="bundle"
39576         ;;
39577     esac
39578
39579     if test "x$DLLIMP_SUFFIX" = "x" ; then
39580         DLLIMP_SUFFIX="$SO_SUFFIX"
39581     fi
39582
39583
39584
39585
39586
39587
39588
39589
39590
39591
39592
39593         PIC_FLAG=""
39594     if test "x$GCC" = "xyes"; then
39595                 PIC_FLAG="-fPIC"
39596     fi
39597
39598         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
39599     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
39600
39601     case "${BAKEFILE_HOST}" in
39602       *-hp-hpux* )
39603                 if test "x$GCC" != "xyes"; then
39604                         LDFLAGS="$LDFLAGS -L/usr/lib"
39605
39606             SHARED_LD_CC="${CC} -b -o"
39607             SHARED_LD_CXX="${CXX} -b -o"
39608             PIC_FLAG="+Z"
39609         fi
39610       ;;
39611
39612       *-*-linux* )
39613         if test "x$GCC" != "xyes"; then
39614             echo "$as_me:$LINENO: checking for Intel compiler" >&5
39615 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
39616 if test "${bakefile_cv_prog_icc+set}" = set; then
39617   echo $ECHO_N "(cached) $ECHO_C" >&6
39618 else
39619
39620                 cat >conftest.$ac_ext <<_ACEOF
39621 /* confdefs.h.  */
39622 _ACEOF
39623 cat confdefs.h >>conftest.$ac_ext
39624 cat >>conftest.$ac_ext <<_ACEOF
39625 /* end confdefs.h.  */
39626
39627 int
39628 main ()
39629 {
39630
39631                         #ifndef __INTEL_COMPILER
39632                         #error Not icc
39633                         #endif
39634
39635   ;
39636   return 0;
39637 }
39638 _ACEOF
39639 rm -f conftest.$ac_objext
39640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39641   (eval $ac_compile) 2>conftest.er1
39642   ac_status=$?
39643   grep -v '^ *+' conftest.er1 >conftest.err
39644   rm -f conftest.er1
39645   cat conftest.err >&5
39646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39647   (exit $ac_status); } &&
39648          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39650   (eval $ac_try) 2>&5
39651   ac_status=$?
39652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39653   (exit $ac_status); }; } &&
39654          { ac_try='test -s conftest.$ac_objext'
39655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39656   (eval $ac_try) 2>&5
39657   ac_status=$?
39658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39659   (exit $ac_status); }; }; then
39660   bakefile_cv_prog_icc=yes
39661 else
39662   echo "$as_me: failed program was:" >&5
39663 sed 's/^/| /' conftest.$ac_ext >&5
39664
39665 bakefile_cv_prog_icc=no
39666
39667 fi
39668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39669
39670 fi
39671 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
39672 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
39673             if test "$bakefile_cv_prog_icc" = "yes"; then
39674                 PIC_FLAG="-KPIC"
39675             fi
39676         fi
39677       ;;
39678
39679       *-*-solaris2* )
39680         if test "x$GCC" != xyes ; then
39681             SHARED_LD_CC="${CC} -G -o"
39682             SHARED_LD_CXX="${CXX} -G -o"
39683             PIC_FLAG="-KPIC"
39684         fi
39685       ;;
39686
39687       *-*-darwin* )
39688
39689                                 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
39690 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
39691 if test "${wx_cv_gcc31+set}" = set; then
39692   echo $ECHO_N "(cached) $ECHO_C" >&6
39693 else
39694
39695            cat >conftest.$ac_ext <<_ACEOF
39696 /* confdefs.h.  */
39697 _ACEOF
39698 cat confdefs.h >>conftest.$ac_ext
39699 cat >>conftest.$ac_ext <<_ACEOF
39700 /* end confdefs.h.  */
39701
39702 int
39703 main ()
39704 {
39705
39706                    #if (__GNUC__ < 3) || \
39707                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
39708                        #error old gcc
39709                    #endif
39710
39711   ;
39712   return 0;
39713 }
39714 _ACEOF
39715 rm -f conftest.$ac_objext
39716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39717   (eval $ac_compile) 2>conftest.er1
39718   ac_status=$?
39719   grep -v '^ *+' conftest.er1 >conftest.err
39720   rm -f conftest.er1
39721   cat conftest.err >&5
39722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39723   (exit $ac_status); } &&
39724          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39726   (eval $ac_try) 2>&5
39727   ac_status=$?
39728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39729   (exit $ac_status); }; } &&
39730          { ac_try='test -s conftest.$ac_objext'
39731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39732   (eval $ac_try) 2>&5
39733   ac_status=$?
39734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39735   (exit $ac_status); }; }; then
39736
39737                    wx_cv_gcc31=yes
39738
39739 else
39740   echo "$as_me: failed program was:" >&5
39741 sed 's/^/| /' conftest.$ac_ext >&5
39742
39743
39744                    wx_cv_gcc31=no
39745
39746
39747 fi
39748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39749
39750 fi
39751 echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
39752 echo "${ECHO_T}$wx_cv_gcc31" >&6
39753         if test "$wx_cv_gcc31" = "no"; then
39754
39755 D='$'
39756 cat <<EOF >shared-ld-sh
39757 #!/bin/sh
39758 #-----------------------------------------------------------------------------
39759 #-- Name:        distrib/mac/shared-ld-sh
39760 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
39761 #-- Author:      Gilles Depeyrot
39762 #-- Copyright:   (c) 2002 Gilles Depeyrot
39763 #-- Licence:     any use permitted
39764 #-----------------------------------------------------------------------------
39765
39766 verbose=0
39767 args=""
39768 objects=""
39769 linking_flag="-dynamiclib"
39770
39771 while test ${D}# -gt 0; do
39772     case ${D}1 in
39773
39774        -v)
39775         verbose=1
39776         ;;
39777
39778        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
39779         # collect these options and values
39780         args="${D}{args} ${D}1 ${D}2"
39781         shift
39782         ;;
39783
39784        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
39785         # collect these options
39786         args="${D}{args} ${D}1"
39787         ;;
39788
39789        -dynamiclib|-bundle)
39790         linking_flag="${D}1"
39791         ;;
39792
39793        -*)
39794         echo "shared-ld: unhandled option '${D}1'"
39795         exit 1
39796         ;;
39797
39798         *.o | *.a | *.dylib)
39799         # collect object files
39800         objects="${D}{objects} ${D}1"
39801         ;;
39802
39803         *)
39804         echo "shared-ld: unhandled argument '${D}1'"
39805         exit 1
39806         ;;
39807
39808     esac
39809     shift
39810 done
39811
39812 #
39813 # Link one module containing all the others
39814 #
39815 if test ${D}{verbose} = 1; then
39816     echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
39817 fi
39818 c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
39819 status=${D}?
39820 if test ${D}{status} != 0; then
39821     exit ${D}{status}
39822 fi
39823
39824 #
39825 # Link the shared library from the single module created
39826 #
39827 if test ${D}{verbose} = 1; then
39828     echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
39829 fi
39830 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
39831 status=${D}?
39832 if test ${D}{status} != 0; then
39833     exit ${D}{status}
39834 fi
39835
39836 #
39837 # Remove intermediate module
39838 #
39839 rm -f master.${D}${D}.o
39840
39841 exit 0
39842 EOF
39843
39844             chmod +x shared-ld-sh
39845
39846                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
39847             SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
39848             SHARED_LD_CXX="$SHARED_LD_CC"
39849             SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
39850         else
39851                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
39852             SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
39853             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
39854             SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
39855         fi
39856
39857         PIC_FLAG="-dynamic -fPIC"
39858       ;;
39859
39860       *-*-aix* )
39861                 if test "x$GCC" != "xyes"; then
39862                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
39863 set dummy makeC++SharedLib; ac_word=$2
39864 echo "$as_me:$LINENO: checking for $ac_word" >&5
39865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39866 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
39867   echo $ECHO_N "(cached) $ECHO_C" >&6
39868 else
39869   if test -n "$AIX_CXX_LD"; then
39870   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
39871 else
39872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39873 for as_dir in $PATH
39874 do
39875   IFS=$as_save_IFS
39876   test -z "$as_dir" && as_dir=.
39877   for ac_exec_ext in '' $ac_executable_extensions; do
39878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39879     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
39880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39881     break 2
39882   fi
39883 done
39884 done
39885
39886   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
39887 fi
39888 fi
39889 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
39890 if test -n "$AIX_CXX_LD"; then
39891   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
39892 echo "${ECHO_T}$AIX_CXX_LD" >&6
39893 else
39894   echo "$as_me:$LINENO: result: no" >&5
39895 echo "${ECHO_T}no" >&6
39896 fi
39897
39898                         SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
39899             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
39900         fi
39901       ;;
39902
39903       *-*-beos* )
39904                         SHARED_LD_CC="${LD} -nostart -o"
39905         SHARED_LD_CXX="${LD} -nostart -o"
39906       ;;
39907
39908       *-*-irix* )
39909                 if test "x$GCC" != "xyes"; then
39910             PIC_FLAG="-KPIC"
39911         fi
39912       ;;
39913
39914       *-*-cygwin* | *-*-mingw32* )
39915         PIC_FLAG=""
39916         SHARED_LD_CC="\$(CC) -shared -o"
39917         SHARED_LD_CXX="\$(CXX) -shared -o"
39918       ;;
39919
39920       *-pc-os2_emx | *-pc-os2-emx )
39921         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
39922         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
39923         PIC_FLAG=""
39924
39925 D='$'
39926 cat <<EOF >dllar.sh
39927 #!/bin/sh
39928 #
39929 # dllar - a tool to build both a .dll and an .a file
39930 # from a set of object (.o) files for EMX/OS2.
39931 #
39932 #  Written by Andrew Zabolotny, bit@freya.etu.ru
39933 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
39934 #
39935 #  This script will accept a set of files on the command line.
39936 #  All the public symbols from the .o files will be exported into
39937 #  a .DEF file, then linker will be run (through gcc) against them to
39938 #  build a shared library consisting of all given .o files. All libraries
39939 #  (.a) will be first decompressed into component .o files then act as
39940 #  described above. You can optionally give a description (-d "description")
39941 #  which will be put into .DLL. To see the list of accepted options (as well
39942 #  as command-line format) simply run this program without options. The .DLL
39943 #  is built to be imported by name (there is no guarantee that new versions
39944 #  of the library you build will have same ordinals for same symbols).
39945 #
39946 #  dllar is free software; you can redistribute it and/or modify
39947 #  it under the terms of the GNU General Public License as published by
39948 #  the Free Software Foundation; either version 2, or (at your option)
39949 #  any later version.
39950 #
39951 #  dllar is distributed in the hope that it will be useful,
39952 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
39953 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
39954 #  GNU General Public License for more details.
39955 #
39956 #  You should have received a copy of the GNU General Public License
39957 #  along with dllar; see the file COPYING.  If not, write to the Free
39958 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
39959 #  02111-1307, USA.
39960
39961 # To successfuly run this program you will need:
39962 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
39963 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
39964 #  - gcc
39965 #    (used to build the .dll)
39966 #  - emxexp
39967 #    (used to create .def file from .o files)
39968 #  - emximp
39969 #    (used to create .a file from .def file)
39970 #  - GNU text utilites (cat, sort, uniq)
39971 #    used to process emxexp output
39972 #  - GNU file utilities (mv, rm)
39973 #  - GNU sed
39974 #  - lxlite (optional, see flag below)
39975 #    (used for general .dll cleanup)
39976 #
39977
39978 flag_USE_LXLITE=1;
39979
39980 #
39981 # helper functions
39982 # basnam, variant of basename, which does _not_ remove the path, _iff_
39983 #                              second argument (suffix to remove) is given
39984 basnam(){
39985     case ${D}# in
39986     1)
39987         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
39988         ;;
39989     2)
39990         echo ${D}1 | sed 's/'${D}2'${D}//'
39991         ;;
39992     *)
39993         echo "error in basnam ${D}*"
39994         exit 8
39995         ;;
39996     esac
39997 }
39998
39999 # Cleanup temporary files and output
40000 CleanUp() {
40001     cd ${D}curDir
40002     for i in ${D}inputFiles ; do
40003         case ${D}i in
40004         *!)
40005             rm -rf \`basnam ${D}i !\`
40006             ;;
40007         *)
40008             ;;
40009         esac
40010     done
40011
40012     # Kill result in case of failure as there is just to many stupid make/nmake
40013     # things out there which doesn't do this.
40014     if [ ${D}# -eq 0 ]; then
40015         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
40016     fi
40017 }
40018
40019 # Print usage and exit script with rc=1.
40020 PrintHelp() {
40021  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
40022  echo '       [-name-mangler-script script.sh]'
40023  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
40024  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
40025  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
40026  echo '       [*.o] [*.a]'
40027  echo '*> "output_file" should have no extension.'
40028  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
40029  echo '   The import library name is derived from this and is set to "name".a,'
40030  echo '   unless overridden by -import'
40031  echo '*> "importlib_name" should have no extension.'
40032  echo '   If it has the .o, or .a extension, it is automatically removed.'
40033  echo '   This name is used as the import library name and may be longer and'
40034  echo '   more descriptive than the DLL name which has to follow the old '
40035  echo '   8.3 convention of FAT.'
40036  echo '*> "script.sh may be given to override the output_file name by a'
40037  echo '   different name. It is mainly useful if the regular make process'
40038  echo '   of some package does not take into account OS/2 restriction of'
40039  echo '   DLL name lengths. It takes the importlib name as input and is'
40040  echo '   supposed to procude a shorter name as output. The script should'
40041  echo '   expect to get importlib_name without extension and should produce'
40042  echo '   a (max.) 8 letter name without extension.'
40043  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
40044  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
40045  echo '   These flags will be put at the start of GCC command line.'
40046  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
40047  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
40048  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
40049  echo '   If the last character of a symbol is "*", all symbols beginning'
40050  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
40051  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
40052  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
40053  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
40054  echo '   C runtime DLLs.'
40055  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
40056  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
40057  echo '   unchanged to GCC at the end of command line.'
40058  echo '*> If you create a DLL from a library and you do not specify -o,'
40059  echo '   the basename for DLL and import library will be set to library name,'
40060  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
40061  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
40062  echo '   library will be renamed into gcc_s.a.'
40063  echo '--------'
40064  echo 'Example:'
40065  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
40066  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
40067  CleanUp
40068  exit 1
40069 }
40070
40071 # Execute a command.
40072 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
40073 # @Uses    Whatever CleanUp() uses.
40074 doCommand() {
40075     echo "${D}*"
40076     eval ${D}*
40077     rcCmd=${D}?
40078
40079     if [ ${D}rcCmd -ne 0 ]; then
40080         echo "command failed, exit code="${D}rcCmd
40081         CleanUp
40082         exit ${D}rcCmd
40083     fi
40084 }
40085
40086 # main routine
40087 # setup globals
40088 cmdLine=${D}*
40089 outFile=""
40090 outimpFile=""
40091 inputFiles=""
40092 renameScript=""
40093 description=""
40094 CC=gcc.exe
40095 CFLAGS="-s -Zcrtdll"
40096 EXTRA_CFLAGS=""
40097 EXPORT_BY_ORDINALS=0
40098 exclude_symbols=""
40099 library_flags=""
40100 curDir=\`pwd\`
40101 curDirS=curDir
40102 case ${D}curDirS in
40103 */)
40104   ;;
40105 *)
40106   curDirS=${D}{curDirS}"/"
40107   ;;
40108 esac
40109 # Parse commandline
40110 libsToLink=0
40111 omfLinking=0
40112 while [ ${D}1 ]; do
40113     case ${D}1 in
40114     -ord*)
40115         EXPORT_BY_ORDINALS=1;
40116         ;;
40117     -o*)
40118         shift
40119         outFile=${D}1
40120         ;;
40121     -i*)
40122         shift
40123         outimpFile=${D}1
40124         ;;
40125     -name-mangler-script)
40126         shift
40127         renameScript=${D}1
40128         ;;
40129     -d*)
40130         shift
40131         description=${D}1
40132         ;;
40133     -f*)
40134         shift
40135         CFLAGS=${D}1
40136         ;;
40137     -c*)
40138         shift
40139         CC=${D}1
40140         ;;
40141     -h*)
40142         PrintHelp
40143         ;;
40144     -ex*)
40145         shift
40146         exclude_symbols=${D}{exclude_symbols}${D}1" "
40147         ;;
40148     -libf*)
40149         shift
40150         library_flags=${D}{library_flags}${D}1" "
40151         ;;
40152     -nocrt*)
40153         CFLAGS="-s"
40154         ;;
40155     -nolxl*)
40156         flag_USE_LXLITE=0
40157         ;;
40158     -* | /*)
40159         case ${D}1 in
40160         -L* | -l*)
40161             libsToLink=1
40162             ;;
40163         -Zomf)
40164             omfLinking=1
40165             ;;
40166         *)
40167             ;;
40168         esac
40169         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40170         ;;
40171     *.dll)
40172         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
40173         if [ ${D}omfLinking -eq 1 ]; then
40174             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
40175         else
40176             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
40177         fi
40178         ;;
40179     *)
40180         found=0;
40181         if [ ${D}libsToLink -ne 0 ]; then
40182             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40183         else
40184             for file in ${D}1 ; do
40185                 if [ -f ${D}file ]; then
40186                     inputFiles="${D}{inputFiles} ${D}file"
40187                     found=1
40188                 fi
40189             done
40190             if [ ${D}found -eq 0 ]; then
40191                 echo "ERROR: No file(s) found: "${D}1
40192                 exit 8
40193             fi
40194         fi
40195       ;;
40196     esac
40197     shift
40198 done # iterate cmdline words
40199
40200 #
40201 if [ -z "${D}inputFiles" ]; then
40202     echo "dllar: no input files"
40203     PrintHelp
40204 fi
40205
40206 # Now extract all .o files from .a files
40207 newInputFiles=""
40208 for file in ${D}inputFiles ; do
40209     case ${D}file in
40210     *.a | *.lib)
40211         case ${D}file in
40212         *.a)
40213             suffix=".a"
40214             AR="ar"
40215             ;;
40216         *.lib)
40217             suffix=".lib"
40218             AR="emxomfar"
40219             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
40220             ;;
40221         *)
40222             ;;
40223         esac
40224         dirname=\`basnam ${D}file ${D}suffix\`"_%"
40225         mkdir ${D}dirname
40226         if [ ${D}? -ne 0 ]; then
40227             echo "Failed to create subdirectory ./${D}dirname"
40228             CleanUp
40229             exit 8;
40230         fi
40231         # Append '!' to indicate archive
40232         newInputFiles="${D}newInputFiles ${D}{dirname}!"
40233         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
40234         cd ${D}curDir
40235         found=0;
40236         for subfile in ${D}dirname/*.o* ; do
40237             if [ -f ${D}subfile ]; then
40238                 found=1
40239                 if [ -s ${D}subfile ]; then
40240                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
40241                     newInputFiles="${D}newInputFiles ${D}subfile"
40242                 fi
40243             fi
40244         done
40245         if [ ${D}found -eq 0 ]; then
40246             echo "WARNING: there are no files in archive \\'${D}file\\'"
40247         fi
40248         ;;
40249     *)
40250         newInputFiles="${D}{newInputFiles} ${D}file"
40251         ;;
40252     esac
40253 done
40254 inputFiles="${D}newInputFiles"
40255
40256 # Output filename(s).
40257 do_backup=0;
40258 if [ -z ${D}outFile ]; then
40259     do_backup=1;
40260     set outFile ${D}inputFiles; outFile=${D}2
40261 fi
40262
40263 # If it is an archive, remove the '!' and the '_%' suffixes
40264 case ${D}outFile in
40265 *_%!)
40266     outFile=\`basnam ${D}outFile _%!\`
40267     ;;
40268 *)
40269     ;;
40270 esac
40271 case ${D}outFile in
40272 *.dll)
40273     outFile=\`basnam ${D}outFile .dll\`
40274     ;;
40275 *.DLL)
40276     outFile=\`basnam ${D}outFile .DLL\`
40277     ;;
40278 *.o)
40279     outFile=\`basnam ${D}outFile .o\`
40280     ;;
40281 *.obj)
40282     outFile=\`basnam ${D}outFile .obj\`
40283     ;;
40284 *.a)
40285     outFile=\`basnam ${D}outFile .a\`
40286     ;;
40287 *.lib)
40288     outFile=\`basnam ${D}outFile .lib\`
40289     ;;
40290 *)
40291     ;;
40292 esac
40293 case ${D}outimpFile in
40294 *.a)
40295     outimpFile=\`basnam ${D}outimpFile .a\`
40296     ;;
40297 *.lib)
40298     outimpFile=\`basnam ${D}outimpFile .lib\`
40299     ;;
40300 *)
40301     ;;
40302 esac
40303 if [ -z ${D}outimpFile ]; then
40304     outimpFile=${D}outFile
40305 fi
40306 defFile="${D}{outFile}.def"
40307 arcFile="${D}{outimpFile}.a"
40308 arcFile2="${D}{outimpFile}.lib"
40309
40310 #create ${D}dllFile as something matching 8.3 restrictions,
40311 if [ -z ${D}renameScript ] ; then
40312     dllFile="${D}outFile"
40313 else
40314     dllFile=\`${D}renameScript ${D}outimpFile\`
40315 fi
40316
40317 if [ ${D}do_backup -ne 0 ] ; then
40318     if [ -f ${D}arcFile ] ; then
40319         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
40320     fi
40321     if [ -f ${D}arcFile2 ] ; then
40322         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
40323     fi
40324 fi
40325
40326 # Extract public symbols from all the object files.
40327 tmpdefFile=${D}{defFile}_%
40328 rm -f ${D}tmpdefFile
40329 for file in ${D}inputFiles ; do
40330     case ${D}file in
40331     *!)
40332         ;;
40333     *)
40334         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
40335         ;;
40336     esac
40337 done
40338
40339 # Create the def file.
40340 rm -f ${D}defFile
40341 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
40342 dllFile="${D}{dllFile}.dll"
40343 if [ ! -z ${D}description ]; then
40344     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
40345 fi
40346 echo "EXPORTS" >> ${D}defFile
40347
40348 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
40349 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
40350
40351 # Checks if the export is ok or not.
40352 for word in ${D}exclude_symbols; do
40353     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
40354     mv ${D}{tmpdefFile}% ${D}tmpdefFile
40355 done
40356
40357
40358 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
40359     sed "=" < ${D}tmpdefFile | \\
40360     sed '
40361       N
40362       : loop
40363       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
40364       t loop
40365     ' > ${D}{tmpdefFile}%
40366     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
40367 else
40368     rm -f ${D}{tmpdefFile}%
40369 fi
40370 cat ${D}tmpdefFile >> ${D}defFile
40371 rm -f ${D}tmpdefFile
40372
40373 # Do linking, create implib, and apply lxlite.
40374 gccCmdl="";
40375 for file in ${D}inputFiles ; do
40376     case ${D}file in
40377     *!)
40378         ;;
40379     *)
40380         gccCmdl="${D}gccCmdl ${D}file"
40381         ;;
40382     esac
40383 done
40384 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
40385 touch "${D}{outFile}.dll"
40386
40387 doCommand "emximp -o ${D}arcFile ${D}defFile"
40388 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
40389     add_flags="";
40390     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
40391         add_flags="-ynd"
40392     fi
40393     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
40394 fi
40395 doCommand "emxomf -s -l ${D}arcFile"
40396
40397 # Successful exit.
40398 CleanUp 1
40399 exit 0
40400 EOF
40401
40402         chmod +x dllar.sh
40403       ;;
40404
40405       powerpc-apple-macos* | \
40406       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
40407       *-*-sunos4* | \
40408       *-*-osf* | \
40409       *-*-dgux5* | \
40410       *-*-sysv5* )
40411               ;;
40412
40413       *)
40414         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
40415 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
40416    { (exit 1); exit 1; }; }
40417     esac
40418
40419     if test "x$PIC_FLAG" != "x" ; then
40420         PIC_FLAG="$PIC_FLAG -DPIC"
40421     fi
40422
40423     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
40424         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
40425     fi
40426     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
40427         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
40428     fi
40429
40430
40431
40432
40433
40434
40435
40436
40437     USE_SOVERSION=0
40438     USE_SOVERLINUX=0
40439     USE_SOVERSOLARIS=0
40440     USE_SOSYMLINKS=0
40441     USE_MACVERSION=0
40442     SONAME_FLAG=
40443
40444     case "${BAKEFILE_HOST}" in
40445       *-*-linux* | *-*-freebsd* )
40446         SONAME_FLAG="-Wl,-soname,"
40447         USE_SOVERSION=1
40448         USE_SOVERLINUX=1
40449         USE_SOSYMLINKS=1
40450       ;;
40451
40452       *-*-solaris2* )
40453         SONAME_FLAG="-h "
40454         USE_SOVERSION=1
40455         USE_SOVERSOLARIS=1
40456         USE_SOSYMLINKS=1
40457       ;;
40458
40459       *-*-darwin* )
40460         USE_MACVERSION=1
40461         USE_SOVERSION=1
40462         USE_SOSYMLINKS=1
40463       ;;
40464     esac
40465
40466
40467
40468
40469
40470
40471
40472
40473
40474     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
40475 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
40476     DEPS_TRACKING=0
40477
40478     if test "x$GCC" = "xyes"; then
40479         DEPSMODE=gcc
40480         DEPS_TRACKING=1
40481         case "${BAKEFILE_HOST}" in
40482             powerpc-*-darwin* )
40483                                                 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
40484             ;;
40485             * )
40486                 DEPSFLAG_GCC="-MMD"
40487             ;;
40488         esac
40489         echo "$as_me:$LINENO: result: gcc" >&5
40490 echo "${ECHO_T}gcc" >&6
40491     elif test "x$MWCC" = "xyes"; then
40492         DEPSMODE=gcc
40493         DEPS_TRACKING=1
40494         DEPSFLAG_GCC="-MMD"
40495         echo "$as_me:$LINENO: result: mwcc" >&5
40496 echo "${ECHO_T}mwcc" >&6
40497     else
40498         echo "$as_me:$LINENO: result: none" >&5
40499 echo "${ECHO_T}none" >&6
40500     fi
40501
40502     if test $DEPS_TRACKING = 1 ; then
40503
40504 D='$'
40505 cat <<EOF >bk-deps
40506 #!/bin/sh
40507
40508 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40509 # script. It is used to track C/C++ files dependencies in portable way.
40510 #
40511 # Permission is given to use this file in any way.
40512
40513 DEPSMODE=${DEPSMODE}
40514 DEPSDIR=.deps
40515 DEPSFLAG_GCC="${DEPSFLAG_GCC}"
40516
40517 mkdir -p ${D}DEPSDIR
40518
40519 if test ${D}DEPSMODE = gcc ; then
40520     ${D}* ${D}{DEPSFLAG_GCC}
40521     status=${D}?
40522     if test ${D}{status} != 0 ; then
40523         exit ${D}{status}
40524     fi
40525     # move created file to the location we want it in:
40526     while test ${D}# -gt 0; do
40527         case "${D}1" in
40528             -o )
40529                 shift
40530                 objfile=${D}1
40531             ;;
40532             -* )
40533             ;;
40534             * )
40535                 srcfile=${D}1
40536             ;;
40537         esac
40538         shift
40539     done
40540     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
40541     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
40542     if test -f ${D}depfile ; then
40543         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40544         rm -f ${D}depfile
40545     else
40546         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
40547         if test -f ${D}depfile ; then
40548             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40549             rm -f ${D}depfile
40550         fi
40551     fi
40552     exit 0
40553 else
40554     ${D}*
40555     exit ${D}?
40556 fi
40557 EOF
40558
40559         chmod +x bk-deps
40560     fi
40561
40562
40563
40564
40565     RESCOMP=
40566     SETFILE=
40567
40568     case ${BAKEFILE_HOST} in
40569         *-*-cygwin* | *-*-mingw32* )
40570                         if test "$build" != "$host" ; then
40571                 RESCOMP=$host_alias-windres
40572             else
40573                 # Extract the first word of "windres", so it can be a program name with args.
40574 set dummy windres; ac_word=$2
40575 echo "$as_me:$LINENO: checking for $ac_word" >&5
40576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40577 if test "${ac_cv_prog_RESCOMP+set}" = set; then
40578   echo $ECHO_N "(cached) $ECHO_C" >&6
40579 else
40580   if test -n "$RESCOMP"; then
40581   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40582 else
40583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40584 for as_dir in $PATH
40585 do
40586   IFS=$as_save_IFS
40587   test -z "$as_dir" && as_dir=.
40588   for ac_exec_ext in '' $ac_executable_extensions; do
40589   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40590     ac_cv_prog_RESCOMP="windres"
40591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40592     break 2
40593   fi
40594 done
40595 done
40596
40597   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
40598 fi
40599 fi
40600 RESCOMP=$ac_cv_prog_RESCOMP
40601 if test -n "$RESCOMP"; then
40602   echo "$as_me:$LINENO: result: $RESCOMP" >&5
40603 echo "${ECHO_T}$RESCOMP" >&6
40604 else
40605   echo "$as_me:$LINENO: result: no" >&5
40606 echo "${ECHO_T}no" >&6
40607 fi
40608
40609             fi
40610          ;;
40611
40612       *-*-darwin* | powerpc-apple-macos* )
40613             # Extract the first word of "Rez", so it can be a program name with args.
40614 set dummy Rez; ac_word=$2
40615 echo "$as_me:$LINENO: checking for $ac_word" >&5
40616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40617 if test "${ac_cv_prog_RESCOMP+set}" = set; then
40618   echo $ECHO_N "(cached) $ECHO_C" >&6
40619 else
40620   if test -n "$RESCOMP"; then
40621   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40622 else
40623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40624 for as_dir in $PATH
40625 do
40626   IFS=$as_save_IFS
40627   test -z "$as_dir" && as_dir=.
40628   for ac_exec_ext in '' $ac_executable_extensions; do
40629   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40630     ac_cv_prog_RESCOMP="Rez"
40631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40632     break 2
40633   fi
40634 done
40635 done
40636
40637   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
40638 fi
40639 fi
40640 RESCOMP=$ac_cv_prog_RESCOMP
40641 if test -n "$RESCOMP"; then
40642   echo "$as_me:$LINENO: result: $RESCOMP" >&5
40643 echo "${ECHO_T}$RESCOMP" >&6
40644 else
40645   echo "$as_me:$LINENO: result: no" >&5
40646 echo "${ECHO_T}no" >&6
40647 fi
40648
40649             # Extract the first word of "SetFile", so it can be a program name with args.
40650 set dummy SetFile; ac_word=$2
40651 echo "$as_me:$LINENO: checking for $ac_word" >&5
40652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40653 if test "${ac_cv_prog_SETFILE+set}" = set; then
40654   echo $ECHO_N "(cached) $ECHO_C" >&6
40655 else
40656   if test -n "$SETFILE"; then
40657   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
40658 else
40659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40660 for as_dir in $PATH
40661 do
40662   IFS=$as_save_IFS
40663   test -z "$as_dir" && as_dir=.
40664   for ac_exec_ext in '' $ac_executable_extensions; do
40665   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40666     ac_cv_prog_SETFILE="SetFile"
40667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40668     break 2
40669   fi
40670 done
40671 done
40672
40673   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
40674 fi
40675 fi
40676 SETFILE=$ac_cv_prog_SETFILE
40677 if test -n "$SETFILE"; then
40678   echo "$as_me:$LINENO: result: $SETFILE" >&5
40679 echo "${ECHO_T}$SETFILE" >&6
40680 else
40681   echo "$as_me:$LINENO: result: no" >&5
40682 echo "${ECHO_T}no" >&6
40683 fi
40684
40685         ;;
40686     esac
40687
40688
40689
40690
40691
40692     BAKEFILE_BAKEFILE_M4_VERSION="0.1.5"
40693
40694
40695 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.5"
40696
40697
40698
40699     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
40700 if test "${enable_precomp_headers+set}" = set; then
40701   enableval="$enable_precomp_headers"
40702   bk_use_pch="$enableval"
40703 fi;
40704
40705     GCC_PCH=0
40706
40707     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
40708         if test "x$GCC" = "xyes"; then
40709                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
40710 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
40711             cat >conftest.$ac_ext <<_ACEOF
40712 /* confdefs.h.  */
40713 _ACEOF
40714 cat confdefs.h >>conftest.$ac_ext
40715 cat >>conftest.$ac_ext <<_ACEOF
40716 /* end confdefs.h.  */
40717
40718 int
40719 main ()
40720 {
40721
40722                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
40723                         #error "no pch support"
40724                     #endif
40725                     #if (__GNUC__ < 3)
40726                         #error "no pch support"
40727                     #endif
40728                     #if (__GNUC__ == 3) && \
40729                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40730                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40731                         #error "no pch support"
40732                     #endif
40733
40734   ;
40735   return 0;
40736 }
40737 _ACEOF
40738 rm -f conftest.$ac_objext
40739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40740   (eval $ac_compile) 2>conftest.er1
40741   ac_status=$?
40742   grep -v '^ *+' conftest.er1 >conftest.err
40743   rm -f conftest.er1
40744   cat conftest.err >&5
40745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40746   (exit $ac_status); } &&
40747          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40749   (eval $ac_try) 2>&5
40750   ac_status=$?
40751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40752   (exit $ac_status); }; } &&
40753          { ac_try='test -s conftest.$ac_objext'
40754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40755   (eval $ac_try) 2>&5
40756   ac_status=$?
40757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40758   (exit $ac_status); }; }; then
40759
40760                     echo "$as_me:$LINENO: result: yes" >&5
40761 echo "${ECHO_T}yes" >&6
40762                     GCC_PCH=1
40763
40764 else
40765   echo "$as_me: failed program was:" >&5
40766 sed 's/^/| /' conftest.$ac_ext >&5
40767
40768
40769                     echo "$as_me:$LINENO: result: no" >&5
40770 echo "${ECHO_T}no" >&6
40771
40772 fi
40773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40774             if test $GCC_PCH = 1 ; then
40775
40776 D='$'
40777 cat <<EOF >bk-make-pch
40778 #!/bin/sh
40779
40780 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40781 # script. It is used to generated precompiled headers.
40782 #
40783 # Permission is given to use this file in any way.
40784
40785 outfile="${D}{1}"
40786 header="${D}{2}"
40787 shift
40788 shift
40789
40790 compiler=
40791 headerfile=
40792 while test ${D}{#} -gt 0; do
40793     case "${D}{1}" in
40794         -I* )
40795             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
40796             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
40797                 headerfile="${D}{incdir}/${D}{header}"
40798             fi
40799         ;;
40800     esac
40801     compiler="${D}{compiler} ${D}{1}"
40802     shift
40803 done
40804
40805 if test "x${D}{headerfile}" = "x" ; then
40806     echo "error: can't find header ${D}{header} in include paths" >2
40807 else
40808     if test -f ${D}{outfile} ; then
40809         rm -f ${D}{outfile}
40810     else
40811         mkdir -p \`dirname ${D}{outfile}\`
40812     fi
40813     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
40814     mkdir -p .deps
40815     # can do this because gcc is >= 3.4:
40816     ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
40817     exit ${D}{?}
40818 fi
40819 EOF
40820
40821                 chmod +x bk-make-pch
40822             fi
40823         fi
40824     fi
40825
40826
40827
40828     COND_BUILD_DEBUG="#"
40829     if test "x$BUILD" = "xdebug" ; then
40830         COND_BUILD_DEBUG=""
40831     fi
40832
40833     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40834     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40835         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40836     fi
40837
40838     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40839     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40840         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40841     fi
40842
40843     COND_BUILD_DEBUG_UNICODE_0="#"
40844     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40845         COND_BUILD_DEBUG_UNICODE_0=""
40846     fi
40847
40848     COND_BUILD_DEBUG_UNICODE_1="#"
40849     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40850         COND_BUILD_DEBUG_UNICODE_1=""
40851     fi
40852
40853     COND_BUILD_RELEASE="#"
40854     if test "x$BUILD" = "xrelease" ; then
40855         COND_BUILD_RELEASE=""
40856     fi
40857
40858     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40859     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40860         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40861     fi
40862
40863     COND_BUILD_RELEASE_UNICODE_0="#"
40864     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40865         COND_BUILD_RELEASE_UNICODE_0=""
40866     fi
40867
40868     COND_BUILD_RELEASE_UNICODE_1="#"
40869     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40870         COND_BUILD_RELEASE_UNICODE_1=""
40871     fi
40872
40873     COND_DEBUG_FLAG_1="#"
40874     if test "x$DEBUG_FLAG" = "x1" ; then
40875         COND_DEBUG_FLAG_1=""
40876     fi
40877
40878     COND_DEBUG_INFO_0="#"
40879     if test "x$DEBUG_INFO" = "x0" ; then
40880         COND_DEBUG_INFO_0=""
40881     fi
40882
40883     COND_DEBUG_INFO_1="#"
40884     if test "x$DEBUG_INFO" = "x1" ; then
40885         COND_DEBUG_INFO_1=""
40886     fi
40887
40888     COND_DEPS_TRACKING_0="#"
40889     if test "x$DEPS_TRACKING" = "x0" ; then
40890         COND_DEPS_TRACKING_0=""
40891     fi
40892
40893     COND_DEPS_TRACKING_1="#"
40894     if test "x$DEPS_TRACKING" = "x1" ; then
40895         COND_DEPS_TRACKING_1=""
40896     fi
40897
40898     COND_GCC_PCH_1="#"
40899     if test "x$GCC_PCH" = "x1" ; then
40900         COND_GCC_PCH_1=""
40901     fi
40902
40903     COND_MONOLITHIC_0="#"
40904     if test "x$MONOLITHIC" = "x0" ; then
40905         COND_MONOLITHIC_0=""
40906     fi
40907
40908     COND_MONOLITHIC_0_SHARED_0="#"
40909     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40910         COND_MONOLITHIC_0_SHARED_0=""
40911     fi
40912
40913     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40914     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40915         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40916     fi
40917
40918     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
40919     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
40920         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
40921     fi
40922
40923     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40924     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40925         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40926     fi
40927
40928     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40929     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40930         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40931     fi
40932
40933     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40934     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40935         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40936     fi
40937
40938     COND_MONOLITHIC_0_SHARED_1="#"
40939     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40940         COND_MONOLITHIC_0_SHARED_1=""
40941     fi
40942
40943     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40944     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40945         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40946     fi
40947
40948     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
40949     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
40950         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
40951     fi
40952
40953     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40954     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40955         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40956     fi
40957
40958     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40959     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40960         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40961     fi
40962
40963     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40964     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40965         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40966     fi
40967
40968     COND_MONOLITHIC_0_USE_ODBC_1="#"
40969     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40970         COND_MONOLITHIC_0_USE_ODBC_1=""
40971     fi
40972
40973     COND_MONOLITHIC_1="#"
40974     if test "x$MONOLITHIC" = "x1" ; then
40975         COND_MONOLITHIC_1=""
40976     fi
40977
40978     COND_MONOLITHIC_1_SHARED_0="#"
40979     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40980         COND_MONOLITHIC_1_SHARED_0=""
40981     fi
40982
40983     COND_MONOLITHIC_1_SHARED_1="#"
40984     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40985         COND_MONOLITHIC_1_SHARED_1=""
40986     fi
40987
40988     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40989     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40990         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40991     fi
40992
40993     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40994     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40995         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40996     fi
40997
40998     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40999     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
41000         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
41001     fi
41002
41003     COND_PLATFORM_MACOSX_1="#"
41004     if test "x$PLATFORM_MACOSX" = "x1" ; then
41005         COND_PLATFORM_MACOSX_1=""
41006     fi
41007
41008     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
41009     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
41010         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
41011     fi
41012
41013     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
41014     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
41015         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
41016     fi
41017
41018     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
41019     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
41020         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
41021     fi
41022
41023     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
41024     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
41025         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
41026     fi
41027
41028     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
41029     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41030         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
41031     fi
41032
41033     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41034     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41035         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41036     fi
41037
41038     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
41039     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
41040         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
41041     fi
41042
41043     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
41044     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
41045         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
41046     fi
41047
41048     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
41049     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
41050         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
41051     fi
41052
41053     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
41054     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
41055         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
41056     fi
41057
41058     COND_PLATFORM_MACOS_1="#"
41059     if test "x$PLATFORM_MACOS" = "x1" ; then
41060         COND_PLATFORM_MACOS_1=""
41061     fi
41062
41063     COND_PLATFORM_MAC_1="#"
41064     if test "x$PLATFORM_MAC" = "x1" ; then
41065         COND_PLATFORM_MAC_1=""
41066     fi
41067
41068     COND_PLATFORM_OS2_1="#"
41069     if test "x$PLATFORM_OS2" = "x1" ; then
41070         COND_PLATFORM_OS2_1=""
41071     fi
41072
41073     COND_PLATFORM_UNIX_0="#"
41074     if test "x$PLATFORM_UNIX" = "x0" ; then
41075         COND_PLATFORM_UNIX_0=""
41076     fi
41077
41078     COND_PLATFORM_UNIX_1="#"
41079     if test "x$PLATFORM_UNIX" = "x1" ; then
41080         COND_PLATFORM_UNIX_1=""
41081     fi
41082
41083     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
41084     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
41085         COND_PLATFORM_UNIX_1_USE_GUI_1=""
41086     fi
41087
41088     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
41089     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
41090         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
41091     fi
41092
41093     COND_PLATFORM_WIN32_0="#"
41094     if test "x$PLATFORM_WIN32" = "x0" ; then
41095         COND_PLATFORM_WIN32_0=""
41096     fi
41097
41098     COND_PLATFORM_WIN32_1="#"
41099     if test "x$PLATFORM_WIN32" = "x1" ; then
41100         COND_PLATFORM_WIN32_1=""
41101     fi
41102
41103     COND_SHARED_0="#"
41104     if test "x$SHARED" = "x0" ; then
41105         COND_SHARED_0=""
41106     fi
41107
41108     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
41109     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
41110         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
41111     fi
41112
41113     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
41114     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
41115         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
41116     fi
41117
41118     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
41119     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
41120         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
41121     fi
41122
41123     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
41124     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41125         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
41126     fi
41127
41128     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41129     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41130         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41131     fi
41132
41133     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41134     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41135         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41136     fi
41137
41138     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41139     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41140         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41141     fi
41142
41143     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
41144     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
41145         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
41146     fi
41147
41148     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
41149     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
41150         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
41151     fi
41152
41153     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
41154     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
41155         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
41156     fi
41157
41158     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
41159     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
41160         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
41161     fi
41162
41163     COND_SHARED_1="#"
41164     if test "x$SHARED" = "x1" ; then
41165         COND_SHARED_1=""
41166     fi
41167
41168     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
41169     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41170         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
41171     fi
41172
41173     COND_TOOLKIT_="#"
41174     if test "x$TOOLKIT" = "x" ; then
41175         COND_TOOLKIT_=""
41176     fi
41177
41178     COND_TOOLKIT_COCOA="#"
41179     if test "x$TOOLKIT" = "xCOCOA" ; then
41180         COND_TOOLKIT_COCOA=""
41181     fi
41182
41183     COND_TOOLKIT_COCOA_USE_GUI_1="#"
41184     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
41185         COND_TOOLKIT_COCOA_USE_GUI_1=""
41186     fi
41187
41188     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
41189     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41190         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
41191     fi
41192
41193     COND_TOOLKIT_GTK="#"
41194     if test "x$TOOLKIT" = "xGTK" ; then
41195         COND_TOOLKIT_GTK=""
41196     fi
41197
41198     COND_TOOLKIT_GTK_USE_GUI_1="#"
41199     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
41200         COND_TOOLKIT_GTK_USE_GUI_1=""
41201     fi
41202
41203     COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41204     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41205         COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41206     fi
41207
41208     COND_TOOLKIT_MAC="#"
41209     if test "x$TOOLKIT" = "xMAC" ; then
41210         COND_TOOLKIT_MAC=""
41211     fi
41212
41213     COND_TOOLKIT_MAC_USE_GUI_1="#"
41214     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41215         COND_TOOLKIT_MAC_USE_GUI_1=""
41216     fi
41217
41218     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41219     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41220         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41221     fi
41222
41223     COND_TOOLKIT_MGL="#"
41224     if test "x$TOOLKIT" = "xMGL" ; then
41225         COND_TOOLKIT_MGL=""
41226     fi
41227
41228     COND_TOOLKIT_MGL_USE_GUI_1="#"
41229     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41230         COND_TOOLKIT_MGL_USE_GUI_1=""
41231     fi
41232
41233     COND_TOOLKIT_MOTIF="#"
41234     if test "x$TOOLKIT" = "xMOTIF" ; then
41235         COND_TOOLKIT_MOTIF=""
41236     fi
41237
41238     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41239     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41240         COND_TOOLKIT_MOTIF_USE_GUI_1=""
41241     fi
41242
41243     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41244     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41245         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41246     fi
41247
41248     COND_TOOLKIT_MSW="#"
41249     if test "x$TOOLKIT" = "xMSW" ; then
41250         COND_TOOLKIT_MSW=""
41251     fi
41252
41253     COND_TOOLKIT_MSW_USE_GUI_1="#"
41254     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41255         COND_TOOLKIT_MSW_USE_GUI_1=""
41256     fi
41257
41258     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41259     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41260         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41261     fi
41262
41263     COND_TOOLKIT_PM="#"
41264     if test "x$TOOLKIT" = "xPM" ; then
41265         COND_TOOLKIT_PM=""
41266     fi
41267
41268     COND_TOOLKIT_PM_USE_GUI_1="#"
41269     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41270         COND_TOOLKIT_PM_USE_GUI_1=""
41271     fi
41272
41273     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41274     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41275         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41276     fi
41277
41278     COND_TOOLKIT_WINCE="#"
41279     if test "x$TOOLKIT" = "xWINCE" ; then
41280         COND_TOOLKIT_WINCE=""
41281     fi
41282
41283     COND_TOOLKIT_WINCE_USE_GUI_1="#"
41284     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41285         COND_TOOLKIT_WINCE_USE_GUI_1=""
41286     fi
41287
41288     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41289     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41290         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41291     fi
41292
41293     COND_TOOLKIT_X11="#"
41294     if test "x$TOOLKIT" = "xX11" ; then
41295         COND_TOOLKIT_X11=""
41296     fi
41297
41298     COND_TOOLKIT_X11_USE_GUI_1="#"
41299     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41300         COND_TOOLKIT_X11_USE_GUI_1=""
41301     fi
41302
41303     COND_UNICODE_1="#"
41304     if test "x$UNICODE" = "x1" ; then
41305         COND_UNICODE_1=""
41306     fi
41307
41308     COND_USE_EXCEPTIONS_0="#"
41309     if test "x$USE_EXCEPTIONS" = "x0" ; then
41310         COND_USE_EXCEPTIONS_0=""
41311     fi
41312
41313     COND_USE_EXCEPTIONS_1="#"
41314     if test "x$USE_EXCEPTIONS" = "x1" ; then
41315         COND_USE_EXCEPTIONS_1=""
41316     fi
41317
41318     COND_USE_GUI_0="#"
41319     if test "x$USE_GUI" = "x0" ; then
41320         COND_USE_GUI_0=""
41321     fi
41322
41323     COND_USE_GUI_1="#"
41324     if test "x$USE_GUI" = "x1" ; then
41325         COND_USE_GUI_1=""
41326     fi
41327
41328     COND_USE_GUI_1_WXUNIV_0="#"
41329     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41330         COND_USE_GUI_1_WXUNIV_0=""
41331     fi
41332
41333     COND_USE_GUI_1_WXUNIV_1="#"
41334     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41335         COND_USE_GUI_1_WXUNIV_1=""
41336     fi
41337
41338     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41339     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41340         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41341     fi
41342
41343     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41344     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41345         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41346     fi
41347
41348     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41349     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41350         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41351     fi
41352
41353     COND_USE_ODBC_1="#"
41354     if test "x$USE_ODBC" = "x1" ; then
41355         COND_USE_ODBC_1=""
41356     fi
41357
41358     COND_USE_OPENGL_1="#"
41359     if test "x$USE_OPENGL" = "x1" ; then
41360         COND_USE_OPENGL_1=""
41361     fi
41362
41363     COND_USE_PLUGINS_0="#"
41364     if test "x$USE_PLUGINS" = "x0" ; then
41365         COND_USE_PLUGINS_0=""
41366     fi
41367
41368     COND_USE_SOSYMLINKS_1="#"
41369     if test "x$USE_SOSYMLINKS" = "x1" ; then
41370         COND_USE_SOSYMLINKS_1=""
41371     fi
41372
41373     COND_USE_SOVERLINUX_1="#"
41374     if test "x$USE_SOVERLINUX" = "x1" ; then
41375         COND_USE_SOVERLINUX_1=""
41376     fi
41377
41378     COND_USE_SOVERSION_0="#"
41379     if test "x$USE_SOVERSION" = "x0" ; then
41380         COND_USE_SOVERSION_0=""
41381     fi
41382
41383     COND_USE_SOVERSOLARIS_1="#"
41384     if test "x$USE_SOVERSOLARIS" = "x1" ; then
41385         COND_USE_SOVERSOLARIS_1=""
41386     fi
41387
41388     COND_USE_XRC_1="#"
41389     if test "x$USE_XRC" = "x1" ; then
41390         COND_USE_XRC_1=""
41391     fi
41392
41393     COND_WITH_PLUGIN_SDL_1="#"
41394     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41395         COND_WITH_PLUGIN_SDL_1=""
41396     fi
41397
41398     COND_WXUNIV_0="#"
41399     if test "x$WXUNIV" = "x0" ; then
41400         COND_WXUNIV_0=""
41401     fi
41402
41403     COND_WXUNIV_1="#"
41404     if test "x$WXUNIV" = "x1" ; then
41405         COND_WXUNIV_1=""
41406     fi
41407
41408     COND_WXUSE_EXPAT_BUILTIN="#"
41409     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41410         COND_WXUSE_EXPAT_BUILTIN=""
41411     fi
41412
41413     COND_WXUSE_LIBJPEG_BUILTIN="#"
41414     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41415         COND_WXUSE_LIBJPEG_BUILTIN=""
41416     fi
41417
41418     COND_WXUSE_LIBPNG_BUILTIN="#"
41419     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41420         COND_WXUSE_LIBPNG_BUILTIN=""
41421     fi
41422
41423     COND_WXUSE_LIBTIFF_BUILTIN="#"
41424     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41425         COND_WXUSE_LIBTIFF_BUILTIN=""
41426     fi
41427
41428     COND_WXUSE_ODBC_BUILTIN="#"
41429     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41430         COND_WXUSE_ODBC_BUILTIN=""
41431     fi
41432
41433     COND_WXUSE_REGEX_BUILTIN="#"
41434     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41435         COND_WXUSE_REGEX_BUILTIN=""
41436     fi
41437
41438     COND_WXUSE_ZLIB_BUILTIN="#"
41439     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41440         COND_WXUSE_ZLIB_BUILTIN=""
41441     fi
41442
41443
41444
41445     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
41446         { { 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
41447 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;}
41448    { (exit 1); exit 1; }; }
41449     fi
41450
41451
41452 if test "$wxUSE_SHARED" = "yes"; then
41453
41454                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
41455     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
41456
41457                 case "${host}" in
41458       *-pc-os2_emx | *-pc-os2-emx )
41459         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41460         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41461         cp -p ${srcdir}/src/os2/dllnames.sh .
41462         cp -p ${srcdir}/src/os2/dllar.sh .
41463       ;;
41464     esac
41465 else
41466
41467         EXE_LINKER="$CXX -o"
41468
41469 fi
41470
41471 GCC_PRAGMA_FLAGS=""
41472 PCH_FLAGS=""
41473 if test $GCC_PCH = 1 ; then
41474     GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
41475     PCH_FLAGS="-DWX_PRECOMP"
41476 else
41477     case "${host}" in
41478         powerpc-*-darwin* )
41479                                     GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
41480             ;;
41481         *-*-mingw32* )
41482                                                                                     if test "$wxUSE_STL" = "yes" -o \
41483                     "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
41484                     "$wxUSE_NO_RTTI" != "yes"; then
41485                echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
41486 echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
41487                cat >conftest.$ac_ext <<_ACEOF
41488 /* confdefs.h.  */
41489 _ACEOF
41490 cat confdefs.h >>conftest.$ac_ext
41491 cat >>conftest.$ac_ext <<_ACEOF
41492 /* end confdefs.h.  */
41493
41494 int
41495 main ()
41496 {
41497 #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
41498                                #error "Not GCC 3.2 or greater"
41499                                #endif
41500
41501   ;
41502   return 0;
41503 }
41504 _ACEOF
41505 rm -f conftest.$ac_objext
41506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41507   (eval $ac_compile) 2>conftest.er1
41508   ac_status=$?
41509   grep -v '^ *+' conftest.er1 >conftest.err
41510   rm -f conftest.er1
41511   cat conftest.err >&5
41512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41513   (exit $ac_status); } &&
41514          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41516   (eval $ac_try) 2>&5
41517   ac_status=$?
41518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41519   (exit $ac_status); }; } &&
41520          { ac_try='test -s conftest.$ac_objext'
41521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41522   (eval $ac_try) 2>&5
41523   ac_status=$?
41524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41525   (exit $ac_status); }; }; then
41526   GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
41527                                echo "$as_me:$LINENO: result: yes" >&5
41528 echo "${ECHO_T}yes" >&6
41529 else
41530   echo "$as_me: failed program was:" >&5
41531 sed 's/^/| /' conftest.$ac_ext >&5
41532
41533 echo "$as_me:$LINENO: result: no" >&5
41534 echo "${ECHO_T}no" >&6
41535 fi
41536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41537             fi
41538             ;;
41539         *-pc-os2_emx | *-pc-os2-emx )
41540                                                 if test "$wxUSE_STL" = "yes"; then
41541                echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
41542 echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
41543                cat >conftest.$ac_ext <<_ACEOF
41544 /* confdefs.h.  */
41545 _ACEOF
41546 cat confdefs.h >>conftest.$ac_ext
41547 cat >>conftest.$ac_ext <<_ACEOF
41548 /* end confdefs.h.  */
41549
41550 int
41551 main ()
41552 {
41553 #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
41554                                #error "Not GCC 3.2 or greater"
41555                                #endif
41556
41557   ;
41558   return 0;
41559 }
41560 _ACEOF
41561 rm -f conftest.$ac_objext
41562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41563   (eval $ac_compile) 2>conftest.er1
41564   ac_status=$?
41565   grep -v '^ *+' conftest.er1 >conftest.err
41566   rm -f conftest.er1
41567   cat conftest.err >&5
41568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41569   (exit $ac_status); } &&
41570          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41572   (eval $ac_try) 2>&5
41573   ac_status=$?
41574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41575   (exit $ac_status); }; } &&
41576          { ac_try='test -s conftest.$ac_objext'
41577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41578   (eval $ac_try) 2>&5
41579   ac_status=$?
41580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41581   (exit $ac_status); }; }; then
41582   GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
41583                                echo "$as_me:$LINENO: result: yes" >&5
41584 echo "${ECHO_T}yes" >&6
41585 else
41586   echo "$as_me: failed program was:" >&5
41587 sed 's/^/| /' conftest.$ac_ext >&5
41588
41589 echo "$as_me:$LINENO: result: no" >&5
41590 echo "${ECHO_T}no" >&6
41591 fi
41592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41593             fi
41594             ;;
41595     esac
41596 fi
41597 CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
41598
41599
41600 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41601
41602
41603
41604
41605
41606
41607
41608
41609
41610
41611
41612
41613
41614
41615
41616
41617
41618
41619
41620
41621
41622
41623
41624
41625
41626
41627
41628
41629
41630
41631
41632
41633
41634
41635
41636
41637
41638
41639
41640
41641
41642
41643
41644
41645
41646
41647
41648
41649
41650
41651
41652
41653
41654
41655
41656
41657
41658
41659
41660
41661
41662
41663
41664 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41665 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
41666 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
41667 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41668   echo $ECHO_N "(cached) $ECHO_C" >&6
41669 else
41670   cat >conftest.make <<\_ACEOF
41671 all:
41672         @echo 'ac_maketemp="$(MAKE)"'
41673 _ACEOF
41674 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41675 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41676 if test -n "$ac_maketemp"; then
41677   eval ac_cv_prog_make_${ac_make}_set=yes
41678 else
41679   eval ac_cv_prog_make_${ac_make}_set=no
41680 fi
41681 rm -f conftest.make
41682 fi
41683 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41684   echo "$as_me:$LINENO: result: yes" >&5
41685 echo "${ECHO_T}yes" >&6
41686   SET_MAKE=
41687 else
41688   echo "$as_me:$LINENO: result: no" >&5
41689 echo "${ECHO_T}no" >&6
41690   SET_MAKE="MAKE=${MAKE-make}"
41691 fi
41692
41693
41694
41695           ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
41696
41697
41698           ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
41699
41700
41701           ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
41702
41703
41704                     ac_config_files="$ac_config_files version-script Makefile"
41705
41706
41707           ac_config_commands="$ac_config_commands  wx-config
41708                    "
41709
41710
41711
41712
41713 if test "$wxUSE_GUI" = "yes"; then
41714     SUBDIRS="samples demos utils contrib"
41715 else         SUBDIRS="samples utils"
41716 fi
41717
41718
41719
41720 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41721 if test "${with_cppunit_prefix+set}" = set; then
41722   withval="$with_cppunit_prefix"
41723   cppunit_config_prefix="$withval"
41724 else
41725   cppunit_config_prefix=""
41726 fi;
41727
41728 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41729 if test "${with_cppunit_exec_prefix+set}" = set; then
41730   withval="$with_cppunit_exec_prefix"
41731   cppunit_config_exec_prefix="$withval"
41732 else
41733   cppunit_config_exec_prefix=""
41734 fi;
41735
41736   if test x$cppunit_config_exec_prefix != x ; then
41737      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41738      if test x${CPPUNIT_CONFIG+set} != xset ; then
41739         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41740      fi
41741   fi
41742   if test x$cppunit_config_prefix != x ; then
41743      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41744      if test x${CPPUNIT_CONFIG+set} != xset ; then
41745         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41746      fi
41747   fi
41748
41749   # Extract the first word of "cppunit-config", so it can be a program name with args.
41750 set dummy cppunit-config; ac_word=$2
41751 echo "$as_me:$LINENO: checking for $ac_word" >&5
41752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41753 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41754   echo $ECHO_N "(cached) $ECHO_C" >&6
41755 else
41756   case $CPPUNIT_CONFIG in
41757   [\\/]* | ?:[\\/]*)
41758   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41759   ;;
41760   *)
41761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41762 for as_dir in $PATH
41763 do
41764   IFS=$as_save_IFS
41765   test -z "$as_dir" && as_dir=.
41766   for ac_exec_ext in '' $ac_executable_extensions; do
41767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41768     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41770     break 2
41771   fi
41772 done
41773 done
41774
41775   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41776   ;;
41777 esac
41778 fi
41779 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41780
41781 if test -n "$CPPUNIT_CONFIG"; then
41782   echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41783 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41784 else
41785   echo "$as_me:$LINENO: result: no" >&5
41786 echo "${ECHO_T}no" >&6
41787 fi
41788
41789   cppunit_version_min=1.8.0
41790
41791   echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41792 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41793   no_cppunit=""
41794   if test "$CPPUNIT_CONFIG" = "no" ; then
41795     no_cppunit=yes
41796   else
41797     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41798     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41799     cppunit_version=`$CPPUNIT_CONFIG --version`
41800
41801     cppunit_major_version=`echo $cppunit_version | \
41802            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41803     cppunit_minor_version=`echo $cppunit_version | \
41804            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41805     cppunit_micro_version=`echo $cppunit_version | \
41806            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41807
41808     cppunit_major_min=`echo $cppunit_version_min | \
41809            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41810     cppunit_minor_min=`echo $cppunit_version_min | \
41811            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41812     cppunit_micro_min=`echo $cppunit_version_min | \
41813            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41814
41815     cppunit_version_proper=`expr \
41816         $cppunit_major_version \> $cppunit_major_min \| \
41817         $cppunit_major_version \= $cppunit_major_min \& \
41818         $cppunit_minor_version \> $cppunit_minor_min \| \
41819         $cppunit_major_version \= $cppunit_major_min \& \
41820         $cppunit_minor_version \= $cppunit_minor_min \& \
41821         $cppunit_micro_version \>= $cppunit_micro_min `
41822
41823     if test "$cppunit_version_proper" = "1" ; then
41824       echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41825 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41826     else
41827       echo "$as_me:$LINENO: result: no" >&5
41828 echo "${ECHO_T}no" >&6
41829       no_cppunit=yes
41830     fi
41831   fi
41832
41833   if test "x$no_cppunit" = x ; then
41834      SUBDIRS="$SUBDIRS tests"
41835   else
41836      CPPUNIT_CFLAGS=""
41837      CPPUNIT_LIBS=""
41838      :
41839   fi
41840
41841
41842
41843
41844
41845 for subdir in `echo $SUBDIRS`; do
41846     if test -d ${srcdir}/${subdir} ; then
41847         if test "$wxUSE_GUI" = "yes"; then
41848             if test ${subdir} = "samples"; then
41849                                                 makefiles="samples/Makefile.in $makefiles"
41850                 for sample in `echo $SAMPLES_SUBDIRS`; do
41851                     if test -d $srcdir/samples/$sample; then
41852                         makefiles="samples/$sample/Makefile.in $makefiles"
41853                     fi
41854                 done
41855             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41856             fi
41857         else                                     if test ${subdir} = "samples"; then
41858                 makefiles="samples/Makefile.in samples/console/Makefile.in"
41859             elif test ${subdir} = "utils"; then
41860                 makefiles=""
41861                 for util in HelpGen tex2rtf ; do
41862                     if test -d $srcdir/utils/$util ; then
41863                         makefiles="utils/$util/Makefile.in \
41864                                    utils/$util/src/Makefile.in \
41865                                    $makefiles"
41866                     fi
41867                 done
41868             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41869             fi
41870         fi
41871
41872         for mkin in $makefiles ; do
41873             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41874                       ac_config_files="$ac_config_files $mk"
41875
41876         done
41877     fi
41878 done
41879
41880
41881 cat >confcache <<\_ACEOF
41882 # This file is a shell script that caches the results of configure
41883 # tests run on this system so they can be shared between configure
41884 # scripts and configure runs, see configure's option --config-cache.
41885 # It is not useful on other systems.  If it contains results you don't
41886 # want to keep, you may remove or edit it.
41887 #
41888 # config.status only pays attention to the cache file if you give it
41889 # the --recheck option to rerun configure.
41890 #
41891 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41892 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41893 # following values.
41894
41895 _ACEOF
41896
41897 # The following way of writing the cache mishandles newlines in values,
41898 # but we know of no workaround that is simple, portable, and efficient.
41899 # So, don't put newlines in cache variables' values.
41900 # Ultrix sh set writes to stderr and can't be redirected directly,
41901 # and sets the high bit in the cache file unless we assign to the vars.
41902 {
41903   (set) 2>&1 |
41904     case `(ac_space=' '; set | grep ac_space) 2>&1` in
41905     *ac_space=\ *)
41906       # `set' does not quote correctly, so add quotes (double-quote
41907       # substitution turns \\\\ into \\, and sed turns \\ into \).
41908       sed -n \
41909         "s/'/'\\\\''/g;
41910           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41911       ;;
41912     *)
41913       # `set' quotes correctly as required by POSIX, so do not add quotes.
41914       sed -n \
41915         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
41916       ;;
41917     esac;
41918 } |
41919   sed '
41920      t clear
41921      : clear
41922      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41923      t end
41924      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41925      : end' >>confcache
41926 if diff $cache_file confcache >/dev/null 2>&1; then :; else
41927   if test -w $cache_file; then
41928     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41929     cat confcache >$cache_file
41930   else
41931     echo "not updating unwritable cache $cache_file"
41932   fi
41933 fi
41934 rm -f confcache
41935
41936 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41937 # Let make expand exec_prefix.
41938 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41939
41940 # VPATH may cause trouble with some makes, so we remove $(srcdir),
41941 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41942 # trailing colons and then remove the whole line if VPATH becomes empty
41943 # (actually we leave an empty line to preserve line numbers).
41944 if test "x$srcdir" = x.; then
41945   ac_vpsub='/^[  ]*VPATH[        ]*=/{
41946 s/:*\$(srcdir):*/:/;
41947 s/:*\${srcdir}:*/:/;
41948 s/:*@srcdir@:*/:/;
41949 s/^\([^=]*=[     ]*\):*/\1/;
41950 s/:*$//;
41951 s/^[^=]*=[       ]*$//;
41952 }'
41953 fi
41954
41955 DEFS=-DHAVE_CONFIG_H
41956
41957 ac_libobjs=
41958 ac_ltlibobjs=
41959 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41960   # 1. Remove the extension, and $U if already installed.
41961   ac_i=`echo "$ac_i" |
41962          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
41963   # 2. Add them.
41964   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41965   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41966 done
41967 LIBOBJS=$ac_libobjs
41968
41969 LTLIBOBJS=$ac_ltlibobjs
41970
41971
41972
41973 : ${CONFIG_STATUS=./config.status}
41974 ac_clean_files_save=$ac_clean_files
41975 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41976 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41977 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41978 cat >$CONFIG_STATUS <<_ACEOF
41979 #! $SHELL
41980 # Generated by $as_me.
41981 # Run this file to recreate the current configuration.
41982 # Compiler output produced by configure, useful for debugging
41983 # configure, is in config.log if it exists.
41984
41985 debug=false
41986 ac_cs_recheck=false
41987 ac_cs_silent=false
41988 SHELL=\${CONFIG_SHELL-$SHELL}
41989 _ACEOF
41990
41991 cat >>$CONFIG_STATUS <<\_ACEOF
41992 ## --------------------- ##
41993 ## M4sh Initialization.  ##
41994 ## --------------------- ##
41995
41996 # Be Bourne compatible
41997 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41998   emulate sh
41999   NULLCMD=:
42000   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42001   # is contrary to our usage.  Disable this feature.
42002   alias -g '${1+"$@"}'='"$@"'
42003 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42004   set -o posix
42005 fi
42006 DUALCASE=1; export DUALCASE # for MKS sh
42007
42008 # Support unset when possible.
42009 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42010   as_unset=unset
42011 else
42012   as_unset=false
42013 fi
42014
42015
42016 # Work around bugs in pre-3.0 UWIN ksh.
42017 $as_unset ENV MAIL MAILPATH
42018 PS1='$ '
42019 PS2='> '
42020 PS4='+ '
42021
42022 # NLS nuisances.
42023 for as_var in \
42024   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42025   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42026   LC_TELEPHONE LC_TIME
42027 do
42028   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42029     eval $as_var=C; export $as_var
42030   else
42031     $as_unset $as_var
42032   fi
42033 done
42034
42035 # Required to use basename.
42036 if expr a : '\(a\)' >/dev/null 2>&1; then
42037   as_expr=expr
42038 else
42039   as_expr=false
42040 fi
42041
42042 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42043   as_basename=basename
42044 else
42045   as_basename=false
42046 fi
42047
42048
42049 # Name of the executable.
42050 as_me=`$as_basename "$0" ||
42051 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42052          X"$0" : 'X\(//\)$' \| \
42053          X"$0" : 'X\(/\)$' \| \
42054          .     : '\(.\)' 2>/dev/null ||
42055 echo X/"$0" |
42056     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42057           /^X\/\(\/\/\)$/{ s//\1/; q; }
42058           /^X\/\(\/\).*/{ s//\1/; q; }
42059           s/.*/./; q'`
42060
42061
42062 # PATH needs CR, and LINENO needs CR and PATH.
42063 # Avoid depending upon Character Ranges.
42064 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42065 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42066 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42067 as_cr_digits='0123456789'
42068 as_cr_alnum=$as_cr_Letters$as_cr_digits
42069
42070 # The user is always right.
42071 if test "${PATH_SEPARATOR+set}" != set; then
42072   echo "#! /bin/sh" >conf$$.sh
42073   echo  "exit 0"   >>conf$$.sh
42074   chmod +x conf$$.sh
42075   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42076     PATH_SEPARATOR=';'
42077   else
42078     PATH_SEPARATOR=:
42079   fi
42080   rm -f conf$$.sh
42081 fi
42082
42083
42084   as_lineno_1=$LINENO
42085   as_lineno_2=$LINENO
42086   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42087   test "x$as_lineno_1" != "x$as_lineno_2" &&
42088   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
42089   # Find who we are.  Look in the path if we contain no path at all
42090   # relative or not.
42091   case $0 in
42092     *[\\/]* ) as_myself=$0 ;;
42093     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42094 for as_dir in $PATH
42095 do
42096   IFS=$as_save_IFS
42097   test -z "$as_dir" && as_dir=.
42098   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42099 done
42100
42101        ;;
42102   esac
42103   # We did not find ourselves, most probably we were run as `sh COMMAND'
42104   # in which case we are not to be found in the path.
42105   if test "x$as_myself" = x; then
42106     as_myself=$0
42107   fi
42108   if test ! -f "$as_myself"; then
42109     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42110 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42111    { (exit 1); exit 1; }; }
42112   fi
42113   case $CONFIG_SHELL in
42114   '')
42115     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42116 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42117 do
42118   IFS=$as_save_IFS
42119   test -z "$as_dir" && as_dir=.
42120   for as_base in sh bash ksh sh5; do
42121          case $as_dir in
42122          /*)
42123            if ("$as_dir/$as_base" -c '
42124   as_lineno_1=$LINENO
42125   as_lineno_2=$LINENO
42126   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42127   test "x$as_lineno_1" != "x$as_lineno_2" &&
42128   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
42129              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
42130              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
42131              CONFIG_SHELL=$as_dir/$as_base
42132              export CONFIG_SHELL
42133              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
42134            fi;;
42135          esac
42136        done
42137 done
42138 ;;
42139   esac
42140
42141   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42142   # uniformly replaced by the line number.  The first 'sed' inserts a
42143   # line-number line before each line; the second 'sed' does the real
42144   # work.  The second script uses 'N' to pair each line-number line
42145   # with the numbered line, and appends trailing '-' during
42146   # substitution so that $LINENO is not a special case at line end.
42147   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42148   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
42149   sed '=' <$as_myself |
42150     sed '
42151       N
42152       s,$,-,
42153       : loop
42154       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
42155       t loop
42156       s,-$,,
42157       s,^['$as_cr_digits']*\n,,
42158     ' >$as_me.lineno &&
42159   chmod +x $as_me.lineno ||
42160     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
42161 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
42162    { (exit 1); exit 1; }; }
42163
42164   # Don't try to exec as it changes $[0], causing all sort of problems
42165   # (the dirname of $[0] is not the place where we might find the
42166   # original and so on.  Autoconf is especially sensible to this).
42167   . ./$as_me.lineno
42168   # Exit status is that of the last command.
42169   exit
42170 }
42171
42172
42173 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42174   *c*,-n*) ECHO_N= ECHO_C='
42175 ' ECHO_T='      ' ;;
42176   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
42177   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
42178 esac
42179
42180 if expr a : '\(a\)' >/dev/null 2>&1; then
42181   as_expr=expr
42182 else
42183   as_expr=false
42184 fi
42185
42186 rm -f conf$$ conf$$.exe conf$$.file
42187 echo >conf$$.file
42188 if ln -s conf$$.file conf$$ 2>/dev/null; then
42189   # We could just check for DJGPP; but this test a) works b) is more generic
42190   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
42191   if test -f conf$$.exe; then
42192     # Don't use ln at all; we don't have any links
42193     as_ln_s='cp -p'
42194   else
42195     as_ln_s='ln -s'
42196   fi
42197 elif ln conf$$.file conf$$ 2>/dev/null; then
42198   as_ln_s=ln
42199 else
42200   as_ln_s='cp -p'
42201 fi
42202 rm -f conf$$ conf$$.exe conf$$.file
42203
42204 if mkdir -p . 2>/dev/null; then
42205   as_mkdir_p=:
42206 else
42207   test -d ./-p && rmdir ./-p
42208   as_mkdir_p=false
42209 fi
42210
42211 as_executable_p="test -f"
42212
42213 # Sed expression to map a string onto a valid CPP name.
42214 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42215
42216 # Sed expression to map a string onto a valid variable name.
42217 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42218
42219
42220 # IFS
42221 # We need space, tab and new line, in precisely that order.
42222 as_nl='
42223 '
42224 IFS="   $as_nl"
42225
42226 # CDPATH.
42227 $as_unset CDPATH
42228
42229 exec 6>&1
42230
42231 # Open the log real soon, to keep \$[0] and so on meaningful, and to
42232 # report actual input values of CONFIG_FILES etc. instead of their
42233 # values after options handling.  Logging --version etc. is OK.
42234 exec 5>>config.log
42235 {
42236   echo
42237   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42238 ## Running $as_me. ##
42239 _ASBOX
42240 } >&5
42241 cat >&5 <<_CSEOF
42242
42243 This file was extended by wxWidgets $as_me 2.5.3, which was
42244 generated by GNU Autoconf 2.59.  Invocation command line was
42245
42246   CONFIG_FILES    = $CONFIG_FILES
42247   CONFIG_HEADERS  = $CONFIG_HEADERS
42248   CONFIG_LINKS    = $CONFIG_LINKS
42249   CONFIG_COMMANDS = $CONFIG_COMMANDS
42250   $ $0 $@
42251
42252 _CSEOF
42253 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
42254 echo >&5
42255 _ACEOF
42256
42257 # Files that config.status was made for.
42258 if test -n "$ac_config_files"; then
42259   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
42260 fi
42261
42262 if test -n "$ac_config_headers"; then
42263   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
42264 fi
42265
42266 if test -n "$ac_config_links"; then
42267   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
42268 fi
42269
42270 if test -n "$ac_config_commands"; then
42271   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
42272 fi
42273
42274 cat >>$CONFIG_STATUS <<\_ACEOF
42275
42276 ac_cs_usage="\
42277 \`$as_me' instantiates files from templates according to the
42278 current configuration.
42279
42280 Usage: $0 [OPTIONS] [FILE]...
42281
42282   -h, --help       print this help, then exit
42283   -V, --version    print version number, then exit
42284   -q, --quiet      do not print progress messages
42285   -d, --debug      don't remove temporary files
42286       --recheck    update $as_me by reconfiguring in the same conditions
42287   --file=FILE[:TEMPLATE]
42288                    instantiate the configuration file FILE
42289   --header=FILE[:TEMPLATE]
42290                    instantiate the configuration header FILE
42291
42292 Configuration files:
42293 $config_files
42294
42295 Configuration headers:
42296 $config_headers
42297
42298 Configuration commands:
42299 $config_commands
42300
42301 Report bugs to <bug-autoconf@gnu.org>."
42302 _ACEOF
42303
42304 cat >>$CONFIG_STATUS <<_ACEOF
42305 ac_cs_version="\\
42306 wxWidgets config.status 2.5.3
42307 configured by $0, generated by GNU Autoconf 2.59,
42308   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
42309
42310 Copyright (C) 2003 Free Software Foundation, Inc.
42311 This config.status script is free software; the Free Software Foundation
42312 gives unlimited permission to copy, distribute and modify it."
42313 srcdir=$srcdir
42314 INSTALL="$INSTALL"
42315 _ACEOF
42316
42317 cat >>$CONFIG_STATUS <<\_ACEOF
42318 # If no file are specified by the user, then we need to provide default
42319 # value.  By we need to know if files were specified by the user.
42320 ac_need_defaults=:
42321 while test $# != 0
42322 do
42323   case $1 in
42324   --*=*)
42325     ac_option=`expr "x$1" : 'x\([^=]*\)='`
42326     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42327     ac_shift=:
42328     ;;
42329   -*)
42330     ac_option=$1
42331     ac_optarg=$2
42332     ac_shift=shift
42333     ;;
42334   *) # This is not an option, so the user has probably given explicit
42335      # arguments.
42336      ac_option=$1
42337      ac_need_defaults=false;;
42338   esac
42339
42340   case $ac_option in
42341   # Handling of the options.
42342 _ACEOF
42343 cat >>$CONFIG_STATUS <<\_ACEOF
42344   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42345     ac_cs_recheck=: ;;
42346   --version | --vers* | -V )
42347     echo "$ac_cs_version"; exit 0 ;;
42348   --he | --h)
42349     # Conflict between --help and --header
42350     { { echo "$as_me:$LINENO: error: ambiguous option: $1
42351 Try \`$0 --help' for more information." >&5
42352 echo "$as_me: error: ambiguous option: $1
42353 Try \`$0 --help' for more information." >&2;}
42354    { (exit 1); exit 1; }; };;
42355   --help | --hel | -h )
42356     echo "$ac_cs_usage"; exit 0 ;;
42357   --debug | --d* | -d )
42358     debug=: ;;
42359   --file | --fil | --fi | --f )
42360     $ac_shift
42361     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42362     ac_need_defaults=false;;
42363   --header | --heade | --head | --hea )
42364     $ac_shift
42365     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42366     ac_need_defaults=false;;
42367   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42368   | -silent | --silent | --silen | --sile | --sil | --si | --s)
42369     ac_cs_silent=: ;;
42370
42371   # This is an error.
42372   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42373 Try \`$0 --help' for more information." >&5
42374 echo "$as_me: error: unrecognized option: $1
42375 Try \`$0 --help' for more information." >&2;}
42376    { (exit 1); exit 1; }; } ;;
42377
42378   *) ac_config_targets="$ac_config_targets $1" ;;
42379
42380   esac
42381   shift
42382 done
42383
42384 ac_configure_extra_args=
42385
42386 if $ac_cs_silent; then
42387   exec 6>/dev/null
42388   ac_configure_extra_args="$ac_configure_extra_args --silent"
42389 fi
42390
42391 _ACEOF
42392 cat >>$CONFIG_STATUS <<_ACEOF
42393 if \$ac_cs_recheck; then
42394   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42395   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42396 fi
42397
42398 _ACEOF
42399
42400 cat >>$CONFIG_STATUS <<_ACEOF
42401 #
42402 # INIT-COMMANDS section.
42403 #
42404
42405  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42406  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42407  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42408                      LN_S="${LN_S}"
42409
42410
42411 _ACEOF
42412
42413
42414
42415 cat >>$CONFIG_STATUS <<\_ACEOF
42416 for ac_config_target in $ac_config_targets
42417 do
42418   case "$ac_config_target" in
42419   # Handling of arguments.
42420   "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
42421   "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
42422   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
42423   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42424   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
42425   "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
42426   "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
42427   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42428 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42429    { (exit 1); exit 1; }; };;
42430   esac
42431 done
42432
42433 # If the user did not use the arguments to specify the items to instantiate,
42434 # then the envvar interface is used.  Set only those that are not.
42435 # We use the long form for the default assignment because of an extremely
42436 # bizarre bug on SunOS 4.1.3.
42437 if $ac_need_defaults; then
42438   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42439   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42440   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42441 fi
42442
42443 # Have a temporary directory for convenience.  Make it in the build tree
42444 # simply because there is no reason to put it here, and in addition,
42445 # creating and moving files from /tmp can sometimes cause problems.
42446 # Create a temporary directory, and hook for its removal unless debugging.
42447 $debug ||
42448 {
42449   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42450   trap '{ (exit 1); exit 1; }' 1 2 13 15
42451 }
42452
42453 # Create a (secure) tmp directory for tmp files.
42454
42455 {
42456   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42457   test -n "$tmp" && test -d "$tmp"
42458 }  ||
42459 {
42460   tmp=./confstat$$-$RANDOM
42461   (umask 077 && mkdir $tmp)
42462 } ||
42463 {
42464    echo "$me: cannot create a temporary directory in ." >&2
42465    { (exit 1); exit 1; }
42466 }
42467
42468 _ACEOF
42469
42470 cat >>$CONFIG_STATUS <<_ACEOF
42471
42472 #
42473 # CONFIG_FILES section.
42474 #
42475
42476 # No need to generate the scripts if there are no CONFIG_FILES.
42477 # This happens for instance when ./config.status config.h
42478 if test -n "\$CONFIG_FILES"; then
42479   # Protect against being on the right side of a sed subst in config.status.
42480   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42481    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42482 s,@SHELL@,$SHELL,;t t
42483 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42484 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42485 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42486 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42487 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42488 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42489 s,@exec_prefix@,$exec_prefix,;t t
42490 s,@prefix@,$prefix,;t t
42491 s,@program_transform_name@,$program_transform_name,;t t
42492 s,@bindir@,$bindir,;t t
42493 s,@sbindir@,$sbindir,;t t
42494 s,@libexecdir@,$libexecdir,;t t
42495 s,@datadir@,$datadir,;t t
42496 s,@sysconfdir@,$sysconfdir,;t t
42497 s,@sharedstatedir@,$sharedstatedir,;t t
42498 s,@localstatedir@,$localstatedir,;t t
42499 s,@libdir@,$libdir,;t t
42500 s,@includedir@,$includedir,;t t
42501 s,@oldincludedir@,$oldincludedir,;t t
42502 s,@infodir@,$infodir,;t t
42503 s,@mandir@,$mandir,;t t
42504 s,@build_alias@,$build_alias,;t t
42505 s,@host_alias@,$host_alias,;t t
42506 s,@target_alias@,$target_alias,;t t
42507 s,@DEFS@,$DEFS,;t t
42508 s,@ECHO_C@,$ECHO_C,;t t
42509 s,@ECHO_N@,$ECHO_N,;t t
42510 s,@ECHO_T@,$ECHO_T,;t t
42511 s,@LIBS@,$LIBS,;t t
42512 s,@build@,$build,;t t
42513 s,@build_cpu@,$build_cpu,;t t
42514 s,@build_vendor@,$build_vendor,;t t
42515 s,@build_os@,$build_os,;t t
42516 s,@host@,$host,;t t
42517 s,@host_cpu@,$host_cpu,;t t
42518 s,@host_vendor@,$host_vendor,;t t
42519 s,@host_os@,$host_os,;t t
42520 s,@target@,$target,;t t
42521 s,@target_cpu@,$target_cpu,;t t
42522 s,@target_vendor@,$target_vendor,;t t
42523 s,@target_os@,$target_os,;t t
42524 s,@CC@,$CC,;t t
42525 s,@CFLAGS@,$CFLAGS,;t t
42526 s,@LDFLAGS@,$LDFLAGS,;t t
42527 s,@CPPFLAGS@,$CPPFLAGS,;t t
42528 s,@ac_ct_CC@,$ac_ct_CC,;t t
42529 s,@EXEEXT@,$EXEEXT,;t t
42530 s,@OBJEXT@,$OBJEXT,;t t
42531 s,@CPP@,$CPP,;t t
42532 s,@EGREP@,$EGREP,;t t
42533 s,@CXX@,$CXX,;t t
42534 s,@CXXFLAGS@,$CXXFLAGS,;t t
42535 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42536 s,@RANLIB@,$RANLIB,;t t
42537 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42538 s,@AR@,$AR,;t t
42539 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42540 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42541 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42542 s,@STRIP@,$STRIP,;t t
42543 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42544 s,@LN_S@,$LN_S,;t t
42545 s,@CXXCPP@,$CXXCPP,;t t
42546 s,@subdirs@,$subdirs,;t t
42547 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42548 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42549 s,@GTK_LIBS@,$GTK_LIBS,;t t
42550 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
42551 s,@X_CFLAGS@,$X_CFLAGS,;t t
42552 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42553 s,@X_LIBS@,$X_LIBS,;t t
42554 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42555 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42556 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
42557 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42558 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
42559 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42560 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42561 s,@RESCOMP@,$RESCOMP,;t t
42562 s,@DEREZ@,$DEREZ,;t t
42563 s,@SETFILE@,$SETFILE,;t t
42564 s,@LIBICONV@,$LIBICONV,;t t
42565 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42566 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42567 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42568 s,@SDL_LIBS@,$SDL_LIBS,;t t
42569 s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
42570 s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
42571 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42572 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42573 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42574 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42575 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42576 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42577 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42578 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42579 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42580 s,@VENDOR@,$VENDOR,;t t
42581 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
42582 s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
42583 s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
42584 s,@WXUNIV@,$WXUNIV,;t t
42585 s,@MONOLITHIC@,$MONOLITHIC,;t t
42586 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42587 s,@EXTRALIBS@,$EXTRALIBS,;t t
42588 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42589 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42590 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42591 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42592 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42593 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42594 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
42595 s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
42596 s,@UNICODE@,$UNICODE,;t t
42597 s,@BUILD@,$BUILD,;t t
42598 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42599 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
42600 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42601 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42602 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42603 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42604 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42605 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42606 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42607 s,@SET_MAKE@,$SET_MAKE,;t t
42608 s,@MAKE_SET@,$MAKE_SET,;t t
42609 s,@ac_ct_AR@,$ac_ct_AR,;t t
42610 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42611 s,@NM@,$NM,;t t
42612 s,@ac_ct_NM@,$ac_ct_NM,;t t
42613 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42614 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42615 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42616 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42617 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42618 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
42619 s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
42620 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42621 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
42622 s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
42623 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42624 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42625 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42626 s,@LIBPREFIX@,$LIBPREFIX,;t t
42627 s,@LIBEXT@,$LIBEXT,;t t
42628 s,@DLLPREFIX@,$DLLPREFIX,;t t
42629 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42630 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42631 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42632 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42633 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42634 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42635 s,@PIC_FLAG@,$PIC_FLAG,;t t
42636 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42637 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42638 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42639 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42640 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42641 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42642 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42643 s,@GCC_PCH@,$GCC_PCH,;t t
42644 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42645 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42646 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42647 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42648 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42649 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42650 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42651 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42652 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42653 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42654 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42655 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42656 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42657 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42658 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42659 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42660 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42661 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42662 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
42663 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
42664 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
42665 s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
42666 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42667 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42668 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
42669 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
42670 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
42671 s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
42672 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42673 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42674 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42675 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42676 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42677 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42678 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42679 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
42680 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
42681 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42682 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42683 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
42684 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
42685 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42686 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42687 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
42688 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42689 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
42690 s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
42691 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42692 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42693 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42694 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42695 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42696 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42697 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42698 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42699 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
42700 s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
42701 s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
42702 s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
42703 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42704 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42705 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42706 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42707 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42708 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42709 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42710 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42711 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42712 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
42713 s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
42714 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
42715 s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
42716 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42717 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42718 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42719 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42720 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42721 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42722 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42723 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42724 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42725 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42726 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42727 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42728 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42729 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42730 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42731 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42732 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42733 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
42734 s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42735 s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42736 s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
42737 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42738 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42739 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42740 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42741 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42742 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42743 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42744 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42745 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42746 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42747 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42748 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42749 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
42750 s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
42751 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42752 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42753 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42754 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42755 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
42756 s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
42757 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
42758 s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
42759 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42760 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42761 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42762 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42763 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42764 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42765 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42766 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
42767 s,@SHARED@,$SHARED,;t t
42768 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42769 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
42770 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42771 s,@USE_GUI@,$USE_GUI,;t t
42772 s,@AFMINSTALL@,$AFMINSTALL,;t t
42773 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42774 s,@TOOLKIT@,$TOOLKIT,;t t
42775 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
42776 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
42777 s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
42778 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42779 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
42780 s,@cross_compiling@,$cross_compiling,;t t
42781 s,@WIDGET_SET@,$WIDGET_SET,;t t
42782 s,@WX_RELEASE@,$WX_RELEASE,;t t
42783 s,@WX_VERSION@,$WX_VERSION,;t t
42784 s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
42785 s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
42786 s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
42787 s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
42788 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42789 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42790 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42791 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
42792 s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
42793 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42794 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
42795 s,@EXE_LINKER@,$EXE_LINKER,;t t
42796 s,@GUIDIST@,$GUIDIST,;t t
42797 s,@DISTDIR@,$DISTDIR,;t t
42798 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42799 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
42800 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42801 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42802 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42803 s,@RESFLAGS@,$RESFLAGS,;t t
42804 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42805 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42806 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42807 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42808 s,@MACRESCOMP@,$MACRESCOMP,;t t
42809 s,@MACSETFILE@,$MACSETFILE,;t t
42810 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42811 s,@GCC@,$GCC,;t t
42812 s,@DLLTOOL@,$DLLTOOL,;t t
42813 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42814 s,@LIBOBJS@,$LIBOBJS,;t t
42815 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42816 CEOF
42817
42818 _ACEOF
42819
42820   cat >>$CONFIG_STATUS <<\_ACEOF
42821   # Split the substitutions into bite-sized pieces for seds with
42822   # small command number limits, like on Digital OSF/1 and HP-UX.
42823   ac_max_sed_lines=48
42824   ac_sed_frag=1 # Number of current file.
42825   ac_beg=1 # First line for current file.
42826   ac_end=$ac_max_sed_lines # Line after last line for current file.
42827   ac_more_lines=:
42828   ac_sed_cmds=
42829   while $ac_more_lines; do
42830     if test $ac_beg -gt 1; then
42831       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42832     else
42833       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42834     fi
42835     if test ! -s $tmp/subs.frag; then
42836       ac_more_lines=false
42837     else
42838       # The purpose of the label and of the branching condition is to
42839       # speed up the sed processing (if there are no `@' at all, there
42840       # is no need to browse any of the substitutions).
42841       # These are the two extra sed commands mentioned above.
42842       (echo ':t
42843   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42844       if test -z "$ac_sed_cmds"; then
42845         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
42846       else
42847         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
42848       fi
42849       ac_sed_frag=`expr $ac_sed_frag + 1`
42850       ac_beg=$ac_end
42851       ac_end=`expr $ac_end + $ac_max_sed_lines`
42852     fi
42853   done
42854   if test -z "$ac_sed_cmds"; then
42855     ac_sed_cmds=cat
42856   fi
42857 fi # test -n "$CONFIG_FILES"
42858
42859 _ACEOF
42860 cat >>$CONFIG_STATUS <<\_ACEOF
42861 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42862   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42863   case $ac_file in
42864   - | *:- | *:-:* ) # input from stdin
42865         cat >$tmp/stdin
42866         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42867         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42868   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42869         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42870   * )   ac_file_in=$ac_file.in ;;
42871   esac
42872
42873   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42874   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42875 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42876          X"$ac_file" : 'X\(//\)[^/]' \| \
42877          X"$ac_file" : 'X\(//\)$' \| \
42878          X"$ac_file" : 'X\(/\)' \| \
42879          .     : '\(.\)' 2>/dev/null ||
42880 echo X"$ac_file" |
42881     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42882           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42883           /^X\(\/\/\)$/{ s//\1/; q; }
42884           /^X\(\/\).*/{ s//\1/; q; }
42885           s/.*/./; q'`
42886   { if $as_mkdir_p; then
42887     mkdir -p "$ac_dir"
42888   else
42889     as_dir="$ac_dir"
42890     as_dirs=
42891     while test ! -d "$as_dir"; do
42892       as_dirs="$as_dir $as_dirs"
42893       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42894 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42895          X"$as_dir" : 'X\(//\)[^/]' \| \
42896          X"$as_dir" : 'X\(//\)$' \| \
42897          X"$as_dir" : 'X\(/\)' \| \
42898          .     : '\(.\)' 2>/dev/null ||
42899 echo X"$as_dir" |
42900     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42901           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42902           /^X\(\/\/\)$/{ s//\1/; q; }
42903           /^X\(\/\).*/{ s//\1/; q; }
42904           s/.*/./; q'`
42905     done
42906     test ! -n "$as_dirs" || mkdir $as_dirs
42907   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42908 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42909    { (exit 1); exit 1; }; }; }
42910
42911   ac_builddir=.
42912
42913 if test "$ac_dir" != .; then
42914   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42915   # A "../" for each directory in $ac_dir_suffix.
42916   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42917 else
42918   ac_dir_suffix= ac_top_builddir=
42919 fi
42920
42921 case $srcdir in
42922   .)  # No --srcdir option.  We are building in place.
42923     ac_srcdir=.
42924     if test -z "$ac_top_builddir"; then
42925        ac_top_srcdir=.
42926     else
42927        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42928     fi ;;
42929   [\\/]* | ?:[\\/]* )  # Absolute path.
42930     ac_srcdir=$srcdir$ac_dir_suffix;
42931     ac_top_srcdir=$srcdir ;;
42932   *) # Relative path.
42933     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42934     ac_top_srcdir=$ac_top_builddir$srcdir ;;
42935 esac
42936
42937 # Do not use `cd foo && pwd` to compute absolute paths, because
42938 # the directories may not exist.
42939 case `pwd` in
42940 .) ac_abs_builddir="$ac_dir";;
42941 *)
42942   case "$ac_dir" in
42943   .) ac_abs_builddir=`pwd`;;
42944   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42945   *) ac_abs_builddir=`pwd`/"$ac_dir";;
42946   esac;;
42947 esac
42948 case $ac_abs_builddir in
42949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
42950 *)
42951   case ${ac_top_builddir}. in
42952   .) ac_abs_top_builddir=$ac_abs_builddir;;
42953   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42954   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42955   esac;;
42956 esac
42957 case $ac_abs_builddir in
42958 .) ac_abs_srcdir=$ac_srcdir;;
42959 *)
42960   case $ac_srcdir in
42961   .) ac_abs_srcdir=$ac_abs_builddir;;
42962   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42963   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42964   esac;;
42965 esac
42966 case $ac_abs_builddir in
42967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
42968 *)
42969   case $ac_top_srcdir in
42970   .) ac_abs_top_srcdir=$ac_abs_builddir;;
42971   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42972   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42973   esac;;
42974 esac
42975
42976
42977   case $INSTALL in
42978   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42979   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42980   esac
42981
42982   # Let's still pretend it is `configure' which instantiates (i.e., don't
42983   # use $as_me), people would be surprised to read:
42984   #    /* config.h.  Generated by config.status.  */
42985   if test x"$ac_file" = x-; then
42986     configure_input=
42987   else
42988     configure_input="$ac_file.  "
42989   fi
42990   configure_input=$configure_input"Generated from `echo $ac_file_in |
42991                                      sed 's,.*/,,'` by configure."
42992
42993   # First look for the input files in the build tree, otherwise in the
42994   # src tree.
42995   ac_file_inputs=`IFS=:
42996     for f in $ac_file_in; do
42997       case $f in
42998       -) echo $tmp/stdin ;;
42999       [\\/$]*)
43000          # Absolute (can't be DOS-style, as IFS=:)
43001          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43002 echo "$as_me: error: cannot find input file: $f" >&2;}
43003    { (exit 1); exit 1; }; }
43004          echo "$f";;
43005       *) # Relative
43006          if test -f "$f"; then
43007            # Build tree
43008            echo "$f"
43009          elif test -f "$srcdir/$f"; then
43010            # Source tree
43011            echo "$srcdir/$f"
43012          else
43013            # /dev/null tree
43014            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43015 echo "$as_me: error: cannot find input file: $f" >&2;}
43016    { (exit 1); exit 1; }; }
43017          fi;;
43018       esac
43019     done` || { (exit 1); exit 1; }
43020
43021   if test x"$ac_file" != x-; then
43022     { echo "$as_me:$LINENO: creating $ac_file" >&5
43023 echo "$as_me: creating $ac_file" >&6;}
43024     rm -f "$ac_file"
43025   fi
43026 _ACEOF
43027 cat >>$CONFIG_STATUS <<_ACEOF
43028   sed "$ac_vpsub
43029 $extrasub
43030 _ACEOF
43031 cat >>$CONFIG_STATUS <<\_ACEOF
43032 :t
43033 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43034 s,@configure_input@,$configure_input,;t t
43035 s,@srcdir@,$ac_srcdir,;t t
43036 s,@abs_srcdir@,$ac_abs_srcdir,;t t
43037 s,@top_srcdir@,$ac_top_srcdir,;t t
43038 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43039 s,@builddir@,$ac_builddir,;t t
43040 s,@abs_builddir@,$ac_abs_builddir,;t t
43041 s,@top_builddir@,$ac_top_builddir,;t t
43042 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43043 s,@INSTALL@,$ac_INSTALL,;t t
43044 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43045   rm -f $tmp/stdin
43046   if test x"$ac_file" != x-; then
43047     mv $tmp/out $ac_file
43048   else
43049     cat $tmp/out
43050     rm -f $tmp/out
43051   fi
43052
43053   # Run the commands associated with the file.
43054   case $ac_file in
43055     lib/wx/config/${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
43056     lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
43057   esac
43058 done
43059 _ACEOF
43060 cat >>$CONFIG_STATUS <<\_ACEOF
43061
43062 #
43063 # CONFIG_HEADER section.
43064 #
43065
43066 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43067 # NAME is the cpp macro being defined and VALUE is the value it is being given.
43068 #
43069 # ac_d sets the value in "#define NAME VALUE" lines.
43070 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
43071 ac_dB='[         ].*$,\1#\2'
43072 ac_dC=' '
43073 ac_dD=',;t'
43074 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
43075 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
43076 ac_uB='$,\1#\2define\3'
43077 ac_uC=' '
43078 ac_uD=',;t'
43079
43080 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43081   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43082   case $ac_file in
43083   - | *:- | *:-:* ) # input from stdin
43084         cat >$tmp/stdin
43085         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43086         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43087   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43088         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43089   * )   ac_file_in=$ac_file.in ;;
43090   esac
43091
43092   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43093 echo "$as_me: creating $ac_file" >&6;}
43094
43095   # First look for the input files in the build tree, otherwise in the
43096   # src tree.
43097   ac_file_inputs=`IFS=:
43098     for f in $ac_file_in; do
43099       case $f in
43100       -) echo $tmp/stdin ;;
43101       [\\/$]*)
43102          # Absolute (can't be DOS-style, as IFS=:)
43103          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43104 echo "$as_me: error: cannot find input file: $f" >&2;}
43105    { (exit 1); exit 1; }; }
43106          # Do quote $f, to prevent DOS paths from being IFS'd.
43107          echo "$f";;
43108       *) # Relative
43109          if test -f "$f"; then
43110            # Build tree
43111            echo "$f"
43112          elif test -f "$srcdir/$f"; then
43113            # Source tree
43114            echo "$srcdir/$f"
43115          else
43116            # /dev/null tree
43117            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43118 echo "$as_me: error: cannot find input file: $f" >&2;}
43119    { (exit 1); exit 1; }; }
43120          fi;;
43121       esac
43122     done` || { (exit 1); exit 1; }
43123   # Remove the trailing spaces.
43124   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
43125
43126 _ACEOF
43127
43128 # Transform confdefs.h into two sed scripts, `conftest.defines' and
43129 # `conftest.undefs', that substitutes the proper values into
43130 # config.h.in to produce config.h.  The first handles `#define'
43131 # templates, and the second `#undef' templates.
43132 # And first: Protect against being on the right side of a sed subst in
43133 # config.status.  Protect against being in an unquoted here document
43134 # in config.status.
43135 rm -f conftest.defines conftest.undefs
43136 # Using a here document instead of a string reduces the quoting nightmare.
43137 # Putting comments in sed scripts is not portable.
43138 #
43139 # `end' is used to avoid that the second main sed command (meant for
43140 # 0-ary CPP macros) applies to n-ary macro definitions.
43141 # See the Autoconf documentation for `clear'.
43142 cat >confdef2sed.sed <<\_ACEOF
43143 s/[\\&,]/\\&/g
43144 s,[\\$`],\\&,g
43145 t clear
43146 : clear
43147 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
43148 t end
43149 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
43150 : end
43151 _ACEOF
43152 # If some macros were called several times there might be several times
43153 # the same #defines, which is useless.  Nevertheless, we may not want to
43154 # sort them, since we want the *last* AC-DEFINE to be honored.
43155 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43156 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43157 rm -f confdef2sed.sed
43158
43159 # This sed command replaces #undef with comments.  This is necessary, for
43160 # example, in the case of _POSIX_SOURCE, which is predefined and required
43161 # on some systems where configure will not decide to define it.
43162 cat >>conftest.undefs <<\_ACEOF
43163 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
43164 _ACEOF
43165
43166 # Break up conftest.defines because some shells have a limit on the size
43167 # of here documents, and old seds have small limits too (100 cmds).
43168 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
43169 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
43170 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43171 echo '  :' >>$CONFIG_STATUS
43172 rm -f conftest.tail
43173 while grep . conftest.defines >/dev/null
43174 do
43175   # Write a limited-size here document to $tmp/defines.sed.
43176   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43177   # Speed up: don't consider the non `#define' lines.
43178   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
43179   # Work around the forget-to-reset-the-flag bug.
43180   echo 't clr' >>$CONFIG_STATUS
43181   echo ': clr' >>$CONFIG_STATUS
43182   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43183   echo 'CEOF
43184   sed -f $tmp/defines.sed $tmp/in >$tmp/out
43185   rm -f $tmp/in
43186   mv $tmp/out $tmp/in
43187 ' >>$CONFIG_STATUS
43188   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43189   rm -f conftest.defines
43190   mv conftest.tail conftest.defines
43191 done
43192 rm -f conftest.defines
43193 echo '  fi # grep' >>$CONFIG_STATUS
43194 echo >>$CONFIG_STATUS
43195
43196 # Break up conftest.undefs because some shells have a limit on the size
43197 # of here documents, and old seds have small limits too (100 cmds).
43198 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
43199 rm -f conftest.tail
43200 while grep . conftest.undefs >/dev/null
43201 do
43202   # Write a limited-size here document to $tmp/undefs.sed.
43203   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43204   # Speed up: don't consider the non `#undef'
43205   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
43206   # Work around the forget-to-reset-the-flag bug.
43207   echo 't clr' >>$CONFIG_STATUS
43208   echo ': clr' >>$CONFIG_STATUS
43209   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43210   echo 'CEOF
43211   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43212   rm -f $tmp/in
43213   mv $tmp/out $tmp/in
43214 ' >>$CONFIG_STATUS
43215   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43216   rm -f conftest.undefs
43217   mv conftest.tail conftest.undefs
43218 done
43219 rm -f conftest.undefs
43220
43221 cat >>$CONFIG_STATUS <<\_ACEOF
43222   # Let's still pretend it is `configure' which instantiates (i.e., don't
43223   # use $as_me), people would be surprised to read:
43224   #    /* config.h.  Generated by config.status.  */
43225   if test x"$ac_file" = x-; then
43226     echo "/* Generated by configure.  */" >$tmp/config.h
43227   else
43228     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
43229   fi
43230   cat $tmp/in >>$tmp/config.h
43231   rm -f $tmp/in
43232   if test x"$ac_file" != x-; then
43233     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43234       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43235 echo "$as_me: $ac_file is unchanged" >&6;}
43236     else
43237       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43238 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43239          X"$ac_file" : 'X\(//\)[^/]' \| \
43240          X"$ac_file" : 'X\(//\)$' \| \
43241          X"$ac_file" : 'X\(/\)' \| \
43242          .     : '\(.\)' 2>/dev/null ||
43243 echo X"$ac_file" |
43244     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43245           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43246           /^X\(\/\/\)$/{ s//\1/; q; }
43247           /^X\(\/\).*/{ s//\1/; q; }
43248           s/.*/./; q'`
43249       { if $as_mkdir_p; then
43250     mkdir -p "$ac_dir"
43251   else
43252     as_dir="$ac_dir"
43253     as_dirs=
43254     while test ! -d "$as_dir"; do
43255       as_dirs="$as_dir $as_dirs"
43256       as_dir=`(dirname "$as_dir") 2>/dev/null ||
43257 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43258          X"$as_dir" : 'X\(//\)[^/]' \| \
43259          X"$as_dir" : 'X\(//\)$' \| \
43260          X"$as_dir" : 'X\(/\)' \| \
43261          .     : '\(.\)' 2>/dev/null ||
43262 echo X"$as_dir" |
43263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43264           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43265           /^X\(\/\/\)$/{ s//\1/; q; }
43266           /^X\(\/\).*/{ s//\1/; q; }
43267           s/.*/./; q'`
43268     done
43269     test ! -n "$as_dirs" || mkdir $as_dirs
43270   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43271 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43272    { (exit 1); exit 1; }; }; }
43273
43274       rm -f $ac_file
43275       mv $tmp/config.h $ac_file
43276     fi
43277   else
43278     cat $tmp/config.h
43279     rm -f $tmp/config.h
43280   fi
43281 done
43282 _ACEOF
43283 cat >>$CONFIG_STATUS <<\_ACEOF
43284
43285 #
43286 # CONFIG_COMMANDS section.
43287 #
43288 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43289   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43290   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43291   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43292 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43293          X"$ac_dest" : 'X\(//\)[^/]' \| \
43294          X"$ac_dest" : 'X\(//\)$' \| \
43295          X"$ac_dest" : 'X\(/\)' \| \
43296          .     : '\(.\)' 2>/dev/null ||
43297 echo X"$ac_dest" |
43298     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43299           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43300           /^X\(\/\/\)$/{ s//\1/; q; }
43301           /^X\(\/\).*/{ s//\1/; q; }
43302           s/.*/./; q'`
43303   { if $as_mkdir_p; then
43304     mkdir -p "$ac_dir"
43305   else
43306     as_dir="$ac_dir"
43307     as_dirs=
43308     while test ! -d "$as_dir"; do
43309       as_dirs="$as_dir $as_dirs"
43310       as_dir=`(dirname "$as_dir") 2>/dev/null ||
43311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43312          X"$as_dir" : 'X\(//\)[^/]' \| \
43313          X"$as_dir" : 'X\(//\)$' \| \
43314          X"$as_dir" : 'X\(/\)' \| \
43315          .     : '\(.\)' 2>/dev/null ||
43316 echo X"$as_dir" |
43317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43318           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43319           /^X\(\/\/\)$/{ s//\1/; q; }
43320           /^X\(\/\).*/{ s//\1/; q; }
43321           s/.*/./; q'`
43322     done
43323     test ! -n "$as_dirs" || mkdir $as_dirs
43324   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43325 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43326    { (exit 1); exit 1; }; }; }
43327
43328   ac_builddir=.
43329
43330 if test "$ac_dir" != .; then
43331   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43332   # A "../" for each directory in $ac_dir_suffix.
43333   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43334 else
43335   ac_dir_suffix= ac_top_builddir=
43336 fi
43337
43338 case $srcdir in
43339   .)  # No --srcdir option.  We are building in place.
43340     ac_srcdir=.
43341     if test -z "$ac_top_builddir"; then
43342        ac_top_srcdir=.
43343     else
43344        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43345     fi ;;
43346   [\\/]* | ?:[\\/]* )  # Absolute path.
43347     ac_srcdir=$srcdir$ac_dir_suffix;
43348     ac_top_srcdir=$srcdir ;;
43349   *) # Relative path.
43350     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43351     ac_top_srcdir=$ac_top_builddir$srcdir ;;
43352 esac
43353
43354 # Do not use `cd foo && pwd` to compute absolute paths, because
43355 # the directories may not exist.
43356 case `pwd` in
43357 .) ac_abs_builddir="$ac_dir";;
43358 *)
43359   case "$ac_dir" in
43360   .) ac_abs_builddir=`pwd`;;
43361   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43362   *) ac_abs_builddir=`pwd`/"$ac_dir";;
43363   esac;;
43364 esac
43365 case $ac_abs_builddir in
43366 .) ac_abs_top_builddir=${ac_top_builddir}.;;
43367 *)
43368   case ${ac_top_builddir}. in
43369   .) ac_abs_top_builddir=$ac_abs_builddir;;
43370   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43371   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43372   esac;;
43373 esac
43374 case $ac_abs_builddir in
43375 .) ac_abs_srcdir=$ac_srcdir;;
43376 *)
43377   case $ac_srcdir in
43378   .) ac_abs_srcdir=$ac_abs_builddir;;
43379   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43380   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43381   esac;;
43382 esac
43383 case $ac_abs_builddir in
43384 .) ac_abs_top_srcdir=$ac_top_srcdir;;
43385 *)
43386   case $ac_top_srcdir in
43387   .) ac_abs_top_srcdir=$ac_abs_builddir;;
43388   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43389   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43390   esac;;
43391 esac
43392
43393
43394   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43395 echo "$as_me: executing $ac_dest commands" >&6;}
43396   case $ac_dest in
43397     wx-config )  rm -f wx-config
43398                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
43399                     ;;
43400   esac
43401 done
43402 _ACEOF
43403
43404 cat >>$CONFIG_STATUS <<\_ACEOF
43405
43406 { (exit 0); exit 0; }
43407 _ACEOF
43408 chmod +x $CONFIG_STATUS
43409 ac_clean_files=$ac_clean_files_save
43410
43411
43412 # configure is writing to config.log, and then calls config.status.
43413 # config.status does its own redirection, appending to config.log.
43414 # Unfortunately, on DOS this fails, as config.log is still kept open
43415 # by configure, so config.status won't be able to write to it; its
43416 # output is simply discarded.  So we exec the FD to /dev/null,
43417 # effectively closing config.log, so it can be properly (re)opened and
43418 # appended to by config.status.  When coming back to configure, we
43419 # need to make the FD available again.
43420 if test "$no_create" != yes; then
43421   ac_cs_success=:
43422   ac_config_status_args=
43423   test "$silent" = yes &&
43424     ac_config_status_args="$ac_config_status_args --quiet"
43425   exec 5>/dev/null
43426   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43427   exec 5>>config.log
43428   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43429   # would make configure fail if this is the last instruction.
43430   $ac_cs_success || { (exit 1); exit 1; }
43431 fi
43432
43433 #
43434 # CONFIG_SUBDIRS section.
43435 #
43436 if test "$no_recursion" != yes; then
43437
43438   # Remove --cache-file and --srcdir arguments so they do not pile up.
43439   ac_sub_configure_args=
43440   ac_prev=
43441   for ac_arg in $ac_configure_args; do
43442     if test -n "$ac_prev"; then
43443       ac_prev=
43444       continue
43445     fi
43446     case $ac_arg in
43447     -cache-file | --cache-file | --cache-fil | --cache-fi \
43448     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43449       ac_prev=cache_file ;;
43450     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43451     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43452     | --c=*)
43453       ;;
43454     --config-cache | -C)
43455       ;;
43456     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43457       ac_prev=srcdir ;;
43458     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43459       ;;
43460     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43461       ac_prev=prefix ;;
43462     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43463       ;;
43464     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43465     esac
43466   done
43467
43468   # Always prepend --prefix to ensure using the same prefix
43469   # in subdir configurations.
43470   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43471
43472   ac_popdir=`pwd`
43473   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43474
43475     # Do not complain, so a configure script can configure whichever
43476     # parts of a large source tree are present.
43477     test -d $srcdir/$ac_dir || continue
43478
43479     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43480 echo "$as_me: configuring in $ac_dir" >&6;}
43481     { if $as_mkdir_p; then
43482     mkdir -p "$ac_dir"
43483   else
43484     as_dir="$ac_dir"
43485     as_dirs=
43486     while test ! -d "$as_dir"; do
43487       as_dirs="$as_dir $as_dirs"
43488       as_dir=`(dirname "$as_dir") 2>/dev/null ||
43489 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43490          X"$as_dir" : 'X\(//\)[^/]' \| \
43491          X"$as_dir" : 'X\(//\)$' \| \
43492          X"$as_dir" : 'X\(/\)' \| \
43493          .     : '\(.\)' 2>/dev/null ||
43494 echo X"$as_dir" |
43495     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43496           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43497           /^X\(\/\/\)$/{ s//\1/; q; }
43498           /^X\(\/\).*/{ s//\1/; q; }
43499           s/.*/./; q'`
43500     done
43501     test ! -n "$as_dirs" || mkdir $as_dirs
43502   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43503 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43504    { (exit 1); exit 1; }; }; }
43505
43506     ac_builddir=.
43507
43508 if test "$ac_dir" != .; then
43509   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43510   # A "../" for each directory in $ac_dir_suffix.
43511   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43512 else
43513   ac_dir_suffix= ac_top_builddir=
43514 fi
43515
43516 case $srcdir in
43517   .)  # No --srcdir option.  We are building in place.
43518     ac_srcdir=.
43519     if test -z "$ac_top_builddir"; then
43520        ac_top_srcdir=.
43521     else
43522        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43523     fi ;;
43524   [\\/]* | ?:[\\/]* )  # Absolute path.
43525     ac_srcdir=$srcdir$ac_dir_suffix;
43526     ac_top_srcdir=$srcdir ;;
43527   *) # Relative path.
43528     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43529     ac_top_srcdir=$ac_top_builddir$srcdir ;;
43530 esac
43531
43532 # Do not use `cd foo && pwd` to compute absolute paths, because
43533 # the directories may not exist.
43534 case `pwd` in
43535 .) ac_abs_builddir="$ac_dir";;
43536 *)
43537   case "$ac_dir" in
43538   .) ac_abs_builddir=`pwd`;;
43539   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43540   *) ac_abs_builddir=`pwd`/"$ac_dir";;
43541   esac;;
43542 esac
43543 case $ac_abs_builddir in
43544 .) ac_abs_top_builddir=${ac_top_builddir}.;;
43545 *)
43546   case ${ac_top_builddir}. in
43547   .) ac_abs_top_builddir=$ac_abs_builddir;;
43548   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43549   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43550   esac;;
43551 esac
43552 case $ac_abs_builddir in
43553 .) ac_abs_srcdir=$ac_srcdir;;
43554 *)
43555   case $ac_srcdir in
43556   .) ac_abs_srcdir=$ac_abs_builddir;;
43557   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43558   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43559   esac;;
43560 esac
43561 case $ac_abs_builddir in
43562 .) ac_abs_top_srcdir=$ac_top_srcdir;;
43563 *)
43564   case $ac_top_srcdir in
43565   .) ac_abs_top_srcdir=$ac_abs_builddir;;
43566   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43567   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43568   esac;;
43569 esac
43570
43571
43572     cd $ac_dir
43573
43574     # Check for guested configure; otherwise get Cygnus style configure.
43575     if test -f $ac_srcdir/configure.gnu; then
43576       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43577     elif test -f $ac_srcdir/configure; then
43578       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43579     elif test -f $ac_srcdir/configure.in; then
43580       ac_sub_configure=$ac_configure
43581     else
43582       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43583 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43584       ac_sub_configure=
43585     fi
43586
43587     # The recursion is here.
43588     if test -n "$ac_sub_configure"; then
43589       # Make the cache file name correct relative to the subdirectory.
43590       case $cache_file in
43591       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43592       *) # Relative path.
43593         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
43594       esac
43595
43596       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43597 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43598       # The eval makes quoting arguments work.
43599       eval $ac_sub_configure $ac_sub_configure_args \
43600            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43601         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
43602 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43603    { (exit 1); exit 1; }; }
43604     fi
43605
43606     cd "$ac_popdir"
43607   done
43608 fi
43609
43610
43611 echo
43612 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
43613 echo ""
43614 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_USER:-base only}"
43615 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
43616
43617 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
43618 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
43619 echo "  Should wxWidgets be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
43620
43621 echo "  What level of wxWidgets compatibility should be enabled?"
43622 echo "                                       wxWidgets 2.2      ${WXWIN_COMPATIBILITY_2_2:-no}"
43623 echo "                                       wxWidgets 2.4      ${WXWIN_COMPATIBILITY_2_4:-yes}"
43624
43625 echo "  Which libraries should wxWidgets use?"
43626 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
43627 echo "                                       png                ${wxUSE_LIBPNG-none}"
43628 echo "                                       regex              ${wxUSE_REGEX}"
43629 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
43630 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43631 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
43632 fi
43633 echo "                                       zlib               ${wxUSE_ZLIB}"
43634 echo "                                       odbc               ${wxUSE_ODBC}"
43635 echo "                                       expat              ${wxUSE_EXPAT}"
43636 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
43637 echo "                                       sdl                ${wxUSE_LIBSDL}"
43638 echo "                                       gnomeprint         ${wxUSE_LIBGNOMEPRINT-none}"
43639
43640 echo ""
43641