Use Rob O'Connor's icons, provided under the wxWindows Licence
[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.6.0.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91   echo "#! /bin/sh" >conf$$.sh
92   echo  "exit 0"   >>conf$$.sh
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS="   $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete.  It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='wxWidgets'
272 PACKAGE_TARNAME='wxwidgets'
273 PACKAGE_VERSION='2.6.0'
274 PACKAGE_STRING='wxWidgets 2.6.0'
275 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
276
277 ac_unique_file="wx-config.in"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 #  include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 #  include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 #  include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subdirs_all="$ac_subdirs_all src/expat"
316 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT 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_GUI_1_USE_QA_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_GUI_1_USE_QA_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_MSDOS_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_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_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_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_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.6.0 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.6.0:";;
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-arcstream      use wxArchive streams
907   --enable-backtrace      use wxStackWalker class for getting backtraces
908   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
909   --enable-cmdline        use wxCmdLineParser class
910   --enable-datetime       use wxDateTime class
911   --enable-debugreport    use wxDebugReport class
912   --enable-dialupman      use dialup network classes
913   --enable-dynlib         use wxLibrary class for DLL loading
914   --enable-dynamicloader  use (new) wxDynamicLibrary class
915   --enable-exceptions     build exception-safe library
916   --enable-ffile          use wxFFile class
917   --enable-file           use wxFile class
918   --enable-filesystem     use virtual file systems classes
919   --enable-fontmap        use font encodings conversion classes
920   --enable-fs_inet        use virtual HTTP/FTP filesystems
921   --enable-fs_zip         use virtual ZIP filesystems
922   --enable-geometry       use geometry class
923   --enable-log            use logging system
924   --enable-longlong       use wxLongLong class
925   --enable-mimetype       use wxMimeTypesManager
926   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
927   --enable-snglinst       use wxSingleInstanceChecker class
928   --enable-std_iostreams  use standard C++ stream classes
929   --enable-std_string     use standard C++ string classes
930   --enable-stdpaths       use wxStandardPaths class
931   --enable-stopwatch      use wxStopWatch class
932   --enable-streams        use wxStream etc classes
933   --enable-sysoptions     use wxSystemOptions
934   --enable-textbuf        use wxTextBuffer class
935   --enable-textfile       use wxTextFile class
936   --enable-timer          use wxTimer class
937   --enable-unicode        compile wxString with Unicode support
938   --enable-sound          use wxSound class
939   --enable-mediactrl      use wxMediaCtrl class
940   --enable-wxprintfv      use wxWidgets implementation of vprintf()
941   --enable-zipstream      use wxZip streams
942   --enable-url            use wxURL class
943   --enable-protocol       use wxProtocol class
944   --enable-protocol-http  HTTP support in wxProtocol
945   --enable-protocol-ftp   FTP support in wxProtocol
946   --enable-protocol-file  FILE support in wxProtocol
947   --enable-threads        use threads
948   --enable-docview        use document view architecture
949   --enable-help           use help subsystem
950   --enable-mshtmlhelp     use MS HTML Help (win32)
951   --enable-html           use wxHTML sub-library
952   --enable-htmlhelp       use wxHTML-based help
953   --enable-xrc            use XRC resources sub-library
954   --enable-constraints    use layout-constraints system
955   --enable-printarch      use printing architecture
956   --enable-mdi            use multiple document interface architecture
957   --enable-mdidoc         use docview architecture with MDI
958   --enable-loggui         use standard GUI logger
959   --enable-logwin         use wxLogWindow
960   --enable-logdialog      use wxLogDialog
961   --enable-webkit         use wxWebKitCtrl (Mac)
962   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
963   --enable-prologio       not available; see contrib
964   --enable-resources      not available; see contrib
965   --enable-clipboard      use wxClipboard class
966   --enable-dnd            use Drag'n'Drop classes
967   --enable-metafile       use win32 metafiles
968   --enable-controls       use all usual controls
969   --enable-accel          use accelerators
970   --enable-button         use wxButton class
971   --enable-bmpbutton      use wxBitmapButton class
972   --enable-calendar       use wxCalendarCtrl class
973   --enable-caret          use wxCaret class
974   --enable-checkbox       use wxCheckBox class
975   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
976   --enable-choice         use wxChoice class
977   --enable-choicebook     use wxChoicebook class
978   --enable-combobox       use wxComboBox class
979   --enable-datepick       use wxDatePickerCtrl class
980   --enable-display        use wxDisplay class
981   --enable-gauge          use wxGauge class
982   --enable-grid           use wxGrid class
983   --enable-imaglist       use wxImageList class
984   --enable-listbook       use wxListbook class
985   --enable-listbox        use wxListBox class
986   --enable-listctrl       use wxListCtrl class
987   --enable-notebook       use wxNotebook class
988   --enable-radiobox       use wxRadioBox class
989   --enable-radiobtn       use wxRadioButton class
990   --enable-sash           use wxSashWindow class
991   --enable-scrollbar      use wxScrollBar class and scrollable windows
992   --enable-slider         use wxSlider class
993   --enable-spinbtn        use wxSpinButton class
994   --enable-spinctrl       use wxSpinCtrl class
995   --enable-splitter       use wxSplitterWindow class
996   --enable-statbmp        use wxStaticBitmap class
997   --enable-statbox        use wxStaticBox class
998   --enable-statline       use wxStaticLine class
999   --enable-stattext       use wxStaticText class
1000   --enable-statusbar      use wxStatusBar class
1001   --enable-tabdialog      use wxTabControl class
1002   --enable-textctrl       use wxTextCtrl class
1003   --enable-togglebtn      use wxToggleButton class
1004   --enable-toolbar        use wxToolBar class
1005   --enable-tbarnative     use native wxToolBar class
1006   --enable-tbarsmpl       use wxToolBarSimple class
1007   --enable-treectrl       use wxTreeCtrl class
1008   --enable-tipwindow      use wxTipWindow class
1009   --enable-popupwin       use wxPopUpWindow class
1010   --enable-commondlg      use all common dialogs
1011   --enable-choicedlg      use wxChoiceDialog
1012   --enable-coldlg         use wxColourDialog
1013   --enable-filedlg        use wxFileDialog
1014   --enable-finddlg        use wxFindReplaceDialog
1015   --enable-fontdlg        use wxFontDialog
1016   --enable-dirdlg         use wxDirDialog
1017   --enable-msgdlg         use wxMessageDialog
1018   --enable-numberdlg      use wxNumberEntryDialog
1019   --enable-splash         use wxSplashScreen
1020   --enable-textdlg        use wxTextDialog
1021   --enable-tipdlg         use startup tips
1022   --enable-progressdlg    use wxProgressDialog
1023   --enable-wizarddlg      use wxWizard
1024   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1025   --enable-miniframe      use wxMiniFrame class
1026   --enable-tooltips       use wxToolTip class
1027   --enable-splines        use spline drawing code
1028   --enable-mousewheel     use mousewheel
1029   --enable-validators     use wxValidator and derived classes
1030   --enable-busyinfo       use wxBusyInfo
1031   --enable-joystick       use wxJoystick
1032   --enable-metafiles      use wxMetaFile (Windows only)
1033   --enable-dragimage      use wxDragImage
1034   --enable-accessibility  enable accessibility support
1035   --enable-palette        use wxPalette class
1036   --enable-image          use wxImage class
1037   --enable-gif            use gif images (GIF file format)
1038   --enable-pcx            use pcx images (PCX file format)
1039   --enable-iff            use iff images (IFF file format)
1040   --enable-pnm            use pnm images (PNM file format)
1041   --enable-xpm            use xpm images (XPM file format)
1042   --enable-icocur         use Windows ICO and CUR formats
1043   --enable-official_build official build of wxWidgets (win32 DLL only)
1044   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1045   --disable-largefile     omit support for large files
1046   --disable-gtktest       do not try to compile and run a test GTK+ program
1047   --disable-gtktest       Do not try to compile and run a test GTK program
1048   --disable-sdltest       Do not try to compile and run a test SDL program
1049   --enable-omf            use OMF object format (OS/2)
1050   --disable-precomp-headers
1051                           don't use precompiled headers even if compiler can
1052
1053 Optional Packages:
1054   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1055   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1056   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1057   --with-motif            use Motif/Lesstif
1058   --with-mac              use Mac OS X
1059   --with-cocoa            use Cocoa
1060   --with-wine             use Wine
1061   --with-msw              use MS-Windows
1062   --with-pm               use OS/2 Presentation Manager
1063   --with-mgl              use SciTech MGL
1064   --with-microwin         use MicroWindows
1065   --with-x11              use X11
1066   --with-libpng           use libpng (PNG image format)
1067   --with-libjpeg          use libjpeg (JPEG file format)
1068   --with-libtiff          use libtiff (TIFF file format)
1069   --with-libxpm           use libxpm (XPM file format)
1070   --with-libmspack        use libmspack (CHM help files loading)
1071   --with-sdl              use SDL for audio on Unix
1072   --with-gnomeprint       use GNOME print for printing under Unix
1073   --with-opengl           use OpenGL (or Mesa)
1074   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1075   --with-regex            enable support for wxRegEx class
1076   --with-zlib             use zlib for LZW compression
1077   --with-odbc             use the IODBC and wxODBC classes
1078   --with-expat            enable XML support using expat parser
1079   --with-flavour=NAME     specify a name to identify this build
1080   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1081   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1082   --with-x                use the X Window System
1083   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1084   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1085   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1086   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1087   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1088
1089 Some influential environment variables:
1090   CC          C compiler command
1091   CFLAGS      C compiler flags
1092   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1093               nonstandard directory <lib dir>
1094   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1095               headers in a nonstandard directory <include dir>
1096   CPP         C preprocessor
1097   CXX         C++ compiler command
1098   CXXFLAGS    C++ compiler flags
1099   CXXCPP      C++ preprocessor
1100
1101 Use these variables to override the choices made by `configure' or to help
1102 it to find libraries and programs with nonstandard names/locations.
1103
1104 Report bugs to <wx-dev@lists.wxwidgets.org>.
1105 _ACEOF
1106 fi
1107
1108 if test "$ac_init_help" = "recursive"; then
1109   # If there are subdirs, report their specific --help.
1110   ac_popdir=`pwd`
1111   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1112     test -d $ac_dir || continue
1113     ac_builddir=.
1114
1115 if test "$ac_dir" != .; then
1116   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1117   # A "../" for each directory in $ac_dir_suffix.
1118   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1119 else
1120   ac_dir_suffix= ac_top_builddir=
1121 fi
1122
1123 case $srcdir in
1124   .)  # No --srcdir option.  We are building in place.
1125     ac_srcdir=.
1126     if test -z "$ac_top_builddir"; then
1127        ac_top_srcdir=.
1128     else
1129        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1130     fi ;;
1131   [\\/]* | ?:[\\/]* )  # Absolute path.
1132     ac_srcdir=$srcdir$ac_dir_suffix;
1133     ac_top_srcdir=$srcdir ;;
1134   *) # Relative path.
1135     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1136     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1137 esac
1138
1139 # Do not use `cd foo && pwd` to compute absolute paths, because
1140 # the directories may not exist.
1141 case `pwd` in
1142 .) ac_abs_builddir="$ac_dir";;
1143 *)
1144   case "$ac_dir" in
1145   .) ac_abs_builddir=`pwd`;;
1146   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1147   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1148   esac;;
1149 esac
1150 case $ac_abs_builddir in
1151 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1152 *)
1153   case ${ac_top_builddir}. in
1154   .) ac_abs_top_builddir=$ac_abs_builddir;;
1155   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1156   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1157   esac;;
1158 esac
1159 case $ac_abs_builddir in
1160 .) ac_abs_srcdir=$ac_srcdir;;
1161 *)
1162   case $ac_srcdir in
1163   .) ac_abs_srcdir=$ac_abs_builddir;;
1164   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1165   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1166   esac;;
1167 esac
1168 case $ac_abs_builddir in
1169 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1170 *)
1171   case $ac_top_srcdir in
1172   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1173   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1174   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1175   esac;;
1176 esac
1177
1178     cd $ac_dir
1179     # Check for guested configure; otherwise get Cygnus style configure.
1180     if test -f $ac_srcdir/configure.gnu; then
1181       echo
1182       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1183     elif test -f $ac_srcdir/configure; then
1184       echo
1185       $SHELL $ac_srcdir/configure  --help=recursive
1186     elif test -f $ac_srcdir/configure.ac ||
1187            test -f $ac_srcdir/configure.in; then
1188       echo
1189       $ac_configure --help
1190     else
1191       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1192     fi
1193     cd "$ac_popdir"
1194   done
1195 fi
1196
1197 test -n "$ac_init_help" && exit 0
1198 if $ac_init_version; then
1199   cat <<\_ACEOF
1200 wxWidgets configure 2.6.0
1201 generated by GNU Autoconf 2.59
1202
1203 Copyright (C) 2003 Free Software Foundation, Inc.
1204 This configure script is free software; the Free Software Foundation
1205 gives unlimited permission to copy, distribute and modify it.
1206 _ACEOF
1207   exit 0
1208 fi
1209 exec 5>config.log
1210 cat >&5 <<_ACEOF
1211 This file contains any messages produced by compilers while
1212 running configure, to aid debugging if configure makes a mistake.
1213
1214 It was created by wxWidgets $as_me 2.6.0, which was
1215 generated by GNU Autoconf 2.59.  Invocation command line was
1216
1217   $ $0 $@
1218
1219 _ACEOF
1220 {
1221 cat <<_ASUNAME
1222 ## --------- ##
1223 ## Platform. ##
1224 ## --------- ##
1225
1226 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1227 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1228 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1229 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1230 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1231
1232 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1233 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1234
1235 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1236 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1237 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1238 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1239 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1240 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1241 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1242
1243 _ASUNAME
1244
1245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1246 for as_dir in $PATH
1247 do
1248   IFS=$as_save_IFS
1249   test -z "$as_dir" && as_dir=.
1250   echo "PATH: $as_dir"
1251 done
1252
1253 } >&5
1254
1255 cat >&5 <<_ACEOF
1256
1257
1258 ## ----------- ##
1259 ## Core tests. ##
1260 ## ----------- ##
1261
1262 _ACEOF
1263
1264
1265 # Keep a trace of the command line.
1266 # Strip out --no-create and --no-recursion so they do not pile up.
1267 # Strip out --silent because we don't want to record it for future runs.
1268 # Also quote any args containing shell meta-characters.
1269 # Make two passes to allow for proper duplicate-argument suppression.
1270 ac_configure_args=
1271 ac_configure_args0=
1272 ac_configure_args1=
1273 ac_sep=
1274 ac_must_keep_next=false
1275 for ac_pass in 1 2
1276 do
1277   for ac_arg
1278   do
1279     case $ac_arg in
1280     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1281     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282     | -silent | --silent | --silen | --sile | --sil)
1283       continue ;;
1284     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1286     esac
1287     case $ac_pass in
1288     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1289     2)
1290       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1291       if test $ac_must_keep_next = true; then
1292         ac_must_keep_next=false # Got value, back to normal.
1293       else
1294         case $ac_arg in
1295           *=* | --config-cache | -C | -disable-* | --disable-* \
1296           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1297           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1298           | -with-* | --with-* | -without-* | --without-* | --x)
1299             case "$ac_configure_args0 " in
1300               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1301             esac
1302             ;;
1303           -* ) ac_must_keep_next=true ;;
1304         esac
1305       fi
1306       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1307       # Get rid of the leading space.
1308       ac_sep=" "
1309       ;;
1310     esac
1311   done
1312 done
1313 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1314 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1315
1316 # When interrupted or exit'd, cleanup temporary files, and complete
1317 # config.log.  We remove comments because anyway the quotes in there
1318 # would cause problems or look ugly.
1319 # WARNING: Be sure not to use single quotes in there, as some shells,
1320 # such as our DU 5.0 friend, will then `close' the trap.
1321 trap 'exit_status=$?
1322   # Save into config.log some information that might help in debugging.
1323   {
1324     echo
1325
1326     cat <<\_ASBOX
1327 ## ---------------- ##
1328 ## Cache variables. ##
1329 ## ---------------- ##
1330 _ASBOX
1331     echo
1332     # The following way of writing the cache mishandles newlines in values,
1333 {
1334   (set) 2>&1 |
1335     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1336     *ac_space=\ *)
1337       sed -n \
1338         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1339           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1340       ;;
1341     *)
1342       sed -n \
1343         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1344       ;;
1345     esac;
1346 }
1347     echo
1348
1349     cat <<\_ASBOX
1350 ## ----------------- ##
1351 ## Output variables. ##
1352 ## ----------------- ##
1353 _ASBOX
1354     echo
1355     for ac_var in $ac_subst_vars
1356     do
1357       eval ac_val=$`echo $ac_var`
1358       echo "$ac_var='"'"'$ac_val'"'"'"
1359     done | sort
1360     echo
1361
1362     if test -n "$ac_subst_files"; then
1363       cat <<\_ASBOX
1364 ## ------------- ##
1365 ## Output files. ##
1366 ## ------------- ##
1367 _ASBOX
1368       echo
1369       for ac_var in $ac_subst_files
1370       do
1371         eval ac_val=$`echo $ac_var`
1372         echo "$ac_var='"'"'$ac_val'"'"'"
1373       done | sort
1374       echo
1375     fi
1376
1377     if test -s confdefs.h; then
1378       cat <<\_ASBOX
1379 ## ----------- ##
1380 ## confdefs.h. ##
1381 ## ----------- ##
1382 _ASBOX
1383       echo
1384       sed "/^$/d" confdefs.h | sort
1385       echo
1386     fi
1387     test "$ac_signal" != 0 &&
1388       echo "$as_me: caught signal $ac_signal"
1389     echo "$as_me: exit $exit_status"
1390   } >&5
1391   rm -f core *.core &&
1392   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1393     exit $exit_status
1394      ' 0
1395 for ac_signal in 1 2 13 15; do
1396   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1397 done
1398 ac_signal=0
1399
1400 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1401 rm -rf conftest* confdefs.h
1402 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1403 echo >confdefs.h
1404
1405 # Predefined preprocessor variables.
1406
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_NAME "$PACKAGE_NAME"
1409 _ACEOF
1410
1411
1412 cat >>confdefs.h <<_ACEOF
1413 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1414 _ACEOF
1415
1416
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1419 _ACEOF
1420
1421
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_STRING "$PACKAGE_STRING"
1424 _ACEOF
1425
1426
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1429 _ACEOF
1430
1431
1432 # Let the site file select an alternate cache file if it wants to.
1433 # Prefer explicitly selected file to automatically selected ones.
1434 if test -z "$CONFIG_SITE"; then
1435   if test "x$prefix" != xNONE; then
1436     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1437   else
1438     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1439   fi
1440 fi
1441 for ac_site_file in $CONFIG_SITE; do
1442   if test -r "$ac_site_file"; then
1443     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1444 echo "$as_me: loading site script $ac_site_file" >&6;}
1445     sed 's/^/| /' "$ac_site_file" >&5
1446     . "$ac_site_file"
1447   fi
1448 done
1449
1450 if test -r "$cache_file"; then
1451   # Some versions of bash will fail to source /dev/null (special
1452   # files actually), so we avoid doing that.
1453   if test -f "$cache_file"; then
1454     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1455 echo "$as_me: loading cache $cache_file" >&6;}
1456     case $cache_file in
1457       [\\/]* | ?:[\\/]* ) . $cache_file;;
1458       *)                      . ./$cache_file;;
1459     esac
1460   fi
1461 else
1462   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1463 echo "$as_me: creating cache $cache_file" >&6;}
1464   >$cache_file
1465 fi
1466
1467 # Check that the precious variables saved in the cache have kept the same
1468 # value.
1469 ac_cache_corrupted=false
1470 for ac_var in `(set) 2>&1 |
1471                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1472   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1473   eval ac_new_set=\$ac_env_${ac_var}_set
1474   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1475   eval ac_new_val="\$ac_env_${ac_var}_value"
1476   case $ac_old_set,$ac_new_set in
1477     set,)
1478       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1479 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1480       ac_cache_corrupted=: ;;
1481     ,set)
1482       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1483 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1484       ac_cache_corrupted=: ;;
1485     ,);;
1486     *)
1487       if test "x$ac_old_val" != "x$ac_new_val"; then
1488         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1489 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1490         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1491 echo "$as_me:   former value:  $ac_old_val" >&2;}
1492         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1493 echo "$as_me:   current value: $ac_new_val" >&2;}
1494         ac_cache_corrupted=:
1495       fi;;
1496   esac
1497   # Pass precious variables to config.status.
1498   if test "$ac_new_set" = set; then
1499     case $ac_new_val in
1500     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1501       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1502     *) ac_arg=$ac_var=$ac_new_val ;;
1503     esac
1504     case " $ac_configure_args " in
1505       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1506       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1507     esac
1508   fi
1509 done
1510 if $ac_cache_corrupted; then
1511   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1512 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1513   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1514 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1515    { (exit 1); exit 1; }; }
1516 fi
1517
1518 ac_ext=c
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1549
1550
1551
1552
1553 ac_aux_dir=
1554 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1555   if test -f $ac_dir/install-sh; then
1556     ac_aux_dir=$ac_dir
1557     ac_install_sh="$ac_aux_dir/install-sh -c"
1558     break
1559   elif test -f $ac_dir/install.sh; then
1560     ac_aux_dir=$ac_dir
1561     ac_install_sh="$ac_aux_dir/install.sh -c"
1562     break
1563   elif test -f $ac_dir/shtool; then
1564     ac_aux_dir=$ac_dir
1565     ac_install_sh="$ac_aux_dir/shtool install -c"
1566     break
1567   fi
1568 done
1569 if test -z "$ac_aux_dir"; then
1570   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1571 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1572    { (exit 1); exit 1; }; }
1573 fi
1574 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1575 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1576 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1577
1578 # Make sure we can run config.sub.
1579 $ac_config_sub sun4 >/dev/null 2>&1 ||
1580   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1581 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1582    { (exit 1); exit 1; }; }
1583
1584 echo "$as_me:$LINENO: checking build system type" >&5
1585 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1586 if test "${ac_cv_build+set}" = set; then
1587   echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589   ac_cv_build_alias=$build_alias
1590 test -z "$ac_cv_build_alias" &&
1591   ac_cv_build_alias=`$ac_config_guess`
1592 test -z "$ac_cv_build_alias" &&
1593   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1594 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1595    { (exit 1); exit 1; }; }
1596 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1597   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1598 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1599    { (exit 1); exit 1; }; }
1600
1601 fi
1602 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1603 echo "${ECHO_T}$ac_cv_build" >&6
1604 build=$ac_cv_build
1605 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1606 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1607 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1608
1609
1610 echo "$as_me:$LINENO: checking host system type" >&5
1611 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1612 if test "${ac_cv_host+set}" = set; then
1613   echo $ECHO_N "(cached) $ECHO_C" >&6
1614 else
1615   ac_cv_host_alias=$host_alias
1616 test -z "$ac_cv_host_alias" &&
1617   ac_cv_host_alias=$ac_cv_build_alias
1618 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1619   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1620 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1621    { (exit 1); exit 1; }; }
1622
1623 fi
1624 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1625 echo "${ECHO_T}$ac_cv_host" >&6
1626 host=$ac_cv_host
1627 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630
1631
1632 echo "$as_me:$LINENO: checking target system type" >&5
1633 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1634 if test "${ac_cv_target+set}" = set; then
1635   echo $ECHO_N "(cached) $ECHO_C" >&6
1636 else
1637   ac_cv_target_alias=$target_alias
1638 test "x$ac_cv_target_alias" = "x" &&
1639   ac_cv_target_alias=$ac_cv_host_alias
1640 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1641   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1642 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1643    { (exit 1); exit 1; }; }
1644
1645 fi
1646 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1647 echo "${ECHO_T}$ac_cv_target" >&6
1648 target=$ac_cv_target
1649 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1650 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1651 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1652
1653
1654 # The aliases save the names the user supplied, while $host etc.
1655 # will get canonicalized.
1656 test -n "$target_alias" &&
1657   test "$program_prefix$program_suffix$program_transform_name" = \
1658     NONENONEs,x,x, &&
1659   program_prefix=${target_alias}-
1660
1661
1662
1663 wx_major_version_number=2
1664 wx_minor_version_number=6
1665 wx_release_number=0
1666 wx_subrelease_number=1
1667
1668 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1669 WX_VERSION=$WX_RELEASE.$wx_release_number
1670 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
1671
1672 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
1673
1674 WX_CURRENT=0
1675 WX_REVISION=0
1676 WX_AGE=0
1677
1678
1679
1680 USE_UNIX=1
1681 USE_OS2=0
1682 USE_WIN32=0
1683 USE_DOS=0
1684 USE_BEOS=0
1685 USE_MAC=0
1686
1687 USE_AIX=
1688 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1689 USE_GNU=                            USE_HPUX=
1690 USE_LINUX=
1691 USE_NETBSD=
1692 USE_OPENBSD=
1693 USE_OSF=                            USE_SGI=
1694 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1695 USE_ULTRIX=
1696 USE_UNIXWARE=
1697
1698 USE_ALPHA=
1699
1700 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1701
1702 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1703
1704 DEFAULT_wxUSE_COCOA=0
1705 DEFAULT_wxUSE_GTK=0
1706 DEFAULT_wxUSE_MAC=0
1707 DEFAULT_wxUSE_MGL=0
1708 DEFAULT_wxUSE_MICROWIN=0
1709 DEFAULT_wxUSE_MOTIF=0
1710 DEFAULT_wxUSE_MSW=0
1711 DEFAULT_wxUSE_PM=0
1712 DEFAULT_wxUSE_X11=0
1713
1714 DEFAULT_DEFAULT_wxUSE_COCOA=0
1715 DEFAULT_DEFAULT_wxUSE_GTK=0
1716 DEFAULT_DEFAULT_wxUSE_MAC=0
1717 DEFAULT_DEFAULT_wxUSE_MGL=0
1718 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1719 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1720 DEFAULT_DEFAULT_wxUSE_MSW=0
1721 DEFAULT_DEFAULT_wxUSE_PM=0
1722 DEFAULT_DEFAULT_wxUSE_X11=0
1723
1724 PROGRAM_EXT=
1725 SO_SUFFIX=so
1726 SAMPLES_RPATH_FLAG=
1727 SAMPLES_RPATH_POSTLINK=
1728
1729 DEFAULT_STD_FLAG=yes
1730
1731 case "${host}" in
1732   *-hp-hpux* )
1733     USE_HPUX=1
1734     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1735     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1736     SO_SUFFIX=sl
1737     cat >>confdefs.h <<\_ACEOF
1738 #define __HPUX__ 1
1739 _ACEOF
1740
1741   ;;
1742   *-*-linux* )
1743     USE_LINUX=1
1744     cat >>confdefs.h <<\_ACEOF
1745 #define __LINUX__ 1
1746 _ACEOF
1747
1748     TMP=`uname -m`
1749     if test "x$TMP" = "xalpha"; then
1750       USE_ALPHA=1
1751       cat >>confdefs.h <<\_ACEOF
1752 #define __ALPHA__ 1
1753 _ACEOF
1754
1755     fi
1756     DEFAULT_DEFAULT_wxUSE_GTK=1
1757   ;;
1758   *-*-gnu* | *-*-k*bsd*-gnu )
1759     USE_GNU=1
1760     TMP=`uname -m`
1761     if test "x$TMP" = "xalpha"; then
1762       USE_ALPHA=1
1763       cat >>confdefs.h <<\_ACEOF
1764 #define __ALPHA__ 1
1765 _ACEOF
1766
1767     fi
1768     DEFAULT_DEFAULT_wxUSE_GTK=1
1769   ;;
1770   *-*-irix5* | *-*-irix6* )
1771     USE_SGI=1
1772     USE_SVR4=1
1773     cat >>confdefs.h <<\_ACEOF
1774 #define __SGI__ 1
1775 _ACEOF
1776
1777     cat >>confdefs.h <<\_ACEOF
1778 #define __SVR4__ 1
1779 _ACEOF
1780
1781     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1782   ;;
1783   *-*-solaris2* )
1784     USE_SUN=1
1785     USE_SOLARIS=1
1786     USE_SVR4=1
1787     cat >>confdefs.h <<\_ACEOF
1788 #define __SUN__ 1
1789 _ACEOF
1790
1791     cat >>confdefs.h <<\_ACEOF
1792 #define __SOLARIS__ 1
1793 _ACEOF
1794
1795     cat >>confdefs.h <<\_ACEOF
1796 #define __SVR4__ 1
1797 _ACEOF
1798
1799     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1800     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1801   ;;
1802   *-*-sunos4* )
1803     USE_SUN=1
1804     USE_SUNOS=1
1805     USE_BSD=1
1806     cat >>confdefs.h <<\_ACEOF
1807 #define __SUN__ 1
1808 _ACEOF
1809
1810     cat >>confdefs.h <<\_ACEOF
1811 #define __SUNOS__ 1
1812 _ACEOF
1813
1814     cat >>confdefs.h <<\_ACEOF
1815 #define __BSD__ 1
1816 _ACEOF
1817
1818     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1819   ;;
1820   *-*-freebsd*)
1821     USE_BSD=1
1822     USE_FREEBSD=1
1823     cat >>confdefs.h <<\_ACEOF
1824 #define __FREEBSD__ 1
1825 _ACEOF
1826
1827     cat >>confdefs.h <<\_ACEOF
1828 #define __BSD__ 1
1829 _ACEOF
1830
1831     DEFAULT_DEFAULT_wxUSE_GTK=1
1832   ;;
1833   *-*-openbsd*)
1834     USE_BSD=1
1835     USE_OPENBSD=1
1836     cat >>confdefs.h <<\_ACEOF
1837 #define __OPENBSD__ 1
1838 _ACEOF
1839
1840     cat >>confdefs.h <<\_ACEOF
1841 #define __BSD__ 1
1842 _ACEOF
1843
1844     DEFAULT_DEFAULT_wxUSE_GTK=1
1845   ;;
1846   *-*-netbsd*)
1847     USE_BSD=1
1848     USE_NETBSD=1
1849     cat >>confdefs.h <<\_ACEOF
1850 #define __NETBSD__ 1
1851 _ACEOF
1852
1853     cat >>confdefs.h <<\_ACEOF
1854 #define __BSD__ 1
1855 _ACEOF
1856
1857     DEFAULT_DEFAULT_wxUSE_GTK=1
1858   ;;
1859   *-*-osf* )
1860     USE_ALPHA=1
1861     USE_OSF=1
1862     cat >>confdefs.h <<\_ACEOF
1863 #define __ALPHA__ 1
1864 _ACEOF
1865
1866     cat >>confdefs.h <<\_ACEOF
1867 #define __OSF__ 1
1868 _ACEOF
1869
1870     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1871     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1872   ;;
1873   *-*-dgux5* )
1874     USE_ALPHA=1
1875     USE_SVR4=1
1876     cat >>confdefs.h <<\_ACEOF
1877 #define __ALPHA__ 1
1878 _ACEOF
1879
1880     cat >>confdefs.h <<\_ACEOF
1881 #define __SVR4__ 1
1882 _ACEOF
1883
1884     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1885   ;;
1886   *-*-sysv5* )
1887     USE_SYSV=1
1888     USE_SVR4=1
1889     cat >>confdefs.h <<\_ACEOF
1890 #define __SYSV__ 1
1891 _ACEOF
1892
1893     cat >>confdefs.h <<\_ACEOF
1894 #define __SVR4__ 1
1895 _ACEOF
1896
1897     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1898   ;;
1899   *-*-aix* )
1900     USE_AIX=1
1901     USE_SYSV=1
1902     USE_SVR4=1
1903                         SO_SUFFIX=a
1904     cat >>confdefs.h <<\_ACEOF
1905 #define __AIX__ 1
1906 _ACEOF
1907
1908     cat >>confdefs.h <<\_ACEOF
1909 #define __SYSV__ 1
1910 _ACEOF
1911
1912     cat >>confdefs.h <<\_ACEOF
1913 #define __SVR4__ 1
1914 _ACEOF
1915
1916     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1917   ;;
1918
1919   *-*-*UnixWare*)
1920     USE_SYSV=1
1921     USE_SVR4=1
1922     USE_UNIXWARE=1
1923     cat >>confdefs.h <<\_ACEOF
1924 #define __UNIXWARE__ 1
1925 _ACEOF
1926
1927   ;;
1928
1929   *-*-cygwin* | *-*-mingw32* )
1930                 SO_SUFFIX=dll
1931     PROGRAM_EXT=".exe"
1932     RESCOMP=windres
1933     DEFAULT_DEFAULT_wxUSE_MSW=1
1934     DEFAULT_STD_FLAG=no
1935   ;;
1936
1937   *-pc-msdosdjgpp )
1938     USE_UNIX=0
1939     USE_DOS=1
1940     cat >>confdefs.h <<\_ACEOF
1941 #define __DOS__ 1
1942 _ACEOF
1943
1944     PROGRAM_EXT=".exe"
1945     DEFAULT_DEFAULT_wxUSE_MGL=1
1946   ;;
1947
1948   *-pc-os2_emx | *-pc-os2-emx )
1949     cat >>confdefs.h <<\_ACEOF
1950 #define __EMX__ 1
1951 _ACEOF
1952
1953     USE_OS2=1
1954     cat >>confdefs.h <<\_ACEOF
1955 #define __OS2__ 1
1956 _ACEOF
1957
1958     PROGRAM_EXT=".exe"
1959     DEFAULT_DEFAULT_wxUSE_PM=1
1960         CXX=gcc
1961     LDFLAGS="$LDFLAGS -Zcrtdll"
1962                         ac_executable_extensions=".exe"
1963     export ac_executable_extensions
1964             ac_save_IFS="$IFS"
1965     IFS='\\'
1966     ac_TEMP_PATH=
1967     for ac_dir in $PATH; do
1968       IFS=$ac_save_IFS
1969       if test -z "$ac_TEMP_PATH"; then
1970         ac_TEMP_PATH="$ac_dir"
1971       else
1972         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1973       fi
1974     done
1975     export PATH="$ac_TEMP_PATH"
1976     unset ac_TEMP_PATH
1977     DEFAULT_STD_FLAG=no
1978   ;;
1979
1980   powerpc-*-darwin* )
1981         USE_BSD=1
1982     USE_DARWIN=1
1983     SO_SUFFIX=dylib
1984     cat >>confdefs.h <<\_ACEOF
1985 #define __BSD__ 1
1986 _ACEOF
1987
1988     cat >>confdefs.h <<\_ACEOF
1989 #define __DARWIN__ 1
1990 _ACEOF
1991
1992     cat >>confdefs.h <<\_ACEOF
1993 #define TARGET_CARBON 1
1994 _ACEOF
1995
1996     DEFAULT_DEFAULT_wxUSE_MAC=1
1997     DEFAULT_STD_FLAG=no
1998   ;;
1999   powerpc-apple-macos* )
2000         USE_UNIX=0
2001             ac_cv_c_bigendian=yes
2002     SO_SUFFIX=shlib
2003             DEFAULT_DEFAULT_wxUSE_MAC=1
2004     DEFAULT_STD_FLAG=no
2005   ;;
2006
2007   *-*-beos* )
2008         USE_BEOS=1
2009     cat >>confdefs.h <<\_ACEOF
2010 #define __BEOS__ 1
2011 _ACEOF
2012
2013   ;;
2014
2015   *)
2016     { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2017 echo "$as_me: error: unknown system type ${host}." >&2;}
2018    { (exit 1); exit 1; }; }
2019 esac
2020
2021
2022
2023
2024           wx_arg_cache_file="configarg.cache"
2025           echo "loading argument cache $wx_arg_cache_file"
2026           rm -f ${wx_arg_cache_file}.tmp
2027           touch ${wx_arg_cache_file}.tmp
2028           touch ${wx_arg_cache_file}
2029
2030
2031 DEBUG_CONFIGURE=0
2032 if test $DEBUG_CONFIGURE = 1; then
2033   DEFAULT_wxUSE_UNIVERSAL=no
2034   DEFAULT_wxUSE_STL=no
2035
2036   DEFAULT_wxUSE_NANOX=no
2037
2038   DEFAULT_wxUSE_THREADS=yes
2039
2040   DEFAULT_wxUSE_SHARED=yes
2041   DEFAULT_wxUSE_OPTIMISE=no
2042   DEFAULT_wxUSE_PROFILE=no
2043   DEFAULT_wxUSE_NO_DEPS=no
2044   DEFAULT_wxUSE_NO_RTTI=no
2045   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2046   DEFAULT_wxUSE_RPATH=yes
2047   DEFAULT_wxUSE_PERMISSIVE=no
2048   DEFAULT_wxUSE_DEBUG_FLAG=yes
2049   DEFAULT_wxUSE_DEBUG_INFO=yes
2050   DEFAULT_wxUSE_DEBUG_GDB=yes
2051   DEFAULT_wxUSE_MEM_TRACING=no
2052   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2053   DEFAULT_wxUSE_DMALLOC=no
2054   DEFAULT_wxUSE_APPLE_IEEE=no
2055
2056   DEFAULT_wxUSE_EXCEPTIONS=no
2057   DEFAULT_wxUSE_LOG=yes
2058   DEFAULT_wxUSE_LOGWINDOW=no
2059   DEFAULT_wxUSE_LOGGUI=no
2060   DEFAULT_wxUSE_LOGDIALOG=no
2061
2062   DEFAULT_wxUSE_GUI=yes
2063   DEFAULT_wxUSE_CONTROLS=no
2064
2065   DEFAULT_wxUSE_REGEX=no
2066   DEFAULT_wxUSE_XML=no
2067   DEFAULT_wxUSE_EXPAT=no
2068   DEFAULT_wxUSE_ZLIB=no
2069   DEFAULT_wxUSE_LIBPNG=no
2070   DEFAULT_wxUSE_LIBJPEG=no
2071   DEFAULT_wxUSE_LIBTIFF=no
2072   DEFAULT_wxUSE_LIBXPM=no
2073   DEFAULT_wxUSE_LIBMSPACK=no
2074   DEFAULT_wxUSE_LIBSDL=no
2075   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2076   DEFAULT_wxUSE_ODBC=no
2077   DEFAULT_wxUSE_OPENGL=no
2078
2079   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2080   DEFAULT_wxUSE_STACKWALKER=no
2081   DEFAULT_wxUSE_DEBUGREPORT=no
2082   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2083   DEFAULT_wxUSE_STD_IOSTREAM=no
2084   DEFAULT_wxUSE_STD_STRING=no
2085   DEFAULT_wxUSE_CMDLINE_PARSER=no
2086   DEFAULT_wxUSE_DATETIME=no
2087   DEFAULT_wxUSE_TIMER=no
2088   DEFAULT_wxUSE_STOPWATCH=no
2089   DEFAULT_wxUSE_FILE=no
2090   DEFAULT_wxUSE_FFILE=no
2091   DEFAULT_wxUSE_STDPATHS=no
2092   DEFAULT_wxUSE_TEXTBUFFER=no
2093   DEFAULT_wxUSE_TEXTFILE=no
2094   DEFAULT_wxUSE_SOUND=no
2095   DEFAULT_wxUSE_MEDIACTRL=no
2096   DEFAULT_wxUSE_DIRECTSHOW=no
2097   DEFAULT_wxUSE_INTL=no
2098   DEFAULT_wxUSE_CONFIG=no
2099   DEFAULT_wxUSE_FONTMAP=no
2100   DEFAULT_wxUSE_STREAMS=no
2101   DEFAULT_wxUSE_SOCKETS=no
2102   DEFAULT_wxUSE_OLE=no
2103   DEFAULT_wxUSE_DATAOBJ=no
2104   DEFAULT_wxUSE_DIALUP_MANAGER=no
2105   DEFAULT_wxUSE_JOYSTICK=no
2106   DEFAULT_wxUSE_DYNLIB_CLASS=no
2107   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2108   DEFAULT_wxUSE_LONGLONG=no
2109   DEFAULT_wxUSE_GEOMETRY=no
2110
2111   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2112   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2113   DEFAULT_wxUSE_POSTSCRIPT=no
2114
2115   DEFAULT_wxUSE_CLIPBOARD=no
2116   DEFAULT_wxUSE_TOOLTIPS=no
2117   DEFAULT_wxUSE_DRAG_AND_DROP=no
2118   DEFAULT_wxUSE_DRAGIMAGE=no
2119   DEFAULT_wxUSE_SPLINES=no
2120   DEFAULT_wxUSE_MOUSEWHEEL=no
2121
2122   DEFAULT_wxUSE_MDI=no
2123   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2124   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2125   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2126
2127   DEFAULT_wxUSE_RESOURCES=no
2128   DEFAULT_wxUSE_CONSTRAINTS=no
2129   DEFAULT_wxUSE_IPC=no
2130   DEFAULT_wxUSE_HELP=no
2131   DEFAULT_wxUSE_MS_HTML_HELP=no
2132   DEFAULT_wxUSE_WXHTML_HELP=no
2133   DEFAULT_wxUSE_TREELAYOUT=no
2134   DEFAULT_wxUSE_METAFILE=no
2135   DEFAULT_wxUSE_MIMETYPE=no
2136   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2137   DEFAULT_wxUSE_PROTOCOL=no
2138   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2139   DEFAULT_wxUSE_PROTOCOL_FTP=no
2140   DEFAULT_wxUSE_PROTOCOL_FILE=no
2141   DEFAULT_wxUSE_URL=no
2142
2143   DEFAULT_wxUSE_COMMONDLGS=no
2144   DEFAULT_wxUSE_CHOICEDLG=no
2145   DEFAULT_wxUSE_COLOURDLG=no
2146   DEFAULT_wxUSE_DIRDLG=no
2147   DEFAULT_wxUSE_FILEDLG=no
2148   DEFAULT_wxUSE_FINDREPLDLG=no
2149   DEFAULT_wxUSE_FONTDLG=no
2150   DEFAULT_wxUSE_MSGDLG=no
2151   DEFAULT_wxUSE_NUMBERDLG=no
2152   DEFAULT_wxUSE_TEXTDLG=no
2153   DEFAULT_wxUSE_SPLASH=no
2154   DEFAULT_wxUSE_STARTUP_TIPS=no
2155   DEFAULT_wxUSE_PROGRESSDLG=no
2156   DEFAULT_wxUSE_WIZARDDLG=no
2157
2158   DEFAULT_wxUSE_MENUS=no
2159   DEFAULT_wxUSE_MINIFRAME=no
2160   DEFAULT_wxUSE_HTML=no
2161   DEFAULT_wxUSE_XRC=no
2162   DEFAULT_wxUSE_WEBKIT=no
2163   DEFAULT_wxUSE_FILESYSTEM=no
2164   DEFAULT_wxUSE_FS_INET=no
2165   DEFAULT_wxUSE_FS_ZIP=no
2166   DEFAULT_wxUSE_BUSYINFO=no
2167   DEFAULT_wxUSE_ARCHIVE_STREAMS=no
2168   DEFAULT_wxUSE_ZIPSTREAM=no
2169   DEFAULT_wxUSE_VALIDATORS=no
2170
2171   DEFAULT_wxUSE_ACCEL=no
2172   DEFAULT_wxUSE_BUTTON=no
2173   DEFAULT_wxUSE_BMPBUTTON=no
2174   DEFAULT_wxUSE_CALCTRL=no
2175   DEFAULT_wxUSE_CARET=no
2176   DEFAULT_wxUSE_CHECKBOX=no
2177   DEFAULT_wxUSE_CHECKLST=no
2178   DEFAULT_wxUSE_CHOICE=no
2179   DEFAULT_wxUSE_CHOICEBOOK=no
2180   DEFAULT_wxUSE_COMBOBOX=no
2181   DEFAULT_wxUSE_DATEPICKCTRL=no
2182   DEFAULT_wxUSE_DISPLAY=no
2183   DEFAULT_wxUSE_GAUGE=no
2184   DEFAULT_wxUSE_GRID=no
2185   DEFAULT_wxUSE_IMAGLIST=no
2186   DEFAULT_wxUSE_LISTBOOK=no
2187   DEFAULT_wxUSE_LISTBOX=no
2188   DEFAULT_wxUSE_LISTCTRL=no
2189   DEFAULT_wxUSE_NOTEBOOK=no
2190   DEFAULT_wxUSE_RADIOBOX=no
2191   DEFAULT_wxUSE_RADIOBTN=no
2192   DEFAULT_wxUSE_SASH=no
2193   DEFAULT_wxUSE_SCROLLBAR=no
2194   DEFAULT_wxUSE_SLIDER=no
2195   DEFAULT_wxUSE_SPINBTN=no
2196   DEFAULT_wxUSE_SPINCTRL=no
2197   DEFAULT_wxUSE_SPLITTER=no
2198   DEFAULT_wxUSE_STATBMP=no
2199   DEFAULT_wxUSE_STATBOX=no
2200   DEFAULT_wxUSE_STATLINE=no
2201   DEFAULT_wxUSE_STATTEXT=no
2202   DEFAULT_wxUSE_STATUSBAR=yes
2203   DEFAULT_wxUSE_TABDIALOG=no
2204   DEFAULT_wxUSE_TEXTCTRL=no
2205   DEFAULT_wxUSE_TOGGLEBTN=no
2206   DEFAULT_wxUSE_TOOLBAR=no
2207   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2208   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2209   DEFAULT_wxUSE_TREECTRL=no
2210   DEFAULT_wxUSE_POPUPWIN=no
2211   DEFAULT_wxUSE_TIPWINDOW=no
2212
2213   DEFAULT_wxUSE_UNICODE=no
2214   DEFAULT_wxUSE_UNICODE_MSLU=no
2215   DEFAULT_wxUSE_WCSRTOMBS=no
2216
2217   DEFAULT_wxUSE_PALETTE=no
2218   DEFAULT_wxUSE_IMAGE=no
2219   DEFAULT_wxUSE_GIF=no
2220   DEFAULT_wxUSE_PCX=no
2221   DEFAULT_wxUSE_PNM=no
2222   DEFAULT_wxUSE_IFF=no
2223   DEFAULT_wxUSE_XPM=no
2224   DEFAULT_wxUSE_ICO_CUR=no
2225   DEFAULT_wxUSE_ACCESSIBILITY=no
2226
2227   DEFAULT_wxUSE_MONOLITHIC=no
2228   DEFAULT_wxUSE_PLUGINS=no
2229   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2230 else
2231   DEFAULT_wxUSE_UNIVERSAL=no
2232   DEFAULT_wxUSE_STL=no
2233
2234   DEFAULT_wxUSE_NANOX=no
2235
2236   DEFAULT_wxUSE_THREADS=yes
2237
2238   DEFAULT_wxUSE_SHARED=yes
2239   DEFAULT_wxUSE_OPTIMISE=yes
2240   DEFAULT_wxUSE_PROFILE=no
2241   DEFAULT_wxUSE_NO_DEPS=no
2242   DEFAULT_wxUSE_NO_RTTI=no
2243   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2244   DEFAULT_wxUSE_RPATH=yes
2245   DEFAULT_wxUSE_PERMISSIVE=no
2246   DEFAULT_wxUSE_DEBUG_FLAG=no
2247   DEFAULT_wxUSE_DEBUG_INFO=no
2248   DEFAULT_wxUSE_DEBUG_GDB=no
2249   DEFAULT_wxUSE_MEM_TRACING=no
2250   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2251   DEFAULT_wxUSE_DMALLOC=no
2252   DEFAULT_wxUSE_APPLE_IEEE=yes
2253
2254   DEFAULT_wxUSE_EXCEPTIONS=yes
2255   DEFAULT_wxUSE_LOG=yes
2256   DEFAULT_wxUSE_LOGWINDOW=yes
2257   DEFAULT_wxUSE_LOGGUI=yes
2258   DEFAULT_wxUSE_LOGDIALOG=yes
2259
2260   DEFAULT_wxUSE_GUI=yes
2261
2262   DEFAULT_wxUSE_REGEX=yes
2263   DEFAULT_wxUSE_XML=yes
2264   DEFAULT_wxUSE_EXPAT=yes
2265   DEFAULT_wxUSE_ZLIB=yes
2266   DEFAULT_wxUSE_LIBPNG=yes
2267   DEFAULT_wxUSE_LIBJPEG=yes
2268   DEFAULT_wxUSE_LIBTIFF=yes
2269   DEFAULT_wxUSE_LIBXPM=yes
2270   DEFAULT_wxUSE_LIBMSPACK=yes
2271   DEFAULT_wxUSE_LIBSDL=no
2272   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2273   DEFAULT_wxUSE_ODBC=no
2274   DEFAULT_wxUSE_OPENGL=no
2275
2276   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2277   DEFAULT_wxUSE_STACKWALKER=yes
2278   DEFAULT_wxUSE_DEBUGREPORT=yes
2279   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2280   DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2281   DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2282   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2283   DEFAULT_wxUSE_DATETIME=yes
2284   DEFAULT_wxUSE_TIMER=yes
2285   DEFAULT_wxUSE_STOPWATCH=yes
2286   DEFAULT_wxUSE_FILE=yes
2287   DEFAULT_wxUSE_FFILE=yes
2288   DEFAULT_wxUSE_STDPATHS=yes
2289   DEFAULT_wxUSE_TEXTBUFFER=yes
2290   DEFAULT_wxUSE_TEXTFILE=yes
2291   DEFAULT_wxUSE_SOUND=yes
2292   DEFAULT_wxUSE_MEDIACTRL=no
2293   DEFAULT_wxUSE_DIRECTSHOW=no
2294   DEFAULT_wxUSE_INTL=yes
2295   DEFAULT_wxUSE_CONFIG=yes
2296   DEFAULT_wxUSE_FONTMAP=yes
2297   DEFAULT_wxUSE_STREAMS=yes
2298   DEFAULT_wxUSE_SOCKETS=yes
2299   DEFAULT_wxUSE_OLE=yes
2300   DEFAULT_wxUSE_DATAOBJ=yes
2301   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2302   DEFAULT_wxUSE_JOYSTICK=yes
2303   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2304   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2305   DEFAULT_wxUSE_LONGLONG=yes
2306   DEFAULT_wxUSE_GEOMETRY=yes
2307
2308   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2309   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2310   DEFAULT_wxUSE_POSTSCRIPT=yes
2311
2312   DEFAULT_wxUSE_CLIPBOARD=yes
2313   DEFAULT_wxUSE_TOOLTIPS=yes
2314   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2315   DEFAULT_wxUSE_DRAGIMAGE=yes
2316   DEFAULT_wxUSE_SPLINES=yes
2317   DEFAULT_wxUSE_MOUSEWHEEL=yes
2318
2319   DEFAULT_wxUSE_MDI=yes
2320   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2321   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2322   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2323
2324   DEFAULT_wxUSE_RESOURCES=no
2325   DEFAULT_wxUSE_CONSTRAINTS=yes
2326   DEFAULT_wxUSE_IPC=yes
2327   DEFAULT_wxUSE_HELP=yes
2328   DEFAULT_wxUSE_MS_HTML_HELP=yes
2329   DEFAULT_wxUSE_WXHTML_HELP=yes
2330   DEFAULT_wxUSE_TREELAYOUT=yes
2331   DEFAULT_wxUSE_METAFILE=yes
2332   DEFAULT_wxUSE_MIMETYPE=yes
2333   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2334   DEFAULT_wxUSE_PROTOCOL=yes
2335   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2336   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2337   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2338   DEFAULT_wxUSE_URL=yes
2339
2340   DEFAULT_wxUSE_COMMONDLGS=yes
2341   DEFAULT_wxUSE_CHOICEDLG=yes
2342   DEFAULT_wxUSE_COLOURDLG=yes
2343   DEFAULT_wxUSE_DIRDLG=yes
2344   DEFAULT_wxUSE_FILEDLG=yes
2345   DEFAULT_wxUSE_FINDREPLDLG=yes
2346   DEFAULT_wxUSE_FONTDLG=yes
2347   DEFAULT_wxUSE_MSGDLG=yes
2348   DEFAULT_wxUSE_NUMBERDLG=yes
2349   DEFAULT_wxUSE_TEXTDLG=yes
2350   DEFAULT_wxUSE_SPLASH=yes
2351   DEFAULT_wxUSE_STARTUP_TIPS=yes
2352   DEFAULT_wxUSE_PROGRESSDLG=yes
2353   DEFAULT_wxUSE_WIZARDDLG=yes
2354
2355   DEFAULT_wxUSE_MENUS=yes
2356   DEFAULT_wxUSE_MINIFRAME=yes
2357   DEFAULT_wxUSE_HTML=yes
2358   DEFAULT_wxUSE_XRC=yes
2359   DEFAULT_wxUSE_WEBKIT=yes
2360   DEFAULT_wxUSE_FILESYSTEM=yes
2361   DEFAULT_wxUSE_FS_INET=yes
2362   DEFAULT_wxUSE_FS_ZIP=yes
2363   DEFAULT_wxUSE_BUSYINFO=yes
2364   DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
2365   DEFAULT_wxUSE_ZIPSTREAM=yes
2366   DEFAULT_wxUSE_VALIDATORS=yes
2367
2368   DEFAULT_wxUSE_ACCEL=yes
2369   DEFAULT_wxUSE_BUTTON=yes
2370   DEFAULT_wxUSE_BMPBUTTON=yes
2371   DEFAULT_wxUSE_CALCTRL=yes
2372   DEFAULT_wxUSE_CARET=yes
2373   DEFAULT_wxUSE_CHECKBOX=yes
2374   DEFAULT_wxUSE_CHECKLST=yes
2375   DEFAULT_wxUSE_CHOICE=yes
2376   DEFAULT_wxUSE_CHOICEBOOK=yes
2377   DEFAULT_wxUSE_COMBOBOX=yes
2378   DEFAULT_wxUSE_DATEPICKCTRL=yes
2379   DEFAULT_wxUSE_DISPLAY=yes
2380   DEFAULT_wxUSE_GAUGE=yes
2381   DEFAULT_wxUSE_GRID=yes
2382   DEFAULT_wxUSE_IMAGLIST=yes
2383   DEFAULT_wxUSE_LISTBOOK=yes
2384   DEFAULT_wxUSE_LISTBOX=yes
2385   DEFAULT_wxUSE_LISTCTRL=yes
2386   DEFAULT_wxUSE_NOTEBOOK=yes
2387   DEFAULT_wxUSE_RADIOBOX=yes
2388   DEFAULT_wxUSE_RADIOBTN=yes
2389   DEFAULT_wxUSE_SASH=yes
2390   DEFAULT_wxUSE_SCROLLBAR=yes
2391   DEFAULT_wxUSE_SLIDER=yes
2392   DEFAULT_wxUSE_SPINBTN=yes
2393   DEFAULT_wxUSE_SPINCTRL=yes
2394   DEFAULT_wxUSE_SPLITTER=yes
2395   DEFAULT_wxUSE_STATBMP=yes
2396   DEFAULT_wxUSE_STATBOX=yes
2397   DEFAULT_wxUSE_STATLINE=yes
2398   DEFAULT_wxUSE_STATTEXT=yes
2399   DEFAULT_wxUSE_STATUSBAR=yes
2400   DEFAULT_wxUSE_TABDIALOG=no
2401   DEFAULT_wxUSE_TEXTCTRL=yes
2402   DEFAULT_wxUSE_TOGGLEBTN=yes
2403   DEFAULT_wxUSE_TOOLBAR=yes
2404   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2405   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2406   DEFAULT_wxUSE_TREECTRL=yes
2407   DEFAULT_wxUSE_POPUPWIN=yes
2408   DEFAULT_wxUSE_TIPWINDOW=yes
2409
2410   DEFAULT_wxUSE_UNICODE=no
2411   DEFAULT_wxUSE_UNICODE_MSLU=yes
2412   DEFAULT_wxUSE_WCSRTOMBS=no
2413
2414   DEFAULT_wxUSE_PALETTE=yes
2415   DEFAULT_wxUSE_IMAGE=yes
2416   DEFAULT_wxUSE_GIF=yes
2417   DEFAULT_wxUSE_PCX=yes
2418   DEFAULT_wxUSE_IFF=no
2419   DEFAULT_wxUSE_PNM=yes
2420   DEFAULT_wxUSE_XPM=yes
2421   DEFAULT_wxUSE_ICO_CUR=yes
2422   DEFAULT_wxUSE_ACCESSIBILITY=no
2423
2424   DEFAULT_wxUSE_MONOLITHIC=no
2425   DEFAULT_wxUSE_PLUGINS=no
2426   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2427
2428     DEFAULT_wxUSE_GTK2=yes
2429 fi
2430
2431
2432
2433
2434 for toolkit in `echo $ALL_TOOLKITS`; do
2435   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2436   if test "x$LINE" != "x" ; then
2437     has_toolkit_in_cache=1
2438     eval "DEFAULT_$LINE"
2439     eval "CACHE_$toolkit=1"
2440
2441     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2442     if test "x$LINE" != "x" ; then
2443         eval "DEFAULT_$LINE"
2444     fi
2445   fi
2446 done
2447
2448
2449
2450           enablestring=
2451           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2452 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2453           no_cache=0
2454           # Check whether --enable-gui or --disable-gui was given.
2455 if test "${enable_gui+set}" = set; then
2456   enableval="$enable_gui"
2457
2458                           if test "$enableval" = yes; then
2459                             ac_cv_use_gui='wxUSE_GUI=yes'
2460                           else
2461                             ac_cv_use_gui='wxUSE_GUI=no'
2462                           fi
2463
2464 else
2465
2466                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2467                           if test "x$LINE" != x ; then
2468                             eval "DEFAULT_$LINE"
2469                           else
2470                             no_cache=1
2471                           fi
2472
2473                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2474
2475 fi;
2476
2477           eval "$ac_cv_use_gui"
2478           if test "$no_cache" != 1; then
2479             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2480           fi
2481
2482           if test "$wxUSE_GUI" = yes; then
2483             echo "$as_me:$LINENO: result: yes" >&5
2484 echo "${ECHO_T}yes" >&6
2485           else
2486             echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6
2488           fi
2489
2490
2491           enablestring=
2492           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2493 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2494           no_cache=0
2495           # Check whether --enable-monolithic or --disable-monolithic was given.
2496 if test "${enable_monolithic+set}" = set; then
2497   enableval="$enable_monolithic"
2498
2499                           if test "$enableval" = yes; then
2500                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2501                           else
2502                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2503                           fi
2504
2505 else
2506
2507                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2508                           if test "x$LINE" != x ; then
2509                             eval "DEFAULT_$LINE"
2510                           else
2511                             no_cache=1
2512                           fi
2513
2514                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2515
2516 fi;
2517
2518           eval "$ac_cv_use_monolithic"
2519           if test "$no_cache" != 1; then
2520             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2521           fi
2522
2523           if test "$wxUSE_MONOLITHIC" = yes; then
2524             echo "$as_me:$LINENO: result: yes" >&5
2525 echo "${ECHO_T}yes" >&6
2526           else
2527             echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6
2529           fi
2530
2531
2532           enablestring=
2533           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2534 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2535           no_cache=0
2536           # Check whether --enable-plugins or --disable-plugins was given.
2537 if test "${enable_plugins+set}" = set; then
2538   enableval="$enable_plugins"
2539
2540                           if test "$enableval" = yes; then
2541                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2542                           else
2543                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
2544                           fi
2545
2546 else
2547
2548                           LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2549                           if test "x$LINE" != x ; then
2550                             eval "DEFAULT_$LINE"
2551                           else
2552                             no_cache=1
2553                           fi
2554
2555                           ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2556
2557 fi;
2558
2559           eval "$ac_cv_use_plugins"
2560           if test "$no_cache" != 1; then
2561             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2562           fi
2563
2564           if test "$wxUSE_PLUGINS" = yes; then
2565             echo "$as_me:$LINENO: result: yes" >&5
2566 echo "${ECHO_T}yes" >&6
2567           else
2568             echo "$as_me:$LINENO: result: no" >&5
2569 echo "${ECHO_T}no" >&6
2570           fi
2571
2572
2573 if test "$wxUSE_GUI" = "yes"; then
2574
2575
2576           enablestring=
2577           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2578 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2579           no_cache=0
2580           # Check whether --enable-universal or --disable-universal was given.
2581 if test "${enable_universal+set}" = set; then
2582   enableval="$enable_universal"
2583
2584                           if test "$enableval" = yes; then
2585                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2586                           else
2587                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2588                           fi
2589
2590 else
2591
2592                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2593                           if test "x$LINE" != x ; then
2594                             eval "DEFAULT_$LINE"
2595                           else
2596                             no_cache=1
2597                           fi
2598
2599                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2600
2601 fi;
2602
2603           eval "$ac_cv_use_universal"
2604           if test "$no_cache" != 1; then
2605             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2606           fi
2607
2608           if test "$wxUSE_UNIVERSAL" = yes; then
2609             echo "$as_me:$LINENO: result: yes" >&5
2610 echo "${ECHO_T}yes" >&6
2611           else
2612             echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6
2614           fi
2615
2616
2617 # Check whether --with-gtk or --without-gtk was given.
2618 if test "${with_gtk+set}" = set; then
2619   withval="$with_gtk"
2620   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2621 fi;
2622
2623 # Check whether --with-motif or --without-motif was given.
2624 if test "${with_motif+set}" = set; then
2625   withval="$with_motif"
2626   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2627 fi;
2628
2629 # Check whether --with-mac or --without-mac was given.
2630 if test "${with_mac+set}" = set; then
2631   withval="$with_mac"
2632   wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
2633 fi;
2634
2635 # Check whether --with-cocoa or --without-cocoa was given.
2636 if test "${with_cocoa+set}" = set; then
2637   withval="$with_cocoa"
2638   wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
2639 fi;
2640
2641 # Check whether --with-wine or --without-wine was given.
2642 if test "${with_wine+set}" = set; then
2643   withval="$with_wine"
2644   wxUSE_WINE="$withval" CACHE_WINE=1
2645 fi;
2646
2647 # Check whether --with-msw or --without-msw was given.
2648 if test "${with_msw+set}" = set; then
2649   withval="$with_msw"
2650   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2651 fi;
2652
2653 # Check whether --with-pm or --without-pm was given.
2654 if test "${with_pm+set}" = set; then
2655   withval="$with_pm"
2656   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2657 fi;
2658
2659 # Check whether --with-mgl or --without-mgl was given.
2660 if test "${with_mgl+set}" = set; then
2661   withval="$with_mgl"
2662   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2663 fi;
2664
2665 # Check whether --with-microwin or --without-microwin was given.
2666 if test "${with_microwin+set}" = set; then
2667   withval="$with_microwin"
2668   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2669 fi;
2670
2671 # Check whether --with-x11 or --without-x11 was given.
2672 if test "${with_x11+set}" = set; then
2673   withval="$with_x11"
2674   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2675 fi;
2676
2677           enablestring=
2678           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2679 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2680           no_cache=0
2681           # Check whether --enable-nanox or --disable-nanox was given.
2682 if test "${enable_nanox+set}" = set; then
2683   enableval="$enable_nanox"
2684
2685                           if test "$enableval" = yes; then
2686                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2687                           else
2688                             ac_cv_use_nanox='wxUSE_NANOX=no'
2689                           fi
2690
2691 else
2692
2693                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2694                           if test "x$LINE" != x ; then
2695                             eval "DEFAULT_$LINE"
2696                           else
2697                             no_cache=1
2698                           fi
2699
2700                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2701
2702 fi;
2703
2704           eval "$ac_cv_use_nanox"
2705           if test "$no_cache" != 1; then
2706             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2707           fi
2708
2709           if test "$wxUSE_NANOX" = yes; then
2710             echo "$as_me:$LINENO: result: yes" >&5
2711 echo "${ECHO_T}yes" >&6
2712           else
2713             echo "$as_me:$LINENO: result: no" >&5
2714 echo "${ECHO_T}no" >&6
2715           fi
2716
2717
2718 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2719 if test "${enable_gtk2+set}" = set; then
2720   enableval="$enable_gtk2"
2721   wxUSE_GTK2="$enableval"
2722 fi;
2723
2724           enablestring=
2725           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2726 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2727           no_cache=0
2728           # Check whether --enable-gpe or --disable-gpe was given.
2729 if test "${enable_gpe+set}" = set; then
2730   enableval="$enable_gpe"
2731
2732                           if test "$enableval" = yes; then
2733                             ac_cv_use_gpe='wxUSE_GPE=yes'
2734                           else
2735                             ac_cv_use_gpe='wxUSE_GPE=no'
2736                           fi
2737
2738 else
2739
2740                           LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2741                           if test "x$LINE" != x ; then
2742                             eval "DEFAULT_$LINE"
2743                           else
2744                             no_cache=1
2745                           fi
2746
2747                           ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2748
2749 fi;
2750
2751           eval "$ac_cv_use_gpe"
2752           if test "$no_cache" != 1; then
2753             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2754           fi
2755
2756           if test "$wxUSE_GPE" = yes; then
2757             echo "$as_me:$LINENO: result: yes" >&5
2758 echo "${ECHO_T}yes" >&6
2759           else
2760             echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6
2762           fi
2763
2764
2765
2766           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2767 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2768           no_cache=0
2769
2770 # Check whether --with-libpng or --without-libpng was given.
2771 if test "${with_libpng+set}" = set; then
2772   withval="$with_libpng"
2773
2774                         if test "$withval" = yes; then
2775                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2776                         elif test "$withval" = no; then
2777                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2778                         elif test "$withval" = sys; then
2779                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2780                         elif test "$withval" = builtin; then
2781                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2782                         else
2783                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2784 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2785    { (exit 1); exit 1; }; }
2786                         fi
2787
2788 else
2789
2790                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2791                         if test "x$LINE" != x ; then
2792                           eval "DEFAULT_$LINE"
2793                         else
2794                           no_cache=1
2795                         fi
2796
2797                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2798
2799 fi;
2800
2801           eval "$ac_cv_use_libpng"
2802           if test "$no_cache" != 1; then
2803             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2804           fi
2805
2806           if test "$wxUSE_LIBPNG" = yes; then
2807             echo "$as_me:$LINENO: result: yes" >&5
2808 echo "${ECHO_T}yes" >&6
2809           elif test "$wxUSE_LIBPNG" = no; then
2810             echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6
2812           elif test "$wxUSE_LIBPNG" = sys; then
2813             echo "$as_me:$LINENO: result: system version" >&5
2814 echo "${ECHO_T}system version" >&6
2815           elif test "$wxUSE_LIBPNG" = builtin; then
2816             echo "$as_me:$LINENO: result: builtin version" >&5
2817 echo "${ECHO_T}builtin version" >&6
2818           else
2819             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2820 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2821    { (exit 1); exit 1; }; }
2822           fi
2823
2824
2825           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2826 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2827           no_cache=0
2828
2829 # Check whether --with-libjpeg or --without-libjpeg was given.
2830 if test "${with_libjpeg+set}" = set; then
2831   withval="$with_libjpeg"
2832
2833                         if test "$withval" = yes; then
2834                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2835                         elif test "$withval" = no; then
2836                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2837                         elif test "$withval" = sys; then
2838                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2839                         elif test "$withval" = builtin; then
2840                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2841                         else
2842                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2843 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2844    { (exit 1); exit 1; }; }
2845                         fi
2846
2847 else
2848
2849                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2850                         if test "x$LINE" != x ; then
2851                           eval "DEFAULT_$LINE"
2852                         else
2853                           no_cache=1
2854                         fi
2855
2856                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2857
2858 fi;
2859
2860           eval "$ac_cv_use_libjpeg"
2861           if test "$no_cache" != 1; then
2862             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2863           fi
2864
2865           if test "$wxUSE_LIBJPEG" = yes; then
2866             echo "$as_me:$LINENO: result: yes" >&5
2867 echo "${ECHO_T}yes" >&6
2868           elif test "$wxUSE_LIBJPEG" = no; then
2869             echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2871           elif test "$wxUSE_LIBJPEG" = sys; then
2872             echo "$as_me:$LINENO: result: system version" >&5
2873 echo "${ECHO_T}system version" >&6
2874           elif test "$wxUSE_LIBJPEG" = builtin; then
2875             echo "$as_me:$LINENO: result: builtin version" >&5
2876 echo "${ECHO_T}builtin version" >&6
2877           else
2878             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2879 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2880    { (exit 1); exit 1; }; }
2881           fi
2882
2883
2884           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2885 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2886           no_cache=0
2887
2888 # Check whether --with-libtiff or --without-libtiff was given.
2889 if test "${with_libtiff+set}" = set; then
2890   withval="$with_libtiff"
2891
2892                         if test "$withval" = yes; then
2893                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2894                         elif test "$withval" = no; then
2895                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2896                         elif test "$withval" = sys; then
2897                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2898                         elif test "$withval" = builtin; then
2899                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2900                         else
2901                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2902 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2903    { (exit 1); exit 1; }; }
2904                         fi
2905
2906 else
2907
2908                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2909                         if test "x$LINE" != x ; then
2910                           eval "DEFAULT_$LINE"
2911                         else
2912                           no_cache=1
2913                         fi
2914
2915                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2916
2917 fi;
2918
2919           eval "$ac_cv_use_libtiff"
2920           if test "$no_cache" != 1; then
2921             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2922           fi
2923
2924           if test "$wxUSE_LIBTIFF" = yes; then
2925             echo "$as_me:$LINENO: result: yes" >&5
2926 echo "${ECHO_T}yes" >&6
2927           elif test "$wxUSE_LIBTIFF" = no; then
2928             echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6
2930           elif test "$wxUSE_LIBTIFF" = sys; then
2931             echo "$as_me:$LINENO: result: system version" >&5
2932 echo "${ECHO_T}system version" >&6
2933           elif test "$wxUSE_LIBTIFF" = builtin; then
2934             echo "$as_me:$LINENO: result: builtin version" >&5
2935 echo "${ECHO_T}builtin version" >&6
2936           else
2937             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2938 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2939    { (exit 1); exit 1; }; }
2940           fi
2941
2942
2943           echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2944 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2945           no_cache=0
2946
2947 # Check whether --with-libxpm or --without-libxpm was given.
2948 if test "${with_libxpm+set}" = set; then
2949   withval="$with_libxpm"
2950
2951                         if test "$withval" = yes; then
2952                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2953                         elif test "$withval" = no; then
2954                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2955                         elif test "$withval" = sys; then
2956                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2957                         elif test "$withval" = builtin; then
2958                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2959                         else
2960                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2961 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2962    { (exit 1); exit 1; }; }
2963                         fi
2964
2965 else
2966
2967                         LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2968                         if test "x$LINE" != x ; then
2969                           eval "DEFAULT_$LINE"
2970                         else
2971                           no_cache=1
2972                         fi
2973
2974                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2975
2976 fi;
2977
2978           eval "$ac_cv_use_libxpm"
2979           if test "$no_cache" != 1; then
2980             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2981           fi
2982
2983           if test "$wxUSE_LIBXPM" = yes; then
2984             echo "$as_me:$LINENO: result: yes" >&5
2985 echo "${ECHO_T}yes" >&6
2986           elif test "$wxUSE_LIBXPM" = no; then
2987             echo "$as_me:$LINENO: result: no" >&5
2988 echo "${ECHO_T}no" >&6
2989           elif test "$wxUSE_LIBXPM" = sys; then
2990             echo "$as_me:$LINENO: result: system version" >&5
2991 echo "${ECHO_T}system version" >&6
2992           elif test "$wxUSE_LIBXPM" = builtin; then
2993             echo "$as_me:$LINENO: result: builtin version" >&5
2994 echo "${ECHO_T}builtin version" >&6
2995           else
2996             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2997 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2998    { (exit 1); exit 1; }; }
2999           fi
3000
3001
3002           echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3003 echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3004           no_cache=0
3005
3006 # Check whether --with-libmspack or --without-libmspack was given.
3007 if test "${with_libmspack+set}" = set; then
3008   withval="$with_libmspack"
3009
3010                         if test "$withval" = yes; then
3011                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3012                         else
3013                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3014                         fi
3015
3016 else
3017
3018                         LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3019                         if test "x$LINE" != x ; then
3020                           eval "DEFAULT_$LINE"
3021                         else
3022                           no_cache=1
3023                         fi
3024
3025                         ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3026
3027 fi;
3028
3029           eval "$ac_cv_use_libmspack"
3030           if test "$no_cache" != 1; then
3031             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3032           fi
3033
3034           if test "$wxUSE_LIBMSPACK" = yes; then
3035             echo "$as_me:$LINENO: result: yes" >&5
3036 echo "${ECHO_T}yes" >&6
3037           else
3038             echo "$as_me:$LINENO: result: no" >&5
3039 echo "${ECHO_T}no" >&6
3040           fi
3041
3042
3043           echo "$as_me:$LINENO: checking for --with-sdl" >&5
3044 echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3045           no_cache=0
3046
3047 # Check whether --with-sdl or --without-sdl was given.
3048 if test "${with_sdl+set}" = set; then
3049   withval="$with_sdl"
3050
3051                         if test "$withval" = yes; then
3052                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3053                         else
3054                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
3055                         fi
3056
3057 else
3058
3059                         LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3060                         if test "x$LINE" != x ; then
3061                           eval "DEFAULT_$LINE"
3062                         else
3063                           no_cache=1
3064                         fi
3065
3066                         ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3067
3068 fi;
3069
3070           eval "$ac_cv_use_sdl"
3071           if test "$no_cache" != 1; then
3072             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3073           fi
3074
3075           if test "$wxUSE_LIBSDL" = yes; then
3076             echo "$as_me:$LINENO: result: yes" >&5
3077 echo "${ECHO_T}yes" >&6
3078           else
3079             echo "$as_me:$LINENO: result: no" >&5
3080 echo "${ECHO_T}no" >&6
3081           fi
3082
3083
3084           echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3085 echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3086           no_cache=0
3087
3088 # Check whether --with-gnomeprint or --without-gnomeprint was given.
3089 if test "${with_gnomeprint+set}" = set; then
3090   withval="$with_gnomeprint"
3091
3092                         if test "$withval" = yes; then
3093                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3094                         else
3095                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3096                         fi
3097
3098 else
3099
3100                         LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3101                         if test "x$LINE" != x ; then
3102                           eval "DEFAULT_$LINE"
3103                         else
3104                           no_cache=1
3105                         fi
3106
3107                         ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3108
3109 fi;
3110
3111           eval "$ac_cv_use_gnomeprint"
3112           if test "$no_cache" != 1; then
3113             echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3114           fi
3115
3116           if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3117             echo "$as_me:$LINENO: result: yes" >&5
3118 echo "${ECHO_T}yes" >&6
3119           else
3120             echo "$as_me:$LINENO: result: no" >&5
3121 echo "${ECHO_T}no" >&6
3122           fi
3123
3124
3125           echo "$as_me:$LINENO: checking for --with-opengl" >&5
3126 echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3127           no_cache=0
3128
3129 # Check whether --with-opengl or --without-opengl was given.
3130 if test "${with_opengl+set}" = set; then
3131   withval="$with_opengl"
3132
3133                         if test "$withval" = yes; then
3134                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
3135                         else
3136                           ac_cv_use_opengl='wxUSE_OPENGL=no'
3137                         fi
3138
3139 else
3140
3141                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3142                         if test "x$LINE" != x ; then
3143                           eval "DEFAULT_$LINE"
3144                         else
3145                           no_cache=1
3146                         fi
3147
3148                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3149
3150 fi;
3151
3152           eval "$ac_cv_use_opengl"
3153           if test "$no_cache" != 1; then
3154             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3155           fi
3156
3157           if test "$wxUSE_OPENGL" = yes; then
3158             echo "$as_me:$LINENO: result: yes" >&5
3159 echo "${ECHO_T}yes" >&6
3160           else
3161             echo "$as_me:$LINENO: result: no" >&5
3162 echo "${ECHO_T}no" >&6
3163           fi
3164
3165
3166 fi
3167
3168
3169           echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3170 echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3171           no_cache=0
3172
3173 # Check whether --with-dmalloc or --without-dmalloc was given.
3174 if test "${with_dmalloc+set}" = set; then
3175   withval="$with_dmalloc"
3176
3177                         if test "$withval" = yes; then
3178                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3179                         else
3180                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3181                         fi
3182
3183 else
3184
3185                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3186                         if test "x$LINE" != x ; then
3187                           eval "DEFAULT_$LINE"
3188                         else
3189                           no_cache=1
3190                         fi
3191
3192                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3193
3194 fi;
3195
3196           eval "$ac_cv_use_dmalloc"
3197           if test "$no_cache" != 1; then
3198             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3199           fi
3200
3201           if test "$wxUSE_DMALLOC" = yes; then
3202             echo "$as_me:$LINENO: result: yes" >&5
3203 echo "${ECHO_T}yes" >&6
3204           else
3205             echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3207           fi
3208
3209
3210           echo "$as_me:$LINENO: checking for --with-regex" >&5
3211 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3212           no_cache=0
3213
3214 # Check whether --with-regex or --without-regex was given.
3215 if test "${with_regex+set}" = set; then
3216   withval="$with_regex"
3217
3218                         if test "$withval" = yes; then
3219                           ac_cv_use_regex='wxUSE_REGEX=yes'
3220                         elif test "$withval" = no; then
3221                           ac_cv_use_regex='wxUSE_REGEX=no'
3222                         elif test "$withval" = sys; then
3223                           ac_cv_use_regex='wxUSE_REGEX=sys'
3224                         elif test "$withval" = builtin; then
3225                           ac_cv_use_regex='wxUSE_REGEX=builtin'
3226                         else
3227                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3228 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3229    { (exit 1); exit 1; }; }
3230                         fi
3231
3232 else
3233
3234                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3235                         if test "x$LINE" != x ; then
3236                           eval "DEFAULT_$LINE"
3237                         else
3238                           no_cache=1
3239                         fi
3240
3241                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3242
3243 fi;
3244
3245           eval "$ac_cv_use_regex"
3246           if test "$no_cache" != 1; then
3247             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3248           fi
3249
3250           if test "$wxUSE_REGEX" = yes; then
3251             echo "$as_me:$LINENO: result: yes" >&5
3252 echo "${ECHO_T}yes" >&6
3253           elif test "$wxUSE_REGEX" = no; then
3254             echo "$as_me:$LINENO: result: no" >&5
3255 echo "${ECHO_T}no" >&6
3256           elif test "$wxUSE_REGEX" = sys; then
3257             echo "$as_me:$LINENO: result: system version" >&5
3258 echo "${ECHO_T}system version" >&6
3259           elif test "$wxUSE_REGEX" = builtin; then
3260             echo "$as_me:$LINENO: result: builtin version" >&5
3261 echo "${ECHO_T}builtin version" >&6
3262           else
3263             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3264 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3265    { (exit 1); exit 1; }; }
3266           fi
3267
3268
3269           echo "$as_me:$LINENO: checking for --with-zlib" >&5
3270 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3271           no_cache=0
3272
3273 # Check whether --with-zlib or --without-zlib was given.
3274 if test "${with_zlib+set}" = set; then
3275   withval="$with_zlib"
3276
3277                         if test "$withval" = yes; then
3278                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
3279                         elif test "$withval" = no; then
3280                           ac_cv_use_zlib='wxUSE_ZLIB=no'
3281                         elif test "$withval" = sys; then
3282                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
3283                         elif test "$withval" = builtin; then
3284                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3285                         else
3286                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3287 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3288    { (exit 1); exit 1; }; }
3289                         fi
3290
3291 else
3292
3293                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3294                         if test "x$LINE" != x ; then
3295                           eval "DEFAULT_$LINE"
3296                         else
3297                           no_cache=1
3298                         fi
3299
3300                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3301
3302 fi;
3303
3304           eval "$ac_cv_use_zlib"
3305           if test "$no_cache" != 1; then
3306             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3307           fi
3308
3309           if test "$wxUSE_ZLIB" = yes; then
3310             echo "$as_me:$LINENO: result: yes" >&5
3311 echo "${ECHO_T}yes" >&6
3312           elif test "$wxUSE_ZLIB" = no; then
3313             echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6
3315           elif test "$wxUSE_ZLIB" = sys; then
3316             echo "$as_me:$LINENO: result: system version" >&5
3317 echo "${ECHO_T}system version" >&6
3318           elif test "$wxUSE_ZLIB" = builtin; then
3319             echo "$as_me:$LINENO: result: builtin version" >&5
3320 echo "${ECHO_T}builtin version" >&6
3321           else
3322             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3323 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3324    { (exit 1); exit 1; }; }
3325           fi
3326
3327
3328           echo "$as_me:$LINENO: checking for --with-odbc" >&5
3329 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3330           no_cache=0
3331
3332 # Check whether --with-odbc or --without-odbc was given.
3333 if test "${with_odbc+set}" = set; then
3334   withval="$with_odbc"
3335
3336                         if test "$withval" = yes; then
3337                           ac_cv_use_odbc='wxUSE_ODBC=yes'
3338                         elif test "$withval" = no; then
3339                           ac_cv_use_odbc='wxUSE_ODBC=no'
3340                         elif test "$withval" = sys; then
3341                           ac_cv_use_odbc='wxUSE_ODBC=sys'
3342                         elif test "$withval" = builtin; then
3343                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
3344                         else
3345                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3346 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3347    { (exit 1); exit 1; }; }
3348                         fi
3349
3350 else
3351
3352                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3353                         if test "x$LINE" != x ; then
3354                           eval "DEFAULT_$LINE"
3355                         else
3356                           no_cache=1
3357                         fi
3358
3359                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3360
3361 fi;
3362
3363           eval "$ac_cv_use_odbc"
3364           if test "$no_cache" != 1; then
3365             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3366           fi
3367
3368           if test "$wxUSE_ODBC" = yes; then
3369             echo "$as_me:$LINENO: result: yes" >&5
3370 echo "${ECHO_T}yes" >&6
3371           elif test "$wxUSE_ODBC" = no; then
3372             echo "$as_me:$LINENO: result: no" >&5
3373 echo "${ECHO_T}no" >&6
3374           elif test "$wxUSE_ODBC" = sys; then
3375             echo "$as_me:$LINENO: result: system version" >&5
3376 echo "${ECHO_T}system version" >&6
3377           elif test "$wxUSE_ODBC" = builtin; then
3378             echo "$as_me:$LINENO: result: builtin version" >&5
3379 echo "${ECHO_T}builtin version" >&6
3380           else
3381             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3382 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3383    { (exit 1); exit 1; }; }
3384           fi
3385
3386
3387           echo "$as_me:$LINENO: checking for --with-expat" >&5
3388 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3389           no_cache=0
3390
3391 # Check whether --with-expat or --without-expat was given.
3392 if test "${with_expat+set}" = set; then
3393   withval="$with_expat"
3394
3395                         if test "$withval" = yes; then
3396                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3397                         elif test "$withval" = no; then
3398                           ac_cv_use_expat='wxUSE_EXPAT=no'
3399                         elif test "$withval" = sys; then
3400                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3401                         elif test "$withval" = builtin; then
3402                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3403                         else
3404                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3405 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3406    { (exit 1); exit 1; }; }
3407                         fi
3408
3409 else
3410
3411                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3412                         if test "x$LINE" != x ; then
3413                           eval "DEFAULT_$LINE"
3414                         else
3415                           no_cache=1
3416                         fi
3417
3418                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3419
3420 fi;
3421
3422           eval "$ac_cv_use_expat"
3423           if test "$no_cache" != 1; then
3424             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3425           fi
3426
3427           if test "$wxUSE_EXPAT" = yes; then
3428             echo "$as_me:$LINENO: result: yes" >&5
3429 echo "${ECHO_T}yes" >&6
3430           elif test "$wxUSE_EXPAT" = no; then
3431             echo "$as_me:$LINENO: result: no" >&5
3432 echo "${ECHO_T}no" >&6
3433           elif test "$wxUSE_EXPAT" = sys; then
3434             echo "$as_me:$LINENO: result: system version" >&5
3435 echo "${ECHO_T}system version" >&6
3436           elif test "$wxUSE_EXPAT" = builtin; then
3437             echo "$as_me:$LINENO: result: builtin version" >&5
3438 echo "${ECHO_T}builtin version" >&6
3439           else
3440             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3441 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3442    { (exit 1); exit 1; }; }
3443           fi
3444
3445
3446
3447
3448           enablestring=
3449           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3450 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3451           no_cache=0
3452           # Check whether --enable-shared or --disable-shared was given.
3453 if test "${enable_shared+set}" = set; then
3454   enableval="$enable_shared"
3455
3456                           if test "$enableval" = yes; then
3457                             ac_cv_use_shared='wxUSE_SHARED=yes'
3458                           else
3459                             ac_cv_use_shared='wxUSE_SHARED=no'
3460                           fi
3461
3462 else
3463
3464                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3465                           if test "x$LINE" != x ; then
3466                             eval "DEFAULT_$LINE"
3467                           else
3468                             no_cache=1
3469                           fi
3470
3471                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3472
3473 fi;
3474
3475           eval "$ac_cv_use_shared"
3476           if test "$no_cache" != 1; then
3477             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3478           fi
3479
3480           if test "$wxUSE_SHARED" = yes; then
3481             echo "$as_me:$LINENO: result: yes" >&5
3482 echo "${ECHO_T}yes" >&6
3483           else
3484             echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6
3486           fi
3487
3488
3489           enablestring=
3490           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3491 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3492           no_cache=0
3493           # Check whether --enable-optimise or --disable-optimise was given.
3494 if test "${enable_optimise+set}" = set; then
3495   enableval="$enable_optimise"
3496
3497                           if test "$enableval" = yes; then
3498                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3499                           else
3500                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3501                           fi
3502
3503 else
3504
3505                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3506                           if test "x$LINE" != x ; then
3507                             eval "DEFAULT_$LINE"
3508                           else
3509                             no_cache=1
3510                           fi
3511
3512                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3513
3514 fi;
3515
3516           eval "$ac_cv_use_optimise"
3517           if test "$no_cache" != 1; then
3518             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3519           fi
3520
3521           if test "$wxUSE_OPTIMISE" = yes; then
3522             echo "$as_me:$LINENO: result: yes" >&5
3523 echo "${ECHO_T}yes" >&6
3524           else
3525             echo "$as_me:$LINENO: result: no" >&5
3526 echo "${ECHO_T}no" >&6
3527           fi
3528
3529
3530           enablestring=
3531           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3532 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3533           no_cache=0
3534           # Check whether --enable-debug or --disable-debug was given.
3535 if test "${enable_debug+set}" = set; then
3536   enableval="$enable_debug"
3537
3538                           if test "$enableval" = yes; then
3539                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3540                           else
3541                             ac_cv_use_debug='wxUSE_DEBUG=no'
3542                           fi
3543
3544 else
3545
3546                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3547                           if test "x$LINE" != x ; then
3548                             eval "DEFAULT_$LINE"
3549                           else
3550                             no_cache=1
3551                           fi
3552
3553                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3554
3555 fi;
3556
3557           eval "$ac_cv_use_debug"
3558           if test "$no_cache" != 1; then
3559             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3560           fi
3561
3562           if test "$wxUSE_DEBUG" = yes; then
3563             echo "$as_me:$LINENO: result: yes" >&5
3564 echo "${ECHO_T}yes" >&6
3565           else
3566             echo "$as_me:$LINENO: result: no" >&5
3567 echo "${ECHO_T}no" >&6
3568           fi
3569
3570
3571           enablestring=
3572           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3573 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3574           no_cache=0
3575           # Check whether --enable-stl or --disable-stl was given.
3576 if test "${enable_stl+set}" = set; then
3577   enableval="$enable_stl"
3578
3579                           if test "$enableval" = yes; then
3580                             ac_cv_use_stl='wxUSE_STL=yes'
3581                           else
3582                             ac_cv_use_stl='wxUSE_STL=no'
3583                           fi
3584
3585 else
3586
3587                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3588                           if test "x$LINE" != x ; then
3589                             eval "DEFAULT_$LINE"
3590                           else
3591                             no_cache=1
3592                           fi
3593
3594                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3595
3596 fi;
3597
3598           eval "$ac_cv_use_stl"
3599           if test "$no_cache" != 1; then
3600             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3601           fi
3602
3603           if test "$wxUSE_STL" = yes; then
3604             echo "$as_me:$LINENO: result: yes" >&5
3605 echo "${ECHO_T}yes" >&6
3606           else
3607             echo "$as_me:$LINENO: result: no" >&5
3608 echo "${ECHO_T}no" >&6
3609           fi
3610
3611 if test "$USE_OS2" = "1"; then
3612     DEFAULT_wxUSE_OMF=no
3613
3614           enablestring=
3615           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3616 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3617           no_cache=0
3618           # Check whether --enable-omf or --disable-omf was given.
3619 if test "${enable_omf+set}" = set; then
3620   enableval="$enable_omf"
3621
3622                           if test "$enableval" = yes; then
3623                             ac_cv_use_omf='wxUSE_OMF=yes'
3624                           else
3625                             ac_cv_use_omf='wxUSE_OMF=no'
3626                           fi
3627
3628 else
3629
3630                           LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3631                           if test "x$LINE" != x ; then
3632                             eval "DEFAULT_$LINE"
3633                           else
3634                             no_cache=1
3635                           fi
3636
3637                           ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3638
3639 fi;
3640
3641           eval "$ac_cv_use_omf"
3642           if test "$no_cache" != 1; then
3643             echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3644           fi
3645
3646           if test "$wxUSE_OMF" = yes; then
3647             echo "$as_me:$LINENO: result: yes" >&5
3648 echo "${ECHO_T}yes" >&6
3649           else
3650             echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3652           fi
3653
3654 fi
3655
3656 if test "$wxUSE_DEBUG" = "yes"; then
3657   DEFAULT_wxUSE_DEBUG_FLAG=yes
3658   DEFAULT_wxUSE_DEBUG_INFO=yes
3659   BUILD=debug
3660 elif test "$wxUSE_DEBUG" = "no"; then
3661   DEFAULT_wxUSE_DEBUG_FLAG=no
3662   DEFAULT_wxUSE_DEBUG_INFO=no
3663   BUILD=release
3664 fi
3665
3666
3667           enablestring=
3668           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3669 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3670           no_cache=0
3671           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3672 if test "${enable_debug_flag+set}" = set; then
3673   enableval="$enable_debug_flag"
3674
3675                           if test "$enableval" = yes; then
3676                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3677                           else
3678                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3679                           fi
3680
3681 else
3682
3683                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3684                           if test "x$LINE" != x ; then
3685                             eval "DEFAULT_$LINE"
3686                           else
3687                             no_cache=1
3688                           fi
3689
3690                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3691
3692 fi;
3693
3694           eval "$ac_cv_use_debug_flag"
3695           if test "$no_cache" != 1; then
3696             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3697           fi
3698
3699           if test "$wxUSE_DEBUG_FLAG" = yes; then
3700             echo "$as_me:$LINENO: result: yes" >&5
3701 echo "${ECHO_T}yes" >&6
3702           else
3703             echo "$as_me:$LINENO: result: no" >&5
3704 echo "${ECHO_T}no" >&6
3705           fi
3706
3707
3708           enablestring=
3709           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3710 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3711           no_cache=0
3712           # Check whether --enable-debug_info or --disable-debug_info was given.
3713 if test "${enable_debug_info+set}" = set; then
3714   enableval="$enable_debug_info"
3715
3716                           if test "$enableval" = yes; then
3717                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3718                           else
3719                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3720                           fi
3721
3722 else
3723
3724                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3725                           if test "x$LINE" != x ; then
3726                             eval "DEFAULT_$LINE"
3727                           else
3728                             no_cache=1
3729                           fi
3730
3731                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3732
3733 fi;
3734
3735           eval "$ac_cv_use_debug_info"
3736           if test "$no_cache" != 1; then
3737             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3738           fi
3739
3740           if test "$wxUSE_DEBUG_INFO" = yes; then
3741             echo "$as_me:$LINENO: result: yes" >&5
3742 echo "${ECHO_T}yes" >&6
3743           else
3744             echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6
3746           fi
3747
3748
3749           enablestring=
3750           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3751 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3752           no_cache=0
3753           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3754 if test "${enable_debug_gdb+set}" = set; then
3755   enableval="$enable_debug_gdb"
3756
3757                           if test "$enableval" = yes; then
3758                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3759                           else
3760                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3761                           fi
3762
3763 else
3764
3765                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3766                           if test "x$LINE" != x ; then
3767                             eval "DEFAULT_$LINE"
3768                           else
3769                             no_cache=1
3770                           fi
3771
3772                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3773
3774 fi;
3775
3776           eval "$ac_cv_use_debug_gdb"
3777           if test "$no_cache" != 1; then
3778             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3779           fi
3780
3781           if test "$wxUSE_DEBUG_GDB" = yes; then
3782             echo "$as_me:$LINENO: result: yes" >&5
3783 echo "${ECHO_T}yes" >&6
3784           else
3785             echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6
3787           fi
3788
3789
3790           enablestring=
3791           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3792 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3793           no_cache=0
3794           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3795 if test "${enable_debug_cntxt+set}" = set; then
3796   enableval="$enable_debug_cntxt"
3797
3798                           if test "$enableval" = yes; then
3799                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3800                           else
3801                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3802                           fi
3803
3804 else
3805
3806                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3807                           if test "x$LINE" != x ; then
3808                             eval "DEFAULT_$LINE"
3809                           else
3810                             no_cache=1
3811                           fi
3812
3813                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3814
3815 fi;
3816
3817           eval "$ac_cv_use_debug_cntxt"
3818           if test "$no_cache" != 1; then
3819             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3820           fi
3821
3822           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3823             echo "$as_me:$LINENO: result: yes" >&5
3824 echo "${ECHO_T}yes" >&6
3825           else
3826             echo "$as_me:$LINENO: result: no" >&5
3827 echo "${ECHO_T}no" >&6
3828           fi
3829
3830
3831           enablestring=
3832           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3833 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3834           no_cache=0
3835           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3836 if test "${enable_mem_tracing+set}" = set; then
3837   enableval="$enable_mem_tracing"
3838
3839                           if test "$enableval" = yes; then
3840                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3841                           else
3842                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3843                           fi
3844
3845 else
3846
3847                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3848                           if test "x$LINE" != x ; then
3849                             eval "DEFAULT_$LINE"
3850                           else
3851                             no_cache=1
3852                           fi
3853
3854                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3855
3856 fi;
3857
3858           eval "$ac_cv_use_mem_tracing"
3859           if test "$no_cache" != 1; then
3860             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3861           fi
3862
3863           if test "$wxUSE_MEM_TRACING" = yes; then
3864             echo "$as_me:$LINENO: result: yes" >&5
3865 echo "${ECHO_T}yes" >&6
3866           else
3867             echo "$as_me:$LINENO: result: no" >&5
3868 echo "${ECHO_T}no" >&6
3869           fi
3870
3871
3872           enablestring=
3873           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3874 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3875           no_cache=0
3876           # Check whether --enable-profile or --disable-profile was given.
3877 if test "${enable_profile+set}" = set; then
3878   enableval="$enable_profile"
3879
3880                           if test "$enableval" = yes; then
3881                             ac_cv_use_profile='wxUSE_PROFILE=yes'
3882                           else
3883                             ac_cv_use_profile='wxUSE_PROFILE=no'
3884                           fi
3885
3886 else
3887
3888                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3889                           if test "x$LINE" != x ; then
3890                             eval "DEFAULT_$LINE"
3891                           else
3892                             no_cache=1
3893                           fi
3894
3895                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3896
3897 fi;
3898
3899           eval "$ac_cv_use_profile"
3900           if test "$no_cache" != 1; then
3901             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3902           fi
3903
3904           if test "$wxUSE_PROFILE" = yes; then
3905             echo "$as_me:$LINENO: result: yes" >&5
3906 echo "${ECHO_T}yes" >&6
3907           else
3908             echo "$as_me:$LINENO: result: no" >&5
3909 echo "${ECHO_T}no" >&6
3910           fi
3911
3912
3913           enablestring=
3914           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3915 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3916           no_cache=0
3917           # Check whether --enable-no_rtti or --disable-no_rtti was given.
3918 if test "${enable_no_rtti+set}" = set; then
3919   enableval="$enable_no_rtti"
3920
3921                           if test "$enableval" = yes; then
3922                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3923                           else
3924                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3925                           fi
3926
3927 else
3928
3929                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3930                           if test "x$LINE" != x ; then
3931                             eval "DEFAULT_$LINE"
3932                           else
3933                             no_cache=1
3934                           fi
3935
3936                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3937
3938 fi;
3939
3940           eval "$ac_cv_use_no_rtti"
3941           if test "$no_cache" != 1; then
3942             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3943           fi
3944
3945           if test "$wxUSE_NO_RTTI" = yes; then
3946             echo "$as_me:$LINENO: result: yes" >&5
3947 echo "${ECHO_T}yes" >&6
3948           else
3949             echo "$as_me:$LINENO: result: no" >&5
3950 echo "${ECHO_T}no" >&6
3951           fi
3952
3953
3954           enablestring=
3955           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3956 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3957           no_cache=0
3958           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3959 if test "${enable_no_exceptions+set}" = set; then
3960   enableval="$enable_no_exceptions"
3961
3962                           if test "$enableval" = yes; then
3963                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3964                           else
3965                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3966                           fi
3967
3968 else
3969
3970                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3971                           if test "x$LINE" != x ; then
3972                             eval "DEFAULT_$LINE"
3973                           else
3974                             no_cache=1
3975                           fi
3976
3977                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3978
3979 fi;
3980
3981           eval "$ac_cv_use_no_exceptions"
3982           if test "$no_cache" != 1; then
3983             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3984           fi
3985
3986           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3987             echo "$as_me:$LINENO: result: yes" >&5
3988 echo "${ECHO_T}yes" >&6
3989           else
3990             echo "$as_me:$LINENO: result: no" >&5
3991 echo "${ECHO_T}no" >&6
3992           fi
3993
3994
3995           enablestring=
3996           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3997 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3998           no_cache=0
3999           # Check whether --enable-permissive or --disable-permissive was given.
4000 if test "${enable_permissive+set}" = set; then
4001   enableval="$enable_permissive"
4002
4003                           if test "$enableval" = yes; then
4004                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4005                           else
4006                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4007                           fi
4008
4009 else
4010
4011                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4012                           if test "x$LINE" != x ; then
4013                             eval "DEFAULT_$LINE"
4014                           else
4015                             no_cache=1
4016                           fi
4017
4018                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4019
4020 fi;
4021
4022           eval "$ac_cv_use_permissive"
4023           if test "$no_cache" != 1; then
4024             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4025           fi
4026
4027           if test "$wxUSE_PERMISSIVE" = yes; then
4028             echo "$as_me:$LINENO: result: yes" >&5
4029 echo "${ECHO_T}yes" >&6
4030           else
4031             echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6
4033           fi
4034
4035
4036           enablestring=
4037           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4038 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4039           no_cache=0
4040           # Check whether --enable-no_deps or --disable-no_deps was given.
4041 if test "${enable_no_deps+set}" = set; then
4042   enableval="$enable_no_deps"
4043
4044                           if test "$enableval" = yes; then
4045                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4046                           else
4047                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4048                           fi
4049
4050 else
4051
4052                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4053                           if test "x$LINE" != x ; then
4054                             eval "DEFAULT_$LINE"
4055                           else
4056                             no_cache=1
4057                           fi
4058
4059                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4060
4061 fi;
4062
4063           eval "$ac_cv_use_no_deps"
4064           if test "$no_cache" != 1; then
4065             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4066           fi
4067
4068           if test "$wxUSE_NO_DEPS" = yes; then
4069             echo "$as_me:$LINENO: result: yes" >&5
4070 echo "${ECHO_T}yes" >&6
4071           else
4072             echo "$as_me:$LINENO: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4074           fi
4075
4076
4077
4078           enablestring=
4079           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4080 echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4081           no_cache=0
4082           # Check whether --enable-compat22 or --disable-compat22 was given.
4083 if test "${enable_compat22+set}" = set; then
4084   enableval="$enable_compat22"
4085
4086                           if test "$enableval" = yes; then
4087                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4088                           else
4089                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4090                           fi
4091
4092 else
4093
4094                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4095                           if test "x$LINE" != x ; then
4096                             eval "DEFAULT_$LINE"
4097                           else
4098                             no_cache=1
4099                           fi
4100
4101                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4102
4103 fi;
4104
4105           eval "$ac_cv_use_compat22"
4106           if test "$no_cache" != 1; then
4107             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4108           fi
4109
4110           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4111             echo "$as_me:$LINENO: result: yes" >&5
4112 echo "${ECHO_T}yes" >&6
4113           else
4114             echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4116           fi
4117
4118
4119           enablestring=disable
4120           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4121 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4122           no_cache=0
4123           # Check whether --enable-compat24 or --disable-compat24 was given.
4124 if test "${enable_compat24+set}" = set; then
4125   enableval="$enable_compat24"
4126
4127                           if test "$enableval" = yes; then
4128                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4129                           else
4130                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4131                           fi
4132
4133 else
4134
4135                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4136                           if test "x$LINE" != x ; then
4137                             eval "DEFAULT_$LINE"
4138                           else
4139                             no_cache=1
4140                           fi
4141
4142                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4143
4144 fi;
4145
4146           eval "$ac_cv_use_compat24"
4147           if test "$no_cache" != 1; then
4148             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4149           fi
4150
4151           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4152             echo "$as_me:$LINENO: result: yes" >&5
4153 echo "${ECHO_T}yes" >&6
4154           else
4155             echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6
4157           fi
4158
4159
4160
4161           enablestring=
4162           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4163 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4164           no_cache=0
4165           # Check whether --enable-rpath or --disable-rpath was given.
4166 if test "${enable_rpath+set}" = set; then
4167   enableval="$enable_rpath"
4168
4169                           if test "$enableval" = yes; then
4170                             ac_cv_use_rpath='wxUSE_RPATH=yes'
4171                           else
4172                             ac_cv_use_rpath='wxUSE_RPATH=no'
4173                           fi
4174
4175 else
4176
4177                           LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4178                           if test "x$LINE" != x ; then
4179                             eval "DEFAULT_$LINE"
4180                           else
4181                             no_cache=1
4182                           fi
4183
4184                           ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4185
4186 fi;
4187
4188           eval "$ac_cv_use_rpath"
4189           if test "$no_cache" != 1; then
4190             echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4191           fi
4192
4193           if test "$wxUSE_RPATH" = yes; then
4194             echo "$as_me:$LINENO: result: yes" >&5
4195 echo "${ECHO_T}yes" >&6
4196           else
4197             echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4199           fi
4200
4201
4202
4203
4204
4205           enablestring=
4206           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4207 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4208           no_cache=0
4209           # Check whether --enable-intl or --disable-intl was given.
4210 if test "${enable_intl+set}" = set; then
4211   enableval="$enable_intl"
4212
4213                           if test "$enableval" = yes; then
4214                             ac_cv_use_intl='wxUSE_INTL=yes'
4215                           else
4216                             ac_cv_use_intl='wxUSE_INTL=no'
4217                           fi
4218
4219 else
4220
4221                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4222                           if test "x$LINE" != x ; then
4223                             eval "DEFAULT_$LINE"
4224                           else
4225                             no_cache=1
4226                           fi
4227
4228                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4229
4230 fi;
4231
4232           eval "$ac_cv_use_intl"
4233           if test "$no_cache" != 1; then
4234             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4235           fi
4236
4237           if test "$wxUSE_INTL" = yes; then
4238             echo "$as_me:$LINENO: result: yes" >&5
4239 echo "${ECHO_T}yes" >&6
4240           else
4241             echo "$as_me:$LINENO: result: no" >&5
4242 echo "${ECHO_T}no" >&6
4243           fi
4244
4245
4246           enablestring=
4247           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4248 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4249           no_cache=0
4250           # Check whether --enable-config or --disable-config was given.
4251 if test "${enable_config+set}" = set; then
4252   enableval="$enable_config"
4253
4254                           if test "$enableval" = yes; then
4255                             ac_cv_use_config='wxUSE_CONFIG=yes'
4256                           else
4257                             ac_cv_use_config='wxUSE_CONFIG=no'
4258                           fi
4259
4260 else
4261
4262                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4263                           if test "x$LINE" != x ; then
4264                             eval "DEFAULT_$LINE"
4265                           else
4266                             no_cache=1
4267                           fi
4268
4269                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4270
4271 fi;
4272
4273           eval "$ac_cv_use_config"
4274           if test "$no_cache" != 1; then
4275             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4276           fi
4277
4278           if test "$wxUSE_CONFIG" = yes; then
4279             echo "$as_me:$LINENO: result: yes" >&5
4280 echo "${ECHO_T}yes" >&6
4281           else
4282             echo "$as_me:$LINENO: result: no" >&5
4283 echo "${ECHO_T}no" >&6
4284           fi
4285
4286
4287
4288           enablestring=
4289           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4290 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4291           no_cache=0
4292           # Check whether --enable-protocols or --disable-protocols was given.
4293 if test "${enable_protocols+set}" = set; then
4294   enableval="$enable_protocols"
4295
4296                           if test "$enableval" = yes; then
4297                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4298                           else
4299                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4300                           fi
4301
4302 else
4303
4304                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4305                           if test "x$LINE" != x ; then
4306                             eval "DEFAULT_$LINE"
4307                           else
4308                             no_cache=1
4309                           fi
4310
4311                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4312
4313 fi;
4314
4315           eval "$ac_cv_use_protocols"
4316           if test "$no_cache" != 1; then
4317             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4318           fi
4319
4320           if test "$wxUSE_PROTOCOL" = yes; then
4321             echo "$as_me:$LINENO: result: yes" >&5
4322 echo "${ECHO_T}yes" >&6
4323           else
4324             echo "$as_me:$LINENO: result: no" >&5
4325 echo "${ECHO_T}no" >&6
4326           fi
4327
4328
4329           enablestring=
4330           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4331 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4332           no_cache=0
4333           # Check whether --enable-ftp or --disable-ftp was given.
4334 if test "${enable_ftp+set}" = set; then
4335   enableval="$enable_ftp"
4336
4337                           if test "$enableval" = yes; then
4338                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4339                           else
4340                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4341                           fi
4342
4343 else
4344
4345                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4346                           if test "x$LINE" != x ; then
4347                             eval "DEFAULT_$LINE"
4348                           else
4349                             no_cache=1
4350                           fi
4351
4352                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4353
4354 fi;
4355
4356           eval "$ac_cv_use_ftp"
4357           if test "$no_cache" != 1; then
4358             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4359           fi
4360
4361           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4362             echo "$as_me:$LINENO: result: yes" >&5
4363 echo "${ECHO_T}yes" >&6
4364           else
4365             echo "$as_me:$LINENO: result: no" >&5
4366 echo "${ECHO_T}no" >&6
4367           fi
4368
4369
4370           enablestring=
4371           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4372 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4373           no_cache=0
4374           # Check whether --enable-http or --disable-http was given.
4375 if test "${enable_http+set}" = set; then
4376   enableval="$enable_http"
4377
4378                           if test "$enableval" = yes; then
4379                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4380                           else
4381                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4382                           fi
4383
4384 else
4385
4386                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4387                           if test "x$LINE" != x ; then
4388                             eval "DEFAULT_$LINE"
4389                           else
4390                             no_cache=1
4391                           fi
4392
4393                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4394
4395 fi;
4396
4397           eval "$ac_cv_use_http"
4398           if test "$no_cache" != 1; then
4399             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4400           fi
4401
4402           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4403             echo "$as_me:$LINENO: result: yes" >&5
4404 echo "${ECHO_T}yes" >&6
4405           else
4406             echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6
4408           fi
4409
4410
4411           enablestring=
4412           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4413 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4414           no_cache=0
4415           # Check whether --enable-fileproto or --disable-fileproto was given.
4416 if test "${enable_fileproto+set}" = set; then
4417   enableval="$enable_fileproto"
4418
4419                           if test "$enableval" = yes; then
4420                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4421                           else
4422                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4423                           fi
4424
4425 else
4426
4427                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4428                           if test "x$LINE" != x ; then
4429                             eval "DEFAULT_$LINE"
4430                           else
4431                             no_cache=1
4432                           fi
4433
4434                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4435
4436 fi;
4437
4438           eval "$ac_cv_use_fileproto"
4439           if test "$no_cache" != 1; then
4440             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4441           fi
4442
4443           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4444             echo "$as_me:$LINENO: result: yes" >&5
4445 echo "${ECHO_T}yes" >&6
4446           else
4447             echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6
4449           fi
4450
4451
4452           enablestring=
4453           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4454 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4455           no_cache=0
4456           # Check whether --enable-sockets or --disable-sockets was given.
4457 if test "${enable_sockets+set}" = set; then
4458   enableval="$enable_sockets"
4459
4460                           if test "$enableval" = yes; then
4461                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4462                           else
4463                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4464                           fi
4465
4466 else
4467
4468                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4469                           if test "x$LINE" != x ; then
4470                             eval "DEFAULT_$LINE"
4471                           else
4472                             no_cache=1
4473                           fi
4474
4475                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4476
4477 fi;
4478
4479           eval "$ac_cv_use_sockets"
4480           if test "$no_cache" != 1; then
4481             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4482           fi
4483
4484           if test "$wxUSE_SOCKETS" = yes; then
4485             echo "$as_me:$LINENO: result: yes" >&5
4486 echo "${ECHO_T}yes" >&6
4487           else
4488             echo "$as_me:$LINENO: result: no" >&5
4489 echo "${ECHO_T}no" >&6
4490           fi
4491
4492
4493           enablestring=
4494           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4495 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4496           no_cache=0
4497           # Check whether --enable-ole or --disable-ole was given.
4498 if test "${enable_ole+set}" = set; then
4499   enableval="$enable_ole"
4500
4501                           if test "$enableval" = yes; then
4502                             ac_cv_use_ole='wxUSE_OLE=yes'
4503                           else
4504                             ac_cv_use_ole='wxUSE_OLE=no'
4505                           fi
4506
4507 else
4508
4509                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4510                           if test "x$LINE" != x ; then
4511                             eval "DEFAULT_$LINE"
4512                           else
4513                             no_cache=1
4514                           fi
4515
4516                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4517
4518 fi;
4519
4520           eval "$ac_cv_use_ole"
4521           if test "$no_cache" != 1; then
4522             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4523           fi
4524
4525           if test "$wxUSE_OLE" = yes; then
4526             echo "$as_me:$LINENO: result: yes" >&5
4527 echo "${ECHO_T}yes" >&6
4528           else
4529             echo "$as_me:$LINENO: result: no" >&5
4530 echo "${ECHO_T}no" >&6
4531           fi
4532
4533
4534           enablestring=
4535           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4536 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4537           no_cache=0
4538           # Check whether --enable-dataobj or --disable-dataobj was given.
4539 if test "${enable_dataobj+set}" = set; then
4540   enableval="$enable_dataobj"
4541
4542                           if test "$enableval" = yes; then
4543                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4544                           else
4545                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4546                           fi
4547
4548 else
4549
4550                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4551                           if test "x$LINE" != x ; then
4552                             eval "DEFAULT_$LINE"
4553                           else
4554                             no_cache=1
4555                           fi
4556
4557                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4558
4559 fi;
4560
4561           eval "$ac_cv_use_dataobj"
4562           if test "$no_cache" != 1; then
4563             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4564           fi
4565
4566           if test "$wxUSE_DATAOBJ" = yes; then
4567             echo "$as_me:$LINENO: result: yes" >&5
4568 echo "${ECHO_T}yes" >&6
4569           else
4570             echo "$as_me:$LINENO: result: no" >&5
4571 echo "${ECHO_T}no" >&6
4572           fi
4573
4574
4575
4576           enablestring=
4577           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4578 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4579           no_cache=0
4580           # Check whether --enable-ipc or --disable-ipc was given.
4581 if test "${enable_ipc+set}" = set; then
4582   enableval="$enable_ipc"
4583
4584                           if test "$enableval" = yes; then
4585                             ac_cv_use_ipc='wxUSE_IPC=yes'
4586                           else
4587                             ac_cv_use_ipc='wxUSE_IPC=no'
4588                           fi
4589
4590 else
4591
4592                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4593                           if test "x$LINE" != x ; then
4594                             eval "DEFAULT_$LINE"
4595                           else
4596                             no_cache=1
4597                           fi
4598
4599                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4600
4601 fi;
4602
4603           eval "$ac_cv_use_ipc"
4604           if test "$no_cache" != 1; then
4605             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4606           fi
4607
4608           if test "$wxUSE_IPC" = yes; then
4609             echo "$as_me:$LINENO: result: yes" >&5
4610 echo "${ECHO_T}yes" >&6
4611           else
4612             echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6
4614           fi
4615
4616
4617
4618           enablestring=
4619           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4620 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4621           no_cache=0
4622           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4623 if test "${enable_apple_ieee+set}" = set; then
4624   enableval="$enable_apple_ieee"
4625
4626                           if test "$enableval" = yes; then
4627                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4628                           else
4629                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4630                           fi
4631
4632 else
4633
4634                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4635                           if test "x$LINE" != x ; then
4636                             eval "DEFAULT_$LINE"
4637                           else
4638                             no_cache=1
4639                           fi
4640
4641                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4642
4643 fi;
4644
4645           eval "$ac_cv_use_apple_ieee"
4646           if test "$no_cache" != 1; then
4647             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4648           fi
4649
4650           if test "$wxUSE_APPLE_IEEE" = yes; then
4651             echo "$as_me:$LINENO: result: yes" >&5
4652 echo "${ECHO_T}yes" >&6
4653           else
4654             echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6
4656           fi
4657
4658
4659           enablestring=
4660           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4661 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4662           no_cache=0
4663           # Check whether --enable-arcstream or --disable-arcstream was given.
4664 if test "${enable_arcstream+set}" = set; then
4665   enableval="$enable_arcstream"
4666
4667                           if test "$enableval" = yes; then
4668                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
4669                           else
4670                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
4671                           fi
4672
4673 else
4674
4675                           LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
4676                           if test "x$LINE" != x ; then
4677                             eval "DEFAULT_$LINE"
4678                           else
4679                             no_cache=1
4680                           fi
4681
4682                           ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
4683
4684 fi;
4685
4686           eval "$ac_cv_use_arcstream"
4687           if test "$no_cache" != 1; then
4688             echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4689           fi
4690
4691           if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
4692             echo "$as_me:$LINENO: result: yes" >&5
4693 echo "${ECHO_T}yes" >&6
4694           else
4695             echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6
4697           fi
4698
4699
4700           enablestring=
4701           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4702 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
4703           no_cache=0
4704           # Check whether --enable-backtrace or --disable-backtrace was given.
4705 if test "${enable_backtrace+set}" = set; then
4706   enableval="$enable_backtrace"
4707
4708                           if test "$enableval" = yes; then
4709                             ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
4710                           else
4711                             ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
4712                           fi
4713
4714 else
4715
4716                           LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
4717                           if test "x$LINE" != x ; then
4718                             eval "DEFAULT_$LINE"
4719                           else
4720                             no_cache=1
4721                           fi
4722
4723                           ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
4724
4725 fi;
4726
4727           eval "$ac_cv_use_backtrace"
4728           if test "$no_cache" != 1; then
4729             echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
4730           fi
4731
4732           if test "$wxUSE_STACKWALKER" = yes; then
4733             echo "$as_me:$LINENO: result: yes" >&5
4734 echo "${ECHO_T}yes" >&6
4735           else
4736             echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6
4738           fi
4739
4740
4741           enablestring=
4742           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4743 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4744           no_cache=0
4745           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4746 if test "${enable_catch_segvs+set}" = set; then
4747   enableval="$enable_catch_segvs"
4748
4749                           if test "$enableval" = yes; then
4750                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4751                           else
4752                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4753                           fi
4754
4755 else
4756
4757                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4758                           if test "x$LINE" != x ; then
4759                             eval "DEFAULT_$LINE"
4760                           else
4761                             no_cache=1
4762                           fi
4763
4764                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4765
4766 fi;
4767
4768           eval "$ac_cv_use_catch_segvs"
4769           if test "$no_cache" != 1; then
4770             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4771           fi
4772
4773           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4774             echo "$as_me:$LINENO: result: yes" >&5
4775 echo "${ECHO_T}yes" >&6
4776           else
4777             echo "$as_me:$LINENO: result: no" >&5
4778 echo "${ECHO_T}no" >&6
4779           fi
4780
4781
4782           enablestring=
4783           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4784 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4785           no_cache=0
4786           # Check whether --enable-cmdline or --disable-cmdline was given.
4787 if test "${enable_cmdline+set}" = set; then
4788   enableval="$enable_cmdline"
4789
4790                           if test "$enableval" = yes; then
4791                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4792                           else
4793                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4794                           fi
4795
4796 else
4797
4798                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4799                           if test "x$LINE" != x ; then
4800                             eval "DEFAULT_$LINE"
4801                           else
4802                             no_cache=1
4803                           fi
4804
4805                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4806
4807 fi;
4808
4809           eval "$ac_cv_use_cmdline"
4810           if test "$no_cache" != 1; then
4811             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4812           fi
4813
4814           if test "$wxUSE_CMDLINE_PARSER" = yes; then
4815             echo "$as_me:$LINENO: result: yes" >&5
4816 echo "${ECHO_T}yes" >&6
4817           else
4818             echo "$as_me:$LINENO: result: no" >&5
4819 echo "${ECHO_T}no" >&6
4820           fi
4821
4822
4823           enablestring=
4824           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4825 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4826           no_cache=0
4827           # Check whether --enable-datetime or --disable-datetime was given.
4828 if test "${enable_datetime+set}" = set; then
4829   enableval="$enable_datetime"
4830
4831                           if test "$enableval" = yes; then
4832                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
4833                           else
4834                             ac_cv_use_datetime='wxUSE_DATETIME=no'
4835                           fi
4836
4837 else
4838
4839                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4840                           if test "x$LINE" != x ; then
4841                             eval "DEFAULT_$LINE"
4842                           else
4843                             no_cache=1
4844                           fi
4845
4846                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4847
4848 fi;
4849
4850           eval "$ac_cv_use_datetime"
4851           if test "$no_cache" != 1; then
4852             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4853           fi
4854
4855           if test "$wxUSE_DATETIME" = yes; then
4856             echo "$as_me:$LINENO: result: yes" >&5
4857 echo "${ECHO_T}yes" >&6
4858           else
4859             echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6
4861           fi
4862
4863
4864           enablestring=
4865           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4866 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4867           no_cache=0
4868           # Check whether --enable-debugreport or --disable-debugreport was given.
4869 if test "${enable_debugreport+set}" = set; then
4870   enableval="$enable_debugreport"
4871
4872                           if test "$enableval" = yes; then
4873                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4874                           else
4875                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4876                           fi
4877
4878 else
4879
4880                           LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4881                           if test "x$LINE" != x ; then
4882                             eval "DEFAULT_$LINE"
4883                           else
4884                             no_cache=1
4885                           fi
4886
4887                           ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4888
4889 fi;
4890
4891           eval "$ac_cv_use_debugreport"
4892           if test "$no_cache" != 1; then
4893             echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4894           fi
4895
4896           if test "$wxUSE_DEBUGREPORT" = yes; then
4897             echo "$as_me:$LINENO: result: yes" >&5
4898 echo "${ECHO_T}yes" >&6
4899           else
4900             echo "$as_me:$LINENO: result: no" >&5
4901 echo "${ECHO_T}no" >&6
4902           fi
4903
4904
4905           enablestring=
4906           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4907 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4908           no_cache=0
4909           # Check whether --enable-dialupman or --disable-dialupman was given.
4910 if test "${enable_dialupman+set}" = set; then
4911   enableval="$enable_dialupman"
4912
4913                           if test "$enableval" = yes; then
4914                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4915                           else
4916                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4917                           fi
4918
4919 else
4920
4921                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4922                           if test "x$LINE" != x ; then
4923                             eval "DEFAULT_$LINE"
4924                           else
4925                             no_cache=1
4926                           fi
4927
4928                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4929
4930 fi;
4931
4932           eval "$ac_cv_use_dialupman"
4933           if test "$no_cache" != 1; then
4934             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4935           fi
4936
4937           if test "$wxUSE_DIALUP_MANAGER" = yes; then
4938             echo "$as_me:$LINENO: result: yes" >&5
4939 echo "${ECHO_T}yes" >&6
4940           else
4941             echo "$as_me:$LINENO: result: no" >&5
4942 echo "${ECHO_T}no" >&6
4943           fi
4944
4945
4946           enablestring=
4947           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4948 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4949           no_cache=0
4950           # Check whether --enable-dynlib or --disable-dynlib was given.
4951 if test "${enable_dynlib+set}" = set; then
4952   enableval="$enable_dynlib"
4953
4954                           if test "$enableval" = yes; then
4955                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4956                           else
4957                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4958                           fi
4959
4960 else
4961
4962                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4963                           if test "x$LINE" != x ; then
4964                             eval "DEFAULT_$LINE"
4965                           else
4966                             no_cache=1
4967                           fi
4968
4969                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4970
4971 fi;
4972
4973           eval "$ac_cv_use_dynlib"
4974           if test "$no_cache" != 1; then
4975             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4976           fi
4977
4978           if test "$wxUSE_DYNLIB_CLASS" = yes; then
4979             echo "$as_me:$LINENO: result: yes" >&5
4980 echo "${ECHO_T}yes" >&6
4981           else
4982             echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6
4984           fi
4985
4986
4987           enablestring=
4988           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4989 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4990           no_cache=0
4991           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4992 if test "${enable_dynamicloader+set}" = set; then
4993   enableval="$enable_dynamicloader"
4994
4995                           if test "$enableval" = yes; then
4996                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4997                           else
4998                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4999                           fi
5000
5001 else
5002
5003                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5004                           if test "x$LINE" != x ; then
5005                             eval "DEFAULT_$LINE"
5006                           else
5007                             no_cache=1
5008                           fi
5009
5010                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5011
5012 fi;
5013
5014           eval "$ac_cv_use_dynamicloader"
5015           if test "$no_cache" != 1; then
5016             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5017           fi
5018
5019           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5020             echo "$as_me:$LINENO: result: yes" >&5
5021 echo "${ECHO_T}yes" >&6
5022           else
5023             echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6
5025           fi
5026
5027
5028           enablestring=
5029           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5030 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5031           no_cache=0
5032           # Check whether --enable-exceptions or --disable-exceptions was given.
5033 if test "${enable_exceptions+set}" = set; then
5034   enableval="$enable_exceptions"
5035
5036                           if test "$enableval" = yes; then
5037                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5038                           else
5039                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5040                           fi
5041
5042 else
5043
5044                           LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5045                           if test "x$LINE" != x ; then
5046                             eval "DEFAULT_$LINE"
5047                           else
5048                             no_cache=1
5049                           fi
5050
5051                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5052
5053 fi;
5054
5055           eval "$ac_cv_use_exceptions"
5056           if test "$no_cache" != 1; then
5057             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5058           fi
5059
5060           if test "$wxUSE_EXCEPTIONS" = yes; then
5061             echo "$as_me:$LINENO: result: yes" >&5
5062 echo "${ECHO_T}yes" >&6
5063           else
5064             echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6
5066           fi
5067
5068
5069           enablestring=
5070           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5071 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5072           no_cache=0
5073           # Check whether --enable-ffile or --disable-ffile was given.
5074 if test "${enable_ffile+set}" = set; then
5075   enableval="$enable_ffile"
5076
5077                           if test "$enableval" = yes; then
5078                             ac_cv_use_ffile='wxUSE_FFILE=yes'
5079                           else
5080                             ac_cv_use_ffile='wxUSE_FFILE=no'
5081                           fi
5082
5083 else
5084
5085                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5086                           if test "x$LINE" != x ; then
5087                             eval "DEFAULT_$LINE"
5088                           else
5089                             no_cache=1
5090                           fi
5091
5092                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5093
5094 fi;
5095
5096           eval "$ac_cv_use_ffile"
5097           if test "$no_cache" != 1; then
5098             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5099           fi
5100
5101           if test "$wxUSE_FFILE" = yes; then
5102             echo "$as_me:$LINENO: result: yes" >&5
5103 echo "${ECHO_T}yes" >&6
5104           else
5105             echo "$as_me:$LINENO: result: no" >&5
5106 echo "${ECHO_T}no" >&6
5107           fi
5108
5109
5110           enablestring=
5111           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5112 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5113           no_cache=0
5114           # Check whether --enable-file or --disable-file was given.
5115 if test "${enable_file+set}" = set; then
5116   enableval="$enable_file"
5117
5118                           if test "$enableval" = yes; then
5119                             ac_cv_use_file='wxUSE_FILE=yes'
5120                           else
5121                             ac_cv_use_file='wxUSE_FILE=no'
5122                           fi
5123
5124 else
5125
5126                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5127                           if test "x$LINE" != x ; then
5128                             eval "DEFAULT_$LINE"
5129                           else
5130                             no_cache=1
5131                           fi
5132
5133                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5134
5135 fi;
5136
5137           eval "$ac_cv_use_file"
5138           if test "$no_cache" != 1; then
5139             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5140           fi
5141
5142           if test "$wxUSE_FILE" = yes; then
5143             echo "$as_me:$LINENO: result: yes" >&5
5144 echo "${ECHO_T}yes" >&6
5145           else
5146             echo "$as_me:$LINENO: result: no" >&5
5147 echo "${ECHO_T}no" >&6
5148           fi
5149
5150
5151           enablestring=
5152           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5153 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5154           no_cache=0
5155           # Check whether --enable-filesystem or --disable-filesystem was given.
5156 if test "${enable_filesystem+set}" = set; then
5157   enableval="$enable_filesystem"
5158
5159                           if test "$enableval" = yes; then
5160                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5161                           else
5162                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5163                           fi
5164
5165 else
5166
5167                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5168                           if test "x$LINE" != x ; then
5169                             eval "DEFAULT_$LINE"
5170                           else
5171                             no_cache=1
5172                           fi
5173
5174                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5175
5176 fi;
5177
5178           eval "$ac_cv_use_filesystem"
5179           if test "$no_cache" != 1; then
5180             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5181           fi
5182
5183           if test "$wxUSE_FILESYSTEM" = yes; then
5184             echo "$as_me:$LINENO: result: yes" >&5
5185 echo "${ECHO_T}yes" >&6
5186           else
5187             echo "$as_me:$LINENO: result: no" >&5
5188 echo "${ECHO_T}no" >&6
5189           fi
5190
5191
5192           enablestring=
5193           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5194 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5195           no_cache=0
5196           # Check whether --enable-fontmap or --disable-fontmap was given.
5197 if test "${enable_fontmap+set}" = set; then
5198   enableval="$enable_fontmap"
5199
5200                           if test "$enableval" = yes; then
5201                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5202                           else
5203                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5204                           fi
5205
5206 else
5207
5208                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5209                           if test "x$LINE" != x ; then
5210                             eval "DEFAULT_$LINE"
5211                           else
5212                             no_cache=1
5213                           fi
5214
5215                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5216
5217 fi;
5218
5219           eval "$ac_cv_use_fontmap"
5220           if test "$no_cache" != 1; then
5221             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5222           fi
5223
5224           if test "$wxUSE_FONTMAP" = yes; then
5225             echo "$as_me:$LINENO: result: yes" >&5
5226 echo "${ECHO_T}yes" >&6
5227           else
5228             echo "$as_me:$LINENO: result: no" >&5
5229 echo "${ECHO_T}no" >&6
5230           fi
5231
5232
5233           enablestring=
5234           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5235 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5236           no_cache=0
5237           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5238 if test "${enable_fs_inet+set}" = set; then
5239   enableval="$enable_fs_inet"
5240
5241                           if test "$enableval" = yes; then
5242                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5243                           else
5244                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5245                           fi
5246
5247 else
5248
5249                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5250                           if test "x$LINE" != x ; then
5251                             eval "DEFAULT_$LINE"
5252                           else
5253                             no_cache=1
5254                           fi
5255
5256                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5257
5258 fi;
5259
5260           eval "$ac_cv_use_fs_inet"
5261           if test "$no_cache" != 1; then
5262             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5263           fi
5264
5265           if test "$wxUSE_FS_INET" = yes; then
5266             echo "$as_me:$LINENO: result: yes" >&5
5267 echo "${ECHO_T}yes" >&6
5268           else
5269             echo "$as_me:$LINENO: result: no" >&5
5270 echo "${ECHO_T}no" >&6
5271           fi
5272
5273
5274           enablestring=
5275           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5276 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5277           no_cache=0
5278           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5279 if test "${enable_fs_zip+set}" = set; then
5280   enableval="$enable_fs_zip"
5281
5282                           if test "$enableval" = yes; then
5283                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5284                           else
5285                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5286                           fi
5287
5288 else
5289
5290                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5291                           if test "x$LINE" != x ; then
5292                             eval "DEFAULT_$LINE"
5293                           else
5294                             no_cache=1
5295                           fi
5296
5297                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5298
5299 fi;
5300
5301           eval "$ac_cv_use_fs_zip"
5302           if test "$no_cache" != 1; then
5303             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5304           fi
5305
5306           if test "$wxUSE_FS_ZIP" = yes; then
5307             echo "$as_me:$LINENO: result: yes" >&5
5308 echo "${ECHO_T}yes" >&6
5309           else
5310             echo "$as_me:$LINENO: result: no" >&5
5311 echo "${ECHO_T}no" >&6
5312           fi
5313
5314
5315           enablestring=
5316           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5317 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5318           no_cache=0
5319           # Check whether --enable-geometry or --disable-geometry was given.
5320 if test "${enable_geometry+set}" = set; then
5321   enableval="$enable_geometry"
5322
5323                           if test "$enableval" = yes; then
5324                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5325                           else
5326                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5327                           fi
5328
5329 else
5330
5331                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5332                           if test "x$LINE" != x ; then
5333                             eval "DEFAULT_$LINE"
5334                           else
5335                             no_cache=1
5336                           fi
5337
5338                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5339
5340 fi;
5341
5342           eval "$ac_cv_use_geometry"
5343           if test "$no_cache" != 1; then
5344             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5345           fi
5346
5347           if test "$wxUSE_GEOMETRY" = yes; then
5348             echo "$as_me:$LINENO: result: yes" >&5
5349 echo "${ECHO_T}yes" >&6
5350           else
5351             echo "$as_me:$LINENO: result: no" >&5
5352 echo "${ECHO_T}no" >&6
5353           fi
5354
5355
5356           enablestring=
5357           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5358 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5359           no_cache=0
5360           # Check whether --enable-log or --disable-log was given.
5361 if test "${enable_log+set}" = set; then
5362   enableval="$enable_log"
5363
5364                           if test "$enableval" = yes; then
5365                             ac_cv_use_log='wxUSE_LOG=yes'
5366                           else
5367                             ac_cv_use_log='wxUSE_LOG=no'
5368                           fi
5369
5370 else
5371
5372                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5373                           if test "x$LINE" != x ; then
5374                             eval "DEFAULT_$LINE"
5375                           else
5376                             no_cache=1
5377                           fi
5378
5379                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5380
5381 fi;
5382
5383           eval "$ac_cv_use_log"
5384           if test "$no_cache" != 1; then
5385             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5386           fi
5387
5388           if test "$wxUSE_LOG" = yes; then
5389             echo "$as_me:$LINENO: result: yes" >&5
5390 echo "${ECHO_T}yes" >&6
5391           else
5392             echo "$as_me:$LINENO: result: no" >&5
5393 echo "${ECHO_T}no" >&6
5394           fi
5395
5396
5397           enablestring=
5398           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5399 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5400           no_cache=0
5401           # Check whether --enable-longlong or --disable-longlong was given.
5402 if test "${enable_longlong+set}" = set; then
5403   enableval="$enable_longlong"
5404
5405                           if test "$enableval" = yes; then
5406                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5407                           else
5408                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
5409                           fi
5410
5411 else
5412
5413                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5414                           if test "x$LINE" != x ; then
5415                             eval "DEFAULT_$LINE"
5416                           else
5417                             no_cache=1
5418                           fi
5419
5420                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5421
5422 fi;
5423
5424           eval "$ac_cv_use_longlong"
5425           if test "$no_cache" != 1; then
5426             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5427           fi
5428
5429           if test "$wxUSE_LONGLONG" = yes; then
5430             echo "$as_me:$LINENO: result: yes" >&5
5431 echo "${ECHO_T}yes" >&6
5432           else
5433             echo "$as_me:$LINENO: result: no" >&5
5434 echo "${ECHO_T}no" >&6
5435           fi
5436
5437
5438           enablestring=
5439           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5440 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5441           no_cache=0
5442           # Check whether --enable-mimetype or --disable-mimetype was given.
5443 if test "${enable_mimetype+set}" = set; then
5444   enableval="$enable_mimetype"
5445
5446                           if test "$enableval" = yes; then
5447                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5448                           else
5449                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5450                           fi
5451
5452 else
5453
5454                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5455                           if test "x$LINE" != x ; then
5456                             eval "DEFAULT_$LINE"
5457                           else
5458                             no_cache=1
5459                           fi
5460
5461                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5462
5463 fi;
5464
5465           eval "$ac_cv_use_mimetype"
5466           if test "$no_cache" != 1; then
5467             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5468           fi
5469
5470           if test "$wxUSE_MIMETYPE" = yes; then
5471             echo "$as_me:$LINENO: result: yes" >&5
5472 echo "${ECHO_T}yes" >&6
5473           else
5474             echo "$as_me:$LINENO: result: no" >&5
5475 echo "${ECHO_T}no" >&6
5476           fi
5477
5478
5479           enablestring=
5480           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5481 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5482           no_cache=0
5483           # Check whether --enable-mslu or --disable-mslu was given.
5484 if test "${enable_mslu+set}" = set; then
5485   enableval="$enable_mslu"
5486
5487                           if test "$enableval" = yes; then
5488                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5489                           else
5490                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5491                           fi
5492
5493 else
5494
5495                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5496                           if test "x$LINE" != x ; then
5497                             eval "DEFAULT_$LINE"
5498                           else
5499                             no_cache=1
5500                           fi
5501
5502                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5503
5504 fi;
5505
5506           eval "$ac_cv_use_mslu"
5507           if test "$no_cache" != 1; then
5508             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5509           fi
5510
5511           if test "$wxUSE_UNICODE_MSLU" = yes; then
5512             echo "$as_me:$LINENO: result: yes" >&5
5513 echo "${ECHO_T}yes" >&6
5514           else
5515             echo "$as_me:$LINENO: result: no" >&5
5516 echo "${ECHO_T}no" >&6
5517           fi
5518
5519
5520           enablestring=
5521           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5522 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5523           no_cache=0
5524           # Check whether --enable-snglinst or --disable-snglinst was given.
5525 if test "${enable_snglinst+set}" = set; then
5526   enableval="$enable_snglinst"
5527
5528                           if test "$enableval" = yes; then
5529                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5530                           else
5531                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5532                           fi
5533
5534 else
5535
5536                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5537                           if test "x$LINE" != x ; then
5538                             eval "DEFAULT_$LINE"
5539                           else
5540                             no_cache=1
5541                           fi
5542
5543                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5544
5545 fi;
5546
5547           eval "$ac_cv_use_snglinst"
5548           if test "$no_cache" != 1; then
5549             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5550           fi
5551
5552           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5553             echo "$as_me:$LINENO: result: yes" >&5
5554 echo "${ECHO_T}yes" >&6
5555           else
5556             echo "$as_me:$LINENO: result: no" >&5
5557 echo "${ECHO_T}no" >&6
5558           fi
5559
5560
5561           enablestring=
5562           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5563 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5564           no_cache=0
5565           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5566 if test "${enable_std_iostreams+set}" = set; then
5567   enableval="$enable_std_iostreams"
5568
5569                           if test "$enableval" = yes; then
5570                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5571                           else
5572                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5573                           fi
5574
5575 else
5576
5577                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5578                           if test "x$LINE" != x ; then
5579                             eval "DEFAULT_$LINE"
5580                           else
5581                             no_cache=1
5582                           fi
5583
5584                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5585
5586 fi;
5587
5588           eval "$ac_cv_use_std_iostreams"
5589           if test "$no_cache" != 1; then
5590             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5591           fi
5592
5593           if test "$wxUSE_STD_IOSTREAM" = yes; then
5594             echo "$as_me:$LINENO: result: yes" >&5
5595 echo "${ECHO_T}yes" >&6
5596           else
5597             echo "$as_me:$LINENO: result: no" >&5
5598 echo "${ECHO_T}no" >&6
5599           fi
5600
5601
5602           enablestring=
5603           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5604 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5605           no_cache=0
5606           # Check whether --enable-std_string or --disable-std_string was given.
5607 if test "${enable_std_string+set}" = set; then
5608   enableval="$enable_std_string"
5609
5610                           if test "$enableval" = yes; then
5611                             ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5612                           else
5613                             ac_cv_use_std_string='wxUSE_STD_STRING=no'
5614                           fi
5615
5616 else
5617
5618                           LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5619                           if test "x$LINE" != x ; then
5620                             eval "DEFAULT_$LINE"
5621                           else
5622                             no_cache=1
5623                           fi
5624
5625                           ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5626
5627 fi;
5628
5629           eval "$ac_cv_use_std_string"
5630           if test "$no_cache" != 1; then
5631             echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5632           fi
5633
5634           if test "$wxUSE_STD_STRING" = yes; then
5635             echo "$as_me:$LINENO: result: yes" >&5
5636 echo "${ECHO_T}yes" >&6
5637           else
5638             echo "$as_me:$LINENO: result: no" >&5
5639 echo "${ECHO_T}no" >&6
5640           fi
5641
5642
5643           enablestring=
5644           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5645 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
5646           no_cache=0
5647           # Check whether --enable-stdpaths or --disable-stdpaths was given.
5648 if test "${enable_stdpaths+set}" = set; then
5649   enableval="$enable_stdpaths"
5650
5651                           if test "$enableval" = yes; then
5652                             ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
5653                           else
5654                             ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
5655                           fi
5656
5657 else
5658
5659                           LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
5660                           if test "x$LINE" != x ; then
5661                             eval "DEFAULT_$LINE"
5662                           else
5663                             no_cache=1
5664                           fi
5665
5666                           ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
5667
5668 fi;
5669
5670           eval "$ac_cv_use_stdpaths"
5671           if test "$no_cache" != 1; then
5672             echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
5673           fi
5674
5675           if test "$wxUSE_STDPATHS" = yes; then
5676             echo "$as_me:$LINENO: result: yes" >&5
5677 echo "${ECHO_T}yes" >&6
5678           else
5679             echo "$as_me:$LINENO: result: no" >&5
5680 echo "${ECHO_T}no" >&6
5681           fi
5682
5683
5684           enablestring=
5685           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5686 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5687           no_cache=0
5688           # Check whether --enable-stopwatch or --disable-stopwatch was given.
5689 if test "${enable_stopwatch+set}" = set; then
5690   enableval="$enable_stopwatch"
5691
5692                           if test "$enableval" = yes; then
5693                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5694                           else
5695                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5696                           fi
5697
5698 else
5699
5700                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5701                           if test "x$LINE" != x ; then
5702                             eval "DEFAULT_$LINE"
5703                           else
5704                             no_cache=1
5705                           fi
5706
5707                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5708
5709 fi;
5710
5711           eval "$ac_cv_use_stopwatch"
5712           if test "$no_cache" != 1; then
5713             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5714           fi
5715
5716           if test "$wxUSE_STOPWATCH" = yes; then
5717             echo "$as_me:$LINENO: result: yes" >&5
5718 echo "${ECHO_T}yes" >&6
5719           else
5720             echo "$as_me:$LINENO: result: no" >&5
5721 echo "${ECHO_T}no" >&6
5722           fi
5723
5724
5725           enablestring=
5726           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5727 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5728           no_cache=0
5729           # Check whether --enable-streams or --disable-streams was given.
5730 if test "${enable_streams+set}" = set; then
5731   enableval="$enable_streams"
5732
5733                           if test "$enableval" = yes; then
5734                             ac_cv_use_streams='wxUSE_STREAMS=yes'
5735                           else
5736                             ac_cv_use_streams='wxUSE_STREAMS=no'
5737                           fi
5738
5739 else
5740
5741                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5742                           if test "x$LINE" != x ; then
5743                             eval "DEFAULT_$LINE"
5744                           else
5745                             no_cache=1
5746                           fi
5747
5748                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5749
5750 fi;
5751
5752           eval "$ac_cv_use_streams"
5753           if test "$no_cache" != 1; then
5754             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5755           fi
5756
5757           if test "$wxUSE_STREAMS" = yes; then
5758             echo "$as_me:$LINENO: result: yes" >&5
5759 echo "${ECHO_T}yes" >&6
5760           else
5761             echo "$as_me:$LINENO: result: no" >&5
5762 echo "${ECHO_T}no" >&6
5763           fi
5764
5765
5766           enablestring=
5767           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5768 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5769           no_cache=0
5770           # Check whether --enable-system_options or --disable-system_options was given.
5771 if test "${enable_system_options+set}" = set; then
5772   enableval="$enable_system_options"
5773
5774                           if test "$enableval" = yes; then
5775                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5776                           else
5777                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5778                           fi
5779
5780 else
5781
5782                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5783                           if test "x$LINE" != x ; then
5784                             eval "DEFAULT_$LINE"
5785                           else
5786                             no_cache=1
5787                           fi
5788
5789                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5790
5791 fi;
5792
5793           eval "$ac_cv_use_system_options"
5794           if test "$no_cache" != 1; then
5795             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5796           fi
5797
5798           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5799             echo "$as_me:$LINENO: result: yes" >&5
5800 echo "${ECHO_T}yes" >&6
5801           else
5802             echo "$as_me:$LINENO: result: no" >&5
5803 echo "${ECHO_T}no" >&6
5804           fi
5805
5806
5807           enablestring=
5808           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5809 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5810           no_cache=0
5811           # Check whether --enable-textbuf or --disable-textbuf was given.
5812 if test "${enable_textbuf+set}" = set; then
5813   enableval="$enable_textbuf"
5814
5815                           if test "$enableval" = yes; then
5816                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5817                           else
5818                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5819                           fi
5820
5821 else
5822
5823                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5824                           if test "x$LINE" != x ; then
5825                             eval "DEFAULT_$LINE"
5826                           else
5827                             no_cache=1
5828                           fi
5829
5830                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5831
5832 fi;
5833
5834           eval "$ac_cv_use_textbuf"
5835           if test "$no_cache" != 1; then
5836             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5837           fi
5838
5839           if test "$wxUSE_TEXTBUFFER" = yes; then
5840             echo "$as_me:$LINENO: result: yes" >&5
5841 echo "${ECHO_T}yes" >&6
5842           else
5843             echo "$as_me:$LINENO: result: no" >&5
5844 echo "${ECHO_T}no" >&6
5845           fi
5846
5847
5848           enablestring=
5849           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5850 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5851           no_cache=0
5852           # Check whether --enable-textfile or --disable-textfile was given.
5853 if test "${enable_textfile+set}" = set; then
5854   enableval="$enable_textfile"
5855
5856                           if test "$enableval" = yes; then
5857                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5858                           else
5859                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5860                           fi
5861
5862 else
5863
5864                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5865                           if test "x$LINE" != x ; then
5866                             eval "DEFAULT_$LINE"
5867                           else
5868                             no_cache=1
5869                           fi
5870
5871                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5872
5873 fi;
5874
5875           eval "$ac_cv_use_textfile"
5876           if test "$no_cache" != 1; then
5877             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5878           fi
5879
5880           if test "$wxUSE_TEXTFILE" = yes; then
5881             echo "$as_me:$LINENO: result: yes" >&5
5882 echo "${ECHO_T}yes" >&6
5883           else
5884             echo "$as_me:$LINENO: result: no" >&5
5885 echo "${ECHO_T}no" >&6
5886           fi
5887
5888
5889           enablestring=
5890           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5891 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5892           no_cache=0
5893           # Check whether --enable-timer or --disable-timer was given.
5894 if test "${enable_timer+set}" = set; then
5895   enableval="$enable_timer"
5896
5897                           if test "$enableval" = yes; then
5898                             ac_cv_use_timer='wxUSE_TIMER=yes'
5899                           else
5900                             ac_cv_use_timer='wxUSE_TIMER=no'
5901                           fi
5902
5903 else
5904
5905                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5906                           if test "x$LINE" != x ; then
5907                             eval "DEFAULT_$LINE"
5908                           else
5909                             no_cache=1
5910                           fi
5911
5912                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5913
5914 fi;
5915
5916           eval "$ac_cv_use_timer"
5917           if test "$no_cache" != 1; then
5918             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5919           fi
5920
5921           if test "$wxUSE_TIMER" = yes; then
5922             echo "$as_me:$LINENO: result: yes" >&5
5923 echo "${ECHO_T}yes" >&6
5924           else
5925             echo "$as_me:$LINENO: result: no" >&5
5926 echo "${ECHO_T}no" >&6
5927           fi
5928
5929
5930           enablestring=
5931           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5932 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5933           no_cache=0
5934           # Check whether --enable-unicode or --disable-unicode was given.
5935 if test "${enable_unicode+set}" = set; then
5936   enableval="$enable_unicode"
5937
5938                           if test "$enableval" = yes; then
5939                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
5940                           else
5941                             ac_cv_use_unicode='wxUSE_UNICODE=no'
5942                           fi
5943
5944 else
5945
5946                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5947                           if test "x$LINE" != x ; then
5948                             eval "DEFAULT_$LINE"
5949                           else
5950                             no_cache=1
5951                           fi
5952
5953                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5954
5955 fi;
5956
5957           eval "$ac_cv_use_unicode"
5958           if test "$no_cache" != 1; then
5959             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5960           fi
5961
5962           if test "$wxUSE_UNICODE" = yes; then
5963             echo "$as_me:$LINENO: result: yes" >&5
5964 echo "${ECHO_T}yes" >&6
5965           else
5966             echo "$as_me:$LINENO: result: no" >&5
5967 echo "${ECHO_T}no" >&6
5968           fi
5969
5970
5971           enablestring=
5972           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5973 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5974           no_cache=0
5975           # Check whether --enable-sound or --disable-sound was given.
5976 if test "${enable_sound+set}" = set; then
5977   enableval="$enable_sound"
5978
5979                           if test "$enableval" = yes; then
5980                             ac_cv_use_sound='wxUSE_SOUND=yes'
5981                           else
5982                             ac_cv_use_sound='wxUSE_SOUND=no'
5983                           fi
5984
5985 else
5986
5987                           LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5988                           if test "x$LINE" != x ; then
5989                             eval "DEFAULT_$LINE"
5990                           else
5991                             no_cache=1
5992                           fi
5993
5994                           ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5995
5996 fi;
5997
5998           eval "$ac_cv_use_sound"
5999           if test "$no_cache" != 1; then
6000             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6001           fi
6002
6003           if test "$wxUSE_SOUND" = yes; then
6004             echo "$as_me:$LINENO: result: yes" >&5
6005 echo "${ECHO_T}yes" >&6
6006           else
6007             echo "$as_me:$LINENO: result: no" >&5
6008 echo "${ECHO_T}no" >&6
6009           fi
6010
6011
6012           enablestring=
6013           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6014 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6015           no_cache=0
6016           # Check whether --enable-mediactrl or --disable-mediactrl was given.
6017 if test "${enable_mediactrl+set}" = set; then
6018   enableval="$enable_mediactrl"
6019
6020                           if test "$enableval" = yes; then
6021                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6022                           else
6023                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6024                           fi
6025
6026 else
6027
6028                           LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6029                           if test "x$LINE" != x ; then
6030                             eval "DEFAULT_$LINE"
6031                           else
6032                             no_cache=1
6033                           fi
6034
6035                           ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6036
6037 fi;
6038
6039           eval "$ac_cv_use_mediactrl"
6040           if test "$no_cache" != 1; then
6041             echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6042           fi
6043
6044           if test "$wxUSE_MEDIACTRL" = yes; then
6045             echo "$as_me:$LINENO: result: yes" >&5
6046 echo "${ECHO_T}yes" >&6
6047           else
6048             echo "$as_me:$LINENO: result: no" >&5
6049 echo "${ECHO_T}no" >&6
6050           fi
6051
6052
6053           enablestring=
6054           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6055 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6056           no_cache=0
6057           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6058 if test "${enable_wxprintfv+set}" = set; then
6059   enableval="$enable_wxprintfv"
6060
6061                           if test "$enableval" = yes; then
6062                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6063                           else
6064                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6065                           fi
6066
6067 else
6068
6069                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6070                           if test "x$LINE" != x ; then
6071                             eval "DEFAULT_$LINE"
6072                           else
6073                             no_cache=1
6074                           fi
6075
6076                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6077
6078 fi;
6079
6080           eval "$ac_cv_use_wxprintfv"
6081           if test "$no_cache" != 1; then
6082             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6083           fi
6084
6085           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6086             echo "$as_me:$LINENO: result: yes" >&5
6087 echo "${ECHO_T}yes" >&6
6088           else
6089             echo "$as_me:$LINENO: result: no" >&5
6090 echo "${ECHO_T}no" >&6
6091           fi
6092
6093
6094           enablestring=
6095           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6096 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6097           no_cache=0
6098           # Check whether --enable-zipstream or --disable-zipstream was given.
6099 if test "${enable_zipstream+set}" = set; then
6100   enableval="$enable_zipstream"
6101
6102                           if test "$enableval" = yes; then
6103                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6104                           else
6105                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6106                           fi
6107
6108 else
6109
6110                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6111                           if test "x$LINE" != x ; then
6112                             eval "DEFAULT_$LINE"
6113                           else
6114                             no_cache=1
6115                           fi
6116
6117                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6118
6119 fi;
6120
6121           eval "$ac_cv_use_zipstream"
6122           if test "$no_cache" != 1; then
6123             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6124           fi
6125
6126           if test "$wxUSE_ZIPSTREAM" = yes; then
6127             echo "$as_me:$LINENO: result: yes" >&5
6128 echo "${ECHO_T}yes" >&6
6129           else
6130             echo "$as_me:$LINENO: result: no" >&5
6131 echo "${ECHO_T}no" >&6
6132           fi
6133
6134
6135
6136           enablestring=
6137           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6138 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6139           no_cache=0
6140           # Check whether --enable-url or --disable-url was given.
6141 if test "${enable_url+set}" = set; then
6142   enableval="$enable_url"
6143
6144                           if test "$enableval" = yes; then
6145                             ac_cv_use_url='wxUSE_URL=yes'
6146                           else
6147                             ac_cv_use_url='wxUSE_URL=no'
6148                           fi
6149
6150 else
6151
6152                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6153                           if test "x$LINE" != x ; then
6154                             eval "DEFAULT_$LINE"
6155                           else
6156                             no_cache=1
6157                           fi
6158
6159                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6160
6161 fi;
6162
6163           eval "$ac_cv_use_url"
6164           if test "$no_cache" != 1; then
6165             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6166           fi
6167
6168           if test "$wxUSE_URL" = yes; then
6169             echo "$as_me:$LINENO: result: yes" >&5
6170 echo "${ECHO_T}yes" >&6
6171           else
6172             echo "$as_me:$LINENO: result: no" >&5
6173 echo "${ECHO_T}no" >&6
6174           fi
6175
6176
6177           enablestring=
6178           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6179 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6180           no_cache=0
6181           # Check whether --enable-protocol or --disable-protocol was given.
6182 if test "${enable_protocol+set}" = set; then
6183   enableval="$enable_protocol"
6184
6185                           if test "$enableval" = yes; then
6186                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6187                           else
6188                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6189                           fi
6190
6191 else
6192
6193                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6194                           if test "x$LINE" != x ; then
6195                             eval "DEFAULT_$LINE"
6196                           else
6197                             no_cache=1
6198                           fi
6199
6200                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6201
6202 fi;
6203
6204           eval "$ac_cv_use_protocol"
6205           if test "$no_cache" != 1; then
6206             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6207           fi
6208
6209           if test "$wxUSE_PROTOCOL" = yes; then
6210             echo "$as_me:$LINENO: result: yes" >&5
6211 echo "${ECHO_T}yes" >&6
6212           else
6213             echo "$as_me:$LINENO: result: no" >&5
6214 echo "${ECHO_T}no" >&6
6215           fi
6216
6217
6218           enablestring=
6219           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6220 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6221           no_cache=0
6222           # Check whether --enable-protocol_http or --disable-protocol_http was given.
6223 if test "${enable_protocol_http+set}" = set; then
6224   enableval="$enable_protocol_http"
6225
6226                           if test "$enableval" = yes; then
6227                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6228                           else
6229                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6230                           fi
6231
6232 else
6233
6234                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6235                           if test "x$LINE" != x ; then
6236                             eval "DEFAULT_$LINE"
6237                           else
6238                             no_cache=1
6239                           fi
6240
6241                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6242
6243 fi;
6244
6245           eval "$ac_cv_use_protocol_http"
6246           if test "$no_cache" != 1; then
6247             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6248           fi
6249
6250           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6251             echo "$as_me:$LINENO: result: yes" >&5
6252 echo "${ECHO_T}yes" >&6
6253           else
6254             echo "$as_me:$LINENO: result: no" >&5
6255 echo "${ECHO_T}no" >&6
6256           fi
6257
6258
6259           enablestring=
6260           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6261 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6262           no_cache=0
6263           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6264 if test "${enable_protocol_ftp+set}" = set; then
6265   enableval="$enable_protocol_ftp"
6266
6267                           if test "$enableval" = yes; then
6268                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6269                           else
6270                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6271                           fi
6272
6273 else
6274
6275                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6276                           if test "x$LINE" != x ; then
6277                             eval "DEFAULT_$LINE"
6278                           else
6279                             no_cache=1
6280                           fi
6281
6282                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6283
6284 fi;
6285
6286           eval "$ac_cv_use_protocol_ftp"
6287           if test "$no_cache" != 1; then
6288             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6289           fi
6290
6291           if test "$wxUSE_PROTOCOL_FTP" = yes; then
6292             echo "$as_me:$LINENO: result: yes" >&5
6293 echo "${ECHO_T}yes" >&6
6294           else
6295             echo "$as_me:$LINENO: result: no" >&5
6296 echo "${ECHO_T}no" >&6
6297           fi
6298
6299
6300           enablestring=
6301           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6302 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6303           no_cache=0
6304           # Check whether --enable-protocol_file or --disable-protocol_file was given.
6305 if test "${enable_protocol_file+set}" = set; then
6306   enableval="$enable_protocol_file"
6307
6308                           if test "$enableval" = yes; then
6309                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6310                           else
6311                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6312                           fi
6313
6314 else
6315
6316                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6317                           if test "x$LINE" != x ; then
6318                             eval "DEFAULT_$LINE"
6319                           else
6320                             no_cache=1
6321                           fi
6322
6323                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6324
6325 fi;
6326
6327           eval "$ac_cv_use_protocol_file"
6328           if test "$no_cache" != 1; then
6329             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6330           fi
6331
6332           if test "$wxUSE_PROTOCOL_FILE" = yes; then
6333             echo "$as_me:$LINENO: result: yes" >&5
6334 echo "${ECHO_T}yes" >&6
6335           else
6336             echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6
6338           fi
6339
6340
6341
6342
6343
6344           enablestring=
6345           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6346 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6347           no_cache=0
6348           # Check whether --enable-threads or --disable-threads was given.
6349 if test "${enable_threads+set}" = set; then
6350   enableval="$enable_threads"
6351
6352                           if test "$enableval" = yes; then
6353                             ac_cv_use_threads='wxUSE_THREADS=yes'
6354                           else
6355                             ac_cv_use_threads='wxUSE_THREADS=no'
6356                           fi
6357
6358 else
6359
6360                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6361                           if test "x$LINE" != x ; then
6362                             eval "DEFAULT_$LINE"
6363                           else
6364                             no_cache=1
6365                           fi
6366
6367                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6368
6369 fi;
6370
6371           eval "$ac_cv_use_threads"
6372           if test "$no_cache" != 1; then
6373             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6374           fi
6375
6376           if test "$wxUSE_THREADS" = yes; then
6377             echo "$as_me:$LINENO: result: yes" >&5
6378 echo "${ECHO_T}yes" >&6
6379           else
6380             echo "$as_me:$LINENO: result: no" >&5
6381 echo "${ECHO_T}no" >&6
6382           fi
6383
6384
6385 if test "$wxUSE_GUI" = "yes"; then
6386
6387
6388
6389           enablestring=
6390           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6391 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6392           no_cache=0
6393           # Check whether --enable-docview or --disable-docview was given.
6394 if test "${enable_docview+set}" = set; then
6395   enableval="$enable_docview"
6396
6397                           if test "$enableval" = yes; then
6398                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6399                           else
6400                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6401                           fi
6402
6403 else
6404
6405                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6406                           if test "x$LINE" != x ; then
6407                             eval "DEFAULT_$LINE"
6408                           else
6409                             no_cache=1
6410                           fi
6411
6412                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6413
6414 fi;
6415
6416           eval "$ac_cv_use_docview"
6417           if test "$no_cache" != 1; then
6418             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6419           fi
6420
6421           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6422             echo "$as_me:$LINENO: result: yes" >&5
6423 echo "${ECHO_T}yes" >&6
6424           else
6425             echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6
6427           fi
6428
6429
6430           enablestring=
6431           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6432 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6433           no_cache=0
6434           # Check whether --enable-help or --disable-help was given.
6435 if test "${enable_help+set}" = set; then
6436   enableval="$enable_help"
6437
6438                           if test "$enableval" = yes; then
6439                             ac_cv_use_help='wxUSE_HELP=yes'
6440                           else
6441                             ac_cv_use_help='wxUSE_HELP=no'
6442                           fi
6443
6444 else
6445
6446                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6447                           if test "x$LINE" != x ; then
6448                             eval "DEFAULT_$LINE"
6449                           else
6450                             no_cache=1
6451                           fi
6452
6453                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6454
6455 fi;
6456
6457           eval "$ac_cv_use_help"
6458           if test "$no_cache" != 1; then
6459             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6460           fi
6461
6462           if test "$wxUSE_HELP" = yes; then
6463             echo "$as_me:$LINENO: result: yes" >&5
6464 echo "${ECHO_T}yes" >&6
6465           else
6466             echo "$as_me:$LINENO: result: no" >&5
6467 echo "${ECHO_T}no" >&6
6468           fi
6469
6470
6471           enablestring=
6472           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6473 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6474           no_cache=0
6475           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6476 if test "${enable_mshtmlhelp+set}" = set; then
6477   enableval="$enable_mshtmlhelp"
6478
6479                           if test "$enableval" = yes; then
6480                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6481                           else
6482                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6483                           fi
6484
6485 else
6486
6487                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6488                           if test "x$LINE" != x ; then
6489                             eval "DEFAULT_$LINE"
6490                           else
6491                             no_cache=1
6492                           fi
6493
6494                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6495
6496 fi;
6497
6498           eval "$ac_cv_use_mshtmlhelp"
6499           if test "$no_cache" != 1; then
6500             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6501           fi
6502
6503           if test "$wxUSE_MS_HTML_HELP" = yes; then
6504             echo "$as_me:$LINENO: result: yes" >&5
6505 echo "${ECHO_T}yes" >&6
6506           else
6507             echo "$as_me:$LINENO: result: no" >&5
6508 echo "${ECHO_T}no" >&6
6509           fi
6510
6511
6512           enablestring=
6513           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6514 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6515           no_cache=0
6516           # Check whether --enable-html or --disable-html was given.
6517 if test "${enable_html+set}" = set; then
6518   enableval="$enable_html"
6519
6520                           if test "$enableval" = yes; then
6521                             ac_cv_use_html='wxUSE_HTML=yes'
6522                           else
6523                             ac_cv_use_html='wxUSE_HTML=no'
6524                           fi
6525
6526 else
6527
6528                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6529                           if test "x$LINE" != x ; then
6530                             eval "DEFAULT_$LINE"
6531                           else
6532                             no_cache=1
6533                           fi
6534
6535                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6536
6537 fi;
6538
6539           eval "$ac_cv_use_html"
6540           if test "$no_cache" != 1; then
6541             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6542           fi
6543
6544           if test "$wxUSE_HTML" = yes; then
6545             echo "$as_me:$LINENO: result: yes" >&5
6546 echo "${ECHO_T}yes" >&6
6547           else
6548             echo "$as_me:$LINENO: result: no" >&5
6549 echo "${ECHO_T}no" >&6
6550           fi
6551
6552
6553           enablestring=
6554           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6555 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6556           no_cache=0
6557           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6558 if test "${enable_htmlhelp+set}" = set; then
6559   enableval="$enable_htmlhelp"
6560
6561                           if test "$enableval" = yes; then
6562                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6563                           else
6564                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6565                           fi
6566
6567 else
6568
6569                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6570                           if test "x$LINE" != x ; then
6571                             eval "DEFAULT_$LINE"
6572                           else
6573                             no_cache=1
6574                           fi
6575
6576                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6577
6578 fi;
6579
6580           eval "$ac_cv_use_htmlhelp"
6581           if test "$no_cache" != 1; then
6582             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6583           fi
6584
6585           if test "$wxUSE_WXHTML_HELP" = yes; then
6586             echo "$as_me:$LINENO: result: yes" >&5
6587 echo "${ECHO_T}yes" >&6
6588           else
6589             echo "$as_me:$LINENO: result: no" >&5
6590 echo "${ECHO_T}no" >&6
6591           fi
6592
6593
6594           enablestring=
6595           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6596 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6597           no_cache=0
6598           # Check whether --enable-xrc or --disable-xrc was given.
6599 if test "${enable_xrc+set}" = set; then
6600   enableval="$enable_xrc"
6601
6602                           if test "$enableval" = yes; then
6603                             ac_cv_use_xrc='wxUSE_XRC=yes'
6604                           else
6605                             ac_cv_use_xrc='wxUSE_XRC=no'
6606                           fi
6607
6608 else
6609
6610                           LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6611                           if test "x$LINE" != x ; then
6612                             eval "DEFAULT_$LINE"
6613                           else
6614                             no_cache=1
6615                           fi
6616
6617                           ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6618
6619 fi;
6620
6621           eval "$ac_cv_use_xrc"
6622           if test "$no_cache" != 1; then
6623             echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6624           fi
6625
6626           if test "$wxUSE_XRC" = yes; then
6627             echo "$as_me:$LINENO: result: yes" >&5
6628 echo "${ECHO_T}yes" >&6
6629           else
6630             echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6
6632           fi
6633
6634
6635           enablestring=
6636           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6637 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6638           no_cache=0
6639           # Check whether --enable-constraints or --disable-constraints was given.
6640 if test "${enable_constraints+set}" = set; then
6641   enableval="$enable_constraints"
6642
6643                           if test "$enableval" = yes; then
6644                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6645                           else
6646                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6647                           fi
6648
6649 else
6650
6651                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6652                           if test "x$LINE" != x ; then
6653                             eval "DEFAULT_$LINE"
6654                           else
6655                             no_cache=1
6656                           fi
6657
6658                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6659
6660 fi;
6661
6662           eval "$ac_cv_use_constraints"
6663           if test "$no_cache" != 1; then
6664             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6665           fi
6666
6667           if test "$wxUSE_CONSTRAINTS" = yes; then
6668             echo "$as_me:$LINENO: result: yes" >&5
6669 echo "${ECHO_T}yes" >&6
6670           else
6671             echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6
6673           fi
6674
6675
6676           enablestring=
6677           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6678 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6679           no_cache=0
6680           # Check whether --enable-printarch or --disable-printarch was given.
6681 if test "${enable_printarch+set}" = set; then
6682   enableval="$enable_printarch"
6683
6684                           if test "$enableval" = yes; then
6685                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6686                           else
6687                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6688                           fi
6689
6690 else
6691
6692                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6693                           if test "x$LINE" != x ; then
6694                             eval "DEFAULT_$LINE"
6695                           else
6696                             no_cache=1
6697                           fi
6698
6699                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6700
6701 fi;
6702
6703           eval "$ac_cv_use_printarch"
6704           if test "$no_cache" != 1; then
6705             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6706           fi
6707
6708           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6709             echo "$as_me:$LINENO: result: yes" >&5
6710 echo "${ECHO_T}yes" >&6
6711           else
6712             echo "$as_me:$LINENO: result: no" >&5
6713 echo "${ECHO_T}no" >&6
6714           fi
6715
6716
6717           enablestring=
6718           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6719 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6720           no_cache=0
6721           # Check whether --enable-mdi or --disable-mdi was given.
6722 if test "${enable_mdi+set}" = set; then
6723   enableval="$enable_mdi"
6724
6725                           if test "$enableval" = yes; then
6726                             ac_cv_use_mdi='wxUSE_MDI=yes'
6727                           else
6728                             ac_cv_use_mdi='wxUSE_MDI=no'
6729                           fi
6730
6731 else
6732
6733                           LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
6734                           if test "x$LINE" != x ; then
6735                             eval "DEFAULT_$LINE"
6736                           else
6737                             no_cache=1
6738                           fi
6739
6740                           ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
6741
6742 fi;
6743
6744           eval "$ac_cv_use_mdi"
6745           if test "$no_cache" != 1; then
6746             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6747           fi
6748
6749           if test "$wxUSE_MDI" = yes; then
6750             echo "$as_me:$LINENO: result: yes" >&5
6751 echo "${ECHO_T}yes" >&6
6752           else
6753             echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6
6755           fi
6756
6757
6758           enablestring=
6759           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6760 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6761           no_cache=0
6762           # Check whether --enable-mdidoc or --disable-mdidoc was given.
6763 if test "${enable_mdidoc+set}" = set; then
6764   enableval="$enable_mdidoc"
6765
6766                           if test "$enableval" = yes; then
6767                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6768                           else
6769                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6770                           fi
6771
6772 else
6773
6774                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6775                           if test "x$LINE" != x ; then
6776                             eval "DEFAULT_$LINE"
6777                           else
6778                             no_cache=1
6779                           fi
6780
6781                           ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6782
6783 fi;
6784
6785           eval "$ac_cv_use_mdidoc"
6786           if test "$no_cache" != 1; then
6787             echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6788           fi
6789
6790           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6791             echo "$as_me:$LINENO: result: yes" >&5
6792 echo "${ECHO_T}yes" >&6
6793           else
6794             echo "$as_me:$LINENO: result: no" >&5
6795 echo "${ECHO_T}no" >&6
6796           fi
6797
6798
6799           enablestring=
6800           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6801 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6802           no_cache=0
6803           # Check whether --enable-loggui or --disable-loggui was given.
6804 if test "${enable_loggui+set}" = set; then
6805   enableval="$enable_loggui"
6806
6807                           if test "$enableval" = yes; then
6808                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6809                           else
6810                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
6811                           fi
6812
6813 else
6814
6815                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6816                           if test "x$LINE" != x ; then
6817                             eval "DEFAULT_$LINE"
6818                           else
6819                             no_cache=1
6820                           fi
6821
6822                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6823
6824 fi;
6825
6826           eval "$ac_cv_use_loggui"
6827           if test "$no_cache" != 1; then
6828             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6829           fi
6830
6831           if test "$wxUSE_LOGGUI" = yes; then
6832             echo "$as_me:$LINENO: result: yes" >&5
6833 echo "${ECHO_T}yes" >&6
6834           else
6835             echo "$as_me:$LINENO: result: no" >&5
6836 echo "${ECHO_T}no" >&6
6837           fi
6838
6839
6840           enablestring=
6841           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6842 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6843           no_cache=0
6844           # Check whether --enable-logwin or --disable-logwin was given.
6845 if test "${enable_logwin+set}" = set; then
6846   enableval="$enable_logwin"
6847
6848                           if test "$enableval" = yes; then
6849                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6850                           else
6851                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6852                           fi
6853
6854 else
6855
6856                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6857                           if test "x$LINE" != x ; then
6858                             eval "DEFAULT_$LINE"
6859                           else
6860                             no_cache=1
6861                           fi
6862
6863                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6864
6865 fi;
6866
6867           eval "$ac_cv_use_logwin"
6868           if test "$no_cache" != 1; then
6869             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6870           fi
6871
6872           if test "$wxUSE_LOGWINDOW" = yes; then
6873             echo "$as_me:$LINENO: result: yes" >&5
6874 echo "${ECHO_T}yes" >&6
6875           else
6876             echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6
6878           fi
6879
6880
6881           enablestring=
6882           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6883 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6884           no_cache=0
6885           # Check whether --enable-logdialog or --disable-logdialog was given.
6886 if test "${enable_logdialog+set}" = set; then
6887   enableval="$enable_logdialog"
6888
6889                           if test "$enableval" = yes; then
6890                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6891                           else
6892                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6893                           fi
6894
6895 else
6896
6897                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6898                           if test "x$LINE" != x ; then
6899                             eval "DEFAULT_$LINE"
6900                           else
6901                             no_cache=1
6902                           fi
6903
6904                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6905
6906 fi;
6907
6908           eval "$ac_cv_use_logdialog"
6909           if test "$no_cache" != 1; then
6910             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6911           fi
6912
6913           if test "$wxUSE_LOGDIALOG" = yes; then
6914             echo "$as_me:$LINENO: result: yes" >&5
6915 echo "${ECHO_T}yes" >&6
6916           else
6917             echo "$as_me:$LINENO: result: no" >&5
6918 echo "${ECHO_T}no" >&6
6919           fi
6920
6921
6922           enablestring=
6923           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6924 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6925           no_cache=0
6926           # Check whether --enable-webkit or --disable-webkit was given.
6927 if test "${enable_webkit+set}" = set; then
6928   enableval="$enable_webkit"
6929
6930                           if test "$enableval" = yes; then
6931                             ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6932                           else
6933                             ac_cv_use_webkit='wxUSE_WEBKIT=no'
6934                           fi
6935
6936 else
6937
6938                           LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6939                           if test "x$LINE" != x ; then
6940                             eval "DEFAULT_$LINE"
6941                           else
6942                             no_cache=1
6943                           fi
6944
6945                           ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6946
6947 fi;
6948
6949           eval "$ac_cv_use_webkit"
6950           if test "$no_cache" != 1; then
6951             echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6952           fi
6953
6954           if test "$wxUSE_WEBKIT" = yes; then
6955             echo "$as_me:$LINENO: result: yes" >&5
6956 echo "${ECHO_T}yes" >&6
6957           else
6958             echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6
6960           fi
6961
6962
6963
6964           enablestring=
6965           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6966 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6967           no_cache=0
6968           # Check whether --enable-postscript or --disable-postscript was given.
6969 if test "${enable_postscript+set}" = set; then
6970   enableval="$enable_postscript"
6971
6972                           if test "$enableval" = yes; then
6973                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6974                           else
6975                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6976                           fi
6977
6978 else
6979
6980                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6981                           if test "x$LINE" != x ; then
6982                             eval "DEFAULT_$LINE"
6983                           else
6984                             no_cache=1
6985                           fi
6986
6987                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6988
6989 fi;
6990
6991           eval "$ac_cv_use_postscript"
6992           if test "$no_cache" != 1; then
6993             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6994           fi
6995
6996           if test "$wxUSE_POSTSCRIPT" = yes; then
6997             echo "$as_me:$LINENO: result: yes" >&5
6998 echo "${ECHO_T}yes" >&6
6999           else
7000             echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6
7002           fi
7003
7004
7005
7006
7007
7008           enablestring=
7009           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7010 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7011           no_cache=0
7012           # Check whether --enable-prologio or --disable-prologio was given.
7013 if test "${enable_prologio+set}" = set; then
7014   enableval="$enable_prologio"
7015
7016                           if test "$enableval" = yes; then
7017                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7018                           else
7019                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7020                           fi
7021
7022 else
7023
7024                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7025                           if test "x$LINE" != x ; then
7026                             eval "DEFAULT_$LINE"
7027                           else
7028                             no_cache=1
7029                           fi
7030
7031                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7032
7033 fi;
7034
7035           eval "$ac_cv_use_prologio"
7036           if test "$no_cache" != 1; then
7037             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7038           fi
7039
7040           if test "$wxUSE_PROLOGIO" = yes; then
7041             echo "$as_me:$LINENO: result: yes" >&5
7042 echo "${ECHO_T}yes" >&6
7043           else
7044             echo "$as_me:$LINENO: result: no" >&5
7045 echo "${ECHO_T}no" >&6
7046           fi
7047
7048
7049           enablestring=
7050           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7051 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7052           no_cache=0
7053           # Check whether --enable-resources or --disable-resources was given.
7054 if test "${enable_resources+set}" = set; then
7055   enableval="$enable_resources"
7056
7057                           if test "$enableval" = yes; then
7058                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
7059                           else
7060                             ac_cv_use_resources='wxUSE_RESOURCES=no'
7061                           fi
7062
7063 else
7064
7065                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7066                           if test "x$LINE" != x ; then
7067                             eval "DEFAULT_$LINE"
7068                           else
7069                             no_cache=1
7070                           fi
7071
7072                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7073
7074 fi;
7075
7076           eval "$ac_cv_use_resources"
7077           if test "$no_cache" != 1; then
7078             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7079           fi
7080
7081           if test "$wxUSE_RESOURCES" = yes; then
7082             echo "$as_me:$LINENO: result: yes" >&5
7083 echo "${ECHO_T}yes" >&6
7084           else
7085             echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6
7087           fi
7088
7089
7090
7091
7092           enablestring=
7093           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7094 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7095           no_cache=0
7096           # Check whether --enable-clipboard or --disable-clipboard was given.
7097 if test "${enable_clipboard+set}" = set; then
7098   enableval="$enable_clipboard"
7099
7100                           if test "$enableval" = yes; then
7101                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7102                           else
7103                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7104                           fi
7105
7106 else
7107
7108                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7109                           if test "x$LINE" != x ; then
7110                             eval "DEFAULT_$LINE"
7111                           else
7112                             no_cache=1
7113                           fi
7114
7115                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7116
7117 fi;
7118
7119           eval "$ac_cv_use_clipboard"
7120           if test "$no_cache" != 1; then
7121             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7122           fi
7123
7124           if test "$wxUSE_CLIPBOARD" = yes; then
7125             echo "$as_me:$LINENO: result: yes" >&5
7126 echo "${ECHO_T}yes" >&6
7127           else
7128             echo "$as_me:$LINENO: result: no" >&5
7129 echo "${ECHO_T}no" >&6
7130           fi
7131
7132
7133           enablestring=
7134           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7135 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7136           no_cache=0
7137           # Check whether --enable-dnd or --disable-dnd was given.
7138 if test "${enable_dnd+set}" = set; then
7139   enableval="$enable_dnd"
7140
7141                           if test "$enableval" = yes; then
7142                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7143                           else
7144                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7145                           fi
7146
7147 else
7148
7149                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7150                           if test "x$LINE" != x ; then
7151                             eval "DEFAULT_$LINE"
7152                           else
7153                             no_cache=1
7154                           fi
7155
7156                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7157
7158 fi;
7159
7160           eval "$ac_cv_use_dnd"
7161           if test "$no_cache" != 1; then
7162             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7163           fi
7164
7165           if test "$wxUSE_DRAG_AND_DROP" = yes; then
7166             echo "$as_me:$LINENO: result: yes" >&5
7167 echo "${ECHO_T}yes" >&6
7168           else
7169             echo "$as_me:$LINENO: result: no" >&5
7170 echo "${ECHO_T}no" >&6
7171           fi
7172
7173
7174           enablestring=
7175           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7176 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7177           no_cache=0
7178           # Check whether --enable-metafile or --disable-metafile was given.
7179 if test "${enable_metafile+set}" = set; then
7180   enableval="$enable_metafile"
7181
7182                           if test "$enableval" = yes; then
7183                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
7184                           else
7185                             ac_cv_use_metafile='wxUSE_METAFILE=no'
7186                           fi
7187
7188 else
7189
7190                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7191                           if test "x$LINE" != x ; then
7192                             eval "DEFAULT_$LINE"
7193                           else
7194                             no_cache=1
7195                           fi
7196
7197                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7198
7199 fi;
7200
7201           eval "$ac_cv_use_metafile"
7202           if test "$no_cache" != 1; then
7203             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7204           fi
7205
7206           if test "$wxUSE_METAFILE" = yes; then
7207             echo "$as_me:$LINENO: result: yes" >&5
7208 echo "${ECHO_T}yes" >&6
7209           else
7210             echo "$as_me:$LINENO: result: no" >&5
7211 echo "${ECHO_T}no" >&6
7212           fi
7213
7214
7215
7216
7217
7218           enablestring=
7219           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7220 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7221           no_cache=0
7222           # Check whether --enable-controls or --disable-controls was given.
7223 if test "${enable_controls+set}" = set; then
7224   enableval="$enable_controls"
7225
7226                           if test "$enableval" = yes; then
7227                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
7228                           else
7229                             ac_cv_use_controls='wxUSE_CONTROLS=no'
7230                           fi
7231
7232 else
7233
7234                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7235                           if test "x$LINE" != x ; then
7236                             eval "DEFAULT_$LINE"
7237                           else
7238                             no_cache=1
7239                           fi
7240
7241                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7242
7243 fi;
7244
7245           eval "$ac_cv_use_controls"
7246           if test "$no_cache" != 1; then
7247             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7248           fi
7249
7250           if test "$wxUSE_CONTROLS" = yes; then
7251             echo "$as_me:$LINENO: result: yes" >&5
7252 echo "${ECHO_T}yes" >&6
7253           else
7254             echo "$as_me:$LINENO: result: no" >&5
7255 echo "${ECHO_T}no" >&6
7256           fi
7257
7258
7259 if test "$wxUSE_CONTROLS" = "yes"; then
7260   DEFAULT_wxUSE_ACCEL=yes
7261   DEFAULT_wxUSE_BMPBUTTON=yes
7262   DEFAULT_wxUSE_BUTTON=yes
7263   DEFAULT_wxUSE_CALCTRL=yes
7264   DEFAULT_wxUSE_CARET=yes
7265   DEFAULT_wxUSE_COMBOBOX=yes
7266   DEFAULT_wxUSE_CHECKBOX=yes
7267   DEFAULT_wxUSE_CHECKLISTBOX=yes
7268   DEFAULT_wxUSE_CHOICE=yes
7269   DEFAULT_wxUSE_CHOICEBOOK=yes
7270   DEFAULT_wxUSE_DATEPICKCTRL=yes
7271   DEFAULT_wxUSE_GAUGE=yes
7272   DEFAULT_wxUSE_GRID=yes
7273   DEFAULT_wxUSE_IMAGLIST=yes
7274   DEFAULT_wxUSE_LISTBOOK=yes
7275   DEFAULT_wxUSE_LISTBOX=yes
7276   DEFAULT_wxUSE_LISTCTRL=yes
7277   DEFAULT_wxUSE_NOTEBOOK=yes
7278   DEFAULT_wxUSE_RADIOBOX=yes
7279   DEFAULT_wxUSE_RADIOBTN=yes
7280   DEFAULT_wxUSE_SASH=yes
7281   DEFAULT_wxUSE_SCROLLBAR=yes
7282   DEFAULT_wxUSE_SLIDER=yes
7283   DEFAULT_wxUSE_SPINBTN=yes
7284   DEFAULT_wxUSE_SPINCTRL=yes
7285   DEFAULT_wxUSE_SPLITTER=yes
7286   DEFAULT_wxUSE_STATBMP=yes
7287   DEFAULT_wxUSE_STATBOX=yes
7288   DEFAULT_wxUSE_STATLINE=yes
7289   DEFAULT_wxUSE_STATUSBAR=yes
7290   DEFAULT_wxUSE_TAB_DIALOG=yes
7291   DEFAULT_wxUSE_TOGGLEBTN=yes
7292   DEFAULT_wxUSE_TOOLBAR=yes
7293   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7294   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7295   DEFAULT_wxUSE_TOOLTIPS=yes
7296   DEFAULT_wxUSE_TREECTRL=yes
7297   DEFAULT_wxUSE_POPUPWIN=yes
7298   DEFAULT_wxUSE_TIPWINDOW=yes
7299 elif test "$wxUSE_CONTROLS" = "no"; then
7300   DEFAULT_wxUSE_ACCEL=no
7301   DEFAULT_wxUSE_BMPBUTTON=no
7302   DEFAULT_wxUSE_BUTTON=no
7303   DEFAULT_wxUSE_CALCTRL=no
7304   DEFAULT_wxUSE_CARET=no
7305   DEFAULT_wxUSE_COMBOBOX=no
7306   DEFAULT_wxUSE_CHECKBOX=no
7307   DEFAULT_wxUSE_CHECKLISTBOX=no
7308   DEFAULT_wxUSE_CHOICE=no
7309   DEFAULT_wxUSE_CHOICEBOOK=no
7310   DEFAULT_wxUSE_DATEPICKCTRL=no
7311   DEFAULT_wxUSE_GAUGE=no
7312   DEFAULT_wxUSE_GRID=no
7313   DEFAULT_wxUSE_IMAGLIST=no
7314   DEFAULT_wxUSE_LISTBOOK=no
7315   DEFAULT_wxUSE_LISTBOX=no
7316   DEFAULT_wxUSE_LISTCTRL=no
7317   DEFAULT_wxUSE_NOTEBOOK=no
7318   DEFAULT_wxUSE_RADIOBOX=no
7319   DEFAULT_wxUSE_RADIOBTN=no
7320   DEFAULT_wxUSE_SASH=no
7321   DEFAULT_wxUSE_SCROLLBAR=no
7322   DEFAULT_wxUSE_SLIDER=no
7323   DEFAULT_wxUSE_SPINBTN=no
7324   DEFAULT_wxUSE_SPINCTRL=no
7325   DEFAULT_wxUSE_SPLITTER=no
7326   DEFAULT_wxUSE_STATBMP=no
7327   DEFAULT_wxUSE_STATBOX=no
7328   DEFAULT_wxUSE_STATLINE=no
7329   DEFAULT_wxUSE_STATUSBAR=no
7330   DEFAULT_wxUSE_TAB_DIALOG=no
7331   DEFAULT_wxUSE_TOGGLEBTN=no
7332   DEFAULT_wxUSE_TOOLBAR=no
7333   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7334   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7335   DEFAULT_wxUSE_TOOLTIPS=no
7336   DEFAULT_wxUSE_TREECTRL=no
7337   DEFAULT_wxUSE_POPUPWIN=no
7338   DEFAULT_wxUSE_TIPWINDOW=no
7339 fi
7340
7341
7342           enablestring=
7343           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7344 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7345           no_cache=0
7346           # Check whether --enable-accel or --disable-accel was given.
7347 if test "${enable_accel+set}" = set; then
7348   enableval="$enable_accel"
7349
7350                           if test "$enableval" = yes; then
7351                             ac_cv_use_accel='wxUSE_ACCEL=yes'
7352                           else
7353                             ac_cv_use_accel='wxUSE_ACCEL=no'
7354                           fi
7355
7356 else
7357
7358                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7359                           if test "x$LINE" != x ; then
7360                             eval "DEFAULT_$LINE"
7361                           else
7362                             no_cache=1
7363                           fi
7364
7365                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7366
7367 fi;
7368
7369           eval "$ac_cv_use_accel"
7370           if test "$no_cache" != 1; then
7371             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7372           fi
7373
7374           if test "$wxUSE_ACCEL" = yes; then
7375             echo "$as_me:$LINENO: result: yes" >&5
7376 echo "${ECHO_T}yes" >&6
7377           else
7378             echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6
7380           fi
7381
7382
7383           enablestring=
7384           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7385 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7386           no_cache=0
7387           # Check whether --enable-button or --disable-button was given.
7388 if test "${enable_button+set}" = set; then
7389   enableval="$enable_button"
7390
7391                           if test "$enableval" = yes; then
7392                             ac_cv_use_button='wxUSE_BUTTON=yes'
7393                           else
7394                             ac_cv_use_button='wxUSE_BUTTON=no'
7395                           fi
7396
7397 else
7398
7399                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7400                           if test "x$LINE" != x ; then
7401                             eval "DEFAULT_$LINE"
7402                           else
7403                             no_cache=1
7404                           fi
7405
7406                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7407
7408 fi;
7409
7410           eval "$ac_cv_use_button"
7411           if test "$no_cache" != 1; then
7412             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7413           fi
7414
7415           if test "$wxUSE_BUTTON" = yes; then
7416             echo "$as_me:$LINENO: result: yes" >&5
7417 echo "${ECHO_T}yes" >&6
7418           else
7419             echo "$as_me:$LINENO: result: no" >&5
7420 echo "${ECHO_T}no" >&6
7421           fi
7422
7423
7424           enablestring=
7425           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7426 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7427           no_cache=0
7428           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7429 if test "${enable_bmpbutton+set}" = set; then
7430   enableval="$enable_bmpbutton"
7431
7432                           if test "$enableval" = yes; then
7433                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7434                           else
7435                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7436                           fi
7437
7438 else
7439
7440                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7441                           if test "x$LINE" != x ; then
7442                             eval "DEFAULT_$LINE"
7443                           else
7444                             no_cache=1
7445                           fi
7446
7447                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7448
7449 fi;
7450
7451           eval "$ac_cv_use_bmpbutton"
7452           if test "$no_cache" != 1; then
7453             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7454           fi
7455
7456           if test "$wxUSE_BMPBUTTON" = yes; then
7457             echo "$as_me:$LINENO: result: yes" >&5
7458 echo "${ECHO_T}yes" >&6
7459           else
7460             echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6
7462           fi
7463
7464
7465           enablestring=
7466           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7467 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7468           no_cache=0
7469           # Check whether --enable-calendar or --disable-calendar was given.
7470 if test "${enable_calendar+set}" = set; then
7471   enableval="$enable_calendar"
7472
7473                           if test "$enableval" = yes; then
7474                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7475                           else
7476                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
7477                           fi
7478
7479 else
7480
7481                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7482                           if test "x$LINE" != x ; then
7483                             eval "DEFAULT_$LINE"
7484                           else
7485                             no_cache=1
7486                           fi
7487
7488                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7489
7490 fi;
7491
7492           eval "$ac_cv_use_calendar"
7493           if test "$no_cache" != 1; then
7494             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7495           fi
7496
7497           if test "$wxUSE_CALCTRL" = yes; then
7498             echo "$as_me:$LINENO: result: yes" >&5
7499 echo "${ECHO_T}yes" >&6
7500           else
7501             echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6
7503           fi
7504
7505
7506           enablestring=
7507           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7508 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7509           no_cache=0
7510           # Check whether --enable-caret or --disable-caret was given.
7511 if test "${enable_caret+set}" = set; then
7512   enableval="$enable_caret"
7513
7514                           if test "$enableval" = yes; then
7515                             ac_cv_use_caret='wxUSE_CARET=yes'
7516                           else
7517                             ac_cv_use_caret='wxUSE_CARET=no'
7518                           fi
7519
7520 else
7521
7522                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7523                           if test "x$LINE" != x ; then
7524                             eval "DEFAULT_$LINE"
7525                           else
7526                             no_cache=1
7527                           fi
7528
7529                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7530
7531 fi;
7532
7533           eval "$ac_cv_use_caret"
7534           if test "$no_cache" != 1; then
7535             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7536           fi
7537
7538           if test "$wxUSE_CARET" = yes; then
7539             echo "$as_me:$LINENO: result: yes" >&5
7540 echo "${ECHO_T}yes" >&6
7541           else
7542             echo "$as_me:$LINENO: result: no" >&5
7543 echo "${ECHO_T}no" >&6
7544           fi
7545
7546
7547           enablestring=
7548           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7549 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7550           no_cache=0
7551           # Check whether --enable-checkbox or --disable-checkbox was given.
7552 if test "${enable_checkbox+set}" = set; then
7553   enableval="$enable_checkbox"
7554
7555                           if test "$enableval" = yes; then
7556                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7557                           else
7558                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7559                           fi
7560
7561 else
7562
7563                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7564                           if test "x$LINE" != x ; then
7565                             eval "DEFAULT_$LINE"
7566                           else
7567                             no_cache=1
7568                           fi
7569
7570                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7571
7572 fi;
7573
7574           eval "$ac_cv_use_checkbox"
7575           if test "$no_cache" != 1; then
7576             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7577           fi
7578
7579           if test "$wxUSE_CHECKBOX" = yes; then
7580             echo "$as_me:$LINENO: result: yes" >&5
7581 echo "${ECHO_T}yes" >&6
7582           else
7583             echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6
7585           fi
7586
7587
7588           enablestring=
7589           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7590 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7591           no_cache=0
7592           # Check whether --enable-checklst or --disable-checklst was given.
7593 if test "${enable_checklst+set}" = set; then
7594   enableval="$enable_checklst"
7595
7596                           if test "$enableval" = yes; then
7597                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7598                           else
7599                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
7600                           fi
7601
7602 else
7603
7604                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7605                           if test "x$LINE" != x ; then
7606                             eval "DEFAULT_$LINE"
7607                           else
7608                             no_cache=1
7609                           fi
7610
7611                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7612
7613 fi;
7614
7615           eval "$ac_cv_use_checklst"
7616           if test "$no_cache" != 1; then
7617             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7618           fi
7619
7620           if test "$wxUSE_CHECKLST" = yes; then
7621             echo "$as_me:$LINENO: result: yes" >&5
7622 echo "${ECHO_T}yes" >&6
7623           else
7624             echo "$as_me:$LINENO: result: no" >&5
7625 echo "${ECHO_T}no" >&6
7626           fi
7627
7628
7629           enablestring=
7630           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7631 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7632           no_cache=0
7633           # Check whether --enable-choice or --disable-choice was given.
7634 if test "${enable_choice+set}" = set; then
7635   enableval="$enable_choice"
7636
7637                           if test "$enableval" = yes; then
7638                             ac_cv_use_choice='wxUSE_CHOICE=yes'
7639                           else
7640                             ac_cv_use_choice='wxUSE_CHOICE=no'
7641                           fi
7642
7643 else
7644
7645                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7646                           if test "x$LINE" != x ; then
7647                             eval "DEFAULT_$LINE"
7648                           else
7649                             no_cache=1
7650                           fi
7651
7652                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7653
7654 fi;
7655
7656           eval "$ac_cv_use_choice"
7657           if test "$no_cache" != 1; then
7658             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7659           fi
7660
7661           if test "$wxUSE_CHOICE" = yes; then
7662             echo "$as_me:$LINENO: result: yes" >&5
7663 echo "${ECHO_T}yes" >&6
7664           else
7665             echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6
7667           fi
7668
7669
7670           enablestring=
7671           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7672 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7673           no_cache=0
7674           # Check whether --enable-choicebook or --disable-choicebook was given.
7675 if test "${enable_choicebook+set}" = set; then
7676   enableval="$enable_choicebook"
7677
7678                           if test "$enableval" = yes; then
7679                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7680                           else
7681                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7682                           fi
7683
7684 else
7685
7686                           LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7687                           if test "x$LINE" != x ; then
7688                             eval "DEFAULT_$LINE"
7689                           else
7690                             no_cache=1
7691                           fi
7692
7693                           ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7694
7695 fi;
7696
7697           eval "$ac_cv_use_choicebook"
7698           if test "$no_cache" != 1; then
7699             echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7700           fi
7701
7702           if test "$wxUSE_CHOICEBOOK" = yes; then
7703             echo "$as_me:$LINENO: result: yes" >&5
7704 echo "${ECHO_T}yes" >&6
7705           else
7706             echo "$as_me:$LINENO: result: no" >&5
7707 echo "${ECHO_T}no" >&6
7708           fi
7709
7710
7711           enablestring=
7712           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7713 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7714           no_cache=0
7715           # Check whether --enable-combobox or --disable-combobox was given.
7716 if test "${enable_combobox+set}" = set; then
7717   enableval="$enable_combobox"
7718
7719                           if test "$enableval" = yes; then
7720                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7721                           else
7722                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7723                           fi
7724
7725 else
7726
7727                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7728                           if test "x$LINE" != x ; then
7729                             eval "DEFAULT_$LINE"
7730                           else
7731                             no_cache=1
7732                           fi
7733
7734                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7735
7736 fi;
7737
7738           eval "$ac_cv_use_combobox"
7739           if test "$no_cache" != 1; then
7740             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7741           fi
7742
7743           if test "$wxUSE_COMBOBOX" = yes; then
7744             echo "$as_me:$LINENO: result: yes" >&5
7745 echo "${ECHO_T}yes" >&6
7746           else
7747             echo "$as_me:$LINENO: result: no" >&5
7748 echo "${ECHO_T}no" >&6
7749           fi
7750
7751
7752           enablestring=
7753           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7754 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7755           no_cache=0
7756           # Check whether --enable-datepick or --disable-datepick was given.
7757 if test "${enable_datepick+set}" = set; then
7758   enableval="$enable_datepick"
7759
7760                           if test "$enableval" = yes; then
7761                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7762                           else
7763                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7764                           fi
7765
7766 else
7767
7768                           LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7769                           if test "x$LINE" != x ; then
7770                             eval "DEFAULT_$LINE"
7771                           else
7772                             no_cache=1
7773                           fi
7774
7775                           ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7776
7777 fi;
7778
7779           eval "$ac_cv_use_datepick"
7780           if test "$no_cache" != 1; then
7781             echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7782           fi
7783
7784           if test "$wxUSE_DATEPICKCTRL" = yes; then
7785             echo "$as_me:$LINENO: result: yes" >&5
7786 echo "${ECHO_T}yes" >&6
7787           else
7788             echo "$as_me:$LINENO: result: no" >&5
7789 echo "${ECHO_T}no" >&6
7790           fi
7791
7792
7793           enablestring=
7794           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7795 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7796           no_cache=0
7797           # Check whether --enable-display or --disable-display was given.
7798 if test "${enable_display+set}" = set; then
7799   enableval="$enable_display"
7800
7801                           if test "$enableval" = yes; then
7802                             ac_cv_use_display='wxUSE_DISPLAY=yes'
7803                           else
7804                             ac_cv_use_display='wxUSE_DISPLAY=no'
7805                           fi
7806
7807 else
7808
7809                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7810                           if test "x$LINE" != x ; then
7811                             eval "DEFAULT_$LINE"
7812                           else
7813                             no_cache=1
7814                           fi
7815
7816                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7817
7818 fi;
7819
7820           eval "$ac_cv_use_display"
7821           if test "$no_cache" != 1; then
7822             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7823           fi
7824
7825           if test "$wxUSE_DISPLAY" = yes; then
7826             echo "$as_me:$LINENO: result: yes" >&5
7827 echo "${ECHO_T}yes" >&6
7828           else
7829             echo "$as_me:$LINENO: result: no" >&5
7830 echo "${ECHO_T}no" >&6
7831           fi
7832
7833
7834           enablestring=
7835           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7836 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7837           no_cache=0
7838           # Check whether --enable-gauge or --disable-gauge was given.
7839 if test "${enable_gauge+set}" = set; then
7840   enableval="$enable_gauge"
7841
7842                           if test "$enableval" = yes; then
7843                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
7844                           else
7845                             ac_cv_use_gauge='wxUSE_GAUGE=no'
7846                           fi
7847
7848 else
7849
7850                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7851                           if test "x$LINE" != x ; then
7852                             eval "DEFAULT_$LINE"
7853                           else
7854                             no_cache=1
7855                           fi
7856
7857                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7858
7859 fi;
7860
7861           eval "$ac_cv_use_gauge"
7862           if test "$no_cache" != 1; then
7863             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7864           fi
7865
7866           if test "$wxUSE_GAUGE" = yes; then
7867             echo "$as_me:$LINENO: result: yes" >&5
7868 echo "${ECHO_T}yes" >&6
7869           else
7870             echo "$as_me:$LINENO: result: no" >&5
7871 echo "${ECHO_T}no" >&6
7872           fi
7873
7874
7875           enablestring=
7876           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7877 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7878           no_cache=0
7879           # Check whether --enable-grid or --disable-grid was given.
7880 if test "${enable_grid+set}" = set; then
7881   enableval="$enable_grid"
7882
7883                           if test "$enableval" = yes; then
7884                             ac_cv_use_grid='wxUSE_GRID=yes'
7885                           else
7886                             ac_cv_use_grid='wxUSE_GRID=no'
7887                           fi
7888
7889 else
7890
7891                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7892                           if test "x$LINE" != x ; then
7893                             eval "DEFAULT_$LINE"
7894                           else
7895                             no_cache=1
7896                           fi
7897
7898                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7899
7900 fi;
7901
7902           eval "$ac_cv_use_grid"
7903           if test "$no_cache" != 1; then
7904             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7905           fi
7906
7907           if test "$wxUSE_GRID" = yes; then
7908             echo "$as_me:$LINENO: result: yes" >&5
7909 echo "${ECHO_T}yes" >&6
7910           else
7911             echo "$as_me:$LINENO: result: no" >&5
7912 echo "${ECHO_T}no" >&6
7913           fi
7914
7915
7916           enablestring=
7917           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7918 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7919           no_cache=0
7920           # Check whether --enable-imaglist or --disable-imaglist was given.
7921 if test "${enable_imaglist+set}" = set; then
7922   enableval="$enable_imaglist"
7923
7924                           if test "$enableval" = yes; then
7925                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7926                           else
7927                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7928                           fi
7929
7930 else
7931
7932                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7933                           if test "x$LINE" != x ; then
7934                             eval "DEFAULT_$LINE"
7935                           else
7936                             no_cache=1
7937                           fi
7938
7939                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7940
7941 fi;
7942
7943           eval "$ac_cv_use_imaglist"
7944           if test "$no_cache" != 1; then
7945             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7946           fi
7947
7948           if test "$wxUSE_IMAGLIST" = yes; then
7949             echo "$as_me:$LINENO: result: yes" >&5
7950 echo "${ECHO_T}yes" >&6
7951           else
7952             echo "$as_me:$LINENO: result: no" >&5
7953 echo "${ECHO_T}no" >&6
7954           fi
7955
7956
7957           enablestring=
7958           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7959 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7960           no_cache=0
7961           # Check whether --enable-listbook or --disable-listbook was given.
7962 if test "${enable_listbook+set}" = set; then
7963   enableval="$enable_listbook"
7964
7965                           if test "$enableval" = yes; then
7966                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7967                           else
7968                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7969                           fi
7970
7971 else
7972
7973                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7974                           if test "x$LINE" != x ; then
7975                             eval "DEFAULT_$LINE"
7976                           else
7977                             no_cache=1
7978                           fi
7979
7980                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7981
7982 fi;
7983
7984           eval "$ac_cv_use_listbook"
7985           if test "$no_cache" != 1; then
7986             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7987           fi
7988
7989           if test "$wxUSE_LISTBOOK" = yes; then
7990             echo "$as_me:$LINENO: result: yes" >&5
7991 echo "${ECHO_T}yes" >&6
7992           else
7993             echo "$as_me:$LINENO: result: no" >&5
7994 echo "${ECHO_T}no" >&6
7995           fi
7996
7997
7998           enablestring=
7999           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8000 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8001           no_cache=0
8002           # Check whether --enable-listbox or --disable-listbox was given.
8003 if test "${enable_listbox+set}" = set; then
8004   enableval="$enable_listbox"
8005
8006                           if test "$enableval" = yes; then
8007                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8008                           else
8009                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
8010                           fi
8011
8012 else
8013
8014                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8015                           if test "x$LINE" != x ; then
8016                             eval "DEFAULT_$LINE"
8017                           else
8018                             no_cache=1
8019                           fi
8020
8021                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8022
8023 fi;
8024
8025           eval "$ac_cv_use_listbox"
8026           if test "$no_cache" != 1; then
8027             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8028           fi
8029
8030           if test "$wxUSE_LISTBOX" = yes; then
8031             echo "$as_me:$LINENO: result: yes" >&5
8032 echo "${ECHO_T}yes" >&6
8033           else
8034             echo "$as_me:$LINENO: result: no" >&5
8035 echo "${ECHO_T}no" >&6
8036           fi
8037
8038
8039           enablestring=
8040           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8041 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8042           no_cache=0
8043           # Check whether --enable-listctrl or --disable-listctrl was given.
8044 if test "${enable_listctrl+set}" = set; then
8045   enableval="$enable_listctrl"
8046
8047                           if test "$enableval" = yes; then
8048                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8049                           else
8050                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8051                           fi
8052
8053 else
8054
8055                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8056                           if test "x$LINE" != x ; then
8057                             eval "DEFAULT_$LINE"
8058                           else
8059                             no_cache=1
8060                           fi
8061
8062                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8063
8064 fi;
8065
8066           eval "$ac_cv_use_listctrl"
8067           if test "$no_cache" != 1; then
8068             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8069           fi
8070
8071           if test "$wxUSE_LISTCTRL" = yes; then
8072             echo "$as_me:$LINENO: result: yes" >&5
8073 echo "${ECHO_T}yes" >&6
8074           else
8075             echo "$as_me:$LINENO: result: no" >&5
8076 echo "${ECHO_T}no" >&6
8077           fi
8078
8079
8080           enablestring=
8081           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8082 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8083           no_cache=0
8084           # Check whether --enable-notebook or --disable-notebook was given.
8085 if test "${enable_notebook+set}" = set; then
8086   enableval="$enable_notebook"
8087
8088                           if test "$enableval" = yes; then
8089                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8090                           else
8091                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8092                           fi
8093
8094 else
8095
8096                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8097                           if test "x$LINE" != x ; then
8098                             eval "DEFAULT_$LINE"
8099                           else
8100                             no_cache=1
8101                           fi
8102
8103                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8104
8105 fi;
8106
8107           eval "$ac_cv_use_notebook"
8108           if test "$no_cache" != 1; then
8109             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8110           fi
8111
8112           if test "$wxUSE_NOTEBOOK" = yes; then
8113             echo "$as_me:$LINENO: result: yes" >&5
8114 echo "${ECHO_T}yes" >&6
8115           else
8116             echo "$as_me:$LINENO: result: no" >&5
8117 echo "${ECHO_T}no" >&6
8118           fi
8119
8120
8121           enablestring=
8122           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8123 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8124           no_cache=0
8125           # Check whether --enable-radiobox or --disable-radiobox was given.
8126 if test "${enable_radiobox+set}" = set; then
8127   enableval="$enable_radiobox"
8128
8129                           if test "$enableval" = yes; then
8130                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8131                           else
8132                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8133                           fi
8134
8135 else
8136
8137                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8138                           if test "x$LINE" != x ; then
8139                             eval "DEFAULT_$LINE"
8140                           else
8141                             no_cache=1
8142                           fi
8143
8144                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8145
8146 fi;
8147
8148           eval "$ac_cv_use_radiobox"
8149           if test "$no_cache" != 1; then
8150             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8151           fi
8152
8153           if test "$wxUSE_RADIOBOX" = yes; then
8154             echo "$as_me:$LINENO: result: yes" >&5
8155 echo "${ECHO_T}yes" >&6
8156           else
8157             echo "$as_me:$LINENO: result: no" >&5
8158 echo "${ECHO_T}no" >&6
8159           fi
8160
8161
8162           enablestring=
8163           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8164 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8165           no_cache=0
8166           # Check whether --enable-radiobtn or --disable-radiobtn was given.
8167 if test "${enable_radiobtn+set}" = set; then
8168   enableval="$enable_radiobtn"
8169
8170                           if test "$enableval" = yes; then
8171                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8172                           else
8173                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8174                           fi
8175
8176 else
8177
8178                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8179                           if test "x$LINE" != x ; then
8180                             eval "DEFAULT_$LINE"
8181                           else
8182                             no_cache=1
8183                           fi
8184
8185                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8186
8187 fi;
8188
8189           eval "$ac_cv_use_radiobtn"
8190           if test "$no_cache" != 1; then
8191             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8192           fi
8193
8194           if test "$wxUSE_RADIOBTN" = yes; then
8195             echo "$as_me:$LINENO: result: yes" >&5
8196 echo "${ECHO_T}yes" >&6
8197           else
8198             echo "$as_me:$LINENO: result: no" >&5
8199 echo "${ECHO_T}no" >&6
8200           fi
8201
8202
8203           enablestring=
8204           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8205 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8206           no_cache=0
8207           # Check whether --enable-sash or --disable-sash was given.
8208 if test "${enable_sash+set}" = set; then
8209   enableval="$enable_sash"
8210
8211                           if test "$enableval" = yes; then
8212                             ac_cv_use_sash='wxUSE_SASH=yes'
8213                           else
8214                             ac_cv_use_sash='wxUSE_SASH=no'
8215                           fi
8216
8217 else
8218
8219                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8220                           if test "x$LINE" != x ; then
8221                             eval "DEFAULT_$LINE"
8222                           else
8223                             no_cache=1
8224                           fi
8225
8226                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8227
8228 fi;
8229
8230           eval "$ac_cv_use_sash"
8231           if test "$no_cache" != 1; then
8232             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8233           fi
8234
8235           if test "$wxUSE_SASH" = yes; then
8236             echo "$as_me:$LINENO: result: yes" >&5
8237 echo "${ECHO_T}yes" >&6
8238           else
8239             echo "$as_me:$LINENO: result: no" >&5
8240 echo "${ECHO_T}no" >&6
8241           fi
8242
8243
8244           enablestring=
8245           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8246 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8247           no_cache=0
8248           # Check whether --enable-scrollbar or --disable-scrollbar was given.
8249 if test "${enable_scrollbar+set}" = set; then
8250   enableval="$enable_scrollbar"
8251
8252                           if test "$enableval" = yes; then
8253                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8254                           else
8255                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8256                           fi
8257
8258 else
8259
8260                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8261                           if test "x$LINE" != x ; then
8262                             eval "DEFAULT_$LINE"
8263                           else
8264                             no_cache=1
8265                           fi
8266
8267                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8268
8269 fi;
8270
8271           eval "$ac_cv_use_scrollbar"
8272           if test "$no_cache" != 1; then
8273             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8274           fi
8275
8276           if test "$wxUSE_SCROLLBAR" = yes; then
8277             echo "$as_me:$LINENO: result: yes" >&5
8278 echo "${ECHO_T}yes" >&6
8279           else
8280             echo "$as_me:$LINENO: result: no" >&5
8281 echo "${ECHO_T}no" >&6
8282           fi
8283
8284
8285           enablestring=
8286           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8287 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8288           no_cache=0
8289           # Check whether --enable-slider or --disable-slider was given.
8290 if test "${enable_slider+set}" = set; then
8291   enableval="$enable_slider"
8292
8293                           if test "$enableval" = yes; then
8294                             ac_cv_use_slider='wxUSE_SLIDER=yes'
8295                           else
8296                             ac_cv_use_slider='wxUSE_SLIDER=no'
8297                           fi
8298
8299 else
8300
8301                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8302                           if test "x$LINE" != x ; then
8303                             eval "DEFAULT_$LINE"
8304                           else
8305                             no_cache=1
8306                           fi
8307
8308                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8309
8310 fi;
8311
8312           eval "$ac_cv_use_slider"
8313           if test "$no_cache" != 1; then
8314             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8315           fi
8316
8317           if test "$wxUSE_SLIDER" = yes; then
8318             echo "$as_me:$LINENO: result: yes" >&5
8319 echo "${ECHO_T}yes" >&6
8320           else
8321             echo "$as_me:$LINENO: result: no" >&5
8322 echo "${ECHO_T}no" >&6
8323           fi
8324
8325
8326           enablestring=
8327           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8328 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8329           no_cache=0
8330           # Check whether --enable-spinbtn or --disable-spinbtn was given.
8331 if test "${enable_spinbtn+set}" = set; then
8332   enableval="$enable_spinbtn"
8333
8334                           if test "$enableval" = yes; then
8335                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8336                           else
8337                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8338                           fi
8339
8340 else
8341
8342                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8343                           if test "x$LINE" != x ; then
8344                             eval "DEFAULT_$LINE"
8345                           else
8346                             no_cache=1
8347                           fi
8348
8349                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8350
8351 fi;
8352
8353           eval "$ac_cv_use_spinbtn"
8354           if test "$no_cache" != 1; then
8355             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8356           fi
8357
8358           if test "$wxUSE_SPINBTN" = yes; then
8359             echo "$as_me:$LINENO: result: yes" >&5
8360 echo "${ECHO_T}yes" >&6
8361           else
8362             echo "$as_me:$LINENO: result: no" >&5
8363 echo "${ECHO_T}no" >&6
8364           fi
8365
8366
8367           enablestring=
8368           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8369 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8370           no_cache=0
8371           # Check whether --enable-spinctrl or --disable-spinctrl was given.
8372 if test "${enable_spinctrl+set}" = set; then
8373   enableval="$enable_spinctrl"
8374
8375                           if test "$enableval" = yes; then
8376                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8377                           else
8378                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8379                           fi
8380
8381 else
8382
8383                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8384                           if test "x$LINE" != x ; then
8385                             eval "DEFAULT_$LINE"
8386                           else
8387                             no_cache=1
8388                           fi
8389
8390                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8391
8392 fi;
8393
8394           eval "$ac_cv_use_spinctrl"
8395           if test "$no_cache" != 1; then
8396             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8397           fi
8398
8399           if test "$wxUSE_SPINCTRL" = yes; then
8400             echo "$as_me:$LINENO: result: yes" >&5
8401 echo "${ECHO_T}yes" >&6
8402           else
8403             echo "$as_me:$LINENO: result: no" >&5
8404 echo "${ECHO_T}no" >&6
8405           fi
8406
8407
8408           enablestring=
8409           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8410 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8411           no_cache=0
8412           # Check whether --enable-splitter or --disable-splitter was given.
8413 if test "${enable_splitter+set}" = set; then
8414   enableval="$enable_splitter"
8415
8416                           if test "$enableval" = yes; then
8417                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8418                           else
8419                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
8420                           fi
8421
8422 else
8423
8424                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8425                           if test "x$LINE" != x ; then
8426                             eval "DEFAULT_$LINE"
8427                           else
8428                             no_cache=1
8429                           fi
8430
8431                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8432
8433 fi;
8434
8435           eval "$ac_cv_use_splitter"
8436           if test "$no_cache" != 1; then
8437             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8438           fi
8439
8440           if test "$wxUSE_SPLITTER" = yes; then
8441             echo "$as_me:$LINENO: result: yes" >&5
8442 echo "${ECHO_T}yes" >&6
8443           else
8444             echo "$as_me:$LINENO: result: no" >&5
8445 echo "${ECHO_T}no" >&6
8446           fi
8447
8448
8449           enablestring=
8450           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8451 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8452           no_cache=0
8453           # Check whether --enable-statbmp or --disable-statbmp was given.
8454 if test "${enable_statbmp+set}" = set; then
8455   enableval="$enable_statbmp"
8456
8457                           if test "$enableval" = yes; then
8458                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8459                           else
8460                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
8461                           fi
8462
8463 else
8464
8465                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8466                           if test "x$LINE" != x ; then
8467                             eval "DEFAULT_$LINE"
8468                           else
8469                             no_cache=1
8470                           fi
8471
8472                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8473
8474 fi;
8475
8476           eval "$ac_cv_use_statbmp"
8477           if test "$no_cache" != 1; then
8478             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8479           fi
8480
8481           if test "$wxUSE_STATBMP" = yes; then
8482             echo "$as_me:$LINENO: result: yes" >&5
8483 echo "${ECHO_T}yes" >&6
8484           else
8485             echo "$as_me:$LINENO: result: no" >&5
8486 echo "${ECHO_T}no" >&6
8487           fi
8488
8489
8490           enablestring=
8491           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8492 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8493           no_cache=0
8494           # Check whether --enable-statbox or --disable-statbox was given.
8495 if test "${enable_statbox+set}" = set; then
8496   enableval="$enable_statbox"
8497
8498                           if test "$enableval" = yes; then
8499                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
8500                           else
8501                             ac_cv_use_statbox='wxUSE_STATBOX=no'
8502                           fi
8503
8504 else
8505
8506                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8507                           if test "x$LINE" != x ; then
8508                             eval "DEFAULT_$LINE"
8509                           else
8510                             no_cache=1
8511                           fi
8512
8513                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8514
8515 fi;
8516
8517           eval "$ac_cv_use_statbox"
8518           if test "$no_cache" != 1; then
8519             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8520           fi
8521
8522           if test "$wxUSE_STATBOX" = yes; then
8523             echo "$as_me:$LINENO: result: yes" >&5
8524 echo "${ECHO_T}yes" >&6
8525           else
8526             echo "$as_me:$LINENO: result: no" >&5
8527 echo "${ECHO_T}no" >&6
8528           fi
8529
8530
8531           enablestring=
8532           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8533 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8534           no_cache=0
8535           # Check whether --enable-statline or --disable-statline was given.
8536 if test "${enable_statline+set}" = set; then
8537   enableval="$enable_statline"
8538
8539                           if test "$enableval" = yes; then
8540                             ac_cv_use_statline='wxUSE_STATLINE=yes'
8541                           else
8542                             ac_cv_use_statline='wxUSE_STATLINE=no'
8543                           fi
8544
8545 else
8546
8547                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8548                           if test "x$LINE" != x ; then
8549                             eval "DEFAULT_$LINE"
8550                           else
8551                             no_cache=1
8552                           fi
8553
8554                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8555
8556 fi;
8557
8558           eval "$ac_cv_use_statline"
8559           if test "$no_cache" != 1; then
8560             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8561           fi
8562
8563           if test "$wxUSE_STATLINE" = yes; then
8564             echo "$as_me:$LINENO: result: yes" >&5
8565 echo "${ECHO_T}yes" >&6
8566           else
8567             echo "$as_me:$LINENO: result: no" >&5
8568 echo "${ECHO_T}no" >&6
8569           fi
8570
8571
8572           enablestring=
8573           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8574 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8575           no_cache=0
8576           # Check whether --enable-stattext or --disable-stattext was given.
8577 if test "${enable_stattext+set}" = set; then
8578   enableval="$enable_stattext"
8579
8580                           if test "$enableval" = yes; then
8581                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8582                           else
8583                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
8584                           fi
8585
8586 else
8587
8588                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8589                           if test "x$LINE" != x ; then
8590                             eval "DEFAULT_$LINE"
8591                           else
8592                             no_cache=1
8593                           fi
8594
8595                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8596
8597 fi;
8598
8599           eval "$ac_cv_use_stattext"
8600           if test "$no_cache" != 1; then
8601             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8602           fi
8603
8604           if test "$wxUSE_STATTEXT" = yes; then
8605             echo "$as_me:$LINENO: result: yes" >&5
8606 echo "${ECHO_T}yes" >&6
8607           else
8608             echo "$as_me:$LINENO: result: no" >&5
8609 echo "${ECHO_T}no" >&6
8610           fi
8611
8612
8613           enablestring=
8614           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8615 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8616           no_cache=0
8617           # Check whether --enable-statusbar or --disable-statusbar was given.
8618 if test "${enable_statusbar+set}" = set; then
8619   enableval="$enable_statusbar"
8620
8621                           if test "$enableval" = yes; then
8622                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8623                           else
8624                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8625                           fi
8626
8627 else
8628
8629                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8630                           if test "x$LINE" != x ; then
8631                             eval "DEFAULT_$LINE"
8632                           else
8633                             no_cache=1
8634                           fi
8635
8636                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8637
8638 fi;
8639
8640           eval "$ac_cv_use_statusbar"
8641           if test "$no_cache" != 1; then
8642             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8643           fi
8644
8645           if test "$wxUSE_STATUSBAR" = yes; then
8646             echo "$as_me:$LINENO: result: yes" >&5
8647 echo "${ECHO_T}yes" >&6
8648           else
8649             echo "$as_me:$LINENO: result: no" >&5
8650 echo "${ECHO_T}no" >&6
8651           fi
8652
8653
8654           enablestring=
8655           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8656 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8657           no_cache=0
8658           # Check whether --enable-tabdialog or --disable-tabdialog was given.
8659 if test "${enable_tabdialog+set}" = set; then
8660   enableval="$enable_tabdialog"
8661
8662                           if test "$enableval" = yes; then
8663                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8664                           else
8665                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8666                           fi
8667
8668 else
8669
8670                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8671                           if test "x$LINE" != x ; then
8672                             eval "DEFAULT_$LINE"
8673                           else
8674                             no_cache=1
8675                           fi
8676
8677                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8678
8679 fi;
8680
8681           eval "$ac_cv_use_tabdialog"
8682           if test "$no_cache" != 1; then
8683             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8684           fi
8685
8686           if test "$wxUSE_TABDIALOG" = yes; then
8687             echo "$as_me:$LINENO: result: yes" >&5
8688 echo "${ECHO_T}yes" >&6
8689           else
8690             echo "$as_me:$LINENO: result: no" >&5
8691 echo "${ECHO_T}no" >&6
8692           fi
8693
8694
8695           enablestring=
8696           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8697 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8698           no_cache=0
8699           # Check whether --enable-textctrl or --disable-textctrl was given.
8700 if test "${enable_textctrl+set}" = set; then
8701   enableval="$enable_textctrl"
8702
8703                           if test "$enableval" = yes; then
8704                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8705                           else
8706                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8707                           fi
8708
8709 else
8710
8711                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8712                           if test "x$LINE" != x ; then
8713                             eval "DEFAULT_$LINE"
8714                           else
8715                             no_cache=1
8716                           fi
8717
8718                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8719
8720 fi;
8721
8722           eval "$ac_cv_use_textctrl"
8723           if test "$no_cache" != 1; then
8724             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8725           fi
8726
8727           if test "$wxUSE_TEXTCTRL" = yes; then
8728             echo "$as_me:$LINENO: result: yes" >&5
8729 echo "${ECHO_T}yes" >&6
8730           else
8731             echo "$as_me:$LINENO: result: no" >&5
8732 echo "${ECHO_T}no" >&6
8733           fi
8734
8735
8736           enablestring=
8737           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8738 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8739           no_cache=0
8740           # Check whether --enable-togglebtn or --disable-togglebtn was given.
8741 if test "${enable_togglebtn+set}" = set; then
8742   enableval="$enable_togglebtn"
8743
8744                           if test "$enableval" = yes; then
8745                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8746                           else
8747                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8748                           fi
8749
8750 else
8751
8752                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8753                           if test "x$LINE" != x ; then
8754                             eval "DEFAULT_$LINE"
8755                           else
8756                             no_cache=1
8757                           fi
8758
8759                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8760
8761 fi;
8762
8763           eval "$ac_cv_use_togglebtn"
8764           if test "$no_cache" != 1; then
8765             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8766           fi
8767
8768           if test "$wxUSE_TOGGLEBTN" = yes; then
8769             echo "$as_me:$LINENO: result: yes" >&5
8770 echo "${ECHO_T}yes" >&6
8771           else
8772             echo "$as_me:$LINENO: result: no" >&5
8773 echo "${ECHO_T}no" >&6
8774           fi
8775
8776
8777           enablestring=
8778           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8779 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8780           no_cache=0
8781           # Check whether --enable-toolbar or --disable-toolbar was given.
8782 if test "${enable_toolbar+set}" = set; then
8783   enableval="$enable_toolbar"
8784
8785                           if test "$enableval" = yes; then
8786                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8787                           else
8788                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8789                           fi
8790
8791 else
8792
8793                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8794                           if test "x$LINE" != x ; then
8795                             eval "DEFAULT_$LINE"
8796                           else
8797                             no_cache=1
8798                           fi
8799
8800                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8801
8802 fi;
8803
8804           eval "$ac_cv_use_toolbar"
8805           if test "$no_cache" != 1; then
8806             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8807           fi
8808
8809           if test "$wxUSE_TOOLBAR" = yes; then
8810             echo "$as_me:$LINENO: result: yes" >&5
8811 echo "${ECHO_T}yes" >&6
8812           else
8813             echo "$as_me:$LINENO: result: no" >&5
8814 echo "${ECHO_T}no" >&6
8815           fi
8816
8817
8818           enablestring=
8819           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8820 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8821           no_cache=0
8822           # Check whether --enable-tbarnative or --disable-tbarnative was given.
8823 if test "${enable_tbarnative+set}" = set; then
8824   enableval="$enable_tbarnative"
8825
8826                           if test "$enableval" = yes; then
8827                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8828                           else
8829                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8830                           fi
8831
8832 else
8833
8834                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8835                           if test "x$LINE" != x ; then
8836                             eval "DEFAULT_$LINE"
8837                           else
8838                             no_cache=1
8839                           fi
8840
8841                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8842
8843 fi;
8844
8845           eval "$ac_cv_use_tbarnative"
8846           if test "$no_cache" != 1; then
8847             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8848           fi
8849
8850           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8851             echo "$as_me:$LINENO: result: yes" >&5
8852 echo "${ECHO_T}yes" >&6
8853           else
8854             echo "$as_me:$LINENO: result: no" >&5
8855 echo "${ECHO_T}no" >&6
8856           fi
8857
8858
8859           enablestring=
8860           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8861 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8862           no_cache=0
8863           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8864 if test "${enable_tbarsmpl+set}" = set; then
8865   enableval="$enable_tbarsmpl"
8866
8867                           if test "$enableval" = yes; then
8868                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8869                           else
8870                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8871                           fi
8872
8873 else
8874
8875                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8876                           if test "x$LINE" != x ; then
8877                             eval "DEFAULT_$LINE"
8878                           else
8879                             no_cache=1
8880                           fi
8881
8882                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8883
8884 fi;
8885
8886           eval "$ac_cv_use_tbarsmpl"
8887           if test "$no_cache" != 1; then
8888             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8889           fi
8890
8891           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8892             echo "$as_me:$LINENO: result: yes" >&5
8893 echo "${ECHO_T}yes" >&6
8894           else
8895             echo "$as_me:$LINENO: result: no" >&5
8896 echo "${ECHO_T}no" >&6
8897           fi
8898
8899
8900           enablestring=
8901           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8902 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8903           no_cache=0
8904           # Check whether --enable-treectrl or --disable-treectrl was given.
8905 if test "${enable_treectrl+set}" = set; then
8906   enableval="$enable_treectrl"
8907
8908                           if test "$enableval" = yes; then
8909                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8910                           else
8911                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8912                           fi
8913
8914 else
8915
8916                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8917                           if test "x$LINE" != x ; then
8918                             eval "DEFAULT_$LINE"
8919                           else
8920                             no_cache=1
8921                           fi
8922
8923                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8924
8925 fi;
8926
8927           eval "$ac_cv_use_treectrl"
8928           if test "$no_cache" != 1; then
8929             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8930           fi
8931
8932           if test "$wxUSE_TREECTRL" = yes; then
8933             echo "$as_me:$LINENO: result: yes" >&5
8934 echo "${ECHO_T}yes" >&6
8935           else
8936             echo "$as_me:$LINENO: result: no" >&5
8937 echo "${ECHO_T}no" >&6
8938           fi
8939
8940
8941           enablestring=
8942           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8943 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8944           no_cache=0
8945           # Check whether --enable-tipwindow or --disable-tipwindow was given.
8946 if test "${enable_tipwindow+set}" = set; then
8947   enableval="$enable_tipwindow"
8948
8949                           if test "$enableval" = yes; then
8950                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8951                           else
8952                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8953                           fi
8954
8955 else
8956
8957                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8958                           if test "x$LINE" != x ; then
8959                             eval "DEFAULT_$LINE"
8960                           else
8961                             no_cache=1
8962                           fi
8963
8964                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8965
8966 fi;
8967
8968           eval "$ac_cv_use_tipwindow"
8969           if test "$no_cache" != 1; then
8970             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8971           fi
8972
8973           if test "$wxUSE_TIPWINDOW" = yes; then
8974             echo "$as_me:$LINENO: result: yes" >&5
8975 echo "${ECHO_T}yes" >&6
8976           else
8977             echo "$as_me:$LINENO: result: no" >&5
8978 echo "${ECHO_T}no" >&6
8979           fi
8980
8981
8982           enablestring=
8983           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8984 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8985           no_cache=0
8986           # Check whether --enable-popupwin or --disable-popupwin was given.
8987 if test "${enable_popupwin+set}" = set; then
8988   enableval="$enable_popupwin"
8989
8990                           if test "$enableval" = yes; then
8991                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8992                           else
8993                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8994                           fi
8995
8996 else
8997
8998                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8999                           if test "x$LINE" != x ; then
9000                             eval "DEFAULT_$LINE"
9001                           else
9002                             no_cache=1
9003                           fi
9004
9005                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9006
9007 fi;
9008
9009           eval "$ac_cv_use_popupwin"
9010           if test "$no_cache" != 1; then
9011             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9012           fi
9013
9014           if test "$wxUSE_POPUPWIN" = yes; then
9015             echo "$as_me:$LINENO: result: yes" >&5
9016 echo "${ECHO_T}yes" >&6
9017           else
9018             echo "$as_me:$LINENO: result: no" >&5
9019 echo "${ECHO_T}no" >&6
9020           fi
9021
9022
9023
9024
9025           enablestring=
9026           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9027 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9028           no_cache=0
9029           # Check whether --enable-commondlg or --disable-commondlg was given.
9030 if test "${enable_commondlg+set}" = set; then
9031   enableval="$enable_commondlg"
9032
9033                           if test "$enableval" = yes; then
9034                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9035                           else
9036                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9037                           fi
9038
9039 else
9040
9041                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9042                           if test "x$LINE" != x ; then
9043                             eval "DEFAULT_$LINE"
9044                           else
9045                             no_cache=1
9046                           fi
9047
9048                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9049
9050 fi;
9051
9052           eval "$ac_cv_use_commondlg"
9053           if test "$no_cache" != 1; then
9054             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9055           fi
9056
9057           if test "$wxUSE_COMMONDLGS" = yes; then
9058             echo "$as_me:$LINENO: result: yes" >&5
9059 echo "${ECHO_T}yes" >&6
9060           else
9061             echo "$as_me:$LINENO: result: no" >&5
9062 echo "${ECHO_T}no" >&6
9063           fi
9064
9065
9066           enablestring=
9067           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9068 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9069           no_cache=0
9070           # Check whether --enable-choicedlg or --disable-choicedlg was given.
9071 if test "${enable_choicedlg+set}" = set; then
9072   enableval="$enable_choicedlg"
9073
9074                           if test "$enableval" = yes; then
9075                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9076                           else
9077                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9078                           fi
9079
9080 else
9081
9082                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9083                           if test "x$LINE" != x ; then
9084                             eval "DEFAULT_$LINE"
9085                           else
9086                             no_cache=1
9087                           fi
9088
9089                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9090
9091 fi;
9092
9093           eval "$ac_cv_use_choicedlg"
9094           if test "$no_cache" != 1; then
9095             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9096           fi
9097
9098           if test "$wxUSE_CHOICEDLG" = yes; then
9099             echo "$as_me:$LINENO: result: yes" >&5
9100 echo "${ECHO_T}yes" >&6
9101           else
9102             echo "$as_me:$LINENO: result: no" >&5
9103 echo "${ECHO_T}no" >&6
9104           fi
9105
9106
9107           enablestring=
9108           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9109 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9110           no_cache=0
9111           # Check whether --enable-coldlg or --disable-coldlg was given.
9112 if test "${enable_coldlg+set}" = set; then
9113   enableval="$enable_coldlg"
9114
9115                           if test "$enableval" = yes; then
9116                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9117                           else
9118                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9119                           fi
9120
9121 else
9122
9123                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9124                           if test "x$LINE" != x ; then
9125                             eval "DEFAULT_$LINE"
9126                           else
9127                             no_cache=1
9128                           fi
9129
9130                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9131
9132 fi;
9133
9134           eval "$ac_cv_use_coldlg"
9135           if test "$no_cache" != 1; then
9136             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9137           fi
9138
9139           if test "$wxUSE_COLOURDLG" = yes; then
9140             echo "$as_me:$LINENO: result: yes" >&5
9141 echo "${ECHO_T}yes" >&6
9142           else
9143             echo "$as_me:$LINENO: result: no" >&5
9144 echo "${ECHO_T}no" >&6
9145           fi
9146
9147
9148           enablestring=
9149           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9150 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9151           no_cache=0
9152           # Check whether --enable-filedlg or --disable-filedlg was given.
9153 if test "${enable_filedlg+set}" = set; then
9154   enableval="$enable_filedlg"
9155
9156                           if test "$enableval" = yes; then
9157                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9158                           else
9159                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9160                           fi
9161
9162 else
9163
9164                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9165                           if test "x$LINE" != x ; then
9166                             eval "DEFAULT_$LINE"
9167                           else
9168                             no_cache=1
9169                           fi
9170
9171                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9172
9173 fi;
9174
9175           eval "$ac_cv_use_filedlg"
9176           if test "$no_cache" != 1; then
9177             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9178           fi
9179
9180           if test "$wxUSE_FILEDLG" = yes; then
9181             echo "$as_me:$LINENO: result: yes" >&5
9182 echo "${ECHO_T}yes" >&6
9183           else
9184             echo "$as_me:$LINENO: result: no" >&5
9185 echo "${ECHO_T}no" >&6
9186           fi
9187
9188
9189           enablestring=
9190           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9191 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9192           no_cache=0
9193           # Check whether --enable-finddlg or --disable-finddlg was given.
9194 if test "${enable_finddlg+set}" = set; then
9195   enableval="$enable_finddlg"
9196
9197                           if test "$enableval" = yes; then
9198                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9199                           else
9200                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9201                           fi
9202
9203 else
9204
9205                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9206                           if test "x$LINE" != x ; then
9207                             eval "DEFAULT_$LINE"
9208                           else
9209                             no_cache=1
9210                           fi
9211
9212                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9213
9214 fi;
9215
9216           eval "$ac_cv_use_finddlg"
9217           if test "$no_cache" != 1; then
9218             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9219           fi
9220
9221           if test "$wxUSE_FINDREPLDLG" = yes; then
9222             echo "$as_me:$LINENO: result: yes" >&5
9223 echo "${ECHO_T}yes" >&6
9224           else
9225             echo "$as_me:$LINENO: result: no" >&5
9226 echo "${ECHO_T}no" >&6
9227           fi
9228
9229
9230           enablestring=
9231           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9232 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9233           no_cache=0
9234           # Check whether --enable-fontdlg or --disable-fontdlg was given.
9235 if test "${enable_fontdlg+set}" = set; then
9236   enableval="$enable_fontdlg"
9237
9238                           if test "$enableval" = yes; then
9239                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9240                           else
9241                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9242                           fi
9243
9244 else
9245
9246                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9247                           if test "x$LINE" != x ; then
9248                             eval "DEFAULT_$LINE"
9249                           else
9250                             no_cache=1
9251                           fi
9252
9253                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9254
9255 fi;
9256
9257           eval "$ac_cv_use_fontdlg"
9258           if test "$no_cache" != 1; then
9259             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9260           fi
9261
9262           if test "$wxUSE_FONTDLG" = yes; then
9263             echo "$as_me:$LINENO: result: yes" >&5
9264 echo "${ECHO_T}yes" >&6
9265           else
9266             echo "$as_me:$LINENO: result: no" >&5
9267 echo "${ECHO_T}no" >&6
9268           fi
9269
9270
9271           enablestring=
9272           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9273 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9274           no_cache=0
9275           # Check whether --enable-dirdlg or --disable-dirdlg was given.
9276 if test "${enable_dirdlg+set}" = set; then
9277   enableval="$enable_dirdlg"
9278
9279                           if test "$enableval" = yes; then
9280                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9281                           else
9282                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9283                           fi
9284
9285 else
9286
9287                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9288                           if test "x$LINE" != x ; then
9289                             eval "DEFAULT_$LINE"
9290                           else
9291                             no_cache=1
9292                           fi
9293
9294                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9295
9296 fi;
9297
9298           eval "$ac_cv_use_dirdlg"
9299           if test "$no_cache" != 1; then
9300             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9301           fi
9302
9303           if test "$wxUSE_DIRDLG" = yes; then
9304             echo "$as_me:$LINENO: result: yes" >&5
9305 echo "${ECHO_T}yes" >&6
9306           else
9307             echo "$as_me:$LINENO: result: no" >&5
9308 echo "${ECHO_T}no" >&6
9309           fi
9310
9311
9312           enablestring=
9313           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9314 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9315           no_cache=0
9316           # Check whether --enable-msgdlg or --disable-msgdlg was given.
9317 if test "${enable_msgdlg+set}" = set; then
9318   enableval="$enable_msgdlg"
9319
9320                           if test "$enableval" = yes; then
9321                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9322                           else
9323                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9324                           fi
9325
9326 else
9327
9328                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9329                           if test "x$LINE" != x ; then
9330                             eval "DEFAULT_$LINE"
9331                           else
9332                             no_cache=1
9333                           fi
9334
9335                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9336
9337 fi;
9338
9339           eval "$ac_cv_use_msgdlg"
9340           if test "$no_cache" != 1; then
9341             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9342           fi
9343
9344           if test "$wxUSE_MSGDLG" = yes; then
9345             echo "$as_me:$LINENO: result: yes" >&5
9346 echo "${ECHO_T}yes" >&6
9347           else
9348             echo "$as_me:$LINENO: result: no" >&5
9349 echo "${ECHO_T}no" >&6
9350           fi
9351
9352
9353           enablestring=
9354           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9355 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9356           no_cache=0
9357           # Check whether --enable-numberdlg or --disable-numberdlg was given.
9358 if test "${enable_numberdlg+set}" = set; then
9359   enableval="$enable_numberdlg"
9360
9361                           if test "$enableval" = yes; then
9362                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9363                           else
9364                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9365                           fi
9366
9367 else
9368
9369                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9370                           if test "x$LINE" != x ; then
9371                             eval "DEFAULT_$LINE"
9372                           else
9373                             no_cache=1
9374                           fi
9375
9376                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9377
9378 fi;
9379
9380           eval "$ac_cv_use_numberdlg"
9381           if test "$no_cache" != 1; then
9382             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9383           fi
9384
9385           if test "$wxUSE_NUMBERDLG" = yes; then
9386             echo "$as_me:$LINENO: result: yes" >&5
9387 echo "${ECHO_T}yes" >&6
9388           else
9389             echo "$as_me:$LINENO: result: no" >&5
9390 echo "${ECHO_T}no" >&6
9391           fi
9392
9393
9394           enablestring=
9395           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9396 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9397           no_cache=0
9398           # Check whether --enable-splash or --disable-splash was given.
9399 if test "${enable_splash+set}" = set; then
9400   enableval="$enable_splash"
9401
9402                           if test "$enableval" = yes; then
9403                             ac_cv_use_splash='wxUSE_SPLASH=yes'
9404                           else
9405                             ac_cv_use_splash='wxUSE_SPLASH=no'
9406                           fi
9407
9408 else
9409
9410                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9411                           if test "x$LINE" != x ; then
9412                             eval "DEFAULT_$LINE"
9413                           else
9414                             no_cache=1
9415                           fi
9416
9417                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9418
9419 fi;
9420
9421           eval "$ac_cv_use_splash"
9422           if test "$no_cache" != 1; then
9423             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9424           fi
9425
9426           if test "$wxUSE_SPLASH" = yes; then
9427             echo "$as_me:$LINENO: result: yes" >&5
9428 echo "${ECHO_T}yes" >&6
9429           else
9430             echo "$as_me:$LINENO: result: no" >&5
9431 echo "${ECHO_T}no" >&6
9432           fi
9433
9434
9435           enablestring=
9436           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9437 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9438           no_cache=0
9439           # Check whether --enable-textdlg or --disable-textdlg was given.
9440 if test "${enable_textdlg+set}" = set; then
9441   enableval="$enable_textdlg"
9442
9443                           if test "$enableval" = yes; then
9444                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9445                           else
9446                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9447                           fi
9448
9449 else
9450
9451                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9452                           if test "x$LINE" != x ; then
9453                             eval "DEFAULT_$LINE"
9454                           else
9455                             no_cache=1
9456                           fi
9457
9458                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9459
9460 fi;
9461
9462           eval "$ac_cv_use_textdlg"
9463           if test "$no_cache" != 1; then
9464             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9465           fi
9466
9467           if test "$wxUSE_TEXTDLG" = yes; then
9468             echo "$as_me:$LINENO: result: yes" >&5
9469 echo "${ECHO_T}yes" >&6
9470           else
9471             echo "$as_me:$LINENO: result: no" >&5
9472 echo "${ECHO_T}no" >&6
9473           fi
9474
9475
9476           enablestring=
9477           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9478 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9479           no_cache=0
9480           # Check whether --enable-tipdlg or --disable-tipdlg was given.
9481 if test "${enable_tipdlg+set}" = set; then
9482   enableval="$enable_tipdlg"
9483
9484                           if test "$enableval" = yes; then
9485                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9486                           else
9487                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9488                           fi
9489
9490 else
9491
9492                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9493                           if test "x$LINE" != x ; then
9494                             eval "DEFAULT_$LINE"
9495                           else
9496                             no_cache=1
9497                           fi
9498
9499                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9500
9501 fi;
9502
9503           eval "$ac_cv_use_tipdlg"
9504           if test "$no_cache" != 1; then
9505             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9506           fi
9507
9508           if test "$wxUSE_STARTUP_TIPS" = yes; then
9509             echo "$as_me:$LINENO: result: yes" >&5
9510 echo "${ECHO_T}yes" >&6
9511           else
9512             echo "$as_me:$LINENO: result: no" >&5
9513 echo "${ECHO_T}no" >&6
9514           fi
9515
9516
9517           enablestring=
9518           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9519 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9520           no_cache=0
9521           # Check whether --enable-progressdlg or --disable-progressdlg was given.
9522 if test "${enable_progressdlg+set}" = set; then
9523   enableval="$enable_progressdlg"
9524
9525                           if test "$enableval" = yes; then
9526                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9527                           else
9528                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9529                           fi
9530
9531 else
9532
9533                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9534                           if test "x$LINE" != x ; then
9535                             eval "DEFAULT_$LINE"
9536                           else
9537                             no_cache=1
9538                           fi
9539
9540                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9541
9542 fi;
9543
9544           eval "$ac_cv_use_progressdlg"
9545           if test "$no_cache" != 1; then
9546             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9547           fi
9548
9549           if test "$wxUSE_PROGRESSDLG" = yes; then
9550             echo "$as_me:$LINENO: result: yes" >&5
9551 echo "${ECHO_T}yes" >&6
9552           else
9553             echo "$as_me:$LINENO: result: no" >&5
9554 echo "${ECHO_T}no" >&6
9555           fi
9556
9557
9558           enablestring=
9559           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9560 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9561           no_cache=0
9562           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9563 if test "${enable_wizarddlg+set}" = set; then
9564   enableval="$enable_wizarddlg"
9565
9566                           if test "$enableval" = yes; then
9567                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9568                           else
9569                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9570                           fi
9571
9572 else
9573
9574                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9575                           if test "x$LINE" != x ; then
9576                             eval "DEFAULT_$LINE"
9577                           else
9578                             no_cache=1
9579                           fi
9580
9581                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9582
9583 fi;
9584
9585           eval "$ac_cv_use_wizarddlg"
9586           if test "$no_cache" != 1; then
9587             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9588           fi
9589
9590           if test "$wxUSE_WIZARDDLG" = yes; then
9591             echo "$as_me:$LINENO: result: yes" >&5
9592 echo "${ECHO_T}yes" >&6
9593           else
9594             echo "$as_me:$LINENO: result: no" >&5
9595 echo "${ECHO_T}no" >&6
9596           fi
9597
9598
9599
9600
9601           enablestring=
9602           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9603 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9604           no_cache=0
9605           # Check whether --enable-menus or --disable-menus was given.
9606 if test "${enable_menus+set}" = set; then
9607   enableval="$enable_menus"
9608
9609                           if test "$enableval" = yes; then
9610                             ac_cv_use_menus='wxUSE_MENUS=yes'
9611                           else
9612                             ac_cv_use_menus='wxUSE_MENUS=no'
9613                           fi
9614
9615 else
9616
9617                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9618                           if test "x$LINE" != x ; then
9619                             eval "DEFAULT_$LINE"
9620                           else
9621                             no_cache=1
9622                           fi
9623
9624                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9625
9626 fi;
9627
9628           eval "$ac_cv_use_menus"
9629           if test "$no_cache" != 1; then
9630             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9631           fi
9632
9633           if test "$wxUSE_MENUS" = yes; then
9634             echo "$as_me:$LINENO: result: yes" >&5
9635 echo "${ECHO_T}yes" >&6
9636           else
9637             echo "$as_me:$LINENO: result: no" >&5
9638 echo "${ECHO_T}no" >&6
9639           fi
9640
9641
9642           enablestring=
9643           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9644 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9645           no_cache=0
9646           # Check whether --enable-miniframe or --disable-miniframe was given.
9647 if test "${enable_miniframe+set}" = set; then
9648   enableval="$enable_miniframe"
9649
9650                           if test "$enableval" = yes; then
9651                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9652                           else
9653                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9654                           fi
9655
9656 else
9657
9658                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9659                           if test "x$LINE" != x ; then
9660                             eval "DEFAULT_$LINE"
9661                           else
9662                             no_cache=1
9663                           fi
9664
9665                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9666
9667 fi;
9668
9669           eval "$ac_cv_use_miniframe"
9670           if test "$no_cache" != 1; then
9671             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9672           fi
9673
9674           if test "$wxUSE_MINIFRAME" = yes; then
9675             echo "$as_me:$LINENO: result: yes" >&5
9676 echo "${ECHO_T}yes" >&6
9677           else
9678             echo "$as_me:$LINENO: result: no" >&5
9679 echo "${ECHO_T}no" >&6
9680           fi
9681
9682
9683           enablestring=
9684           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9685 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9686           no_cache=0
9687           # Check whether --enable-tooltips or --disable-tooltips was given.
9688 if test "${enable_tooltips+set}" = set; then
9689   enableval="$enable_tooltips"
9690
9691                           if test "$enableval" = yes; then
9692                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9693                           else
9694                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9695                           fi
9696
9697 else
9698
9699                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9700                           if test "x$LINE" != x ; then
9701                             eval "DEFAULT_$LINE"
9702                           else
9703                             no_cache=1
9704                           fi
9705
9706                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9707
9708 fi;
9709
9710           eval "$ac_cv_use_tooltips"
9711           if test "$no_cache" != 1; then
9712             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9713           fi
9714
9715           if test "$wxUSE_TOOLTIPS" = yes; then
9716             echo "$as_me:$LINENO: result: yes" >&5
9717 echo "${ECHO_T}yes" >&6
9718           else
9719             echo "$as_me:$LINENO: result: no" >&5
9720 echo "${ECHO_T}no" >&6
9721           fi
9722
9723
9724           enablestring=
9725           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9726 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9727           no_cache=0
9728           # Check whether --enable-splines or --disable-splines was given.
9729 if test "${enable_splines+set}" = set; then
9730   enableval="$enable_splines"
9731
9732                           if test "$enableval" = yes; then
9733                             ac_cv_use_splines='wxUSE_SPLINES=yes'
9734                           else
9735                             ac_cv_use_splines='wxUSE_SPLINES=no'
9736                           fi
9737
9738 else
9739
9740                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9741                           if test "x$LINE" != x ; then
9742                             eval "DEFAULT_$LINE"
9743                           else
9744                             no_cache=1
9745                           fi
9746
9747                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9748
9749 fi;
9750
9751           eval "$ac_cv_use_splines"
9752           if test "$no_cache" != 1; then
9753             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9754           fi
9755
9756           if test "$wxUSE_SPLINES" = yes; then
9757             echo "$as_me:$LINENO: result: yes" >&5
9758 echo "${ECHO_T}yes" >&6
9759           else
9760             echo "$as_me:$LINENO: result: no" >&5
9761 echo "${ECHO_T}no" >&6
9762           fi
9763
9764
9765           enablestring=
9766           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9767 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9768           no_cache=0
9769           # Check whether --enable-mousewheel or --disable-mousewheel was given.
9770 if test "${enable_mousewheel+set}" = set; then
9771   enableval="$enable_mousewheel"
9772
9773                           if test "$enableval" = yes; then
9774                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9775                           else
9776                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9777                           fi
9778
9779 else
9780
9781                           LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9782                           if test "x$LINE" != x ; then
9783                             eval "DEFAULT_$LINE"
9784                           else
9785                             no_cache=1
9786                           fi
9787
9788                           ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9789
9790 fi;
9791
9792           eval "$ac_cv_use_mousewheel"
9793           if test "$no_cache" != 1; then
9794             echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9795           fi
9796
9797           if test "$wxUSE_MOUSEWHEEL" = yes; then
9798             echo "$as_me:$LINENO: result: yes" >&5
9799 echo "${ECHO_T}yes" >&6
9800           else
9801             echo "$as_me:$LINENO: result: no" >&5
9802 echo "${ECHO_T}no" >&6
9803           fi
9804
9805
9806           enablestring=
9807           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9808 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9809           no_cache=0
9810           # Check whether --enable-validators or --disable-validators was given.
9811 if test "${enable_validators+set}" = set; then
9812   enableval="$enable_validators"
9813
9814                           if test "$enableval" = yes; then
9815                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9816                           else
9817                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
9818                           fi
9819
9820 else
9821
9822                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9823                           if test "x$LINE" != x ; then
9824                             eval "DEFAULT_$LINE"
9825                           else
9826                             no_cache=1
9827                           fi
9828
9829                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9830
9831 fi;
9832
9833           eval "$ac_cv_use_validators"
9834           if test "$no_cache" != 1; then
9835             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9836           fi
9837
9838           if test "$wxUSE_VALIDATORS" = yes; then
9839             echo "$as_me:$LINENO: result: yes" >&5
9840 echo "${ECHO_T}yes" >&6
9841           else
9842             echo "$as_me:$LINENO: result: no" >&5
9843 echo "${ECHO_T}no" >&6
9844           fi
9845
9846
9847           enablestring=
9848           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9849 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9850           no_cache=0
9851           # Check whether --enable-busyinfo or --disable-busyinfo was given.
9852 if test "${enable_busyinfo+set}" = set; then
9853   enableval="$enable_busyinfo"
9854
9855                           if test "$enableval" = yes; then
9856                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9857                           else
9858                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9859                           fi
9860
9861 else
9862
9863                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9864                           if test "x$LINE" != x ; then
9865                             eval "DEFAULT_$LINE"
9866                           else
9867                             no_cache=1
9868                           fi
9869
9870                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9871
9872 fi;
9873
9874           eval "$ac_cv_use_busyinfo"
9875           if test "$no_cache" != 1; then
9876             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9877           fi
9878
9879           if test "$wxUSE_BUSYINFO" = yes; then
9880             echo "$as_me:$LINENO: result: yes" >&5
9881 echo "${ECHO_T}yes" >&6
9882           else
9883             echo "$as_me:$LINENO: result: no" >&5
9884 echo "${ECHO_T}no" >&6
9885           fi
9886
9887
9888           enablestring=
9889           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9890 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9891           no_cache=0
9892           # Check whether --enable-joystick or --disable-joystick was given.
9893 if test "${enable_joystick+set}" = set; then
9894   enableval="$enable_joystick"
9895
9896                           if test "$enableval" = yes; then
9897                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9898                           else
9899                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9900                           fi
9901
9902 else
9903
9904                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9905                           if test "x$LINE" != x ; then
9906                             eval "DEFAULT_$LINE"
9907                           else
9908                             no_cache=1
9909                           fi
9910
9911                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9912
9913 fi;
9914
9915           eval "$ac_cv_use_joystick"
9916           if test "$no_cache" != 1; then
9917             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9918           fi
9919
9920           if test "$wxUSE_JOYSTICK" = yes; then
9921             echo "$as_me:$LINENO: result: yes" >&5
9922 echo "${ECHO_T}yes" >&6
9923           else
9924             echo "$as_me:$LINENO: result: no" >&5
9925 echo "${ECHO_T}no" >&6
9926           fi
9927
9928
9929           enablestring=
9930           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9931 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9932           no_cache=0
9933           # Check whether --enable-metafile or --disable-metafile was given.
9934 if test "${enable_metafile+set}" = set; then
9935   enableval="$enable_metafile"
9936
9937                           if test "$enableval" = yes; then
9938                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
9939                           else
9940                             ac_cv_use_metafile='wxUSE_METAFILE=no'
9941                           fi
9942
9943 else
9944
9945                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9946                           if test "x$LINE" != x ; then
9947                             eval "DEFAULT_$LINE"
9948                           else
9949                             no_cache=1
9950                           fi
9951
9952                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9953
9954 fi;
9955
9956           eval "$ac_cv_use_metafile"
9957           if test "$no_cache" != 1; then
9958             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9959           fi
9960
9961           if test "$wxUSE_METAFILE" = yes; then
9962             echo "$as_me:$LINENO: result: yes" >&5
9963 echo "${ECHO_T}yes" >&6
9964           else
9965             echo "$as_me:$LINENO: result: no" >&5
9966 echo "${ECHO_T}no" >&6
9967           fi
9968
9969
9970           enablestring=
9971           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9972 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9973           no_cache=0
9974           # Check whether --enable-dragimage or --disable-dragimage was given.
9975 if test "${enable_dragimage+set}" = set; then
9976   enableval="$enable_dragimage"
9977
9978                           if test "$enableval" = yes; then
9979                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9980                           else
9981                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9982                           fi
9983
9984 else
9985
9986                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9987                           if test "x$LINE" != x ; then
9988                             eval "DEFAULT_$LINE"
9989                           else
9990                             no_cache=1
9991                           fi
9992
9993                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9994
9995 fi;
9996
9997           eval "$ac_cv_use_dragimage"
9998           if test "$no_cache" != 1; then
9999             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10000           fi
10001
10002           if test "$wxUSE_DRAGIMAGE" = yes; then
10003             echo "$as_me:$LINENO: result: yes" >&5
10004 echo "${ECHO_T}yes" >&6
10005           else
10006             echo "$as_me:$LINENO: result: no" >&5
10007 echo "${ECHO_T}no" >&6
10008           fi
10009
10010
10011           enablestring=
10012           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10013 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10014           no_cache=0
10015           # Check whether --enable-accessibility or --disable-accessibility was given.
10016 if test "${enable_accessibility+set}" = set; then
10017   enableval="$enable_accessibility"
10018
10019                           if test "$enableval" = yes; then
10020                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10021                           else
10022                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10023                           fi
10024
10025 else
10026
10027                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10028                           if test "x$LINE" != x ; then
10029                             eval "DEFAULT_$LINE"
10030                           else
10031                             no_cache=1
10032                           fi
10033
10034                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10035
10036 fi;
10037
10038           eval "$ac_cv_use_accessibility"
10039           if test "$no_cache" != 1; then
10040             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10041           fi
10042
10043           if test "$wxUSE_ACCESSIBILITY" = yes; then
10044             echo "$as_me:$LINENO: result: yes" >&5
10045 echo "${ECHO_T}yes" >&6
10046           else
10047             echo "$as_me:$LINENO: result: no" >&5
10048 echo "${ECHO_T}no" >&6
10049           fi
10050
10051
10052
10053
10054           enablestring=
10055           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10056 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10057           no_cache=0
10058           # Check whether --enable-palette or --disable-palette was given.
10059 if test "${enable_palette+set}" = set; then
10060   enableval="$enable_palette"
10061
10062                           if test "$enableval" = yes; then
10063                             ac_cv_use_palette='wxUSE_PALETTE=yes'
10064                           else
10065                             ac_cv_use_palette='wxUSE_PALETTE=no'
10066                           fi
10067
10068 else
10069
10070                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10071                           if test "x$LINE" != x ; then
10072                             eval "DEFAULT_$LINE"
10073                           else
10074                             no_cache=1
10075                           fi
10076
10077                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10078
10079 fi;
10080
10081           eval "$ac_cv_use_palette"
10082           if test "$no_cache" != 1; then
10083             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10084           fi
10085
10086           if test "$wxUSE_PALETTE" = yes; then
10087             echo "$as_me:$LINENO: result: yes" >&5
10088 echo "${ECHO_T}yes" >&6
10089           else
10090             echo "$as_me:$LINENO: result: no" >&5
10091 echo "${ECHO_T}no" >&6
10092           fi
10093
10094
10095           enablestring=
10096           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10097 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10098           no_cache=0
10099           # Check whether --enable-image or --disable-image was given.
10100 if test "${enable_image+set}" = set; then
10101   enableval="$enable_image"
10102
10103                           if test "$enableval" = yes; then
10104                             ac_cv_use_image='wxUSE_IMAGE=yes'
10105                           else
10106                             ac_cv_use_image='wxUSE_IMAGE=no'
10107                           fi
10108
10109 else
10110
10111                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10112                           if test "x$LINE" != x ; then
10113                             eval "DEFAULT_$LINE"
10114                           else
10115                             no_cache=1
10116                           fi
10117
10118                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10119
10120 fi;
10121
10122           eval "$ac_cv_use_image"
10123           if test "$no_cache" != 1; then
10124             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10125           fi
10126
10127           if test "$wxUSE_IMAGE" = yes; then
10128             echo "$as_me:$LINENO: result: yes" >&5
10129 echo "${ECHO_T}yes" >&6
10130           else
10131             echo "$as_me:$LINENO: result: no" >&5
10132 echo "${ECHO_T}no" >&6
10133           fi
10134
10135
10136           enablestring=
10137           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10138 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10139           no_cache=0
10140           # Check whether --enable-gif or --disable-gif was given.
10141 if test "${enable_gif+set}" = set; then
10142   enableval="$enable_gif"
10143
10144                           if test "$enableval" = yes; then
10145                             ac_cv_use_gif='wxUSE_GIF=yes'
10146                           else
10147                             ac_cv_use_gif='wxUSE_GIF=no'
10148                           fi
10149
10150 else
10151
10152                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10153                           if test "x$LINE" != x ; then
10154                             eval "DEFAULT_$LINE"
10155                           else
10156                             no_cache=1
10157                           fi
10158
10159                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10160
10161 fi;
10162
10163           eval "$ac_cv_use_gif"
10164           if test "$no_cache" != 1; then
10165             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10166           fi
10167
10168           if test "$wxUSE_GIF" = yes; then
10169             echo "$as_me:$LINENO: result: yes" >&5
10170 echo "${ECHO_T}yes" >&6
10171           else
10172             echo "$as_me:$LINENO: result: no" >&5
10173 echo "${ECHO_T}no" >&6
10174           fi
10175
10176
10177           enablestring=
10178           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10179 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10180           no_cache=0
10181           # Check whether --enable-pcx or --disable-pcx was given.
10182 if test "${enable_pcx+set}" = set; then
10183   enableval="$enable_pcx"
10184
10185                           if test "$enableval" = yes; then
10186                             ac_cv_use_pcx='wxUSE_PCX=yes'
10187                           else
10188                             ac_cv_use_pcx='wxUSE_PCX=no'
10189                           fi
10190
10191 else
10192
10193                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10194                           if test "x$LINE" != x ; then
10195                             eval "DEFAULT_$LINE"
10196                           else
10197                             no_cache=1
10198                           fi
10199
10200                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10201
10202 fi;
10203
10204           eval "$ac_cv_use_pcx"
10205           if test "$no_cache" != 1; then
10206             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10207           fi
10208
10209           if test "$wxUSE_PCX" = yes; then
10210             echo "$as_me:$LINENO: result: yes" >&5
10211 echo "${ECHO_T}yes" >&6
10212           else
10213             echo "$as_me:$LINENO: result: no" >&5
10214 echo "${ECHO_T}no" >&6
10215           fi
10216
10217
10218           enablestring=
10219           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10220 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10221           no_cache=0
10222           # Check whether --enable-iff or --disable-iff was given.
10223 if test "${enable_iff+set}" = set; then
10224   enableval="$enable_iff"
10225
10226                           if test "$enableval" = yes; then
10227                             ac_cv_use_iff='wxUSE_IFF=yes'
10228                           else
10229                             ac_cv_use_iff='wxUSE_IFF=no'
10230                           fi
10231
10232 else
10233
10234                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10235                           if test "x$LINE" != x ; then
10236                             eval "DEFAULT_$LINE"
10237                           else
10238                             no_cache=1
10239                           fi
10240
10241                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10242
10243 fi;
10244
10245           eval "$ac_cv_use_iff"
10246           if test "$no_cache" != 1; then
10247             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10248           fi
10249
10250           if test "$wxUSE_IFF" = yes; then
10251             echo "$as_me:$LINENO: result: yes" >&5
10252 echo "${ECHO_T}yes" >&6
10253           else
10254             echo "$as_me:$LINENO: result: no" >&5
10255 echo "${ECHO_T}no" >&6
10256           fi
10257
10258
10259           enablestring=
10260           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10261 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10262           no_cache=0
10263           # Check whether --enable-pnm or --disable-pnm was given.
10264 if test "${enable_pnm+set}" = set; then
10265   enableval="$enable_pnm"
10266
10267                           if test "$enableval" = yes; then
10268                             ac_cv_use_pnm='wxUSE_PNM=yes'
10269                           else
10270                             ac_cv_use_pnm='wxUSE_PNM=no'
10271                           fi
10272
10273 else
10274
10275                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10276                           if test "x$LINE" != x ; then
10277                             eval "DEFAULT_$LINE"
10278                           else
10279                             no_cache=1
10280                           fi
10281
10282                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10283
10284 fi;
10285
10286           eval "$ac_cv_use_pnm"
10287           if test "$no_cache" != 1; then
10288             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10289           fi
10290
10291           if test "$wxUSE_PNM" = yes; then
10292             echo "$as_me:$LINENO: result: yes" >&5
10293 echo "${ECHO_T}yes" >&6
10294           else
10295             echo "$as_me:$LINENO: result: no" >&5
10296 echo "${ECHO_T}no" >&6
10297           fi
10298
10299
10300           enablestring=
10301           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10302 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10303           no_cache=0
10304           # Check whether --enable-xpm or --disable-xpm was given.
10305 if test "${enable_xpm+set}" = set; then
10306   enableval="$enable_xpm"
10307
10308                           if test "$enableval" = yes; then
10309                             ac_cv_use_xpm='wxUSE_XPM=yes'
10310                           else
10311                             ac_cv_use_xpm='wxUSE_XPM=no'
10312                           fi
10313
10314 else
10315
10316                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10317                           if test "x$LINE" != x ; then
10318                             eval "DEFAULT_$LINE"
10319                           else
10320                             no_cache=1
10321                           fi
10322
10323                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10324
10325 fi;
10326
10327           eval "$ac_cv_use_xpm"
10328           if test "$no_cache" != 1; then
10329             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10330           fi
10331
10332           if test "$wxUSE_XPM" = yes; then
10333             echo "$as_me:$LINENO: result: yes" >&5
10334 echo "${ECHO_T}yes" >&6
10335           else
10336             echo "$as_me:$LINENO: result: no" >&5
10337 echo "${ECHO_T}no" >&6
10338           fi
10339
10340
10341           enablestring=
10342           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10343 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10344           no_cache=0
10345           # Check whether --enable-ico_cur or --disable-ico_cur was given.
10346 if test "${enable_ico_cur+set}" = set; then
10347   enableval="$enable_ico_cur"
10348
10349                           if test "$enableval" = yes; then
10350                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10351                           else
10352                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10353                           fi
10354
10355 else
10356
10357                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10358                           if test "x$LINE" != x ; then
10359                             eval "DEFAULT_$LINE"
10360                           else
10361                             no_cache=1
10362                           fi
10363
10364                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10365
10366 fi;
10367
10368           eval "$ac_cv_use_ico_cur"
10369           if test "$no_cache" != 1; then
10370             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10371           fi
10372
10373           if test "$wxUSE_ICO_CUR" = yes; then
10374             echo "$as_me:$LINENO: result: yes" >&5
10375 echo "${ECHO_T}yes" >&6
10376           else
10377             echo "$as_me:$LINENO: result: no" >&5
10378 echo "${ECHO_T}no" >&6
10379           fi
10380
10381
10382 fi
10383
10384
10385
10386 # Check whether --with-flavour or --without-flavour was given.
10387 if test "${with_flavour+set}" = set; then
10388   withval="$with_flavour"
10389   WX_FLAVOUR="$withval"
10390 fi;
10391
10392
10393
10394           enablestring=
10395           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10396 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10397           no_cache=0
10398           # Check whether --enable-official_build or --disable-official_build was given.
10399 if test "${enable_official_build+set}" = set; then
10400   enableval="$enable_official_build"
10401
10402                           if test "$enableval" = yes; then
10403                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10404                           else
10405                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10406                           fi
10407
10408 else
10409
10410                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10411                           if test "x$LINE" != x ; then
10412                             eval "DEFAULT_$LINE"
10413                           else
10414                             no_cache=1
10415                           fi
10416
10417                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10418
10419 fi;
10420
10421           eval "$ac_cv_use_official_build"
10422           if test "$no_cache" != 1; then
10423             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10424           fi
10425
10426           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10427             echo "$as_me:$LINENO: result: yes" >&5
10428 echo "${ECHO_T}yes" >&6
10429           else
10430             echo "$as_me:$LINENO: result: no" >&5
10431 echo "${ECHO_T}no" >&6
10432           fi
10433
10434 # Check whether --enable-vendor or --disable-vendor was given.
10435 if test "${enable_vendor+set}" = set; then
10436   enableval="$enable_vendor"
10437   VENDOR="$enableval"
10438 fi;
10439 if test "x$VENDOR" = "x"; then
10440     VENDOR="custom"
10441 fi
10442
10443
10444
10445
10446           echo "saving argument cache $wx_arg_cache_file"
10447           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10448
10449
10450
10451 echo "$as_me:$LINENO: checking for toolkit" >&5
10452 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10453
10454 # In Wine, we need to default to MSW, not GTK or MOTIF
10455 if test "$wxUSE_WINE" = "yes"; then
10456     DEFAULT_DEFAULT_wxUSE_GTK=0
10457     DEFAULT_DEFAULT_wxUSE_MOTIF=0
10458     DEFAULT_DEFAULT_wxUSE_MSW=1
10459     wxUSE_SHARED=no
10460 fi
10461
10462
10463 if test "$wxUSE_GUI" = "yes"; then
10464
10465     if test "$USE_BEOS" = 1; then
10466         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10467 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10468    { (exit 1); exit 1; }; }
10469     fi
10470
10471     if test "$TOOLKIT_GIVEN" = 1; then
10472             for toolkit in `echo $ALL_TOOLKITS`; do
10473         var=wxUSE_$toolkit
10474         eval "value=\$${var}"
10475         if test "x$value" = "xno"; then
10476           eval "$var=0"
10477         elif test "x$value" != "x"; then
10478           eval "$var=1"
10479         fi
10480
10481         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10482           eval "wx${toolkit}_VERSION=$value"
10483         fi
10484       done
10485     else
10486             for toolkit in `echo $ALL_TOOLKITS`; do
10487         if test "$has_toolkit_in_cache" != 1; then
10488           var=DEFAULT_DEFAULT_wxUSE_$toolkit
10489         else
10490           var=DEFAULT_wxUSE_$toolkit
10491
10492           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10493           if test "x$version" != "x"; then
10494             eval "wx${toolkit}_VERSION=$version"
10495           fi
10496         fi
10497         eval "wxUSE_$toolkit=\$${var}"
10498       done
10499     fi
10500
10501             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10502                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10503                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10504
10505         case "${host}" in
10506       *-pc-os2_emx | *-pc-os2-emx )
10507         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10508     esac
10509
10510     case "$NUM_TOOLKITS" in
10511       1)
10512       ;;
10513       0)
10514         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10515 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10516    { (exit 1); exit 1; }; }
10517       ;;
10518       *)
10519         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10520 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10521    { (exit 1); exit 1; }; }
10522     esac
10523
10524     # to be removed when --disable-gtk2 isn't needed
10525     if test "x$wxUSE_GTK2" = "xyes"; then
10526         wxGTK_VERSION=2
10527     elif test "x$wxUSE_GTK2" = "xno"; then
10528         wxGTK_VERSION=1
10529     fi
10530
10531         for toolkit in `echo $ALL_TOOLKITS`; do
10532       var=wxUSE_$toolkit
10533       eval "value=\$${var}"
10534       if test "x$value" != x; then
10535         cache_var=CACHE_$toolkit
10536         eval "cache=\$${cache_var}"
10537         if test "$cache" = 1; then
10538           echo "$var=$value" >> ${wx_arg_cache_file}
10539           eval "version=\$wx${toolkit}_VERSION"
10540           if test "x$version" != "x"; then
10541             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10542           fi
10543         fi
10544         if test "$value" = 1; then
10545           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10546           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10547 echo "${ECHO_T}$toolkit_echo" >&6
10548         fi
10549       fi
10550     done
10551 else
10552     if test "x$host_alias" != "x"; then
10553         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10554 echo "${ECHO_T}base ($host_alias hosted) only" >&6
10555     else
10556         echo "$as_me:$LINENO: result: base only" >&5
10557 echo "${ECHO_T}base only" >&6
10558     fi
10559 fi
10560
10561 wants_win32=0
10562 doesnt_want_win32=0
10563 case "${host}" in
10564   *-*-cygwin*)
10565       if test "$wxUSE_MSW" = 1 ; then
10566         wants_win32=1
10567       else
10568         doesnt_want_win32=1
10569       fi
10570   ;;
10571   *-*-mingw*)
10572       wants_win32=1
10573   ;;
10574 esac
10575
10576 if test "$wxUSE_WINE" = "yes"; then
10577     wants_win32=1
10578         CC=winegcc
10579     CXX=wineg++
10580     RESCOMP=wrc
10581     LDFLAGS_GUI="-mwindows"
10582 fi
10583
10584 if test "$wants_win32" = 1 ; then
10585     USE_UNIX=0
10586     USE_WIN32=1
10587     cat >>confdefs.h <<\_ACEOF
10588 #define __WIN32__ 1
10589 _ACEOF
10590
10591     cat >>confdefs.h <<\_ACEOF
10592 #define __WIN95__ 1
10593 _ACEOF
10594
10595     cat >>confdefs.h <<\_ACEOF
10596 #define __WINDOWS__ 1
10597 _ACEOF
10598
10599     cat >>confdefs.h <<\_ACEOF
10600 #define __GNUWIN32__ 1
10601 _ACEOF
10602
10603     cat >>confdefs.h <<\_ACEOF
10604 #define STRICT 1
10605 _ACEOF
10606
10607     cat >>confdefs.h <<\_ACEOF
10608 #define WINVER 0x0400
10609 _ACEOF
10610
10611 fi
10612 if test "$doesnt_want_win32" = 1 ; then
10613     USE_UNIX=1
10614     USE_WIN32=0
10615 fi
10616
10617 if test "$USE_UNIX" = 1 ; then
10618     wxUSE_UNIX=yes
10619     cat >>confdefs.h <<\_ACEOF
10620 #define __UNIX__ 1
10621 _ACEOF
10622
10623 fi
10624
10625
10626 cat >confcache <<\_ACEOF
10627 # This file is a shell script that caches the results of configure
10628 # tests run on this system so they can be shared between configure
10629 # scripts and configure runs, see configure's option --config-cache.
10630 # It is not useful on other systems.  If it contains results you don't
10631 # want to keep, you may remove or edit it.
10632 #
10633 # config.status only pays attention to the cache file if you give it
10634 # the --recheck option to rerun configure.
10635 #
10636 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10637 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10638 # following values.
10639
10640 _ACEOF
10641
10642 # The following way of writing the cache mishandles newlines in values,
10643 # but we know of no workaround that is simple, portable, and efficient.
10644 # So, don't put newlines in cache variables' values.
10645 # Ultrix sh set writes to stderr and can't be redirected directly,
10646 # and sets the high bit in the cache file unless we assign to the vars.
10647 {
10648   (set) 2>&1 |
10649     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10650     *ac_space=\ *)
10651       # `set' does not quote correctly, so add quotes (double-quote
10652       # substitution turns \\\\ into \\, and sed turns \\ into \).
10653       sed -n \
10654         "s/'/'\\\\''/g;
10655           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10656       ;;
10657     *)
10658       # `set' quotes correctly as required by POSIX, so do not add quotes.
10659       sed -n \
10660         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10661       ;;
10662     esac;
10663 } |
10664   sed '
10665      t clear
10666      : clear
10667      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10668      t end
10669      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10670      : end' >>confcache
10671 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10672   if test -w $cache_file; then
10673     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10674     cat confcache >$cache_file
10675   else
10676     echo "not updating unwritable cache $cache_file"
10677   fi
10678 fi
10679 rm -f confcache
10680
10681 if test "$build" != "$host" ; then
10682     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
10683         CC=$host_alias-gcc
10684         CXX=$host_alias-c++
10685         AR=$host_alias-ar
10686         RANLIB=$host_alias-ranlib
10687         DLLTOOL=$host_alias-dlltool
10688         RESCOMP=$host_alias-windres
10689         STRIP=$host_alias-strip
10690     elif test "x$CC" '!=' "x"; then
10691         echo "You set CC, I assume you know what you are doing."
10692     else
10693         { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10694 echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10695    { (exit 1); exit 1; }; }
10696     fi
10697 fi
10698
10699 CFLAGS=${CFLAGS:=}
10700
10701
10702     ac_ext=c
10703 ac_cpp='$CPP $CPPFLAGS'
10704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10707 if test -n "$ac_tool_prefix"; then
10708   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10709 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10710 echo "$as_me:$LINENO: checking for $ac_word" >&5
10711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10712 if test "${ac_cv_prog_CC+set}" = set; then
10713   echo $ECHO_N "(cached) $ECHO_C" >&6
10714 else
10715   if test -n "$CC"; then
10716   ac_cv_prog_CC="$CC" # Let the user override the test.
10717 else
10718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719 for as_dir in $PATH
10720 do
10721   IFS=$as_save_IFS
10722   test -z "$as_dir" && as_dir=.
10723   for ac_exec_ext in '' $ac_executable_extensions; do
10724   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10725     ac_cv_prog_CC="${ac_tool_prefix}gcc"
10726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10727     break 2
10728   fi
10729 done
10730 done
10731
10732 fi
10733 fi
10734 CC=$ac_cv_prog_CC
10735 if test -n "$CC"; then
10736   echo "$as_me:$LINENO: result: $CC" >&5
10737 echo "${ECHO_T}$CC" >&6
10738 else
10739   echo "$as_me:$LINENO: result: no" >&5
10740 echo "${ECHO_T}no" >&6
10741 fi
10742
10743 fi
10744 if test -z "$ac_cv_prog_CC"; then
10745   ac_ct_CC=$CC
10746   # Extract the first word of "gcc", so it can be a program name with args.
10747 set dummy gcc; ac_word=$2
10748 echo "$as_me:$LINENO: checking for $ac_word" >&5
10749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10751   echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753   if test -n "$ac_ct_CC"; then
10754   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10755 else
10756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757 for as_dir in $PATH
10758 do
10759   IFS=$as_save_IFS
10760   test -z "$as_dir" && as_dir=.
10761   for ac_exec_ext in '' $ac_executable_extensions; do
10762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10763     ac_cv_prog_ac_ct_CC="gcc"
10764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10765     break 2
10766   fi
10767 done
10768 done
10769
10770 fi
10771 fi
10772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10773 if test -n "$ac_ct_CC"; then
10774   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10775 echo "${ECHO_T}$ac_ct_CC" >&6
10776 else
10777   echo "$as_me:$LINENO: result: no" >&5
10778 echo "${ECHO_T}no" >&6
10779 fi
10780
10781   CC=$ac_ct_CC
10782 else
10783   CC="$ac_cv_prog_CC"
10784 fi
10785
10786 if test -z "$CC"; then
10787   if test -n "$ac_tool_prefix"; then
10788   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10789 set dummy ${ac_tool_prefix}cc; ac_word=$2
10790 echo "$as_me:$LINENO: checking for $ac_word" >&5
10791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10792 if test "${ac_cv_prog_CC+set}" = set; then
10793   echo $ECHO_N "(cached) $ECHO_C" >&6
10794 else
10795   if test -n "$CC"; then
10796   ac_cv_prog_CC="$CC" # Let the user override the test.
10797 else
10798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799 for as_dir in $PATH
10800 do
10801   IFS=$as_save_IFS
10802   test -z "$as_dir" && as_dir=.
10803   for ac_exec_ext in '' $ac_executable_extensions; do
10804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10805     ac_cv_prog_CC="${ac_tool_prefix}cc"
10806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10807     break 2
10808   fi
10809 done
10810 done
10811
10812 fi
10813 fi
10814 CC=$ac_cv_prog_CC
10815 if test -n "$CC"; then
10816   echo "$as_me:$LINENO: result: $CC" >&5
10817 echo "${ECHO_T}$CC" >&6
10818 else
10819   echo "$as_me:$LINENO: result: no" >&5
10820 echo "${ECHO_T}no" >&6
10821 fi
10822
10823 fi
10824 if test -z "$ac_cv_prog_CC"; then
10825   ac_ct_CC=$CC
10826   # Extract the first word of "cc", so it can be a program name with args.
10827 set dummy cc; ac_word=$2
10828 echo "$as_me:$LINENO: checking for $ac_word" >&5
10829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10830 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10831   echo $ECHO_N "(cached) $ECHO_C" >&6
10832 else
10833   if test -n "$ac_ct_CC"; then
10834   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10835 else
10836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837 for as_dir in $PATH
10838 do
10839   IFS=$as_save_IFS
10840   test -z "$as_dir" && as_dir=.
10841   for ac_exec_ext in '' $ac_executable_extensions; do
10842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10843     ac_cv_prog_ac_ct_CC="cc"
10844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10845     break 2
10846   fi
10847 done
10848 done
10849
10850 fi
10851 fi
10852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10853 if test -n "$ac_ct_CC"; then
10854   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10855 echo "${ECHO_T}$ac_ct_CC" >&6
10856 else
10857   echo "$as_me:$LINENO: result: no" >&5
10858 echo "${ECHO_T}no" >&6
10859 fi
10860
10861   CC=$ac_ct_CC
10862 else
10863   CC="$ac_cv_prog_CC"
10864 fi
10865
10866 fi
10867 if test -z "$CC"; then
10868   # Extract the first word of "cc", so it can be a program name with args.
10869 set dummy cc; ac_word=$2
10870 echo "$as_me:$LINENO: checking for $ac_word" >&5
10871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10872 if test "${ac_cv_prog_CC+set}" = set; then
10873   echo $ECHO_N "(cached) $ECHO_C" >&6
10874 else
10875   if test -n "$CC"; then
10876   ac_cv_prog_CC="$CC" # Let the user override the test.
10877 else
10878   ac_prog_rejected=no
10879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10880 for as_dir in $PATH
10881 do
10882   IFS=$as_save_IFS
10883   test -z "$as_dir" && as_dir=.
10884   for ac_exec_ext in '' $ac_executable_extensions; do
10885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10886     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10887        ac_prog_rejected=yes
10888        continue
10889      fi
10890     ac_cv_prog_CC="cc"
10891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10892     break 2
10893   fi
10894 done
10895 done
10896
10897 if test $ac_prog_rejected = yes; then
10898   # We found a bogon in the path, so make sure we never use it.
10899   set dummy $ac_cv_prog_CC
10900   shift
10901   if test $# != 0; then
10902     # We chose a different compiler from the bogus one.
10903     # However, it has the same basename, so the bogon will be chosen
10904     # first if we set CC to just the basename; use the full file name.
10905     shift
10906     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10907   fi
10908 fi
10909 fi
10910 fi
10911 CC=$ac_cv_prog_CC
10912 if test -n "$CC"; then
10913   echo "$as_me:$LINENO: result: $CC" >&5
10914 echo "${ECHO_T}$CC" >&6
10915 else
10916   echo "$as_me:$LINENO: result: no" >&5
10917 echo "${ECHO_T}no" >&6
10918 fi
10919
10920 fi
10921 if test -z "$CC"; then
10922   if test -n "$ac_tool_prefix"; then
10923   for ac_prog in cl
10924   do
10925     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10926 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10927 echo "$as_me:$LINENO: checking for $ac_word" >&5
10928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10929 if test "${ac_cv_prog_CC+set}" = set; then
10930   echo $ECHO_N "(cached) $ECHO_C" >&6
10931 else
10932   if test -n "$CC"; then
10933   ac_cv_prog_CC="$CC" # Let the user override the test.
10934 else
10935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936 for as_dir in $PATH
10937 do
10938   IFS=$as_save_IFS
10939   test -z "$as_dir" && as_dir=.
10940   for ac_exec_ext in '' $ac_executable_extensions; do
10941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10942     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10944     break 2
10945   fi
10946 done
10947 done
10948
10949 fi
10950 fi
10951 CC=$ac_cv_prog_CC
10952 if test -n "$CC"; then
10953   echo "$as_me:$LINENO: result: $CC" >&5
10954 echo "${ECHO_T}$CC" >&6
10955 else
10956   echo "$as_me:$LINENO: result: no" >&5
10957 echo "${ECHO_T}no" >&6
10958 fi
10959
10960     test -n "$CC" && break
10961   done
10962 fi
10963 if test -z "$CC"; then
10964   ac_ct_CC=$CC
10965   for ac_prog in cl
10966 do
10967   # Extract the first word of "$ac_prog", so it can be a program name with args.
10968 set dummy $ac_prog; ac_word=$2
10969 echo "$as_me:$LINENO: checking for $ac_word" >&5
10970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10972   echo $ECHO_N "(cached) $ECHO_C" >&6
10973 else
10974   if test -n "$ac_ct_CC"; then
10975   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10976 else
10977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978 for as_dir in $PATH
10979 do
10980   IFS=$as_save_IFS
10981   test -z "$as_dir" && as_dir=.
10982   for ac_exec_ext in '' $ac_executable_extensions; do
10983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10984     ac_cv_prog_ac_ct_CC="$ac_prog"
10985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10986     break 2
10987   fi
10988 done
10989 done
10990
10991 fi
10992 fi
10993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10994 if test -n "$ac_ct_CC"; then
10995   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10996 echo "${ECHO_T}$ac_ct_CC" >&6
10997 else
10998   echo "$as_me:$LINENO: result: no" >&5
10999 echo "${ECHO_T}no" >&6
11000 fi
11001
11002   test -n "$ac_ct_CC" && break
11003 done
11004
11005   CC=$ac_ct_CC
11006 fi
11007
11008 fi
11009
11010
11011 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11012 See \`config.log' for more details." >&5
11013 echo "$as_me: error: no acceptable C compiler found in \$PATH
11014 See \`config.log' for more details." >&2;}
11015    { (exit 1); exit 1; }; }
11016
11017 # Provide some information about the compiler.
11018 echo "$as_me:$LINENO:" \
11019      "checking for C compiler version" >&5
11020 ac_compiler=`set X $ac_compile; echo $2`
11021 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11022   (eval $ac_compiler --version </dev/null >&5) 2>&5
11023   ac_status=$?
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); }
11026 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11027   (eval $ac_compiler -v </dev/null >&5) 2>&5
11028   ac_status=$?
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); }
11031 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11032   (eval $ac_compiler -V </dev/null >&5) 2>&5
11033   ac_status=$?
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); }
11036
11037 cat >conftest.$ac_ext <<_ACEOF
11038 /* confdefs.h.  */
11039 _ACEOF
11040 cat confdefs.h >>conftest.$ac_ext
11041 cat >>conftest.$ac_ext <<_ACEOF
11042 /* end confdefs.h.  */
11043
11044 int
11045 main ()
11046 {
11047
11048   ;
11049   return 0;
11050 }
11051 _ACEOF
11052 ac_clean_files_save=$ac_clean_files
11053 ac_clean_files="$ac_clean_files a.out a.exe b.out"
11054 # Try to create an executable without -o first, disregard a.out.
11055 # It will help us diagnose broken compilers, and finding out an intuition
11056 # of exeext.
11057 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11058 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
11059 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11060 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11061   (eval $ac_link_default) 2>&5
11062   ac_status=$?
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); }; then
11065   # Find the output, starting from the most likely.  This scheme is
11066 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
11067 # resort.
11068
11069 # Be careful to initialize this variable, since it used to be cached.
11070 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11071 ac_cv_exeext=
11072 # b.out is created by i960 compilers.
11073 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11074 do
11075   test -f "$ac_file" || continue
11076   case $ac_file in
11077     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
11078         ;;
11079     conftest.$ac_ext )
11080         # This is the source file.
11081         ;;
11082     [ab].out )
11083         # We found the default executable, but exeext='' is most
11084         # certainly right.
11085         break;;
11086     *.* )
11087         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11088         # FIXME: I believe we export ac_cv_exeext for Libtool,
11089         # but it would be cool to find out if it's true.  Does anybody
11090         # maintain Libtool? --akim.
11091         export ac_cv_exeext
11092         break;;
11093     * )
11094         break;;
11095   esac
11096 done
11097 else
11098   echo "$as_me: failed program was:" >&5
11099 sed 's/^/| /' conftest.$ac_ext >&5
11100
11101 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
11102 See \`config.log' for more details." >&5
11103 echo "$as_me: error: C compiler cannot create executables
11104 See \`config.log' for more details." >&2;}
11105    { (exit 77); exit 77; }; }
11106 fi
11107
11108 ac_exeext=$ac_cv_exeext
11109 echo "$as_me:$LINENO: result: $ac_file" >&5
11110 echo "${ECHO_T}$ac_file" >&6
11111
11112 # Check the compiler produces executables we can run.  If not, either
11113 # the compiler is broken, or we cross compile.
11114 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11115 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11116 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11117 # If not cross compiling, check that we can run a simple program.
11118 if test "$cross_compiling" != yes; then
11119   if { ac_try='./$ac_file'
11120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121   (eval $ac_try) 2>&5
11122   ac_status=$?
11123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124   (exit $ac_status); }; }; then
11125     cross_compiling=no
11126   else
11127     if test "$cross_compiling" = maybe; then
11128         cross_compiling=yes
11129     else
11130         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11131 If you meant to cross compile, use \`--host'.
11132 See \`config.log' for more details." >&5
11133 echo "$as_me: error: cannot run C compiled programs.
11134 If you meant to cross compile, use \`--host'.
11135 See \`config.log' for more details." >&2;}
11136    { (exit 1); exit 1; }; }
11137     fi
11138   fi
11139 fi
11140 echo "$as_me:$LINENO: result: yes" >&5
11141 echo "${ECHO_T}yes" >&6
11142
11143 rm -f a.out a.exe conftest$ac_cv_exeext b.out
11144 ac_clean_files=$ac_clean_files_save
11145 # Check the compiler produces executables we can run.  If not, either
11146 # the compiler is broken, or we cross compile.
11147 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11148 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11149 echo "$as_me:$LINENO: result: $cross_compiling" >&5
11150 echo "${ECHO_T}$cross_compiling" >&6
11151
11152 echo "$as_me:$LINENO: checking for suffix of executables" >&5
11153 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11155   (eval $ac_link) 2>&5
11156   ac_status=$?
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); }; then
11159   # If both `conftest.exe' and `conftest' are `present' (well, observable)
11160 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
11161 # work properly (i.e., refer to `conftest.exe'), while it won't with
11162 # `rm'.
11163 for ac_file in conftest.exe conftest conftest.*; do
11164   test -f "$ac_file" || continue
11165   case $ac_file in
11166     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11167     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11168           export ac_cv_exeext
11169           break;;
11170     * ) break;;
11171   esac
11172 done
11173 else
11174   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11175 See \`config.log' for more details." >&5
11176 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11177 See \`config.log' for more details." >&2;}
11178    { (exit 1); exit 1; }; }
11179 fi
11180
11181 rm -f conftest$ac_cv_exeext
11182 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11183 echo "${ECHO_T}$ac_cv_exeext" >&6
11184
11185 rm -f conftest.$ac_ext
11186 EXEEXT=$ac_cv_exeext
11187 ac_exeext=$EXEEXT
11188 echo "$as_me:$LINENO: checking for suffix of object files" >&5
11189 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11190 if test "${ac_cv_objext+set}" = set; then
11191   echo $ECHO_N "(cached) $ECHO_C" >&6
11192 else
11193   cat >conftest.$ac_ext <<_ACEOF
11194 /* confdefs.h.  */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h.  */
11199
11200 int
11201 main ()
11202 {
11203
11204   ;
11205   return 0;
11206 }
11207 _ACEOF
11208 rm -f conftest.o conftest.obj
11209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11210   (eval $ac_compile) 2>&5
11211   ac_status=$?
11212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213   (exit $ac_status); }; then
11214   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11215   case $ac_file in
11216     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11217     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11218        break;;
11219   esac
11220 done
11221 else
11222   echo "$as_me: failed program was:" >&5
11223 sed 's/^/| /' conftest.$ac_ext >&5
11224
11225 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11226 See \`config.log' for more details." >&5
11227 echo "$as_me: error: cannot compute suffix of object files: cannot compile
11228 See \`config.log' for more details." >&2;}
11229    { (exit 1); exit 1; }; }
11230 fi
11231
11232 rm -f conftest.$ac_cv_objext conftest.$ac_ext
11233 fi
11234 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11235 echo "${ECHO_T}$ac_cv_objext" >&6
11236 OBJEXT=$ac_cv_objext
11237 ac_objext=$OBJEXT
11238 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11239 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11240 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11241   echo $ECHO_N "(cached) $ECHO_C" >&6
11242 else
11243   cat >conftest.$ac_ext <<_ACEOF
11244 /* confdefs.h.  */
11245 _ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h.  */
11249
11250 int
11251 main ()
11252 {
11253 #ifndef __GNUC__
11254        choke me
11255 #endif
11256
11257   ;
11258   return 0;
11259 }
11260 _ACEOF
11261 rm -f conftest.$ac_objext
11262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11263   (eval $ac_compile) 2>conftest.er1
11264   ac_status=$?
11265   grep -v '^ *+' conftest.er1 >conftest.err
11266   rm -f conftest.er1
11267   cat conftest.err >&5
11268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269   (exit $ac_status); } &&
11270          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272   (eval $ac_try) 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); }; } &&
11276          { ac_try='test -s conftest.$ac_objext'
11277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278   (eval $ac_try) 2>&5
11279   ac_status=$?
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); }; }; then
11282   ac_compiler_gnu=yes
11283 else
11284   echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11286
11287 ac_compiler_gnu=no
11288 fi
11289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11290 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11291
11292 fi
11293 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11294 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11295 GCC=`test $ac_compiler_gnu = yes && echo yes`
11296 ac_test_CFLAGS=${CFLAGS+set}
11297 ac_save_CFLAGS=$CFLAGS
11298 CFLAGS="-g"
11299 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11300 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11301 if test "${ac_cv_prog_cc_g+set}" = set; then
11302   echo $ECHO_N "(cached) $ECHO_C" >&6
11303 else
11304   cat >conftest.$ac_ext <<_ACEOF
11305 /* confdefs.h.  */
11306 _ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h.  */
11310
11311 int
11312 main ()
11313 {
11314
11315   ;
11316   return 0;
11317 }
11318 _ACEOF
11319 rm -f conftest.$ac_objext
11320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11321   (eval $ac_compile) 2>conftest.er1
11322   ac_status=$?
11323   grep -v '^ *+' conftest.er1 >conftest.err
11324   rm -f conftest.er1
11325   cat conftest.err >&5
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); } &&
11328          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330   (eval $ac_try) 2>&5
11331   ac_status=$?
11332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333   (exit $ac_status); }; } &&
11334          { ac_try='test -s conftest.$ac_objext'
11335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336   (eval $ac_try) 2>&5
11337   ac_status=$?
11338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339   (exit $ac_status); }; }; then
11340   ac_cv_prog_cc_g=yes
11341 else
11342   echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11344
11345 ac_cv_prog_cc_g=no
11346 fi
11347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11348 fi
11349 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11350 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11351 if test "$ac_test_CFLAGS" = set; then
11352   CFLAGS=$ac_save_CFLAGS
11353 elif test $ac_cv_prog_cc_g = yes; then
11354   if test "$GCC" = yes; then
11355     CFLAGS="-g -O2"
11356   else
11357     CFLAGS="-g"
11358   fi
11359 else
11360   if test "$GCC" = yes; then
11361     CFLAGS="-O2"
11362   else
11363     CFLAGS=
11364   fi
11365 fi
11366 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11367 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11368 if test "${ac_cv_prog_cc_stdc+set}" = set; then
11369   echo $ECHO_N "(cached) $ECHO_C" >&6
11370 else
11371   ac_cv_prog_cc_stdc=no
11372 ac_save_CC=$CC
11373 cat >conftest.$ac_ext <<_ACEOF
11374 /* confdefs.h.  */
11375 _ACEOF
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h.  */
11379 #include <stdarg.h>
11380 #include <stdio.h>
11381 #include <sys/types.h>
11382 #include <sys/stat.h>
11383 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11384 struct buf { int x; };
11385 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11386 static char *e (p, i)
11387      char **p;
11388      int i;
11389 {
11390   return p[i];
11391 }
11392 static char *f (char * (*g) (char **, int), char **p, ...)
11393 {
11394   char *s;
11395   va_list v;
11396   va_start (v,p);
11397   s = g (p, va_arg (v,int));
11398   va_end (v);
11399   return s;
11400 }
11401
11402 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11403    function prototypes and stuff, but not '\xHH' hex character constants.
11404    These don't provoke an error unfortunately, instead are silently treated
11405    as 'x'.  The following induces an error, until -std1 is added to get
11406    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11407    array size at least.  It's necessary to write '\x00'==0 to get something
11408    that's true only with -std1.  */
11409 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11410
11411 int test (int i, double x);
11412 struct s1 {int (*f) (int a);};
11413 struct s2 {int (*f) (double a);};
11414 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11415 int argc;
11416 char **argv;
11417 int
11418 main ()
11419 {
11420 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11421   ;
11422   return 0;
11423 }
11424 _ACEOF
11425 # Don't try gcc -ansi; that turns off useful extensions and
11426 # breaks some systems' header files.
11427 # AIX                   -qlanglvl=ansi
11428 # Ultrix and OSF/1      -std1
11429 # HP-UX 10.20 and later -Ae
11430 # HP-UX older versions  -Aa -D_HPUX_SOURCE
11431 # SVR4                  -Xc -D__EXTENSIONS__
11432 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11433 do
11434   CC="$ac_save_CC $ac_arg"
11435   rm -f conftest.$ac_objext
11436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11437   (eval $ac_compile) 2>conftest.er1
11438   ac_status=$?
11439   grep -v '^ *+' conftest.er1 >conftest.err
11440   rm -f conftest.er1
11441   cat conftest.err >&5
11442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443   (exit $ac_status); } &&
11444          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446   (eval $ac_try) 2>&5
11447   ac_status=$?
11448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449   (exit $ac_status); }; } &&
11450          { ac_try='test -s conftest.$ac_objext'
11451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452   (eval $ac_try) 2>&5
11453   ac_status=$?
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); }; }; then
11456   ac_cv_prog_cc_stdc=$ac_arg
11457 break
11458 else
11459   echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11461
11462 fi
11463 rm -f conftest.err conftest.$ac_objext
11464 done
11465 rm -f conftest.$ac_ext conftest.$ac_objext
11466 CC=$ac_save_CC
11467
11468 fi
11469
11470 case "x$ac_cv_prog_cc_stdc" in
11471   x|xno)
11472     echo "$as_me:$LINENO: result: none needed" >&5
11473 echo "${ECHO_T}none needed" >&6 ;;
11474   *)
11475     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11476 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11477     CC="$CC $ac_cv_prog_cc_stdc" ;;
11478 esac
11479
11480 # Some people use a C++ compiler to compile C.  Since we use `exit',
11481 # in C++ we need to declare it.  In case someone uses the same compiler
11482 # for both compiling C and C++ we need to have the C++ compiler decide
11483 # the declaration of exit, since it's the most demanding environment.
11484 cat >conftest.$ac_ext <<_ACEOF
11485 #ifndef __cplusplus
11486   choke me
11487 #endif
11488 _ACEOF
11489 rm -f conftest.$ac_objext
11490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11491   (eval $ac_compile) 2>conftest.er1
11492   ac_status=$?
11493   grep -v '^ *+' conftest.er1 >conftest.err
11494   rm -f conftest.er1
11495   cat conftest.err >&5
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); } &&
11498          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500   (eval $ac_try) 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); }; } &&
11504          { ac_try='test -s conftest.$ac_objext'
11505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506   (eval $ac_try) 2>&5
11507   ac_status=$?
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); }; }; then
11510   for ac_declaration in \
11511    '' \
11512    'extern "C" void std::exit (int) throw (); using std::exit;' \
11513    'extern "C" void std::exit (int); using std::exit;' \
11514    'extern "C" void exit (int) throw ();' \
11515    'extern "C" void exit (int);' \
11516    'void exit (int);'
11517 do
11518   cat >conftest.$ac_ext <<_ACEOF
11519 /* confdefs.h.  */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h.  */
11524 $ac_declaration
11525 #include <stdlib.h>
11526 int
11527 main ()
11528 {
11529 exit (42);
11530   ;
11531   return 0;
11532 }
11533 _ACEOF
11534 rm -f conftest.$ac_objext
11535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11536   (eval $ac_compile) 2>conftest.er1
11537   ac_status=$?
11538   grep -v '^ *+' conftest.er1 >conftest.err
11539   rm -f conftest.er1
11540   cat conftest.err >&5
11541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542   (exit $ac_status); } &&
11543          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545   (eval $ac_try) 2>&5
11546   ac_status=$?
11547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548   (exit $ac_status); }; } &&
11549          { ac_try='test -s conftest.$ac_objext'
11550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551   (eval $ac_try) 2>&5
11552   ac_status=$?
11553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554   (exit $ac_status); }; }; then
11555   :
11556 else
11557   echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11559
11560 continue
11561 fi
11562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11563   cat >conftest.$ac_ext <<_ACEOF
11564 /* confdefs.h.  */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h.  */
11569 $ac_declaration
11570 int
11571 main ()
11572 {
11573 exit (42);
11574   ;
11575   return 0;
11576 }
11577 _ACEOF
11578 rm -f conftest.$ac_objext
11579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11580   (eval $ac_compile) 2>conftest.er1
11581   ac_status=$?
11582   grep -v '^ *+' conftest.er1 >conftest.err
11583   rm -f conftest.er1
11584   cat conftest.err >&5
11585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586   (exit $ac_status); } &&
11587          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589   (eval $ac_try) 2>&5
11590   ac_status=$?
11591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592   (exit $ac_status); }; } &&
11593          { ac_try='test -s conftest.$ac_objext'
11594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595   (eval $ac_try) 2>&5
11596   ac_status=$?
11597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598   (exit $ac_status); }; }; then
11599   break
11600 else
11601   echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.$ac_ext >&5
11603
11604 fi
11605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11606 done
11607 rm -f conftest*
11608 if test -n "$ac_declaration"; then
11609   echo '#ifdef __cplusplus' >>confdefs.h
11610   echo $ac_declaration      >>confdefs.h
11611   echo '#endif'             >>confdefs.h
11612 fi
11613
11614 else
11615   echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11617
11618 fi
11619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11620 ac_ext=c
11621 ac_cpp='$CPP $CPPFLAGS'
11622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11625
11626     echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
11627 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11628 if test "${wx_cv_c_exto+set}" = set; then
11629   echo $ECHO_N "(cached) $ECHO_C" >&6
11630 else
11631   cat >conftest.$ac_ext <<_ACEOF
11632 /* confdefs.h.  */
11633 _ACEOF
11634 cat confdefs.h >>conftest.$ac_ext
11635 cat >>conftest.$ac_ext <<_ACEOF
11636 /* end confdefs.h.  */
11637
11638 int
11639 main ()
11640 {
11641
11642   ;
11643   return 0;
11644 }
11645 _ACEOF
11646 rm -f conftest.$ac_objext conftest.$ac_ext.o
11647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11648   (eval $ac_compile) 2>&5
11649   ac_status=$?
11650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); }; then
11652   for ac_file in `(ls conftest.* 2>/dev/null)`; do
11653     case $ac_file in
11654         conftest.$ac_ext.o)
11655             wx_cv_c_exto="-ext o"
11656             ;;
11657         *)
11658             ;;
11659     esac
11660 done
11661 else
11662   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11663 See \`config.log' for more details." >&5
11664 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11665 See \`config.log' for more details." >&2;}
11666    { (exit 1); exit 1; }; }
11667
11668 fi
11669
11670 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11671
11672 fi
11673 echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11674 echo "${ECHO_T}$wx_cv_c_exto" >&6
11675 if test "x$wx_cv_c_exto" '!=' "x"; then
11676     if test "c" = "c"; then
11677         CFLAGS="$wx_cv_c_exto $CFLAGS"
11678     fi
11679     if test "c" = "cxx"; then
11680         CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11681     fi
11682 fi
11683
11684         if test "x$wx_cv_c_exto" '!=' "x"; then
11685         unset ac_cv_prog_cc_g
11686         ac_test_CFLAGS=${CFLAGS+set}
11687 ac_save_CFLAGS=$CFLAGS
11688 CFLAGS="-g"
11689 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11690 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11691 if test "${ac_cv_prog_cc_g+set}" = set; then
11692   echo $ECHO_N "(cached) $ECHO_C" >&6
11693 else
11694   cat >conftest.$ac_ext <<_ACEOF
11695 /* confdefs.h.  */
11696 _ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h.  */
11700
11701 int
11702 main ()
11703 {
11704
11705   ;
11706   return 0;
11707 }
11708 _ACEOF
11709 rm -f conftest.$ac_objext
11710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11711   (eval $ac_compile) 2>conftest.er1
11712   ac_status=$?
11713   grep -v '^ *+' conftest.er1 >conftest.err
11714   rm -f conftest.er1
11715   cat conftest.err >&5
11716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717   (exit $ac_status); } &&
11718          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720   (eval $ac_try) 2>&5
11721   ac_status=$?
11722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723   (exit $ac_status); }; } &&
11724          { ac_try='test -s conftest.$ac_objext'
11725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726   (eval $ac_try) 2>&5
11727   ac_status=$?
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); }; }; then
11730   ac_cv_prog_cc_g=yes
11731 else
11732   echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11734
11735 ac_cv_prog_cc_g=no
11736 fi
11737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11738 fi
11739 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11740 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11741 if test "$ac_test_CFLAGS" = set; then
11742   CFLAGS=$ac_save_CFLAGS
11743 elif test $ac_cv_prog_cc_g = yes; then
11744   if test "$GCC" = yes; then
11745     CFLAGS="-g -O2"
11746   else
11747     CFLAGS="-g"
11748   fi
11749 else
11750   if test "$GCC" = yes; then
11751     CFLAGS="-O2"
11752   else
11753     CFLAGS=
11754   fi
11755 fi
11756     fi
11757     ac_ext=c
11758 ac_cpp='$CPP $CPPFLAGS'
11759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11762
11763 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11764 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11765 if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11766   echo $ECHO_N "(cached) $ECHO_C" >&6
11767 else
11768   cat >conftest.$ac_ext <<_ACEOF
11769 /* confdefs.h.  */
11770 _ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h.  */
11774
11775 int
11776 main ()
11777 {
11778 #ifndef __MWERKS__
11779        choke me
11780 #endif
11781
11782   ;
11783   return 0;
11784 }
11785 _ACEOF
11786 rm -f conftest.$ac_objext
11787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11788   (eval $ac_compile) 2>conftest.er1
11789   ac_status=$?
11790   grep -v '^ *+' conftest.er1 >conftest.err
11791   rm -f conftest.er1
11792   cat conftest.err >&5
11793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794   (exit $ac_status); } &&
11795          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797   (eval $ac_try) 2>&5
11798   ac_status=$?
11799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800   (exit $ac_status); }; } &&
11801          { ac_try='test -s conftest.$ac_objext'
11802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803   (eval $ac_try) 2>&5
11804   ac_status=$?
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); }; }; then
11807   bakefile_compiler_mwerks=yes
11808 else
11809   echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11811
11812 bakefile_compiler_mwerks=no
11813 fi
11814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11815     bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11816
11817 fi
11818 echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11819 echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11820
11821 MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
11822 ac_ext=c
11823 ac_cpp='$CPP $CPPFLAGS'
11824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11827
11828
11829     ac_ext=c
11830 ac_cpp='$CPP $CPPFLAGS'
11831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11834
11835 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11836 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11837 if test "${wx_cv_c_compiler_xlc+set}" = set; then
11838   echo $ECHO_N "(cached) $ECHO_C" >&6
11839 else
11840   cat >conftest.$ac_ext <<_ACEOF
11841 /* confdefs.h.  */
11842 _ACEOF
11843 cat confdefs.h >>conftest.$ac_ext
11844 cat >>conftest.$ac_ext <<_ACEOF
11845 /* end confdefs.h.  */
11846
11847 int
11848 main ()
11849 {
11850 #ifndef __xlC__
11851        choke me
11852 #endif
11853
11854   ;
11855   return 0;
11856 }
11857 _ACEOF
11858 rm -f conftest.$ac_objext
11859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11860   (eval $ac_compile) 2>conftest.er1
11861   ac_status=$?
11862   grep -v '^ *+' conftest.er1 >conftest.err
11863   rm -f conftest.er1
11864   cat conftest.err >&5
11865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866   (exit $ac_status); } &&
11867          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869   (eval $ac_try) 2>&5
11870   ac_status=$?
11871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872   (exit $ac_status); }; } &&
11873          { ac_try='test -s conftest.$ac_objext'
11874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875   (eval $ac_try) 2>&5
11876   ac_status=$?
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); }; }; then
11879   wx_compiler_xlc=yes
11880 else
11881   echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11883
11884 wx_compiler_xlc=no
11885 fi
11886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11887     wx_cv_c_compiler_xlc=$wx_compiler_xlc
11888
11889 fi
11890 echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11891 echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11892
11893 XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
11894 ac_ext=c
11895 ac_cpp='$CPP $CPPFLAGS'
11896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11899
11900
11901
11902
11903 ac_ext=c
11904 ac_cpp='$CPP $CPPFLAGS'
11905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11908 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11909 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11910 # On Suns, sometimes $CPP names a directory.
11911 if test -n "$CPP" && test -d "$CPP"; then
11912   CPP=
11913 fi
11914 if test -z "$CPP"; then
11915   if test "${ac_cv_prog_CPP+set}" = set; then
11916   echo $ECHO_N "(cached) $ECHO_C" >&6
11917 else
11918       # Double quotes because CPP needs to be expanded
11919     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11920     do
11921       ac_preproc_ok=false
11922 for ac_c_preproc_warn_flag in '' yes
11923 do
11924   # Use a header file that comes with gcc, so configuring glibc
11925   # with a fresh cross-compiler works.
11926   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11927   # <limits.h> exists even on freestanding compilers.
11928   # On the NeXT, cc -E runs the code through the compiler's parser,
11929   # not just through cpp. "Syntax error" is here to catch this case.
11930   cat >conftest.$ac_ext <<_ACEOF
11931 /* confdefs.h.  */
11932 _ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h.  */
11936 #ifdef __STDC__
11937 # include <limits.h>
11938 #else
11939 # include <assert.h>
11940 #endif
11941                      Syntax error
11942 _ACEOF
11943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11944   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11945   ac_status=$?
11946   grep -v '^ *+' conftest.er1 >conftest.err
11947   rm -f conftest.er1
11948   cat conftest.err >&5
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); } >/dev/null; then
11951   if test -s conftest.err; then
11952     ac_cpp_err=$ac_c_preproc_warn_flag
11953     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11954   else
11955     ac_cpp_err=
11956   fi
11957 else
11958   ac_cpp_err=yes
11959 fi
11960 if test -z "$ac_cpp_err"; then
11961   :
11962 else
11963   echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11965
11966   # Broken: fails on valid input.
11967 continue
11968 fi
11969 rm -f conftest.err conftest.$ac_ext
11970
11971   # OK, works on sane cases.  Now check whether non-existent headers
11972   # can be detected and how.
11973   cat >conftest.$ac_ext <<_ACEOF
11974 /* confdefs.h.  */
11975 _ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h.  */
11979 #include <ac_nonexistent.h>
11980 _ACEOF
11981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11982   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11983   ac_status=$?
11984   grep -v '^ *+' conftest.er1 >conftest.err
11985   rm -f conftest.er1
11986   cat conftest.err >&5
11987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988   (exit $ac_status); } >/dev/null; then
11989   if test -s conftest.err; then
11990     ac_cpp_err=$ac_c_preproc_warn_flag
11991     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11992   else
11993     ac_cpp_err=
11994   fi
11995 else
11996   ac_cpp_err=yes
11997 fi
11998 if test -z "$ac_cpp_err"; then
11999   # Broken: success on invalid input.
12000 continue
12001 else
12002   echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12004
12005   # Passes both tests.
12006 ac_preproc_ok=:
12007 break
12008 fi
12009 rm -f conftest.err conftest.$ac_ext
12010
12011 done
12012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12013 rm -f conftest.err conftest.$ac_ext
12014 if $ac_preproc_ok; then
12015   break
12016 fi
12017
12018     done
12019     ac_cv_prog_CPP=$CPP
12020
12021 fi
12022   CPP=$ac_cv_prog_CPP
12023 else
12024   ac_cv_prog_CPP=$CPP
12025 fi
12026 echo "$as_me:$LINENO: result: $CPP" >&5
12027 echo "${ECHO_T}$CPP" >&6
12028 ac_preproc_ok=false
12029 for ac_c_preproc_warn_flag in '' yes
12030 do
12031   # Use a header file that comes with gcc, so configuring glibc
12032   # with a fresh cross-compiler works.
12033   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12034   # <limits.h> exists even on freestanding compilers.
12035   # On the NeXT, cc -E runs the code through the compiler's parser,
12036   # not just through cpp. "Syntax error" is here to catch this case.
12037   cat >conftest.$ac_ext <<_ACEOF
12038 /* confdefs.h.  */
12039 _ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h.  */
12043 #ifdef __STDC__
12044 # include <limits.h>
12045 #else
12046 # include <assert.h>
12047 #endif
12048                      Syntax error
12049 _ACEOF
12050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12051   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12052   ac_status=$?
12053   grep -v '^ *+' conftest.er1 >conftest.err
12054   rm -f conftest.er1
12055   cat conftest.err >&5
12056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057   (exit $ac_status); } >/dev/null; then
12058   if test -s conftest.err; then
12059     ac_cpp_err=$ac_c_preproc_warn_flag
12060     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12061   else
12062     ac_cpp_err=
12063   fi
12064 else
12065   ac_cpp_err=yes
12066 fi
12067 if test -z "$ac_cpp_err"; then
12068   :
12069 else
12070   echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.$ac_ext >&5
12072
12073   # Broken: fails on valid input.
12074 continue
12075 fi
12076 rm -f conftest.err conftest.$ac_ext
12077
12078   # OK, works on sane cases.  Now check whether non-existent headers
12079   # can be detected and how.
12080   cat >conftest.$ac_ext <<_ACEOF
12081 /* confdefs.h.  */
12082 _ACEOF
12083 cat confdefs.h >>conftest.$ac_ext
12084 cat >>conftest.$ac_ext <<_ACEOF
12085 /* end confdefs.h.  */
12086 #include <ac_nonexistent.h>
12087 _ACEOF
12088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12089   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12090   ac_status=$?
12091   grep -v '^ *+' conftest.er1 >conftest.err
12092   rm -f conftest.er1
12093   cat conftest.err >&5
12094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095   (exit $ac_status); } >/dev/null; then
12096   if test -s conftest.err; then
12097     ac_cpp_err=$ac_c_preproc_warn_flag
12098     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12099   else
12100     ac_cpp_err=
12101   fi
12102 else
12103   ac_cpp_err=yes
12104 fi
12105 if test -z "$ac_cpp_err"; then
12106   # Broken: success on invalid input.
12107 continue
12108 else
12109   echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12111
12112   # Passes both tests.
12113 ac_preproc_ok=:
12114 break
12115 fi
12116 rm -f conftest.err conftest.$ac_ext
12117
12118 done
12119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12120 rm -f conftest.err conftest.$ac_ext
12121 if $ac_preproc_ok; then
12122   :
12123 else
12124   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12125 See \`config.log' for more details." >&5
12126 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12127 See \`config.log' for more details." >&2;}
12128    { (exit 1); exit 1; }; }
12129 fi
12130
12131 ac_ext=c
12132 ac_cpp='$CPP $CPPFLAGS'
12133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12136
12137
12138 echo "$as_me:$LINENO: checking for egrep" >&5
12139 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12140 if test "${ac_cv_prog_egrep+set}" = set; then
12141   echo $ECHO_N "(cached) $ECHO_C" >&6
12142 else
12143   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12144     then ac_cv_prog_egrep='grep -E'
12145     else ac_cv_prog_egrep='egrep'
12146     fi
12147 fi
12148 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12149 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12150  EGREP=$ac_cv_prog_egrep
12151
12152
12153 if test $ac_cv_c_compiler_gnu = yes; then
12154     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12155 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12156 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12157   echo $ECHO_N "(cached) $ECHO_C" >&6
12158 else
12159     ac_pattern="Autoconf.*'x'"
12160   cat >conftest.$ac_ext <<_ACEOF
12161 /* confdefs.h.  */
12162 _ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h.  */
12166 #include <sgtty.h>
12167 Autoconf TIOCGETP
12168 _ACEOF
12169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12170   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12171   ac_cv_prog_gcc_traditional=yes
12172 else
12173   ac_cv_prog_gcc_traditional=no
12174 fi
12175 rm -f conftest*
12176
12177
12178   if test $ac_cv_prog_gcc_traditional = no; then
12179     cat >conftest.$ac_ext <<_ACEOF
12180 /* confdefs.h.  */
12181 _ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h.  */
12185 #include <termio.h>
12186 Autoconf TCGETA
12187 _ACEOF
12188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12189   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12190   ac_cv_prog_gcc_traditional=yes
12191 fi
12192 rm -f conftest*
12193
12194   fi
12195 fi
12196 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12197 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12198   if test $ac_cv_prog_gcc_traditional = yes; then
12199     CC="$CC -traditional"
12200   fi
12201 fi
12202
12203
12204
12205
12206 ac_ext=cc
12207 ac_cpp='$CXXCPP $CPPFLAGS'
12208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12211
12212
12213 CXXFLAGS=${CXXFLAGS:=}
12214
12215
12216     ac_ext=cc
12217 ac_cpp='$CXXCPP $CPPFLAGS'
12218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12221 if test -n "$ac_tool_prefix"; then
12222   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12223   do
12224     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12226 echo "$as_me:$LINENO: checking for $ac_word" >&5
12227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12228 if test "${ac_cv_prog_CXX+set}" = set; then
12229   echo $ECHO_N "(cached) $ECHO_C" >&6
12230 else
12231   if test -n "$CXX"; then
12232   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12233 else
12234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12235 for as_dir in $PATH
12236 do
12237   IFS=$as_save_IFS
12238   test -z "$as_dir" && as_dir=.
12239   for ac_exec_ext in '' $ac_executable_extensions; do
12240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12241     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12243     break 2
12244   fi
12245 done
12246 done
12247
12248 fi
12249 fi
12250 CXX=$ac_cv_prog_CXX
12251 if test -n "$CXX"; then
12252   echo "$as_me:$LINENO: result: $CXX" >&5
12253 echo "${ECHO_T}$CXX" >&6
12254 else
12255   echo "$as_me:$LINENO: result: no" >&5
12256 echo "${ECHO_T}no" >&6
12257 fi
12258
12259     test -n "$CXX" && break
12260   done
12261 fi
12262 if test -z "$CXX"; then
12263   ac_ct_CXX=$CXX
12264   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12265 do
12266   # Extract the first word of "$ac_prog", so it can be a program name with args.
12267 set dummy $ac_prog; ac_word=$2
12268 echo "$as_me:$LINENO: checking for $ac_word" >&5
12269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12270 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12271   echo $ECHO_N "(cached) $ECHO_C" >&6
12272 else
12273   if test -n "$ac_ct_CXX"; then
12274   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12275 else
12276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277 for as_dir in $PATH
12278 do
12279   IFS=$as_save_IFS
12280   test -z "$as_dir" && as_dir=.
12281   for ac_exec_ext in '' $ac_executable_extensions; do
12282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12283     ac_cv_prog_ac_ct_CXX="$ac_prog"
12284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12285     break 2
12286   fi
12287 done
12288 done
12289
12290 fi
12291 fi
12292 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12293 if test -n "$ac_ct_CXX"; then
12294   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12295 echo "${ECHO_T}$ac_ct_CXX" >&6
12296 else
12297   echo "$as_me:$LINENO: result: no" >&5
12298 echo "${ECHO_T}no" >&6
12299 fi
12300
12301   test -n "$ac_ct_CXX" && break
12302 done
12303 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12304
12305   CXX=$ac_ct_CXX
12306 fi
12307
12308
12309 # Provide some information about the compiler.
12310 echo "$as_me:$LINENO:" \
12311      "checking for C++ compiler version" >&5
12312 ac_compiler=`set X $ac_compile; echo $2`
12313 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12314   (eval $ac_compiler --version </dev/null >&5) 2>&5
12315   ac_status=$?
12316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317   (exit $ac_status); }
12318 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12319   (eval $ac_compiler -v </dev/null >&5) 2>&5
12320   ac_status=$?
12321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322   (exit $ac_status); }
12323 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12324   (eval $ac_compiler -V </dev/null >&5) 2>&5
12325   ac_status=$?
12326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327   (exit $ac_status); }
12328
12329 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12330 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12331 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12332   echo $ECHO_N "(cached) $ECHO_C" >&6
12333 else
12334   cat >conftest.$ac_ext <<_ACEOF
12335 /* confdefs.h.  */
12336 _ACEOF
12337 cat confdefs.h >>conftest.$ac_ext
12338 cat >>conftest.$ac_ext <<_ACEOF
12339 /* end confdefs.h.  */
12340
12341 int
12342 main ()
12343 {
12344 #ifndef __GNUC__
12345        choke me
12346 #endif
12347
12348   ;
12349   return 0;
12350 }
12351 _ACEOF
12352 rm -f conftest.$ac_objext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12354   (eval $ac_compile) 2>conftest.er1
12355   ac_status=$?
12356   grep -v '^ *+' conftest.er1 >conftest.err
12357   rm -f conftest.er1
12358   cat conftest.err >&5
12359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360   (exit $ac_status); } &&
12361          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363   (eval $ac_try) 2>&5
12364   ac_status=$?
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); }; } &&
12367          { ac_try='test -s conftest.$ac_objext'
12368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369   (eval $ac_try) 2>&5
12370   ac_status=$?
12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); }; }; then
12373   ac_compiler_gnu=yes
12374 else
12375   echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12377
12378 ac_compiler_gnu=no
12379 fi
12380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12381 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12382
12383 fi
12384 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12385 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12386 GXX=`test $ac_compiler_gnu = yes && echo yes`
12387 ac_test_CXXFLAGS=${CXXFLAGS+set}
12388 ac_save_CXXFLAGS=$CXXFLAGS
12389 CXXFLAGS="-g"
12390 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12391 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12392 if test "${ac_cv_prog_cxx_g+set}" = set; then
12393   echo $ECHO_N "(cached) $ECHO_C" >&6
12394 else
12395   cat >conftest.$ac_ext <<_ACEOF
12396 /* confdefs.h.  */
12397 _ACEOF
12398 cat confdefs.h >>conftest.$ac_ext
12399 cat >>conftest.$ac_ext <<_ACEOF
12400 /* end confdefs.h.  */
12401
12402 int
12403 main ()
12404 {
12405
12406   ;
12407   return 0;
12408 }
12409 _ACEOF
12410 rm -f conftest.$ac_objext
12411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12412   (eval $ac_compile) 2>conftest.er1
12413   ac_status=$?
12414   grep -v '^ *+' conftest.er1 >conftest.err
12415   rm -f conftest.er1
12416   cat conftest.err >&5
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); } &&
12419          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421   (eval $ac_try) 2>&5
12422   ac_status=$?
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); }; } &&
12425          { ac_try='test -s conftest.$ac_objext'
12426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427   (eval $ac_try) 2>&5
12428   ac_status=$?
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); }; }; then
12431   ac_cv_prog_cxx_g=yes
12432 else
12433   echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12435
12436 ac_cv_prog_cxx_g=no
12437 fi
12438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12439 fi
12440 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12441 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12442 if test "$ac_test_CXXFLAGS" = set; then
12443   CXXFLAGS=$ac_save_CXXFLAGS
12444 elif test $ac_cv_prog_cxx_g = yes; then
12445   if test "$GXX" = yes; then
12446     CXXFLAGS="-g -O2"
12447   else
12448     CXXFLAGS="-g"
12449   fi
12450 else
12451   if test "$GXX" = yes; then
12452     CXXFLAGS="-O2"
12453   else
12454     CXXFLAGS=
12455   fi
12456 fi
12457 for ac_declaration in \
12458    '' \
12459    'extern "C" void std::exit (int) throw (); using std::exit;' \
12460    'extern "C" void std::exit (int); using std::exit;' \
12461    'extern "C" void exit (int) throw ();' \
12462    'extern "C" void exit (int);' \
12463    'void exit (int);'
12464 do
12465   cat >conftest.$ac_ext <<_ACEOF
12466 /* confdefs.h.  */
12467 _ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h.  */
12471 $ac_declaration
12472 #include <stdlib.h>
12473 int
12474 main ()
12475 {
12476 exit (42);
12477   ;
12478   return 0;
12479 }
12480 _ACEOF
12481 rm -f conftest.$ac_objext
12482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12483   (eval $ac_compile) 2>conftest.er1
12484   ac_status=$?
12485   grep -v '^ *+' conftest.er1 >conftest.err
12486   rm -f conftest.er1
12487   cat conftest.err >&5
12488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489   (exit $ac_status); } &&
12490          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492   (eval $ac_try) 2>&5
12493   ac_status=$?
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); }; } &&
12496          { ac_try='test -s conftest.$ac_objext'
12497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498   (eval $ac_try) 2>&5
12499   ac_status=$?
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); }; }; then
12502   :
12503 else
12504   echo "$as_me: failed program was:" >&5
12505 sed 's/^/| /' conftest.$ac_ext >&5
12506
12507 continue
12508 fi
12509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12510   cat >conftest.$ac_ext <<_ACEOF
12511 /* confdefs.h.  */
12512 _ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h.  */
12516 $ac_declaration
12517 int
12518 main ()
12519 {
12520 exit (42);
12521   ;
12522   return 0;
12523 }
12524 _ACEOF
12525 rm -f conftest.$ac_objext
12526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12527   (eval $ac_compile) 2>conftest.er1
12528   ac_status=$?
12529   grep -v '^ *+' conftest.er1 >conftest.err
12530   rm -f conftest.er1
12531   cat conftest.err >&5
12532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533   (exit $ac_status); } &&
12534          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536   (eval $ac_try) 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; } &&
12540          { ac_try='test -s conftest.$ac_objext'
12541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542   (eval $ac_try) 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); }; }; then
12546   break
12547 else
12548   echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12550
12551 fi
12552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12553 done
12554 rm -f conftest*
12555 if test -n "$ac_declaration"; then
12556   echo '#ifdef __cplusplus' >>confdefs.h
12557   echo $ac_declaration      >>confdefs.h
12558   echo '#endif'             >>confdefs.h
12559 fi
12560
12561 ac_ext=cc
12562 ac_cpp='$CXXCPP $CPPFLAGS'
12563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12566
12567     echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
12568 echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12569 if test "${wx_cv_cxx_exto+set}" = set; then
12570   echo $ECHO_N "(cached) $ECHO_C" >&6
12571 else
12572   cat >conftest.$ac_ext <<_ACEOF
12573 /* confdefs.h.  */
12574 _ACEOF
12575 cat confdefs.h >>conftest.$ac_ext
12576 cat >>conftest.$ac_ext <<_ACEOF
12577 /* end confdefs.h.  */
12578
12579 int
12580 main ()
12581 {
12582
12583   ;
12584   return 0;
12585 }
12586 _ACEOF
12587 rm -f conftest.$ac_objext conftest.$ac_ext.o
12588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12589   (eval $ac_compile) 2>&5
12590   ac_status=$?
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); }; then
12593   for ac_file in `(ls conftest.* 2>/dev/null)`; do
12594     case $ac_file in
12595         conftest.$ac_ext.o)
12596             wx_cv_cxx_exto="-ext o"
12597             ;;
12598         *)
12599             ;;
12600     esac
12601 done
12602 else
12603   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12604 See \`config.log' for more details." >&5
12605 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12606 See \`config.log' for more details." >&2;}
12607    { (exit 1); exit 1; }; }
12608
12609 fi
12610
12611 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12612
12613 fi
12614 echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12615 echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12616 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12617     if test "cxx" = "c"; then
12618         CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12619     fi
12620     if test "cxx" = "cxx"; then
12621         CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12622     fi
12623 fi
12624
12625         if test "x$wx_cv_cxx_exto" '!=' "x"; then
12626         unset ac_cv_prog_cxx_g
12627         ac_test_CXXFLAGS=${CXXFLAGS+set}
12628 ac_save_CXXFLAGS=$CXXFLAGS
12629 CXXFLAGS="-g"
12630 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12631 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12632 if test "${ac_cv_prog_cxx_g+set}" = set; then
12633   echo $ECHO_N "(cached) $ECHO_C" >&6
12634 else
12635   cat >conftest.$ac_ext <<_ACEOF
12636 /* confdefs.h.  */
12637 _ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h.  */
12641
12642 int
12643 main ()
12644 {
12645
12646   ;
12647   return 0;
12648 }
12649 _ACEOF
12650 rm -f conftest.$ac_objext
12651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12652   (eval $ac_compile) 2>conftest.er1
12653   ac_status=$?
12654   grep -v '^ *+' conftest.er1 >conftest.err
12655   rm -f conftest.er1
12656   cat conftest.err >&5
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); } &&
12659          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661   (eval $ac_try) 2>&5
12662   ac_status=$?
12663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664   (exit $ac_status); }; } &&
12665          { ac_try='test -s conftest.$ac_objext'
12666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667   (eval $ac_try) 2>&5
12668   ac_status=$?
12669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670   (exit $ac_status); }; }; then
12671   ac_cv_prog_cxx_g=yes
12672 else
12673   echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12675
12676 ac_cv_prog_cxx_g=no
12677 fi
12678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12679 fi
12680 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12681 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12682 if test "$ac_test_CXXFLAGS" = set; then
12683   CXXFLAGS=$ac_save_CXXFLAGS
12684 elif test $ac_cv_prog_cxx_g = yes; then
12685   if test "$GXX" = yes; then
12686     CXXFLAGS="-g -O2"
12687   else
12688     CXXFLAGS="-g"
12689   fi
12690 else
12691   if test "$GXX" = yes; then
12692     CXXFLAGS="-O2"
12693   else
12694     CXXFLAGS=
12695   fi
12696 fi
12697     fi
12698     ac_ext=cc
12699 ac_cpp='$CXXCPP $CPPFLAGS'
12700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12703
12704 echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12705 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12706 if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12707   echo $ECHO_N "(cached) $ECHO_C" >&6
12708 else
12709   cat >conftest.$ac_ext <<_ACEOF
12710 /* confdefs.h.  */
12711 _ACEOF
12712 cat confdefs.h >>conftest.$ac_ext
12713 cat >>conftest.$ac_ext <<_ACEOF
12714 /* end confdefs.h.  */
12715
12716 int
12717 main ()
12718 {
12719 #ifndef __MWERKS__
12720        choke me
12721 #endif
12722
12723   ;
12724   return 0;
12725 }
12726 _ACEOF
12727 rm -f conftest.$ac_objext
12728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12729   (eval $ac_compile) 2>conftest.er1
12730   ac_status=$?
12731   grep -v '^ *+' conftest.er1 >conftest.err
12732   rm -f conftest.er1
12733   cat conftest.err >&5
12734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); } &&
12736          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738   (eval $ac_try) 2>&5
12739   ac_status=$?
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); }; } &&
12742          { ac_try='test -s conftest.$ac_objext'
12743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744   (eval $ac_try) 2>&5
12745   ac_status=$?
12746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747   (exit $ac_status); }; }; then
12748   bakefile_compiler_mwerks=yes
12749 else
12750   echo "$as_me: failed program was:" >&5
12751 sed 's/^/| /' conftest.$ac_ext >&5
12752
12753 bakefile_compiler_mwerks=no
12754 fi
12755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12756     bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12757
12758 fi
12759 echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12760 echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12761
12762 MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
12763 ac_ext=cc
12764 ac_cpp='$CXXCPP $CPPFLAGS'
12765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12768
12769
12770     ac_ext=cc
12771 ac_cpp='$CXXCPP $CPPFLAGS'
12772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12775
12776 echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12777 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12778 if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12779   echo $ECHO_N "(cached) $ECHO_C" >&6
12780 else
12781   cat >conftest.$ac_ext <<_ACEOF
12782 /* confdefs.h.  */
12783 _ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h.  */
12787
12788 int
12789 main ()
12790 {
12791 #ifndef __xlC__
12792        choke me
12793 #endif
12794
12795   ;
12796   return 0;
12797 }
12798 _ACEOF
12799 rm -f conftest.$ac_objext
12800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801   (eval $ac_compile) 2>conftest.er1
12802   ac_status=$?
12803   grep -v '^ *+' conftest.er1 >conftest.err
12804   rm -f conftest.er1
12805   cat conftest.err >&5
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); } &&
12808          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810   (eval $ac_try) 2>&5
12811   ac_status=$?
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); }; } &&
12814          { ac_try='test -s conftest.$ac_objext'
12815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816   (eval $ac_try) 2>&5
12817   ac_status=$?
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); }; }; then
12820   wx_compiler_xlc=yes
12821 else
12822   echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12824
12825 wx_compiler_xlc=no
12826 fi
12827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12828     wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12829
12830 fi
12831 echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12832 echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12833
12834 XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
12835 ac_ext=cc
12836 ac_cpp='$CXXCPP $CPPFLAGS'
12837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12840
12841
12842
12843
12844 ac_ext=c
12845 ac_cpp='$CPP $CPPFLAGS'
12846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12849
12850
12851 if test -n "$ac_tool_prefix"; then
12852   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12853 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12854 echo "$as_me:$LINENO: checking for $ac_word" >&5
12855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12856 if test "${ac_cv_prog_RANLIB+set}" = set; then
12857   echo $ECHO_N "(cached) $ECHO_C" >&6
12858 else
12859   if test -n "$RANLIB"; then
12860   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12861 else
12862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12863 for as_dir in $PATH
12864 do
12865   IFS=$as_save_IFS
12866   test -z "$as_dir" && as_dir=.
12867   for ac_exec_ext in '' $ac_executable_extensions; do
12868   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12869     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12871     break 2
12872   fi
12873 done
12874 done
12875
12876 fi
12877 fi
12878 RANLIB=$ac_cv_prog_RANLIB
12879 if test -n "$RANLIB"; then
12880   echo "$as_me:$LINENO: result: $RANLIB" >&5
12881 echo "${ECHO_T}$RANLIB" >&6
12882 else
12883   echo "$as_me:$LINENO: result: no" >&5
12884 echo "${ECHO_T}no" >&6
12885 fi
12886
12887 fi
12888 if test -z "$ac_cv_prog_RANLIB"; then
12889   ac_ct_RANLIB=$RANLIB
12890   # Extract the first word of "ranlib", so it can be a program name with args.
12891 set dummy ranlib; ac_word=$2
12892 echo "$as_me:$LINENO: checking for $ac_word" >&5
12893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12894 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12895   echo $ECHO_N "(cached) $ECHO_C" >&6
12896 else
12897   if test -n "$ac_ct_RANLIB"; then
12898   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12899 else
12900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901 for as_dir in $PATH
12902 do
12903   IFS=$as_save_IFS
12904   test -z "$as_dir" && as_dir=.
12905   for ac_exec_ext in '' $ac_executable_extensions; do
12906   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12907     ac_cv_prog_ac_ct_RANLIB="ranlib"
12908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12909     break 2
12910   fi
12911 done
12912 done
12913
12914   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12915 fi
12916 fi
12917 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12918 if test -n "$ac_ct_RANLIB"; then
12919   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12920 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12921 else
12922   echo "$as_me:$LINENO: result: no" >&5
12923 echo "${ECHO_T}no" >&6
12924 fi
12925
12926   RANLIB=$ac_ct_RANLIB
12927 else
12928   RANLIB="$ac_cv_prog_RANLIB"
12929 fi
12930
12931
12932 # Extract the first word of "ar", so it can be a program name with args.
12933 set dummy ar; ac_word=$2
12934 echo "$as_me:$LINENO: checking for $ac_word" >&5
12935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12936 if test "${ac_cv_prog_AR+set}" = set; then
12937   echo $ECHO_N "(cached) $ECHO_C" >&6
12938 else
12939   if test -n "$AR"; then
12940   ac_cv_prog_AR="$AR" # Let the user override the test.
12941 else
12942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12943 for as_dir in $PATH
12944 do
12945   IFS=$as_save_IFS
12946   test -z "$as_dir" && as_dir=.
12947   for ac_exec_ext in '' $ac_executable_extensions; do
12948   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12949     ac_cv_prog_AR="ar"
12950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12951     break 2
12952   fi
12953 done
12954 done
12955
12956 fi
12957 fi
12958 AR=$ac_cv_prog_AR
12959 if test -n "$AR"; then
12960   echo "$as_me:$LINENO: result: $AR" >&5
12961 echo "${ECHO_T}$AR" >&6
12962 else
12963   echo "$as_me:$LINENO: result: no" >&5
12964 echo "${ECHO_T}no" >&6
12965 fi
12966
12967 if test "x$AR" = "x" ; then
12968     { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12969 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
12970    { (exit 1); exit 1; }; }
12971 fi
12972
12973 # Find a good install program.  We prefer a C program (faster),
12974 # so one script is as good as another.  But avoid the broken or
12975 # incompatible versions:
12976 # SysV /etc/install, /usr/sbin/install
12977 # SunOS /usr/etc/install
12978 # IRIX /sbin/install
12979 # AIX /bin/install
12980 # AmigaOS /C/install, which installs bootblocks on floppy discs
12981 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12982 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12983 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12984 # OS/2's system install, which has a completely different semantic
12985 # ./install, which can be erroneously created by make from ./install.sh.
12986 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12987 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12988 if test -z "$INSTALL"; then
12989 if test "${ac_cv_path_install+set}" = set; then
12990   echo $ECHO_N "(cached) $ECHO_C" >&6
12991 else
12992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12993 for as_dir in $PATH
12994 do
12995   IFS=$as_save_IFS
12996   test -z "$as_dir" && as_dir=.
12997   # Account for people who put trailing slashes in PATH elements.
12998 case $as_dir/ in
12999   ./ | .// | /cC/* | \
13000   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13001   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13002   /usr/ucb/* ) ;;
13003   *)
13004     # OSF1 and SCO ODT 3.0 have their own names for install.
13005     # Don't use installbsd from OSF since it installs stuff as root
13006     # by default.
13007     for ac_prog in ginstall scoinst install; do
13008       for ac_exec_ext in '' $ac_executable_extensions; do
13009         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13010           if test $ac_prog = install &&
13011             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13012             # AIX install.  It has an incompatible calling convention.
13013             :
13014           elif test $ac_prog = install &&
13015             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13016             # program-specific install script used by HP pwplus--don't use.
13017             :
13018           else
13019             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13020             break 3
13021           fi
13022         fi
13023       done
13024     done
13025     ;;
13026 esac
13027 done
13028
13029
13030 fi
13031   if test "${ac_cv_path_install+set}" = set; then
13032     INSTALL=$ac_cv_path_install
13033   else
13034     # As a last resort, use the slow shell script.  We don't cache a
13035     # path for INSTALL within a source directory, because that will
13036     # break other packages using the cache if that directory is
13037     # removed, or if the path is relative.
13038     INSTALL=$ac_install_sh
13039   fi
13040 fi
13041 echo "$as_me:$LINENO: result: $INSTALL" >&5
13042 echo "${ECHO_T}$INSTALL" >&6
13043
13044 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13045 # It thinks the first close brace ends the variable substitution.
13046 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13047
13048 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13049
13050 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13051
13052
13053 case ${INSTALL} in
13054   /* ) # Absolute
13055      ;;
13056   ?:* ) # Drive letter, considered as absolute.
13057      ;;
13058   *)
13059      INSTALL=`pwd`/${INSTALL} ;;
13060 esac
13061
13062
13063 case "${host}" in
13064
13065                 powerpc-*-darwin* )
13066         INSTALL_PROGRAM="cp -fp"
13067         INSTALL_DATA="cp -fp"
13068         ;;
13069     *)
13070         ;;
13071 esac
13072
13073 # Extract the first word of "strip", so it can be a program name with args.
13074 set dummy strip; ac_word=$2
13075 echo "$as_me:$LINENO: checking for $ac_word" >&5
13076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13077 if test "${ac_cv_prog_STRIP+set}" = set; then
13078   echo $ECHO_N "(cached) $ECHO_C" >&6
13079 else
13080   if test -n "$STRIP"; then
13081   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13082 else
13083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13084 for as_dir in $PATH
13085 do
13086   IFS=$as_save_IFS
13087   test -z "$as_dir" && as_dir=.
13088   for ac_exec_ext in '' $ac_executable_extensions; do
13089   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13090     ac_cv_prog_STRIP="strip"
13091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13092     break 2
13093   fi
13094 done
13095 done
13096
13097   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13098 fi
13099 fi
13100 STRIP=$ac_cv_prog_STRIP
13101 if test -n "$STRIP"; then
13102   echo "$as_me:$LINENO: result: $STRIP" >&5
13103 echo "${ECHO_T}$STRIP" >&6
13104 else
13105   echo "$as_me:$LINENO: result: no" >&5
13106 echo "${ECHO_T}no" >&6
13107 fi
13108
13109
13110 echo "$as_me:$LINENO: checking if make is GNU make" >&5
13111 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13112 if test "${wx_cv_prog_makeisgnu+set}" = set; then
13113   echo $ECHO_N "(cached) $ECHO_C" >&6
13114 else
13115
13116     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13117             egrep -s GNU > /dev/null); then
13118         wx_cv_prog_makeisgnu="yes"
13119     else
13120         wx_cv_prog_makeisgnu="no"
13121     fi
13122
13123 fi
13124 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13125 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13126
13127 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13128     IF_GNU_MAKE=""
13129 else
13130     IF_GNU_MAKE="#"
13131 fi
13132
13133
13134
13135 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13136 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13137 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13138 if test "${wx_cv_prog_makevpath+set}" = set; then
13139   echo $ECHO_N "(cached) $ECHO_C" >&6
13140 else
13141
13142 cat - << EOF > confMake
13143 check : file
13144         cp \$? \$@
13145         cp \$? final_file
13146 EOF
13147
13148 if test ! -d sub ; then
13149   mkdir sub
13150 fi
13151 echo dummy > sub/file
13152 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13153 RESULT=$?
13154 rm -f sub/file check final_file confMake
13155 rmdir sub
13156 if test "$RESULT" = 0; then
13157   wx_cv_prog_makevpath="yes"
13158 else
13159   wx_cv_prog_makevpath="no"
13160 fi
13161
13162 fi
13163 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13164 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13165
13166 if test "x$wx_cv_prog_makevpath" != "xyes"; then
13167 { { echo "$as_me:$LINENO: error:
13168 You need a make-utility that is able to use the variable
13169 VPATH correctly.
13170 If your version of make does not support VPATH correctly,
13171 please install GNU-make (possibly as gmake), and start
13172 configure with the following command:
13173 export MAKE=gmake; ./configure  for sh-type shells
13174 setenv MAKE gmake; ./configure  for csh-type shells
13175 Also please do remember to use gmake in this case every time
13176 you are trying to compile.
13177 " >&5
13178 echo "$as_me: error:
13179 You need a make-utility that is able to use the variable
13180 VPATH correctly.
13181 If your version of make does not support VPATH correctly,
13182 please install GNU-make (possibly as gmake), and start
13183 configure with the following command:
13184 export MAKE=gmake; ./configure  for sh-type shells
13185 setenv MAKE gmake; ./configure  for csh-type shells
13186 Also please do remember to use gmake in this case every time
13187 you are trying to compile.
13188 " >&2;}
13189    { (exit 1); exit 1; }; }
13190 fi fi
13191 echo "$as_me:$LINENO: checking whether ln -s works" >&5
13192 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13193 LN_S=$as_ln_s
13194 if test "$LN_S" = "ln -s"; then
13195   echo "$as_me:$LINENO: result: yes" >&5
13196 echo "${ECHO_T}yes" >&6
13197 else
13198   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13199 echo "${ECHO_T}no, using $LN_S" >&6
13200 fi
13201
13202
13203
13204 if test "x$XLCXX" = "xyes"; then
13205     CXXFLAGS="$CXXFLAGS -qunique"
13206 fi
13207
13208
13209 case "${host}" in
13210   powerpc-*-darwin* )
13211     echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13212 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13213     cat >conftest.$ac_ext <<_ACEOF
13214 /* confdefs.h.  */
13215 _ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h.  */
13219
13220 int
13221 main ()
13222 {
13223 #ifndef __POWERPC__
13224         choke me for lack of PowerPC
13225 #endif
13226
13227   ;
13228   return 0;
13229 }
13230 _ACEOF
13231 rm -f conftest.$ac_objext
13232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13233   (eval $ac_compile) 2>conftest.er1
13234   ac_status=$?
13235   grep -v '^ *+' conftest.er1 >conftest.err
13236   rm -f conftest.er1
13237   cat conftest.err >&5
13238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239   (exit $ac_status); } &&
13240          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242   (eval $ac_try) 2>&5
13243   ac_status=$?
13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); }; } &&
13246          { ac_try='test -s conftest.$ac_objext'
13247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248   (eval $ac_try) 2>&5
13249   ac_status=$?
13250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251   (exit $ac_status); }; }; then
13252   echo "$as_me:$LINENO: result: yes" >&5
13253 echo "${ECHO_T}yes" >&6
13254 else
13255   echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13257
13258 echo "$as_me:$LINENO: result: no" >&5
13259 echo "${ECHO_T}no" >&6
13260         cat >>confdefs.h <<\_ACEOF
13261 #define __POWERPC__ 1
13262 _ACEOF
13263
13264
13265 fi
13266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13267     echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13268 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13269     cat >conftest.$ac_ext <<_ACEOF
13270 /* confdefs.h.  */
13271 _ACEOF
13272 cat confdefs.h >>conftest.$ac_ext
13273 cat >>conftest.$ac_ext <<_ACEOF
13274 /* end confdefs.h.  */
13275 #include <CoreFoundation/CFBase.h>
13276
13277 int
13278 main ()
13279 {
13280
13281   ;
13282   return 0;
13283 }
13284 _ACEOF
13285 rm -f conftest.$ac_objext
13286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13287   (eval $ac_compile) 2>conftest.er1
13288   ac_status=$?
13289   grep -v '^ *+' conftest.er1 >conftest.err
13290   rm -f conftest.er1
13291   cat conftest.err >&5
13292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293   (exit $ac_status); } &&
13294          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296   (eval $ac_try) 2>&5
13297   ac_status=$?
13298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); }; } &&
13300          { ac_try='test -s conftest.$ac_objext'
13301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302   (eval $ac_try) 2>&5
13303   ac_status=$?
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); }; }; then
13306   echo "$as_me:$LINENO: result: yes" >&5
13307 echo "${ECHO_T}yes" >&6
13308 else
13309   echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13311
13312 echo "$as_me:$LINENO: result: no" >&5
13313 echo "${ECHO_T}no" >&6
13314         echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13315 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13316         cat >conftest.$ac_ext <<_ACEOF
13317 /* confdefs.h.  */
13318 _ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h.  */
13322 #define __CF_USE_FRAMEWORK_INCLUDES__
13323 #include <CoreFoundation/CFBase.h>
13324
13325 int
13326 main ()
13327 {
13328
13329   ;
13330   return 0;
13331 }
13332 _ACEOF
13333 rm -f conftest.$ac_objext
13334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13335   (eval $ac_compile) 2>conftest.er1
13336   ac_status=$?
13337   grep -v '^ *+' conftest.er1 >conftest.err
13338   rm -f conftest.er1
13339   cat conftest.err >&5
13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341   (exit $ac_status); } &&
13342          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344   (eval $ac_try) 2>&5
13345   ac_status=$?
13346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); }; } &&
13348          { ac_try='test -s conftest.$ac_objext'
13349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13350   (eval $ac_try) 2>&5
13351   ac_status=$?
13352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353   (exit $ac_status); }; }; then
13354   echo "$as_me:$LINENO: result: yes" >&5
13355 echo "${ECHO_T}yes" >&6
13356                         CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13357 else
13358   echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13360
13361 { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
13362 See \`config.log' for more details." >&5
13363 echo "$as_me: error: no.  CoreFoundation not available.
13364 See \`config.log' for more details." >&2;}
13365    { (exit 1); exit 1; }; }
13366
13367 fi
13368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13369
13370
13371 fi
13372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13373   ;;
13374 esac
13375
13376 case "${host}" in
13377   *-pc-os2_emx | *-pc-os2-emx )
13378                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13379                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13380 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13381 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13382   echo $ECHO_N "(cached) $ECHO_C" >&6
13383 else
13384   ac_check_lib_save_LIBS=$LIBS
13385 LIBS="-lcExt  $LIBS"
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
13393 /* Override any gcc2 internal prototype to avoid an error.  */
13394 #ifdef __cplusplus
13395 extern "C"
13396 #endif
13397 /* We use char because int might match the return type of a gcc2
13398    builtin and then its argument prototype would still apply.  */
13399 char drand48 ();
13400 int
13401 main ()
13402 {
13403 drand48 ();
13404   ;
13405   return 0;
13406 }
13407 _ACEOF
13408 rm -f conftest.$ac_objext conftest$ac_exeext
13409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13410   (eval $ac_link) 2>conftest.er1
13411   ac_status=$?
13412   grep -v '^ *+' conftest.er1 >conftest.err
13413   rm -f conftest.er1
13414   cat conftest.err >&5
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); } &&
13417          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419   (eval $ac_try) 2>&5
13420   ac_status=$?
13421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422   (exit $ac_status); }; } &&
13423          { ac_try='test -s conftest$ac_exeext'
13424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425   (eval $ac_try) 2>&5
13426   ac_status=$?
13427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); }; }; then
13429   ac_cv_lib_cExt_drand48=yes
13430 else
13431   echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13433
13434 ac_cv_lib_cExt_drand48=no
13435 fi
13436 rm -f conftest.err conftest.$ac_objext \
13437       conftest$ac_exeext conftest.$ac_ext
13438 LIBS=$ac_check_lib_save_LIBS
13439 fi
13440 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13441 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13442 if test $ac_cv_lib_cExt_drand48 = yes; then
13443   LIBS="$LIBS -lcExt"
13444 fi
13445
13446       else
13447                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13448       fi
13449                                     echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13450 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
13451 if test "${wx_cv_gccversion+set}" = set; then
13452   echo $ECHO_N "(cached) $ECHO_C" >&6
13453 else
13454
13455           if test "$cross_compiling" = yes; then
13456                 wx_cv_gccversion="EMX2"
13457
13458 else
13459   cat >conftest.$ac_ext <<_ACEOF
13460 /* confdefs.h.  */
13461 _ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h.  */
13465
13466                   #include <stdio.h>
13467
13468                   int main()
13469                   {
13470                       FILE *f=fopen("conftestval", "w");
13471                       if (!f) exit(1);
13472                       fprintf(f,
13473                   #if (__GNUC__ < 3)
13474                               "EMX2"
13475                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13476                               "EMX3"
13477                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13478                               "Innotek5"
13479                   #else
13480                               "Innotek6"
13481                   #endif
13482                       );
13483                       exit(0);
13484                   }
13485
13486 _ACEOF
13487 rm -f conftest$ac_exeext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489   (eval $ac_link) 2>&5
13490   ac_status=$?
13491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494   (eval $ac_try) 2>&5
13495   ac_status=$?
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); }; }; then
13498   wx_cv_gccversion=`cat conftestval`
13499 else
13500   echo "$as_me: program exited with status $ac_status" >&5
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13503
13504 ( exit $ac_status )
13505 wx_cv_gccversion="EMX2"
13506 fi
13507 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13508 fi
13509
13510 fi
13511 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13512 echo "${ECHO_T}$wx_cv_gccversion" >&6
13513       if test "$wx_cv_gccversion" = "EMX2"; then
13514           LIBS="$LIBS -lstdcpp"
13515           LDFLAGS="$LDFLAGS -Zsysv-signals"
13516       else
13517           if test "$wx_cv_gccversion" = "EMX3"; then
13518               LIBS="$LIBS -lstdcxx"
13519               LDFLAGS="$LDFLAGS -Zsysv-signals"
13520           else
13521               LIBS="$LIBS -lstdc++"
13522           fi
13523       fi
13524       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13525         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13526 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13527         wxUSE_OMF=yes
13528         enable_omf=yes
13529       fi
13530         ;;
13531   *)
13532
13533
13534
13535       ac_ext=cc
13536 ac_cpp='$CXXCPP $CPPFLAGS'
13537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13540
13541
13542       echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
13543 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13544 if test "${ac_cv_string_strcasecmp+set}" = set; then
13545   echo $ECHO_N "(cached) $ECHO_C" >&6
13546 else
13547
13548           cat >conftest.$ac_ext <<_ACEOF
13549 /* confdefs.h.  */
13550 _ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h.  */
13554
13555               #include <string.h>
13556
13557 int
13558 main ()
13559 {
13560
13561                   strcasecmp("foo", "bar");
13562
13563   ;
13564   return 0;
13565 }
13566 _ACEOF
13567 rm -f conftest.$ac_objext conftest$ac_exeext
13568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13569   (eval $ac_link) 2>conftest.er1
13570   ac_status=$?
13571   grep -v '^ *+' conftest.er1 >conftest.err
13572   rm -f conftest.er1
13573   cat conftest.err >&5
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); } &&
13576          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578   (eval $ac_try) 2>&5
13579   ac_status=$?
13580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581   (exit $ac_status); }; } &&
13582          { ac_try='test -s conftest$ac_exeext'
13583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584   (eval $ac_try) 2>&5
13585   ac_status=$?
13586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587   (exit $ac_status); }; }; then
13588   ac_cv_string_strcasecmp=yes
13589 else
13590   echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13592
13593 ac_cv_string_strcasecmp=no
13594
13595 fi
13596 rm -f conftest.err conftest.$ac_objext \
13597       conftest$ac_exeext conftest.$ac_ext
13598
13599 fi
13600 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13601 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13602
13603       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13604           cat >>confdefs.h <<\_ACEOF
13605 #define HAVE_STRCASECMP_IN_STRING_H 1
13606 _ACEOF
13607
13608       else
13609           echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13610 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13611 if test "${ac_cv_strings_strcasecmp+set}" = set; then
13612   echo $ECHO_N "(cached) $ECHO_C" >&6
13613 else
13614
13615               cat >conftest.$ac_ext <<_ACEOF
13616 /* confdefs.h.  */
13617 _ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h.  */
13621
13622                   #include <strings.h>
13623
13624 int
13625 main ()
13626 {
13627
13628                       strcasecmp("foo", "bar");
13629
13630   ;
13631   return 0;
13632 }
13633 _ACEOF
13634 rm -f conftest.$ac_objext conftest$ac_exeext
13635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13636   (eval $ac_link) 2>conftest.er1
13637   ac_status=$?
13638   grep -v '^ *+' conftest.er1 >conftest.err
13639   rm -f conftest.er1
13640   cat conftest.err >&5
13641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642   (exit $ac_status); } &&
13643          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
13644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645   (eval $ac_try) 2>&5
13646   ac_status=$?
13647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648   (exit $ac_status); }; } &&
13649          { ac_try='test -s conftest$ac_exeext'
13650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651   (eval $ac_try) 2>&5
13652   ac_status=$?
13653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654   (exit $ac_status); }; }; then
13655   ac_cv_strings_strcasecmp=yes
13656 else
13657   echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13659
13660 ac_cv_strings_strcasecmp=no
13661
13662 fi
13663 rm -f conftest.err conftest.$ac_objext \
13664       conftest$ac_exeext conftest.$ac_ext
13665
13666 fi
13667 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13668 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13669
13670           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
13671               cat >>confdefs.h <<\_ACEOF
13672 #define HAVE_STRCASECMP_IN_STRINGS_H 1
13673 _ACEOF
13674
13675           else
13676               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13677 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13678    { (exit 1); exit 1; }; }
13679           fi
13680       fi
13681
13682       ac_ext=c
13683 ac_cpp='$CPP $CPPFLAGS'
13684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13687
13688         ;;
13689 esac
13690
13691
13692 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13693 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13694 if test "${ac_cv_header_stdc+set}" = set; then
13695   echo $ECHO_N "(cached) $ECHO_C" >&6
13696 else
13697   cat >conftest.$ac_ext <<_ACEOF
13698 /* confdefs.h.  */
13699 _ACEOF
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h.  */
13703 #include <stdlib.h>
13704 #include <stdarg.h>
13705 #include <string.h>
13706 #include <float.h>
13707
13708 int
13709 main ()
13710 {
13711
13712   ;
13713   return 0;
13714 }
13715 _ACEOF
13716 rm -f conftest.$ac_objext
13717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13718   (eval $ac_compile) 2>conftest.er1
13719   ac_status=$?
13720   grep -v '^ *+' conftest.er1 >conftest.err
13721   rm -f conftest.er1
13722   cat conftest.err >&5
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); } &&
13725          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727   (eval $ac_try) 2>&5
13728   ac_status=$?
13729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730   (exit $ac_status); }; } &&
13731          { ac_try='test -s conftest.$ac_objext'
13732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733   (eval $ac_try) 2>&5
13734   ac_status=$?
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); }; }; then
13737   ac_cv_header_stdc=yes
13738 else
13739   echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13741
13742 ac_cv_header_stdc=no
13743 fi
13744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13745
13746 if test $ac_cv_header_stdc = yes; then
13747   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13748   cat >conftest.$ac_ext <<_ACEOF
13749 /* confdefs.h.  */
13750 _ACEOF
13751 cat confdefs.h >>conftest.$ac_ext
13752 cat >>conftest.$ac_ext <<_ACEOF
13753 /* end confdefs.h.  */
13754 #include <string.h>
13755
13756 _ACEOF
13757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13758   $EGREP "memchr" >/dev/null 2>&1; then
13759   :
13760 else
13761   ac_cv_header_stdc=no
13762 fi
13763 rm -f conftest*
13764
13765 fi
13766
13767 if test $ac_cv_header_stdc = yes; then
13768   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13769   cat >conftest.$ac_ext <<_ACEOF
13770 /* confdefs.h.  */
13771 _ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h.  */
13775 #include <stdlib.h>
13776
13777 _ACEOF
13778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13779   $EGREP "free" >/dev/null 2>&1; then
13780   :
13781 else
13782   ac_cv_header_stdc=no
13783 fi
13784 rm -f conftest*
13785
13786 fi
13787
13788 if test $ac_cv_header_stdc = yes; then
13789   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13790   if test "$cross_compiling" = yes; then
13791   :
13792 else
13793   cat >conftest.$ac_ext <<_ACEOF
13794 /* confdefs.h.  */
13795 _ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h.  */
13799 #include <ctype.h>
13800 #if ((' ' & 0x0FF) == 0x020)
13801 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13802 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13803 #else
13804 # define ISLOWER(c) \
13805                    (('a' <= (c) && (c) <= 'i') \
13806                      || ('j' <= (c) && (c) <= 'r') \
13807                      || ('s' <= (c) && (c) <= 'z'))
13808 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13809 #endif
13810
13811 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13812 int
13813 main ()
13814 {
13815   int i;
13816   for (i = 0; i < 256; i++)
13817     if (XOR (islower (i), ISLOWER (i))
13818         || toupper (i) != TOUPPER (i))
13819       exit(2);
13820   exit (0);
13821 }
13822 _ACEOF
13823 rm -f conftest$ac_exeext
13824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13825   (eval $ac_link) 2>&5
13826   ac_status=$?
13827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830   (eval $ac_try) 2>&5
13831   ac_status=$?
13832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833   (exit $ac_status); }; }; then
13834   :
13835 else
13836   echo "$as_me: program exited with status $ac_status" >&5
13837 echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13839
13840 ( exit $ac_status )
13841 ac_cv_header_stdc=no
13842 fi
13843 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13844 fi
13845 fi
13846 fi
13847 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13848 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13849 if test $ac_cv_header_stdc = yes; then
13850
13851 cat >>confdefs.h <<\_ACEOF
13852 #define STDC_HEADERS 1
13853 _ACEOF
13854
13855 fi
13856
13857 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
13868                   inttypes.h stdint.h unistd.h
13869 do
13870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13871 echo "$as_me:$LINENO: checking for $ac_header" >&5
13872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13874   echo $ECHO_N "(cached) $ECHO_C" >&6
13875 else
13876   cat >conftest.$ac_ext <<_ACEOF
13877 /* confdefs.h.  */
13878 _ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h.  */
13882 $ac_includes_default
13883
13884 #include <$ac_header>
13885 _ACEOF
13886 rm -f conftest.$ac_objext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13888   (eval $ac_compile) 2>conftest.er1
13889   ac_status=$?
13890   grep -v '^ *+' conftest.er1 >conftest.err
13891   rm -f conftest.er1
13892   cat conftest.err >&5
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); } &&
13895          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897   (eval $ac_try) 2>&5
13898   ac_status=$?
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); }; } &&
13901          { ac_try='test -s conftest.$ac_objext'
13902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903   (eval $ac_try) 2>&5
13904   ac_status=$?
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); }; }; then
13907   eval "$as_ac_Header=yes"
13908 else
13909   echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13911
13912 eval "$as_ac_Header=no"
13913 fi
13914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13915 fi
13916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13919   cat >>confdefs.h <<_ACEOF
13920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13921 _ACEOF
13922
13923 fi
13924
13925 done
13926
13927
13928
13929 for ac_header in stdlib.h
13930 do
13931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13933   echo "$as_me:$LINENO: checking for $ac_header" >&5
13934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13936   echo $ECHO_N "(cached) $ECHO_C" >&6
13937 fi
13938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13940 else
13941   # Is the header compilable?
13942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13944 cat >conftest.$ac_ext <<_ACEOF
13945 /* confdefs.h.  */
13946 _ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h.  */
13950 $ac_includes_default
13951 #include <$ac_header>
13952 _ACEOF
13953 rm -f conftest.$ac_objext
13954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13955   (eval $ac_compile) 2>conftest.er1
13956   ac_status=$?
13957   grep -v '^ *+' conftest.er1 >conftest.err
13958   rm -f conftest.er1
13959   cat conftest.err >&5
13960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961   (exit $ac_status); } &&
13962          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964   (eval $ac_try) 2>&5
13965   ac_status=$?
13966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967   (exit $ac_status); }; } &&
13968          { ac_try='test -s conftest.$ac_objext'
13969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970   (eval $ac_try) 2>&5
13971   ac_status=$?
13972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973   (exit $ac_status); }; }; then
13974   ac_header_compiler=yes
13975 else
13976   echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13978
13979 ac_header_compiler=no
13980 fi
13981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13983 echo "${ECHO_T}$ac_header_compiler" >&6
13984
13985 # Is the header present?
13986 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13988 cat >conftest.$ac_ext <<_ACEOF
13989 /* confdefs.h.  */
13990 _ACEOF
13991 cat confdefs.h >>conftest.$ac_ext
13992 cat >>conftest.$ac_ext <<_ACEOF
13993 /* end confdefs.h.  */
13994 #include <$ac_header>
13995 _ACEOF
13996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13997   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13998   ac_status=$?
13999   grep -v '^ *+' conftest.er1 >conftest.err
14000   rm -f conftest.er1
14001   cat conftest.err >&5
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); } >/dev/null; then
14004   if test -s conftest.err; then
14005     ac_cpp_err=$ac_c_preproc_warn_flag
14006     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14007   else
14008     ac_cpp_err=
14009   fi
14010 else
14011   ac_cpp_err=yes
14012 fi
14013 if test -z "$ac_cpp_err"; then
14014   ac_header_preproc=yes
14015 else
14016   echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14018
14019   ac_header_preproc=no
14020 fi
14021 rm -f conftest.err conftest.$ac_ext
14022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14023 echo "${ECHO_T}$ac_header_preproc" >&6
14024
14025 # So?  What about this header?
14026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14027   yes:no: )
14028     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14032     ac_header_preproc=yes
14033     ;;
14034   no:yes:* )
14035     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14037     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14038 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14039     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14041     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14042 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14045     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14047     (
14048       cat <<\_ASBOX
14049 ## ----------------------------------------- ##
14050 ## Report this to wx-dev@lists.wxwidgets.org ##
14051 ## ----------------------------------------- ##
14052 _ASBOX
14053     ) |
14054       sed "s/^/$as_me: WARNING:     /" >&2
14055     ;;
14056 esac
14057 echo "$as_me:$LINENO: checking for $ac_header" >&5
14058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14060   echo $ECHO_N "(cached) $ECHO_C" >&6
14061 else
14062   eval "$as_ac_Header=\$ac_header_preproc"
14063 fi
14064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14066
14067 fi
14068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14069   cat >>confdefs.h <<_ACEOF
14070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14071 _ACEOF
14072
14073 fi
14074
14075 done
14076
14077
14078 for ac_header in malloc.h
14079 do
14080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14082   echo "$as_me:$LINENO: checking for $ac_header" >&5
14083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14085   echo $ECHO_N "(cached) $ECHO_C" >&6
14086 fi
14087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14089 else
14090   # Is the header compilable?
14091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14093 cat >conftest.$ac_ext <<_ACEOF
14094 /* confdefs.h.  */
14095 _ACEOF
14096 cat confdefs.h >>conftest.$ac_ext
14097 cat >>conftest.$ac_ext <<_ACEOF
14098 /* end confdefs.h.  */
14099 $ac_includes_default
14100 #include <$ac_header>
14101 _ACEOF
14102 rm -f conftest.$ac_objext
14103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14104   (eval $ac_compile) 2>conftest.er1
14105   ac_status=$?
14106   grep -v '^ *+' conftest.er1 >conftest.err
14107   rm -f conftest.er1
14108   cat conftest.err >&5
14109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110   (exit $ac_status); } &&
14111          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113   (eval $ac_try) 2>&5
14114   ac_status=$?
14115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116   (exit $ac_status); }; } &&
14117          { ac_try='test -s conftest.$ac_objext'
14118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119   (eval $ac_try) 2>&5
14120   ac_status=$?
14121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122   (exit $ac_status); }; }; then
14123   ac_header_compiler=yes
14124 else
14125   echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14127
14128 ac_header_compiler=no
14129 fi
14130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14132 echo "${ECHO_T}$ac_header_compiler" >&6
14133
14134 # Is the header present?
14135 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14137 cat >conftest.$ac_ext <<_ACEOF
14138 /* confdefs.h.  */
14139 _ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h.  */
14143 #include <$ac_header>
14144 _ACEOF
14145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14147   ac_status=$?
14148   grep -v '^ *+' conftest.er1 >conftest.err
14149   rm -f conftest.er1
14150   cat conftest.err >&5
14151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152   (exit $ac_status); } >/dev/null; then
14153   if test -s conftest.err; then
14154     ac_cpp_err=$ac_c_preproc_warn_flag
14155     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14156   else
14157     ac_cpp_err=
14158   fi
14159 else
14160   ac_cpp_err=yes
14161 fi
14162 if test -z "$ac_cpp_err"; then
14163   ac_header_preproc=yes
14164 else
14165   echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.$ac_ext >&5
14167
14168   ac_header_preproc=no
14169 fi
14170 rm -f conftest.err conftest.$ac_ext
14171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14172 echo "${ECHO_T}$ac_header_preproc" >&6
14173
14174 # So?  What about this header?
14175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14176   yes:no: )
14177     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14181     ac_header_preproc=yes
14182     ;;
14183   no:yes:* )
14184     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14186     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14187 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14188     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14190     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14191 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14194     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14196     (
14197       cat <<\_ASBOX
14198 ## ----------------------------------------- ##
14199 ## Report this to wx-dev@lists.wxwidgets.org ##
14200 ## ----------------------------------------- ##
14201 _ASBOX
14202     ) |
14203       sed "s/^/$as_me: WARNING:     /" >&2
14204     ;;
14205 esac
14206 echo "$as_me:$LINENO: checking for $ac_header" >&5
14207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14209   echo $ECHO_N "(cached) $ECHO_C" >&6
14210 else
14211   eval "$as_ac_Header=\$ac_header_preproc"
14212 fi
14213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14215
14216 fi
14217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14218   cat >>confdefs.h <<_ACEOF
14219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14220 _ACEOF
14221
14222 fi
14223
14224 done
14225
14226
14227 for ac_header in unistd.h
14228 do
14229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14231   echo "$as_me:$LINENO: checking for $ac_header" >&5
14232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14234   echo $ECHO_N "(cached) $ECHO_C" >&6
14235 fi
14236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14238 else
14239   # Is the header compilable?
14240 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14242 cat >conftest.$ac_ext <<_ACEOF
14243 /* confdefs.h.  */
14244 _ACEOF
14245 cat confdefs.h >>conftest.$ac_ext
14246 cat >>conftest.$ac_ext <<_ACEOF
14247 /* end confdefs.h.  */
14248 $ac_includes_default
14249 #include <$ac_header>
14250 _ACEOF
14251 rm -f conftest.$ac_objext
14252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14253   (eval $ac_compile) 2>conftest.er1
14254   ac_status=$?
14255   grep -v '^ *+' conftest.er1 >conftest.err
14256   rm -f conftest.er1
14257   cat conftest.err >&5
14258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); } &&
14260          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262   (eval $ac_try) 2>&5
14263   ac_status=$?
14264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); }; } &&
14266          { ac_try='test -s conftest.$ac_objext'
14267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268   (eval $ac_try) 2>&5
14269   ac_status=$?
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); }; }; then
14272   ac_header_compiler=yes
14273 else
14274   echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14276
14277 ac_header_compiler=no
14278 fi
14279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14281 echo "${ECHO_T}$ac_header_compiler" >&6
14282
14283 # Is the header present?
14284 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14286 cat >conftest.$ac_ext <<_ACEOF
14287 /* confdefs.h.  */
14288 _ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h.  */
14292 #include <$ac_header>
14293 _ACEOF
14294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14295   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14296   ac_status=$?
14297   grep -v '^ *+' conftest.er1 >conftest.err
14298   rm -f conftest.er1
14299   cat conftest.err >&5
14300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301   (exit $ac_status); } >/dev/null; then
14302   if test -s conftest.err; then
14303     ac_cpp_err=$ac_c_preproc_warn_flag
14304     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14305   else
14306     ac_cpp_err=
14307   fi
14308 else
14309   ac_cpp_err=yes
14310 fi
14311 if test -z "$ac_cpp_err"; then
14312   ac_header_preproc=yes
14313 else
14314   echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14316
14317   ac_header_preproc=no
14318 fi
14319 rm -f conftest.err conftest.$ac_ext
14320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14321 echo "${ECHO_T}$ac_header_preproc" >&6
14322
14323 # So?  What about this header?
14324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14325   yes:no: )
14326     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14330     ac_header_preproc=yes
14331     ;;
14332   no:yes:* )
14333     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14335     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14336 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14337     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14339     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14340 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14343     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14345     (
14346       cat <<\_ASBOX
14347 ## ----------------------------------------- ##
14348 ## Report this to wx-dev@lists.wxwidgets.org ##
14349 ## ----------------------------------------- ##
14350 _ASBOX
14351     ) |
14352       sed "s/^/$as_me: WARNING:     /" >&2
14353     ;;
14354 esac
14355 echo "$as_me:$LINENO: checking for $ac_header" >&5
14356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14358   echo $ECHO_N "(cached) $ECHO_C" >&6
14359 else
14360   eval "$as_ac_Header=\$ac_header_preproc"
14361 fi
14362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14364
14365 fi
14366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14367   cat >>confdefs.h <<_ACEOF
14368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14369 _ACEOF
14370
14371 fi
14372
14373 done
14374
14375
14376 for ac_header in wchar.h
14377 do
14378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14380   echo "$as_me:$LINENO: checking for $ac_header" >&5
14381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14383   echo $ECHO_N "(cached) $ECHO_C" >&6
14384 fi
14385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14387 else
14388   # Is the header compilable?
14389 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14391 cat >conftest.$ac_ext <<_ACEOF
14392 /* confdefs.h.  */
14393 _ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h.  */
14397 $ac_includes_default
14398 #include <$ac_header>
14399 _ACEOF
14400 rm -f conftest.$ac_objext
14401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14402   (eval $ac_compile) 2>conftest.er1
14403   ac_status=$?
14404   grep -v '^ *+' conftest.er1 >conftest.err
14405   rm -f conftest.er1
14406   cat conftest.err >&5
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); } &&
14409          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411   (eval $ac_try) 2>&5
14412   ac_status=$?
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); }; } &&
14415          { ac_try='test -s conftest.$ac_objext'
14416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417   (eval $ac_try) 2>&5
14418   ac_status=$?
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); }; }; then
14421   ac_header_compiler=yes
14422 else
14423   echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14425
14426 ac_header_compiler=no
14427 fi
14428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14430 echo "${ECHO_T}$ac_header_compiler" >&6
14431
14432 # Is the header present?
14433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14435 cat >conftest.$ac_ext <<_ACEOF
14436 /* confdefs.h.  */
14437 _ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h.  */
14441 #include <$ac_header>
14442 _ACEOF
14443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14444   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14445   ac_status=$?
14446   grep -v '^ *+' conftest.er1 >conftest.err
14447   rm -f conftest.er1
14448   cat conftest.err >&5
14449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450   (exit $ac_status); } >/dev/null; then
14451   if test -s conftest.err; then
14452     ac_cpp_err=$ac_c_preproc_warn_flag
14453     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14454   else
14455     ac_cpp_err=
14456   fi
14457 else
14458   ac_cpp_err=yes
14459 fi
14460 if test -z "$ac_cpp_err"; then
14461   ac_header_preproc=yes
14462 else
14463   echo "$as_me: failed program was:" >&5
14464 sed 's/^/| /' conftest.$ac_ext >&5
14465
14466   ac_header_preproc=no
14467 fi
14468 rm -f conftest.err conftest.$ac_ext
14469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14470 echo "${ECHO_T}$ac_header_preproc" >&6
14471
14472 # So?  What about this header?
14473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14474   yes:no: )
14475     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14479     ac_header_preproc=yes
14480     ;;
14481   no:yes:* )
14482     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14484     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14485 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14486     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14488     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14489 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14492     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14494     (
14495       cat <<\_ASBOX
14496 ## ----------------------------------------- ##
14497 ## Report this to wx-dev@lists.wxwidgets.org ##
14498 ## ----------------------------------------- ##
14499 _ASBOX
14500     ) |
14501       sed "s/^/$as_me: WARNING:     /" >&2
14502     ;;
14503 esac
14504 echo "$as_me:$LINENO: checking for $ac_header" >&5
14505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14507   echo $ECHO_N "(cached) $ECHO_C" >&6
14508 else
14509   eval "$as_ac_Header=\$ac_header_preproc"
14510 fi
14511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14513
14514 fi
14515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14516   cat >>confdefs.h <<_ACEOF
14517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14518 _ACEOF
14519
14520 fi
14521
14522 done
14523
14524
14525 if test "$ac_cv_header_wchar_h" != "yes"; then
14526
14527 for ac_header in wcstr.h
14528 do
14529 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14531   echo "$as_me:$LINENO: checking for $ac_header" >&5
14532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14534   echo $ECHO_N "(cached) $ECHO_C" >&6
14535 fi
14536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14538 else
14539   # Is the header compilable?
14540 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14541 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14542 cat >conftest.$ac_ext <<_ACEOF
14543 /* confdefs.h.  */
14544 _ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h.  */
14548 $ac_includes_default
14549 #include <$ac_header>
14550 _ACEOF
14551 rm -f conftest.$ac_objext
14552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14553   (eval $ac_compile) 2>conftest.er1
14554   ac_status=$?
14555   grep -v '^ *+' conftest.er1 >conftest.err
14556   rm -f conftest.er1
14557   cat conftest.err >&5
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); } &&
14560          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562   (eval $ac_try) 2>&5
14563   ac_status=$?
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); }; } &&
14566          { ac_try='test -s conftest.$ac_objext'
14567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568   (eval $ac_try) 2>&5
14569   ac_status=$?
14570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571   (exit $ac_status); }; }; then
14572   ac_header_compiler=yes
14573 else
14574   echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14576
14577 ac_header_compiler=no
14578 fi
14579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14580 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14581 echo "${ECHO_T}$ac_header_compiler" >&6
14582
14583 # Is the header present?
14584 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14586 cat >conftest.$ac_ext <<_ACEOF
14587 /* confdefs.h.  */
14588 _ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h.  */
14592 #include <$ac_header>
14593 _ACEOF
14594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14595   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14596   ac_status=$?
14597   grep -v '^ *+' conftest.er1 >conftest.err
14598   rm -f conftest.er1
14599   cat conftest.err >&5
14600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601   (exit $ac_status); } >/dev/null; then
14602   if test -s conftest.err; then
14603     ac_cpp_err=$ac_c_preproc_warn_flag
14604     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14605   else
14606     ac_cpp_err=
14607   fi
14608 else
14609   ac_cpp_err=yes
14610 fi
14611 if test -z "$ac_cpp_err"; then
14612   ac_header_preproc=yes
14613 else
14614   echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14616
14617   ac_header_preproc=no
14618 fi
14619 rm -f conftest.err conftest.$ac_ext
14620 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14621 echo "${ECHO_T}$ac_header_preproc" >&6
14622
14623 # So?  What about this header?
14624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14625   yes:no: )
14626     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14628     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14630     ac_header_preproc=yes
14631     ;;
14632   no:yes:* )
14633     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14635     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14636 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14637     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14639     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14640 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14641     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14643     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14645     (
14646       cat <<\_ASBOX
14647 ## ----------------------------------------- ##
14648 ## Report this to wx-dev@lists.wxwidgets.org ##
14649 ## ----------------------------------------- ##
14650 _ASBOX
14651     ) |
14652       sed "s/^/$as_me: WARNING:     /" >&2
14653     ;;
14654 esac
14655 echo "$as_me:$LINENO: checking for $ac_header" >&5
14656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14658   echo $ECHO_N "(cached) $ECHO_C" >&6
14659 else
14660   eval "$as_ac_Header=\$ac_header_preproc"
14661 fi
14662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14664
14665 fi
14666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14667   cat >>confdefs.h <<_ACEOF
14668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14669 _ACEOF
14670
14671 fi
14672
14673 done
14674
14675 fi
14676
14677
14678 for ac_header in fnmatch.h
14679 do
14680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14682   echo "$as_me:$LINENO: checking for $ac_header" >&5
14683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14685   echo $ECHO_N "(cached) $ECHO_C" >&6
14686 fi
14687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14689 else
14690   # Is the header compilable?
14691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14693 cat >conftest.$ac_ext <<_ACEOF
14694 /* confdefs.h.  */
14695 _ACEOF
14696 cat confdefs.h >>conftest.$ac_ext
14697 cat >>conftest.$ac_ext <<_ACEOF
14698 /* end confdefs.h.  */
14699 $ac_includes_default
14700 #include <$ac_header>
14701 _ACEOF
14702 rm -f conftest.$ac_objext
14703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14704   (eval $ac_compile) 2>conftest.er1
14705   ac_status=$?
14706   grep -v '^ *+' conftest.er1 >conftest.err
14707   rm -f conftest.er1
14708   cat conftest.err >&5
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); } &&
14711          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713   (eval $ac_try) 2>&5
14714   ac_status=$?
14715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716   (exit $ac_status); }; } &&
14717          { ac_try='test -s conftest.$ac_objext'
14718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719   (eval $ac_try) 2>&5
14720   ac_status=$?
14721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722   (exit $ac_status); }; }; then
14723   ac_header_compiler=yes
14724 else
14725   echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14727
14728 ac_header_compiler=no
14729 fi
14730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14732 echo "${ECHO_T}$ac_header_compiler" >&6
14733
14734 # Is the header present?
14735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14737 cat >conftest.$ac_ext <<_ACEOF
14738 /* confdefs.h.  */
14739 _ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h.  */
14743 #include <$ac_header>
14744 _ACEOF
14745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14746   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14747   ac_status=$?
14748   grep -v '^ *+' conftest.er1 >conftest.err
14749   rm -f conftest.er1
14750   cat conftest.err >&5
14751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); } >/dev/null; then
14753   if test -s conftest.err; then
14754     ac_cpp_err=$ac_c_preproc_warn_flag
14755     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14756   else
14757     ac_cpp_err=
14758   fi
14759 else
14760   ac_cpp_err=yes
14761 fi
14762 if test -z "$ac_cpp_err"; then
14763   ac_header_preproc=yes
14764 else
14765   echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14767
14768   ac_header_preproc=no
14769 fi
14770 rm -f conftest.err conftest.$ac_ext
14771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14772 echo "${ECHO_T}$ac_header_preproc" >&6
14773
14774 # So?  What about this header?
14775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14776   yes:no: )
14777     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14781     ac_header_preproc=yes
14782     ;;
14783   no:yes:* )
14784     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14786     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14787 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14788     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14790     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14791 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14794     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14796     (
14797       cat <<\_ASBOX
14798 ## ----------------------------------------- ##
14799 ## Report this to wx-dev@lists.wxwidgets.org ##
14800 ## ----------------------------------------- ##
14801 _ASBOX
14802     ) |
14803       sed "s/^/$as_me: WARNING:     /" >&2
14804     ;;
14805 esac
14806 echo "$as_me:$LINENO: checking for $ac_header" >&5
14807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14809   echo $ECHO_N "(cached) $ECHO_C" >&6
14810 else
14811   eval "$as_ac_Header=\$ac_header_preproc"
14812 fi
14813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14815
14816 fi
14817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14818   cat >>confdefs.h <<_ACEOF
14819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14820 _ACEOF
14821
14822 fi
14823
14824 done
14825
14826
14827 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14828
14829 for ac_func in fnmatch
14830 do
14831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14832 echo "$as_me:$LINENO: checking for $ac_func" >&5
14833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14834 if eval "test \"\${$as_ac_var+set}\" = set"; then
14835   echo $ECHO_N "(cached) $ECHO_C" >&6
14836 else
14837   cat >conftest.$ac_ext <<_ACEOF
14838 /* confdefs.h.  */
14839 _ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h.  */
14843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14845 #define $ac_func innocuous_$ac_func
14846
14847 /* System header to define __stub macros and hopefully few prototypes,
14848     which can conflict with char $ac_func (); below.
14849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14850     <limits.h> exists even on freestanding compilers.  */
14851
14852 #ifdef __STDC__
14853 # include <limits.h>
14854 #else
14855 # include <assert.h>
14856 #endif
14857
14858 #undef $ac_func
14859
14860 /* Override any gcc2 internal prototype to avoid an error.  */
14861 #ifdef __cplusplus
14862 extern "C"
14863 {
14864 #endif
14865 /* We use char because int might match the return type of a gcc2
14866    builtin and then its argument prototype would still apply.  */
14867 char $ac_func ();
14868 /* The GNU C library defines this for functions which it implements
14869     to always fail with ENOSYS.  Some functions are actually named
14870     something starting with __ and the normal name is an alias.  */
14871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14872 choke me
14873 #else
14874 char (*f) () = $ac_func;
14875 #endif
14876 #ifdef __cplusplus
14877 }
14878 #endif
14879
14880 int
14881 main ()
14882 {
14883 return f != $ac_func;
14884   ;
14885   return 0;
14886 }
14887 _ACEOF
14888 rm -f conftest.$ac_objext conftest$ac_exeext
14889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14890   (eval $ac_link) 2>conftest.er1
14891   ac_status=$?
14892   grep -v '^ *+' conftest.er1 >conftest.err
14893   rm -f conftest.er1
14894   cat conftest.err >&5
14895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); } &&
14897          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899   (eval $ac_try) 2>&5
14900   ac_status=$?
14901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902   (exit $ac_status); }; } &&
14903          { ac_try='test -s conftest$ac_exeext'
14904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905   (eval $ac_try) 2>&5
14906   ac_status=$?
14907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908   (exit $ac_status); }; }; then
14909   eval "$as_ac_var=yes"
14910 else
14911   echo "$as_me: failed program was:" >&5
14912 sed 's/^/| /' conftest.$ac_ext >&5
14913
14914 eval "$as_ac_var=no"
14915 fi
14916 rm -f conftest.err conftest.$ac_objext \
14917       conftest$ac_exeext conftest.$ac_ext
14918 fi
14919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14921 if test `eval echo '${'$as_ac_var'}'` = yes; then
14922   cat >>confdefs.h <<_ACEOF
14923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14924 _ACEOF
14925
14926 fi
14927 done
14928
14929 fi
14930
14931
14932 for ac_header in langinfo.h
14933 do
14934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14936   echo "$as_me:$LINENO: checking for $ac_header" >&5
14937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14939   echo $ECHO_N "(cached) $ECHO_C" >&6
14940 fi
14941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14943 else
14944   # Is the header compilable?
14945 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14947 cat >conftest.$ac_ext <<_ACEOF
14948 /* confdefs.h.  */
14949 _ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h.  */
14953 $ac_includes_default
14954 #include <$ac_header>
14955 _ACEOF
14956 rm -f conftest.$ac_objext
14957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14958   (eval $ac_compile) 2>conftest.er1
14959   ac_status=$?
14960   grep -v '^ *+' conftest.er1 >conftest.err
14961   rm -f conftest.er1
14962   cat conftest.err >&5
14963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964   (exit $ac_status); } &&
14965          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967   (eval $ac_try) 2>&5
14968   ac_status=$?
14969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); }; } &&
14971          { ac_try='test -s conftest.$ac_objext'
14972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973   (eval $ac_try) 2>&5
14974   ac_status=$?
14975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976   (exit $ac_status); }; }; then
14977   ac_header_compiler=yes
14978 else
14979   echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14981
14982 ac_header_compiler=no
14983 fi
14984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14985 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14986 echo "${ECHO_T}$ac_header_compiler" >&6
14987
14988 # Is the header present?
14989 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14991 cat >conftest.$ac_ext <<_ACEOF
14992 /* confdefs.h.  */
14993 _ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h.  */
14997 #include <$ac_header>
14998 _ACEOF
14999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15000   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15001   ac_status=$?
15002   grep -v '^ *+' conftest.er1 >conftest.err
15003   rm -f conftest.er1
15004   cat conftest.err >&5
15005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006   (exit $ac_status); } >/dev/null; then
15007   if test -s conftest.err; then
15008     ac_cpp_err=$ac_c_preproc_warn_flag
15009     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15010   else
15011     ac_cpp_err=
15012   fi
15013 else
15014   ac_cpp_err=yes
15015 fi
15016 if test -z "$ac_cpp_err"; then
15017   ac_header_preproc=yes
15018 else
15019   echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15021
15022   ac_header_preproc=no
15023 fi
15024 rm -f conftest.err conftest.$ac_ext
15025 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15026 echo "${ECHO_T}$ac_header_preproc" >&6
15027
15028 # So?  What about this header?
15029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15030   yes:no: )
15031     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15035     ac_header_preproc=yes
15036     ;;
15037   no:yes:* )
15038     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15040     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15041 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15042     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15044     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15045 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15048     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15050     (
15051       cat <<\_ASBOX
15052 ## ----------------------------------------- ##
15053 ## Report this to wx-dev@lists.wxwidgets.org ##
15054 ## ----------------------------------------- ##
15055 _ASBOX
15056     ) |
15057       sed "s/^/$as_me: WARNING:     /" >&2
15058     ;;
15059 esac
15060 echo "$as_me:$LINENO: checking for $ac_header" >&5
15061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15063   echo $ECHO_N "(cached) $ECHO_C" >&6
15064 else
15065   eval "$as_ac_Header=\$ac_header_preproc"
15066 fi
15067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15069
15070 fi
15071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15072   cat >>confdefs.h <<_ACEOF
15073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15074 _ACEOF
15075
15076 fi
15077
15078 done
15079
15080
15081 case "${host}" in
15082   *-pc-os2_emx | *-pc-os2-emx )
15083                   if test $ac_cv_header_langinfo_h = "yes" \
15084                 -a \(   "$wx_cv_gccversion" = "EMX2" \
15085                      -o "$wx_cv_gccversion" = "EMX3" \
15086                      -o "$wx_cv_gccversion" = "Innotek5" \); then
15087           LIBS="$LIBS -lintl"
15088       fi
15089   ;;
15090 esac
15091
15092 if test "$wxUSE_GUI" = "yes"; then
15093     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15094
15095 for ac_header in X11/Xlib.h
15096 do
15097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15099   echo "$as_me:$LINENO: checking for $ac_header" >&5
15100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15102   echo $ECHO_N "(cached) $ECHO_C" >&6
15103 fi
15104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15106 else
15107   # Is the header compilable?
15108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15110 cat >conftest.$ac_ext <<_ACEOF
15111 /* confdefs.h.  */
15112 _ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h.  */
15116 $ac_includes_default
15117 #include <$ac_header>
15118 _ACEOF
15119 rm -f conftest.$ac_objext
15120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15121   (eval $ac_compile) 2>conftest.er1
15122   ac_status=$?
15123   grep -v '^ *+' conftest.er1 >conftest.err
15124   rm -f conftest.er1
15125   cat conftest.err >&5
15126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127   (exit $ac_status); } &&
15128          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130   (eval $ac_try) 2>&5
15131   ac_status=$?
15132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133   (exit $ac_status); }; } &&
15134          { ac_try='test -s conftest.$ac_objext'
15135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136   (eval $ac_try) 2>&5
15137   ac_status=$?
15138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139   (exit $ac_status); }; }; then
15140   ac_header_compiler=yes
15141 else
15142   echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.$ac_ext >&5
15144
15145 ac_header_compiler=no
15146 fi
15147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15149 echo "${ECHO_T}$ac_header_compiler" >&6
15150
15151 # Is the header present?
15152 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15154 cat >conftest.$ac_ext <<_ACEOF
15155 /* confdefs.h.  */
15156 _ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h.  */
15160 #include <$ac_header>
15161 _ACEOF
15162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15163   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15164   ac_status=$?
15165   grep -v '^ *+' conftest.er1 >conftest.err
15166   rm -f conftest.er1
15167   cat conftest.err >&5
15168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169   (exit $ac_status); } >/dev/null; then
15170   if test -s conftest.err; then
15171     ac_cpp_err=$ac_c_preproc_warn_flag
15172     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15173   else
15174     ac_cpp_err=
15175   fi
15176 else
15177   ac_cpp_err=yes
15178 fi
15179 if test -z "$ac_cpp_err"; then
15180   ac_header_preproc=yes
15181 else
15182   echo "$as_me: failed program was:" >&5
15183 sed 's/^/| /' conftest.$ac_ext >&5
15184
15185   ac_header_preproc=no
15186 fi
15187 rm -f conftest.err conftest.$ac_ext
15188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15189 echo "${ECHO_T}$ac_header_preproc" >&6
15190
15191 # So?  What about this header?
15192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15193   yes:no: )
15194     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15198     ac_header_preproc=yes
15199     ;;
15200   no:yes:* )
15201     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15203     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15204 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15205     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15207     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15208 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15211     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15213     (
15214       cat <<\_ASBOX
15215 ## ----------------------------------------- ##
15216 ## Report this to wx-dev@lists.wxwidgets.org ##
15217 ## ----------------------------------------- ##
15218 _ASBOX
15219     ) |
15220       sed "s/^/$as_me: WARNING:     /" >&2
15221     ;;
15222 esac
15223 echo "$as_me:$LINENO: checking for $ac_header" >&5
15224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15226   echo $ECHO_N "(cached) $ECHO_C" >&6
15227 else
15228   eval "$as_ac_Header=\$ac_header_preproc"
15229 fi
15230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15232
15233 fi
15234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15235   cat >>confdefs.h <<_ACEOF
15236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15237 _ACEOF
15238
15239 fi
15240
15241 done
15242
15243
15244 for ac_header in X11/XKBlib.h
15245 do
15246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15247 echo "$as_me:$LINENO: checking for $ac_header" >&5
15248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15250   echo $ECHO_N "(cached) $ECHO_C" >&6
15251 else
15252   cat >conftest.$ac_ext <<_ACEOF
15253 /* confdefs.h.  */
15254 _ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h.  */
15258
15259                           #if HAVE_X11_XLIB_H
15260                             #include <X11/Xlib.h>
15261                           #endif
15262
15263
15264 #include <$ac_header>
15265 _ACEOF
15266 rm -f conftest.$ac_objext
15267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15268   (eval $ac_compile) 2>conftest.er1
15269   ac_status=$?
15270   grep -v '^ *+' conftest.er1 >conftest.err
15271   rm -f conftest.er1
15272   cat conftest.err >&5
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); } &&
15275          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277   (eval $ac_try) 2>&5
15278   ac_status=$?
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); }; } &&
15281          { ac_try='test -s conftest.$ac_objext'
15282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283   (eval $ac_try) 2>&5
15284   ac_status=$?
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); }; }; then
15287   eval "$as_ac_Header=yes"
15288 else
15289   echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15291
15292 eval "$as_ac_Header=no"
15293 fi
15294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15295 fi
15296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15299   cat >>confdefs.h <<_ACEOF
15300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15301 _ACEOF
15302
15303 fi
15304
15305 done
15306
15307     fi
15308 fi
15309
15310
15311 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15312 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15313 if test "${ac_cv_c_const+set}" = set; then
15314   echo $ECHO_N "(cached) $ECHO_C" >&6
15315 else
15316   cat >conftest.$ac_ext <<_ACEOF
15317 /* confdefs.h.  */
15318 _ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h.  */
15322
15323 int
15324 main ()
15325 {
15326 /* FIXME: Include the comments suggested by Paul. */
15327 #ifndef __cplusplus
15328   /* Ultrix mips cc rejects this.  */
15329   typedef int charset[2];
15330   const charset x;
15331   /* SunOS 4.1.1 cc rejects this.  */
15332   char const *const *ccp;
15333   char **p;
15334   /* NEC SVR4.0.2 mips cc rejects this.  */
15335   struct point {int x, y;};
15336   static struct point const zero = {0,0};
15337   /* AIX XL C 1.02.0.0 rejects this.
15338      It does not let you subtract one const X* pointer from another in
15339      an arm of an if-expression whose if-part is not a constant
15340      expression */
15341   const char *g = "string";
15342   ccp = &g + (g ? g-g : 0);
15343   /* HPUX 7.0 cc rejects these. */
15344   ++ccp;
15345   p = (char**) ccp;
15346   ccp = (char const *const *) p;
15347   { /* SCO 3.2v4 cc rejects this.  */
15348     char *t;
15349     char const *s = 0 ? (char *) 0 : (char const *) 0;
15350
15351     *t++ = 0;
15352   }
15353   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15354     int x[] = {25, 17};
15355     const int *foo = &x[0];
15356     ++foo;
15357   }
15358   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15359     typedef const int *iptr;
15360     iptr p = 0;
15361     ++p;
15362   }
15363   { /* AIX XL C 1.02.0.0 rejects this saying
15364        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15365     struct s { int j; const int *ap[3]; };
15366     struct s *b; b->j = 5;
15367   }
15368   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15369     const int foo = 10;
15370   }
15371 #endif
15372
15373   ;
15374   return 0;
15375 }
15376 _ACEOF
15377 rm -f conftest.$ac_objext
15378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15379   (eval $ac_compile) 2>conftest.er1
15380   ac_status=$?
15381   grep -v '^ *+' conftest.er1 >conftest.err
15382   rm -f conftest.er1
15383   cat conftest.err >&5
15384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385   (exit $ac_status); } &&
15386          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388   (eval $ac_try) 2>&5
15389   ac_status=$?
15390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); }; } &&
15392          { ac_try='test -s conftest.$ac_objext'
15393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394   (eval $ac_try) 2>&5
15395   ac_status=$?
15396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); }; }; then
15398   ac_cv_c_const=yes
15399 else
15400   echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15402
15403 ac_cv_c_const=no
15404 fi
15405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15406 fi
15407 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15408 echo "${ECHO_T}$ac_cv_c_const" >&6
15409 if test $ac_cv_c_const = no; then
15410
15411 cat >>confdefs.h <<\_ACEOF
15412 #define const
15413 _ACEOF
15414
15415 fi
15416
15417 echo "$as_me:$LINENO: checking for inline" >&5
15418 echo $ECHO_N "checking for inline... $ECHO_C" >&6
15419 if test "${ac_cv_c_inline+set}" = set; then
15420   echo $ECHO_N "(cached) $ECHO_C" >&6
15421 else
15422   ac_cv_c_inline=no
15423 for ac_kw in inline __inline__ __inline; do
15424   cat >conftest.$ac_ext <<_ACEOF
15425 /* confdefs.h.  */
15426 _ACEOF
15427 cat confdefs.h >>conftest.$ac_ext
15428 cat >>conftest.$ac_ext <<_ACEOF
15429 /* end confdefs.h.  */
15430 #ifndef __cplusplus
15431 typedef int foo_t;
15432 static $ac_kw foo_t static_foo () {return 0; }
15433 $ac_kw foo_t foo () {return 0; }
15434 #endif
15435
15436 _ACEOF
15437 rm -f conftest.$ac_objext
15438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15439   (eval $ac_compile) 2>conftest.er1
15440   ac_status=$?
15441   grep -v '^ *+' conftest.er1 >conftest.err
15442   rm -f conftest.er1
15443   cat conftest.err >&5
15444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445   (exit $ac_status); } &&
15446          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15448   (eval $ac_try) 2>&5
15449   ac_status=$?
15450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451   (exit $ac_status); }; } &&
15452          { ac_try='test -s conftest.$ac_objext'
15453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454   (eval $ac_try) 2>&5
15455   ac_status=$?
15456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457   (exit $ac_status); }; }; then
15458   ac_cv_c_inline=$ac_kw; break
15459 else
15460   echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15462
15463 fi
15464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15465 done
15466
15467 fi
15468 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15469 echo "${ECHO_T}$ac_cv_c_inline" >&6
15470
15471
15472 case $ac_cv_c_inline in
15473   inline | yes) ;;
15474   *)
15475     case $ac_cv_c_inline in
15476       no) ac_val=;;
15477       *) ac_val=$ac_cv_c_inline;;
15478     esac
15479     cat >>confdefs.h <<_ACEOF
15480 #ifndef __cplusplus
15481 #define inline $ac_val
15482 #endif
15483 _ACEOF
15484     ;;
15485 esac
15486
15487
15488 echo "$as_me:$LINENO: checking for char" >&5
15489 echo $ECHO_N "checking for char... $ECHO_C" >&6
15490 if test "${ac_cv_type_char+set}" = set; then
15491   echo $ECHO_N "(cached) $ECHO_C" >&6
15492 else
15493   cat >conftest.$ac_ext <<_ACEOF
15494 /* confdefs.h.  */
15495 _ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h.  */
15499 $ac_includes_default
15500 int
15501 main ()
15502 {
15503 if ((char *) 0)
15504   return 0;
15505 if (sizeof (char))
15506   return 0;
15507   ;
15508   return 0;
15509 }
15510 _ACEOF
15511 rm -f conftest.$ac_objext
15512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15513   (eval $ac_compile) 2>conftest.er1
15514   ac_status=$?
15515   grep -v '^ *+' conftest.er1 >conftest.err
15516   rm -f conftest.er1
15517   cat conftest.err >&5
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); } &&
15520          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522   (eval $ac_try) 2>&5
15523   ac_status=$?
15524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   (exit $ac_status); }; } &&
15526          { ac_try='test -s conftest.$ac_objext'
15527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528   (eval $ac_try) 2>&5
15529   ac_status=$?
15530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531   (exit $ac_status); }; }; then
15532   ac_cv_type_char=yes
15533 else
15534   echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15536
15537 ac_cv_type_char=no
15538 fi
15539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15540 fi
15541 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15542 echo "${ECHO_T}$ac_cv_type_char" >&6
15543
15544 echo "$as_me:$LINENO: checking size of char" >&5
15545 echo $ECHO_N "checking size of char... $ECHO_C" >&6
15546 if test "${ac_cv_sizeof_char+set}" = set; then
15547   echo $ECHO_N "(cached) $ECHO_C" >&6
15548 else
15549   if test "$ac_cv_type_char" = yes; then
15550   # The cast to unsigned long works around a bug in the HP C Compiler
15551   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15552   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15553   # This bug is HP SR number 8606223364.
15554   if test "$cross_compiling" = yes; then
15555   # Depending upon the size, compute the lo and hi bounds.
15556 cat >conftest.$ac_ext <<_ACEOF
15557 /* confdefs.h.  */
15558 _ACEOF
15559 cat confdefs.h >>conftest.$ac_ext
15560 cat >>conftest.$ac_ext <<_ACEOF
15561 /* end confdefs.h.  */
15562 $ac_includes_default
15563 int
15564 main ()
15565 {
15566 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15567 test_array [0] = 0
15568
15569   ;
15570   return 0;
15571 }
15572 _ACEOF
15573 rm -f conftest.$ac_objext
15574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15575   (eval $ac_compile) 2>conftest.er1
15576   ac_status=$?
15577   grep -v '^ *+' conftest.er1 >conftest.err
15578   rm -f conftest.er1
15579   cat conftest.err >&5
15580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581   (exit $ac_status); } &&
15582          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584   (eval $ac_try) 2>&5
15585   ac_status=$?
15586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587   (exit $ac_status); }; } &&
15588          { ac_try='test -s conftest.$ac_objext'
15589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590   (eval $ac_try) 2>&5
15591   ac_status=$?
15592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593   (exit $ac_status); }; }; then
15594   ac_lo=0 ac_mid=0
15595   while :; do
15596     cat >conftest.$ac_ext <<_ACEOF
15597 /* confdefs.h.  */
15598 _ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h.  */
15602 $ac_includes_default
15603 int
15604 main ()
15605 {
15606 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15607 test_array [0] = 0
15608
15609   ;
15610   return 0;
15611 }
15612 _ACEOF
15613 rm -f conftest.$ac_objext
15614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15615   (eval $ac_compile) 2>conftest.er1
15616   ac_status=$?
15617   grep -v '^ *+' conftest.er1 >conftest.err
15618   rm -f conftest.er1
15619   cat conftest.err >&5
15620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621   (exit $ac_status); } &&
15622          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624   (eval $ac_try) 2>&5
15625   ac_status=$?
15626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627   (exit $ac_status); }; } &&
15628          { ac_try='test -s conftest.$ac_objext'
15629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630   (eval $ac_try) 2>&5
15631   ac_status=$?
15632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); }; }; then
15634   ac_hi=$ac_mid; break
15635 else
15636   echo "$as_me: failed program was:" >&5
15637 sed 's/^/| /' conftest.$ac_ext >&5
15638
15639 ac_lo=`expr $ac_mid + 1`
15640                     if test $ac_lo -le $ac_mid; then
15641                       ac_lo= ac_hi=
15642                       break
15643                     fi
15644                     ac_mid=`expr 2 '*' $ac_mid + 1`
15645 fi
15646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15647   done
15648 else
15649   echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15651
15652 cat >conftest.$ac_ext <<_ACEOF
15653 /* confdefs.h.  */
15654 _ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h.  */
15658 $ac_includes_default
15659 int
15660 main ()
15661 {
15662 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15663 test_array [0] = 0
15664
15665   ;
15666   return 0;
15667 }
15668 _ACEOF
15669 rm -f conftest.$ac_objext
15670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15671   (eval $ac_compile) 2>conftest.er1
15672   ac_status=$?
15673   grep -v '^ *+' conftest.er1 >conftest.err
15674   rm -f conftest.er1
15675   cat conftest.err >&5
15676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677   (exit $ac_status); } &&
15678          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15680   (eval $ac_try) 2>&5
15681   ac_status=$?
15682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683   (exit $ac_status); }; } &&
15684          { ac_try='test -s conftest.$ac_objext'
15685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686   (eval $ac_try) 2>&5
15687   ac_status=$?
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); }; }; then
15690   ac_hi=-1 ac_mid=-1
15691   while :; do
15692     cat >conftest.$ac_ext <<_ACEOF
15693 /* confdefs.h.  */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h.  */
15698 $ac_includes_default
15699 int
15700 main ()
15701 {
15702 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15703 test_array [0] = 0
15704
15705   ;
15706   return 0;
15707 }
15708 _ACEOF
15709 rm -f conftest.$ac_objext
15710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15711   (eval $ac_compile) 2>conftest.er1
15712   ac_status=$?
15713   grep -v '^ *+' conftest.er1 >conftest.err
15714   rm -f conftest.er1
15715   cat conftest.err >&5
15716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717   (exit $ac_status); } &&
15718          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15720   (eval $ac_try) 2>&5
15721   ac_status=$?
15722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723   (exit $ac_status); }; } &&
15724          { ac_try='test -s conftest.$ac_objext'
15725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726   (eval $ac_try) 2>&5
15727   ac_status=$?
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); }; }; then
15730   ac_lo=$ac_mid; break
15731 else
15732   echo "$as_me: failed program was:" >&5
15733 sed 's/^/| /' conftest.$ac_ext >&5
15734
15735 ac_hi=`expr '(' $ac_mid ')' - 1`
15736                        if test $ac_mid -le $ac_hi; then
15737                          ac_lo= ac_hi=
15738                          break
15739                        fi
15740                        ac_mid=`expr 2 '*' $ac_mid`
15741 fi
15742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15743   done
15744 else
15745   echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15747
15748 ac_lo= ac_hi=
15749 fi
15750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15751 fi
15752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15753 # Binary search between lo and hi bounds.
15754 while test "x$ac_lo" != "x$ac_hi"; do
15755   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15756   cat >conftest.$ac_ext <<_ACEOF
15757 /* confdefs.h.  */
15758 _ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h.  */
15762 $ac_includes_default
15763 int
15764 main ()
15765 {
15766 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15767 test_array [0] = 0
15768
15769   ;
15770   return 0;
15771 }
15772 _ACEOF
15773 rm -f conftest.$ac_objext
15774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15775   (eval $ac_compile) 2>conftest.er1
15776   ac_status=$?
15777   grep -v '^ *+' conftest.er1 >conftest.err
15778   rm -f conftest.er1
15779   cat conftest.err >&5
15780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781   (exit $ac_status); } &&
15782          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
15788          { ac_try='test -s conftest.$ac_objext'
15789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15790   (eval $ac_try) 2>&5
15791   ac_status=$?
15792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793   (exit $ac_status); }; }; then
15794   ac_hi=$ac_mid
15795 else
15796   echo "$as_me: failed program was:" >&5
15797 sed 's/^/| /' conftest.$ac_ext >&5
15798
15799 ac_lo=`expr '(' $ac_mid ')' + 1`
15800 fi
15801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15802 done
15803 case $ac_lo in
15804 ?*) ac_cv_sizeof_char=$ac_lo;;
15805 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15806 See \`config.log' for more details." >&5
15807 echo "$as_me: error: cannot compute sizeof (char), 77
15808 See \`config.log' for more details." >&2;}
15809    { (exit 1); exit 1; }; } ;;
15810 esac
15811 else
15812   if test "$cross_compiling" = yes; then
15813   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15814 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
15815    { (exit 1); exit 1; }; }
15816 else
15817   cat >conftest.$ac_ext <<_ACEOF
15818 /* confdefs.h.  */
15819 _ACEOF
15820 cat confdefs.h >>conftest.$ac_ext
15821 cat >>conftest.$ac_ext <<_ACEOF
15822 /* end confdefs.h.  */
15823 $ac_includes_default
15824 long longval () { return (long) (sizeof (char)); }
15825 unsigned long ulongval () { return (long) (sizeof (char)); }
15826 #include <stdio.h>
15827 #include <stdlib.h>
15828 int
15829 main ()
15830 {
15831
15832   FILE *f = fopen ("conftest.val", "w");
15833   if (! f)
15834     exit (1);
15835   if (((long) (sizeof (char))) < 0)
15836     {
15837       long i = longval ();
15838       if (i != ((long) (sizeof (char))))
15839         exit (1);
15840       fprintf (f, "%ld\n", i);
15841     }
15842   else
15843     {
15844       unsigned long i = ulongval ();
15845       if (i != ((long) (sizeof (char))))
15846         exit (1);
15847       fprintf (f, "%lu\n", i);
15848     }
15849   exit (ferror (f) || fclose (f) != 0);
15850
15851   ;
15852   return 0;
15853 }
15854 _ACEOF
15855 rm -f conftest$ac_exeext
15856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15857   (eval $ac_link) 2>&5
15858   ac_status=$?
15859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862   (eval $ac_try) 2>&5
15863   ac_status=$?
15864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865   (exit $ac_status); }; }; then
15866   ac_cv_sizeof_char=`cat conftest.val`
15867 else
15868   echo "$as_me: program exited with status $ac_status" >&5
15869 echo "$as_me: failed program was:" >&5
15870 sed 's/^/| /' conftest.$ac_ext >&5
15871
15872 ( exit $ac_status )
15873 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15874 See \`config.log' for more details." >&5
15875 echo "$as_me: error: cannot compute sizeof (char), 77
15876 See \`config.log' for more details." >&2;}
15877    { (exit 1); exit 1; }; }
15878 fi
15879 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15880 fi
15881 fi
15882 rm -f conftest.val
15883 else
15884   ac_cv_sizeof_char=0
15885 fi
15886 fi
15887 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15888 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15889 cat >>confdefs.h <<_ACEOF
15890 #define SIZEOF_CHAR $ac_cv_sizeof_char
15891 _ACEOF
15892
15893
15894 echo "$as_me:$LINENO: checking for short" >&5
15895 echo $ECHO_N "checking for short... $ECHO_C" >&6
15896 if test "${ac_cv_type_short+set}" = set; then
15897   echo $ECHO_N "(cached) $ECHO_C" >&6
15898 else
15899   cat >conftest.$ac_ext <<_ACEOF
15900 /* confdefs.h.  */
15901 _ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h.  */
15905 $ac_includes_default
15906 int
15907 main ()
15908 {
15909 if ((short *) 0)
15910   return 0;
15911 if (sizeof (short))
15912   return 0;
15913   ;
15914   return 0;
15915 }
15916 _ACEOF
15917 rm -f conftest.$ac_objext
15918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15919   (eval $ac_compile) 2>conftest.er1
15920   ac_status=$?
15921   grep -v '^ *+' conftest.er1 >conftest.err
15922   rm -f conftest.er1
15923   cat conftest.err >&5
15924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); } &&
15926          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928   (eval $ac_try) 2>&5
15929   ac_status=$?
15930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931   (exit $ac_status); }; } &&
15932          { ac_try='test -s conftest.$ac_objext'
15933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934   (eval $ac_try) 2>&5
15935   ac_status=$?
15936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937   (exit $ac_status); }; }; then
15938   ac_cv_type_short=yes
15939 else
15940   echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15942
15943 ac_cv_type_short=no
15944 fi
15945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15946 fi
15947 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15948 echo "${ECHO_T}$ac_cv_type_short" >&6
15949
15950 echo "$as_me:$LINENO: checking size of short" >&5
15951 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15952 if test "${ac_cv_sizeof_short+set}" = set; then
15953   echo $ECHO_N "(cached) $ECHO_C" >&6
15954 else
15955   if test "$ac_cv_type_short" = yes; then
15956   # The cast to unsigned long works around a bug in the HP C Compiler
15957   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15958   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15959   # This bug is HP SR number 8606223364.
15960   if test "$cross_compiling" = yes; then
15961   # Depending upon the size, compute the lo and hi bounds.
15962 cat >conftest.$ac_ext <<_ACEOF
15963 /* confdefs.h.  */
15964 _ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h.  */
15968 $ac_includes_default
15969 int
15970 main ()
15971 {
15972 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15973 test_array [0] = 0
15974
15975   ;
15976   return 0;
15977 }
15978 _ACEOF
15979 rm -f conftest.$ac_objext
15980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15981   (eval $ac_compile) 2>conftest.er1
15982   ac_status=$?
15983   grep -v '^ *+' conftest.er1 >conftest.err
15984   rm -f conftest.er1
15985   cat conftest.err >&5
15986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987   (exit $ac_status); } &&
15988          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15990   (eval $ac_try) 2>&5
15991   ac_status=$?
15992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993   (exit $ac_status); }; } &&
15994          { ac_try='test -s conftest.$ac_objext'
15995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996   (eval $ac_try) 2>&5
15997   ac_status=$?
15998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999   (exit $ac_status); }; }; then
16000   ac_lo=0 ac_mid=0
16001   while :; do
16002     cat >conftest.$ac_ext <<_ACEOF
16003 /* confdefs.h.  */
16004 _ACEOF
16005 cat confdefs.h >>conftest.$ac_ext
16006 cat >>conftest.$ac_ext <<_ACEOF
16007 /* end confdefs.h.  */
16008 $ac_includes_default
16009 int
16010 main ()
16011 {
16012 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16013 test_array [0] = 0
16014
16015   ;
16016   return 0;
16017 }
16018 _ACEOF
16019 rm -f conftest.$ac_objext
16020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16021   (eval $ac_compile) 2>conftest.er1
16022   ac_status=$?
16023   grep -v '^ *+' conftest.er1 >conftest.err
16024   rm -f conftest.er1
16025   cat conftest.err >&5
16026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027   (exit $ac_status); } &&
16028          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030   (eval $ac_try) 2>&5
16031   ac_status=$?
16032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033   (exit $ac_status); }; } &&
16034          { ac_try='test -s conftest.$ac_objext'
16035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036   (eval $ac_try) 2>&5
16037   ac_status=$?
16038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039   (exit $ac_status); }; }; then
16040   ac_hi=$ac_mid; break
16041 else
16042   echo "$as_me: failed program was:" >&5
16043 sed 's/^/| /' conftest.$ac_ext >&5
16044
16045 ac_lo=`expr $ac_mid + 1`
16046                     if test $ac_lo -le $ac_mid; then
16047                       ac_lo= ac_hi=
16048                       break
16049                     fi
16050                     ac_mid=`expr 2 '*' $ac_mid + 1`
16051 fi
16052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16053   done
16054 else
16055   echo "$as_me: failed program was:" >&5
16056 sed 's/^/| /' conftest.$ac_ext >&5
16057
16058 cat >conftest.$ac_ext <<_ACEOF
16059 /* confdefs.h.  */
16060 _ACEOF
16061 cat confdefs.h >>conftest.$ac_ext
16062 cat >>conftest.$ac_ext <<_ACEOF
16063 /* end confdefs.h.  */
16064 $ac_includes_default
16065 int
16066 main ()
16067 {
16068 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16069 test_array [0] = 0
16070
16071   ;
16072   return 0;
16073 }
16074 _ACEOF
16075 rm -f conftest.$ac_objext
16076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16077   (eval $ac_compile) 2>conftest.er1
16078   ac_status=$?
16079   grep -v '^ *+' conftest.er1 >conftest.err
16080   rm -f conftest.er1
16081   cat conftest.err >&5
16082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083   (exit $ac_status); } &&
16084          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086   (eval $ac_try) 2>&5
16087   ac_status=$?
16088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089   (exit $ac_status); }; } &&
16090          { ac_try='test -s conftest.$ac_objext'
16091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092   (eval $ac_try) 2>&5
16093   ac_status=$?
16094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095   (exit $ac_status); }; }; then
16096   ac_hi=-1 ac_mid=-1
16097   while :; do
16098     cat >conftest.$ac_ext <<_ACEOF
16099 /* confdefs.h.  */
16100 _ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h.  */
16104 $ac_includes_default
16105 int
16106 main ()
16107 {
16108 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16109 test_array [0] = 0
16110
16111   ;
16112   return 0;
16113 }
16114 _ACEOF
16115 rm -f conftest.$ac_objext
16116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16117   (eval $ac_compile) 2>conftest.er1
16118   ac_status=$?
16119   grep -v '^ *+' conftest.er1 >conftest.err
16120   rm -f conftest.er1
16121   cat conftest.err >&5
16122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123   (exit $ac_status); } &&
16124          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126   (eval $ac_try) 2>&5
16127   ac_status=$?
16128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129   (exit $ac_status); }; } &&
16130          { ac_try='test -s conftest.$ac_objext'
16131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132   (eval $ac_try) 2>&5
16133   ac_status=$?
16134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135   (exit $ac_status); }; }; then
16136   ac_lo=$ac_mid; break
16137 else
16138   echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.$ac_ext >&5
16140
16141 ac_hi=`expr '(' $ac_mid ')' - 1`
16142                        if test $ac_mid -le $ac_hi; then
16143                          ac_lo= ac_hi=
16144                          break
16145                        fi
16146                        ac_mid=`expr 2 '*' $ac_mid`
16147 fi
16148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16149   done
16150 else
16151   echo "$as_me: failed program was:" >&5
16152 sed 's/^/| /' conftest.$ac_ext >&5
16153
16154 ac_lo= ac_hi=
16155 fi
16156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16157 fi
16158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16159 # Binary search between lo and hi bounds.
16160 while test "x$ac_lo" != "x$ac_hi"; do
16161   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16162   cat >conftest.$ac_ext <<_ACEOF
16163 /* confdefs.h.  */
16164 _ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h.  */
16168 $ac_includes_default
16169 int
16170 main ()
16171 {
16172 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16173 test_array [0] = 0
16174
16175   ;
16176   return 0;
16177 }
16178 _ACEOF
16179 rm -f conftest.$ac_objext
16180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16181   (eval $ac_compile) 2>conftest.er1
16182   ac_status=$?
16183   grep -v '^ *+' conftest.er1 >conftest.err
16184   rm -f conftest.er1
16185   cat conftest.err >&5
16186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187   (exit $ac_status); } &&
16188          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
16194          { ac_try='test -s conftest.$ac_objext'
16195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16196   (eval $ac_try) 2>&5
16197   ac_status=$?
16198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199   (exit $ac_status); }; }; then
16200   ac_hi=$ac_mid
16201 else
16202   echo "$as_me: failed program was:" >&5
16203 sed 's/^/| /' conftest.$ac_ext >&5
16204
16205 ac_lo=`expr '(' $ac_mid ')' + 1`
16206 fi
16207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16208 done
16209 case $ac_lo in
16210 ?*) ac_cv_sizeof_short=$ac_lo;;
16211 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16212 See \`config.log' for more details." >&5
16213 echo "$as_me: error: cannot compute sizeof (short), 77
16214 See \`config.log' for more details." >&2;}
16215    { (exit 1); exit 1; }; } ;;
16216 esac
16217 else
16218   if test "$cross_compiling" = yes; then
16219   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16220 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16221    { (exit 1); exit 1; }; }
16222 else
16223   cat >conftest.$ac_ext <<_ACEOF
16224 /* confdefs.h.  */
16225 _ACEOF
16226 cat confdefs.h >>conftest.$ac_ext
16227 cat >>conftest.$ac_ext <<_ACEOF
16228 /* end confdefs.h.  */
16229 $ac_includes_default
16230 long longval () { return (long) (sizeof (short)); }
16231 unsigned long ulongval () { return (long) (sizeof (short)); }
16232 #include <stdio.h>
16233 #include <stdlib.h>
16234 int
16235 main ()
16236 {
16237
16238   FILE *f = fopen ("conftest.val", "w");
16239   if (! f)
16240     exit (1);
16241   if (((long) (sizeof (short))) < 0)
16242     {
16243       long i = longval ();
16244       if (i != ((long) (sizeof (short))))
16245         exit (1);
16246       fprintf (f, "%ld\n", i);
16247     }
16248   else
16249     {
16250       unsigned long i = ulongval ();
16251       if (i != ((long) (sizeof (short))))
16252         exit (1);
16253       fprintf (f, "%lu\n", i);
16254     }
16255   exit (ferror (f) || fclose (f) != 0);
16256
16257   ;
16258   return 0;
16259 }
16260 _ACEOF
16261 rm -f conftest$ac_exeext
16262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16263   (eval $ac_link) 2>&5
16264   ac_status=$?
16265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268   (eval $ac_try) 2>&5
16269   ac_status=$?
16270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271   (exit $ac_status); }; }; then
16272   ac_cv_sizeof_short=`cat conftest.val`
16273 else
16274   echo "$as_me: program exited with status $ac_status" >&5
16275 echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16277
16278 ( exit $ac_status )
16279 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16280 See \`config.log' for more details." >&5
16281 echo "$as_me: error: cannot compute sizeof (short), 77
16282 See \`config.log' for more details." >&2;}
16283    { (exit 1); exit 1; }; }
16284 fi
16285 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16286 fi
16287 fi
16288 rm -f conftest.val
16289 else
16290   ac_cv_sizeof_short=0
16291 fi
16292 fi
16293 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16294 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16295 cat >>confdefs.h <<_ACEOF
16296 #define SIZEOF_SHORT $ac_cv_sizeof_short
16297 _ACEOF
16298
16299
16300 echo "$as_me:$LINENO: checking for void *" >&5
16301 echo $ECHO_N "checking for void *... $ECHO_C" >&6
16302 if test "${ac_cv_type_void_p+set}" = set; then
16303   echo $ECHO_N "(cached) $ECHO_C" >&6
16304 else
16305   cat >conftest.$ac_ext <<_ACEOF
16306 /* confdefs.h.  */
16307 _ACEOF
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h.  */
16311 $ac_includes_default
16312 int
16313 main ()
16314 {
16315 if ((void * *) 0)
16316   return 0;
16317 if (sizeof (void *))
16318   return 0;
16319   ;
16320   return 0;
16321 }
16322 _ACEOF
16323 rm -f conftest.$ac_objext
16324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16325   (eval $ac_compile) 2>conftest.er1
16326   ac_status=$?
16327   grep -v '^ *+' conftest.er1 >conftest.err
16328   rm -f conftest.er1
16329   cat conftest.err >&5
16330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331   (exit $ac_status); } &&
16332          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334   (eval $ac_try) 2>&5
16335   ac_status=$?
16336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337   (exit $ac_status); }; } &&
16338          { ac_try='test -s conftest.$ac_objext'
16339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340   (eval $ac_try) 2>&5
16341   ac_status=$?
16342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343   (exit $ac_status); }; }; then
16344   ac_cv_type_void_p=yes
16345 else
16346   echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16348
16349 ac_cv_type_void_p=no
16350 fi
16351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16352 fi
16353 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16354 echo "${ECHO_T}$ac_cv_type_void_p" >&6
16355
16356 echo "$as_me:$LINENO: checking size of void *" >&5
16357 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16358 if test "${ac_cv_sizeof_void_p+set}" = set; then
16359   echo $ECHO_N "(cached) $ECHO_C" >&6
16360 else
16361   if test "$ac_cv_type_void_p" = yes; then
16362   # The cast to unsigned long works around a bug in the HP C Compiler
16363   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16364   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16365   # This bug is HP SR number 8606223364.
16366   if test "$cross_compiling" = yes; then
16367   # Depending upon the size, compute the lo and hi bounds.
16368 cat >conftest.$ac_ext <<_ACEOF
16369 /* confdefs.h.  */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h.  */
16374 $ac_includes_default
16375 int
16376 main ()
16377 {
16378 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16379 test_array [0] = 0
16380
16381   ;
16382   return 0;
16383 }
16384 _ACEOF
16385 rm -f conftest.$ac_objext
16386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16387   (eval $ac_compile) 2>conftest.er1
16388   ac_status=$?
16389   grep -v '^ *+' conftest.er1 >conftest.err
16390   rm -f conftest.er1
16391   cat conftest.err >&5
16392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393   (exit $ac_status); } &&
16394          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16396   (eval $ac_try) 2>&5
16397   ac_status=$?
16398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399   (exit $ac_status); }; } &&
16400          { ac_try='test -s conftest.$ac_objext'
16401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402   (eval $ac_try) 2>&5
16403   ac_status=$?
16404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405   (exit $ac_status); }; }; then
16406   ac_lo=0 ac_mid=0
16407   while :; do
16408     cat >conftest.$ac_ext <<_ACEOF
16409 /* confdefs.h.  */
16410 _ACEOF
16411 cat confdefs.h >>conftest.$ac_ext
16412 cat >>conftest.$ac_ext <<_ACEOF
16413 /* end confdefs.h.  */
16414 $ac_includes_default
16415 int
16416 main ()
16417 {
16418 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16419 test_array [0] = 0
16420
16421   ;
16422   return 0;
16423 }
16424 _ACEOF
16425 rm -f conftest.$ac_objext
16426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16427   (eval $ac_compile) 2>conftest.er1
16428   ac_status=$?
16429   grep -v '^ *+' conftest.er1 >conftest.err
16430   rm -f conftest.er1
16431   cat conftest.err >&5
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); } &&
16434          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436   (eval $ac_try) 2>&5
16437   ac_status=$?
16438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439   (exit $ac_status); }; } &&
16440          { ac_try='test -s conftest.$ac_objext'
16441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442   (eval $ac_try) 2>&5
16443   ac_status=$?
16444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445   (exit $ac_status); }; }; then
16446   ac_hi=$ac_mid; break
16447 else
16448   echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16450
16451 ac_lo=`expr $ac_mid + 1`
16452                     if test $ac_lo -le $ac_mid; then
16453                       ac_lo= ac_hi=
16454                       break
16455                     fi
16456                     ac_mid=`expr 2 '*' $ac_mid + 1`
16457 fi
16458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16459   done
16460 else
16461   echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.$ac_ext >&5
16463
16464 cat >conftest.$ac_ext <<_ACEOF
16465 /* confdefs.h.  */
16466 _ACEOF
16467 cat confdefs.h >>conftest.$ac_ext
16468 cat >>conftest.$ac_ext <<_ACEOF
16469 /* end confdefs.h.  */
16470 $ac_includes_default
16471 int
16472 main ()
16473 {
16474 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16475 test_array [0] = 0
16476
16477   ;
16478   return 0;
16479 }
16480 _ACEOF
16481 rm -f conftest.$ac_objext
16482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16483   (eval $ac_compile) 2>conftest.er1
16484   ac_status=$?
16485   grep -v '^ *+' conftest.er1 >conftest.err
16486   rm -f conftest.er1
16487   cat conftest.err >&5
16488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489   (exit $ac_status); } &&
16490          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492   (eval $ac_try) 2>&5
16493   ac_status=$?
16494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495   (exit $ac_status); }; } &&
16496          { ac_try='test -s conftest.$ac_objext'
16497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498   (eval $ac_try) 2>&5
16499   ac_status=$?
16500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501   (exit $ac_status); }; }; then
16502   ac_hi=-1 ac_mid=-1
16503   while :; do
16504     cat >conftest.$ac_ext <<_ACEOF
16505 /* confdefs.h.  */
16506 _ACEOF
16507 cat confdefs.h >>conftest.$ac_ext
16508 cat >>conftest.$ac_ext <<_ACEOF
16509 /* end confdefs.h.  */
16510 $ac_includes_default
16511 int
16512 main ()
16513 {
16514 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16515 test_array [0] = 0
16516
16517   ;
16518   return 0;
16519 }
16520 _ACEOF
16521 rm -f conftest.$ac_objext
16522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16523   (eval $ac_compile) 2>conftest.er1
16524   ac_status=$?
16525   grep -v '^ *+' conftest.er1 >conftest.err
16526   rm -f conftest.er1
16527   cat conftest.err >&5
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); } &&
16530          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532   (eval $ac_try) 2>&5
16533   ac_status=$?
16534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535   (exit $ac_status); }; } &&
16536          { ac_try='test -s conftest.$ac_objext'
16537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538   (eval $ac_try) 2>&5
16539   ac_status=$?
16540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541   (exit $ac_status); }; }; then
16542   ac_lo=$ac_mid; break
16543 else
16544   echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16546
16547 ac_hi=`expr '(' $ac_mid ')' - 1`
16548                        if test $ac_mid -le $ac_hi; then
16549                          ac_lo= ac_hi=
16550                          break
16551                        fi
16552                        ac_mid=`expr 2 '*' $ac_mid`
16553 fi
16554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16555   done
16556 else
16557   echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16559
16560 ac_lo= ac_hi=
16561 fi
16562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16563 fi
16564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16565 # Binary search between lo and hi bounds.
16566 while test "x$ac_lo" != "x$ac_hi"; do
16567   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16568   cat >conftest.$ac_ext <<_ACEOF
16569 /* confdefs.h.  */
16570 _ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h.  */
16574 $ac_includes_default
16575 int
16576 main ()
16577 {
16578 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16579 test_array [0] = 0
16580
16581   ;
16582   return 0;
16583 }
16584 _ACEOF
16585 rm -f conftest.$ac_objext
16586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16587   (eval $ac_compile) 2>conftest.er1
16588   ac_status=$?
16589   grep -v '^ *+' conftest.er1 >conftest.err
16590   rm -f conftest.er1
16591   cat conftest.err >&5
16592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593   (exit $ac_status); } &&
16594          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
16600          { ac_try='test -s conftest.$ac_objext'
16601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602   (eval $ac_try) 2>&5
16603   ac_status=$?
16604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605   (exit $ac_status); }; }; then
16606   ac_hi=$ac_mid
16607 else
16608   echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16610
16611 ac_lo=`expr '(' $ac_mid ')' + 1`
16612 fi
16613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16614 done
16615 case $ac_lo in
16616 ?*) ac_cv_sizeof_void_p=$ac_lo;;
16617 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16618 See \`config.log' for more details." >&5
16619 echo "$as_me: error: cannot compute sizeof (void *), 77
16620 See \`config.log' for more details." >&2;}
16621    { (exit 1); exit 1; }; } ;;
16622 esac
16623 else
16624   if test "$cross_compiling" = yes; then
16625   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16626 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
16627    { (exit 1); exit 1; }; }
16628 else
16629   cat >conftest.$ac_ext <<_ACEOF
16630 /* confdefs.h.  */
16631 _ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h.  */
16635 $ac_includes_default
16636 long longval () { return (long) (sizeof (void *)); }
16637 unsigned long ulongval () { return (long) (sizeof (void *)); }
16638 #include <stdio.h>
16639 #include <stdlib.h>
16640 int
16641 main ()
16642 {
16643
16644   FILE *f = fopen ("conftest.val", "w");
16645   if (! f)
16646     exit (1);
16647   if (((long) (sizeof (void *))) < 0)
16648     {
16649       long i = longval ();
16650       if (i != ((long) (sizeof (void *))))
16651         exit (1);
16652       fprintf (f, "%ld\n", i);
16653     }
16654   else
16655     {
16656       unsigned long i = ulongval ();
16657       if (i != ((long) (sizeof (void *))))
16658         exit (1);
16659       fprintf (f, "%lu\n", i);
16660     }
16661   exit (ferror (f) || fclose (f) != 0);
16662
16663   ;
16664   return 0;
16665 }
16666 _ACEOF
16667 rm -f conftest$ac_exeext
16668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16669   (eval $ac_link) 2>&5
16670   ac_status=$?
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674   (eval $ac_try) 2>&5
16675   ac_status=$?
16676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677   (exit $ac_status); }; }; then
16678   ac_cv_sizeof_void_p=`cat conftest.val`
16679 else
16680   echo "$as_me: program exited with status $ac_status" >&5
16681 echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16683
16684 ( exit $ac_status )
16685 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16686 See \`config.log' for more details." >&5
16687 echo "$as_me: error: cannot compute sizeof (void *), 77
16688 See \`config.log' for more details." >&2;}
16689    { (exit 1); exit 1; }; }
16690 fi
16691 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16692 fi
16693 fi
16694 rm -f conftest.val
16695 else
16696   ac_cv_sizeof_void_p=0
16697 fi
16698 fi
16699 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16700 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16701 cat >>confdefs.h <<_ACEOF
16702 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16703 _ACEOF
16704
16705
16706 echo "$as_me:$LINENO: checking for int" >&5
16707 echo $ECHO_N "checking for int... $ECHO_C" >&6
16708 if test "${ac_cv_type_int+set}" = set; then
16709   echo $ECHO_N "(cached) $ECHO_C" >&6
16710 else
16711   cat >conftest.$ac_ext <<_ACEOF
16712 /* confdefs.h.  */
16713 _ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h.  */
16717 $ac_includes_default
16718 int
16719 main ()
16720 {
16721 if ((int *) 0)
16722   return 0;
16723 if (sizeof (int))
16724   return 0;
16725   ;
16726   return 0;
16727 }
16728 _ACEOF
16729 rm -f conftest.$ac_objext
16730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16731   (eval $ac_compile) 2>conftest.er1
16732   ac_status=$?
16733   grep -v '^ *+' conftest.er1 >conftest.err
16734   rm -f conftest.er1
16735   cat conftest.err >&5
16736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737   (exit $ac_status); } &&
16738          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740   (eval $ac_try) 2>&5
16741   ac_status=$?
16742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743   (exit $ac_status); }; } &&
16744          { ac_try='test -s conftest.$ac_objext'
16745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746   (eval $ac_try) 2>&5
16747   ac_status=$?
16748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749   (exit $ac_status); }; }; then
16750   ac_cv_type_int=yes
16751 else
16752   echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16754
16755 ac_cv_type_int=no
16756 fi
16757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16758 fi
16759 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16760 echo "${ECHO_T}$ac_cv_type_int" >&6
16761
16762 echo "$as_me:$LINENO: checking size of int" >&5
16763 echo $ECHO_N "checking size of int... $ECHO_C" >&6
16764 if test "${ac_cv_sizeof_int+set}" = set; then
16765   echo $ECHO_N "(cached) $ECHO_C" >&6
16766 else
16767   if test "$ac_cv_type_int" = yes; then
16768   # The cast to unsigned long works around a bug in the HP C Compiler
16769   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16770   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16771   # This bug is HP SR number 8606223364.
16772   if test "$cross_compiling" = yes; then
16773   # Depending upon the size, compute the lo and hi bounds.
16774 cat >conftest.$ac_ext <<_ACEOF
16775 /* confdefs.h.  */
16776 _ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h.  */
16780 $ac_includes_default
16781 int
16782 main ()
16783 {
16784 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16785 test_array [0] = 0
16786
16787   ;
16788   return 0;
16789 }
16790 _ACEOF
16791 rm -f conftest.$ac_objext
16792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16793   (eval $ac_compile) 2>conftest.er1
16794   ac_status=$?
16795   grep -v '^ *+' conftest.er1 >conftest.err
16796   rm -f conftest.er1
16797   cat conftest.err >&5
16798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799   (exit $ac_status); } &&
16800          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16802   (eval $ac_try) 2>&5
16803   ac_status=$?
16804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805   (exit $ac_status); }; } &&
16806          { ac_try='test -s conftest.$ac_objext'
16807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808   (eval $ac_try) 2>&5
16809   ac_status=$?
16810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811   (exit $ac_status); }; }; then
16812   ac_lo=0 ac_mid=0
16813   while :; do
16814     cat >conftest.$ac_ext <<_ACEOF
16815 /* confdefs.h.  */
16816 _ACEOF
16817 cat confdefs.h >>conftest.$ac_ext
16818 cat >>conftest.$ac_ext <<_ACEOF
16819 /* end confdefs.h.  */
16820 $ac_includes_default
16821 int
16822 main ()
16823 {
16824 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16825 test_array [0] = 0
16826
16827   ;
16828   return 0;
16829 }
16830 _ACEOF
16831 rm -f conftest.$ac_objext
16832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16833   (eval $ac_compile) 2>conftest.er1
16834   ac_status=$?
16835   grep -v '^ *+' conftest.er1 >conftest.err
16836   rm -f conftest.er1
16837   cat conftest.err >&5
16838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839   (exit $ac_status); } &&
16840          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842   (eval $ac_try) 2>&5
16843   ac_status=$?
16844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845   (exit $ac_status); }; } &&
16846          { ac_try='test -s conftest.$ac_objext'
16847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848   (eval $ac_try) 2>&5
16849   ac_status=$?
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); }; }; then
16852   ac_hi=$ac_mid; break
16853 else
16854   echo "$as_me: failed program was:" >&5
16855 sed 's/^/| /' conftest.$ac_ext >&5
16856
16857 ac_lo=`expr $ac_mid + 1`
16858                     if test $ac_lo -le $ac_mid; then
16859                       ac_lo= ac_hi=
16860                       break
16861                     fi
16862                     ac_mid=`expr 2 '*' $ac_mid + 1`
16863 fi
16864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16865   done
16866 else
16867   echo "$as_me: failed program was:" >&5
16868 sed 's/^/| /' conftest.$ac_ext >&5
16869
16870 cat >conftest.$ac_ext <<_ACEOF
16871 /* confdefs.h.  */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h.  */
16876 $ac_includes_default
16877 int
16878 main ()
16879 {
16880 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16881 test_array [0] = 0
16882
16883   ;
16884   return 0;
16885 }
16886 _ACEOF
16887 rm -f conftest.$ac_objext
16888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16889   (eval $ac_compile) 2>conftest.er1
16890   ac_status=$?
16891   grep -v '^ *+' conftest.er1 >conftest.err
16892   rm -f conftest.er1
16893   cat conftest.err >&5
16894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895   (exit $ac_status); } &&
16896          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898   (eval $ac_try) 2>&5
16899   ac_status=$?
16900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); }; } &&
16902          { ac_try='test -s conftest.$ac_objext'
16903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904   (eval $ac_try) 2>&5
16905   ac_status=$?
16906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907   (exit $ac_status); }; }; then
16908   ac_hi=-1 ac_mid=-1
16909   while :; do
16910     cat >conftest.$ac_ext <<_ACEOF
16911 /* confdefs.h.  */
16912 _ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h.  */
16916 $ac_includes_default
16917 int
16918 main ()
16919 {
16920 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16921 test_array [0] = 0
16922
16923   ;
16924   return 0;
16925 }
16926 _ACEOF
16927 rm -f conftest.$ac_objext
16928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16929   (eval $ac_compile) 2>conftest.er1
16930   ac_status=$?
16931   grep -v '^ *+' conftest.er1 >conftest.err
16932   rm -f conftest.er1
16933   cat conftest.err >&5
16934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935   (exit $ac_status); } &&
16936          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938   (eval $ac_try) 2>&5
16939   ac_status=$?
16940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); }; } &&
16942          { ac_try='test -s conftest.$ac_objext'
16943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944   (eval $ac_try) 2>&5
16945   ac_status=$?
16946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947   (exit $ac_status); }; }; then
16948   ac_lo=$ac_mid; break
16949 else
16950   echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16952
16953 ac_hi=`expr '(' $ac_mid ')' - 1`
16954                        if test $ac_mid -le $ac_hi; then
16955                          ac_lo= ac_hi=
16956                          break
16957                        fi
16958                        ac_mid=`expr 2 '*' $ac_mid`
16959 fi
16960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16961   done
16962 else
16963   echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16965
16966 ac_lo= ac_hi=
16967 fi
16968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16969 fi
16970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16971 # Binary search between lo and hi bounds.
16972 while test "x$ac_lo" != "x$ac_hi"; do
16973   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16974   cat >conftest.$ac_ext <<_ACEOF
16975 /* confdefs.h.  */
16976 _ACEOF
16977 cat confdefs.h >>conftest.$ac_ext
16978 cat >>conftest.$ac_ext <<_ACEOF
16979 /* end confdefs.h.  */
16980 $ac_includes_default
16981 int
16982 main ()
16983 {
16984 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16985 test_array [0] = 0
16986
16987   ;
16988   return 0;
16989 }
16990 _ACEOF
16991 rm -f conftest.$ac_objext
16992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16993   (eval $ac_compile) 2>conftest.er1
16994   ac_status=$?
16995   grep -v '^ *+' conftest.er1 >conftest.err
16996   rm -f conftest.er1
16997   cat conftest.err >&5
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); } &&
17000          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
17006          { ac_try='test -s conftest.$ac_objext'
17007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008   (eval $ac_try) 2>&5
17009   ac_status=$?
17010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011   (exit $ac_status); }; }; then
17012   ac_hi=$ac_mid
17013 else
17014   echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.$ac_ext >&5
17016
17017 ac_lo=`expr '(' $ac_mid ')' + 1`
17018 fi
17019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17020 done
17021 case $ac_lo in
17022 ?*) ac_cv_sizeof_int=$ac_lo;;
17023 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17024 See \`config.log' for more details." >&5
17025 echo "$as_me: error: cannot compute sizeof (int), 77
17026 See \`config.log' for more details." >&2;}
17027    { (exit 1); exit 1; }; } ;;
17028 esac
17029 else
17030   if test "$cross_compiling" = yes; then
17031   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17032 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17033    { (exit 1); exit 1; }; }
17034 else
17035   cat >conftest.$ac_ext <<_ACEOF
17036 /* confdefs.h.  */
17037 _ACEOF
17038 cat confdefs.h >>conftest.$ac_ext
17039 cat >>conftest.$ac_ext <<_ACEOF
17040 /* end confdefs.h.  */
17041 $ac_includes_default
17042 long longval () { return (long) (sizeof (int)); }
17043 unsigned long ulongval () { return (long) (sizeof (int)); }
17044 #include <stdio.h>
17045 #include <stdlib.h>
17046 int
17047 main ()
17048 {
17049
17050   FILE *f = fopen ("conftest.val", "w");
17051   if (! f)
17052     exit (1);
17053   if (((long) (sizeof (int))) < 0)
17054     {
17055       long i = longval ();
17056       if (i != ((long) (sizeof (int))))
17057         exit (1);
17058       fprintf (f, "%ld\n", i);
17059     }
17060   else
17061     {
17062       unsigned long i = ulongval ();
17063       if (i != ((long) (sizeof (int))))
17064         exit (1);
17065       fprintf (f, "%lu\n", i);
17066     }
17067   exit (ferror (f) || fclose (f) != 0);
17068
17069   ;
17070   return 0;
17071 }
17072 _ACEOF
17073 rm -f conftest$ac_exeext
17074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17075   (eval $ac_link) 2>&5
17076   ac_status=$?
17077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080   (eval $ac_try) 2>&5
17081   ac_status=$?
17082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083   (exit $ac_status); }; }; then
17084   ac_cv_sizeof_int=`cat conftest.val`
17085 else
17086   echo "$as_me: program exited with status $ac_status" >&5
17087 echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17089
17090 ( exit $ac_status )
17091 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17092 See \`config.log' for more details." >&5
17093 echo "$as_me: error: cannot compute sizeof (int), 77
17094 See \`config.log' for more details." >&2;}
17095    { (exit 1); exit 1; }; }
17096 fi
17097 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17098 fi
17099 fi
17100 rm -f conftest.val
17101 else
17102   ac_cv_sizeof_int=0
17103 fi
17104 fi
17105 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17106 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17107 cat >>confdefs.h <<_ACEOF
17108 #define SIZEOF_INT $ac_cv_sizeof_int
17109 _ACEOF
17110
17111
17112 echo "$as_me:$LINENO: checking for long" >&5
17113 echo $ECHO_N "checking for long... $ECHO_C" >&6
17114 if test "${ac_cv_type_long+set}" = set; then
17115   echo $ECHO_N "(cached) $ECHO_C" >&6
17116 else
17117   cat >conftest.$ac_ext <<_ACEOF
17118 /* confdefs.h.  */
17119 _ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h.  */
17123 $ac_includes_default
17124 int
17125 main ()
17126 {
17127 if ((long *) 0)
17128   return 0;
17129 if (sizeof (long))
17130   return 0;
17131   ;
17132   return 0;
17133 }
17134 _ACEOF
17135 rm -f conftest.$ac_objext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17137   (eval $ac_compile) 2>conftest.er1
17138   ac_status=$?
17139   grep -v '^ *+' conftest.er1 >conftest.err
17140   rm -f conftest.er1
17141   cat conftest.err >&5
17142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143   (exit $ac_status); } &&
17144          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146   (eval $ac_try) 2>&5
17147   ac_status=$?
17148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149   (exit $ac_status); }; } &&
17150          { ac_try='test -s conftest.$ac_objext'
17151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152   (eval $ac_try) 2>&5
17153   ac_status=$?
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); }; }; then
17156   ac_cv_type_long=yes
17157 else
17158   echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.$ac_ext >&5
17160
17161 ac_cv_type_long=no
17162 fi
17163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17164 fi
17165 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17166 echo "${ECHO_T}$ac_cv_type_long" >&6
17167
17168 echo "$as_me:$LINENO: checking size of long" >&5
17169 echo $ECHO_N "checking size of long... $ECHO_C" >&6
17170 if test "${ac_cv_sizeof_long+set}" = set; then
17171   echo $ECHO_N "(cached) $ECHO_C" >&6
17172 else
17173   if test "$ac_cv_type_long" = yes; then
17174   # The cast to unsigned long works around a bug in the HP C Compiler
17175   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17176   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17177   # This bug is HP SR number 8606223364.
17178   if test "$cross_compiling" = yes; then
17179   # Depending upon the size, compute the lo and hi bounds.
17180 cat >conftest.$ac_ext <<_ACEOF
17181 /* confdefs.h.  */
17182 _ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h.  */
17186 $ac_includes_default
17187 int
17188 main ()
17189 {
17190 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17191 test_array [0] = 0
17192
17193   ;
17194   return 0;
17195 }
17196 _ACEOF
17197 rm -f conftest.$ac_objext
17198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17199   (eval $ac_compile) 2>conftest.er1
17200   ac_status=$?
17201   grep -v '^ *+' conftest.er1 >conftest.err
17202   rm -f conftest.er1
17203   cat conftest.err >&5
17204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205   (exit $ac_status); } &&
17206          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208   (eval $ac_try) 2>&5
17209   ac_status=$?
17210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211   (exit $ac_status); }; } &&
17212          { ac_try='test -s conftest.$ac_objext'
17213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214   (eval $ac_try) 2>&5
17215   ac_status=$?
17216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217   (exit $ac_status); }; }; then
17218   ac_lo=0 ac_mid=0
17219   while :; do
17220     cat >conftest.$ac_ext <<_ACEOF
17221 /* confdefs.h.  */
17222 _ACEOF
17223 cat confdefs.h >>conftest.$ac_ext
17224 cat >>conftest.$ac_ext <<_ACEOF
17225 /* end confdefs.h.  */
17226 $ac_includes_default
17227 int
17228 main ()
17229 {
17230 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17231 test_array [0] = 0
17232
17233   ;
17234   return 0;
17235 }
17236 _ACEOF
17237 rm -f conftest.$ac_objext
17238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17239   (eval $ac_compile) 2>conftest.er1
17240   ac_status=$?
17241   grep -v '^ *+' conftest.er1 >conftest.err
17242   rm -f conftest.er1
17243   cat conftest.err >&5
17244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245   (exit $ac_status); } &&
17246          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248   (eval $ac_try) 2>&5
17249   ac_status=$?
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); }; } &&
17252          { ac_try='test -s conftest.$ac_objext'
17253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254   (eval $ac_try) 2>&5
17255   ac_status=$?
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   (exit $ac_status); }; }; then
17258   ac_hi=$ac_mid; break
17259 else
17260   echo "$as_me: failed program was:" >&5
17261 sed 's/^/| /' conftest.$ac_ext >&5
17262
17263 ac_lo=`expr $ac_mid + 1`
17264                     if test $ac_lo -le $ac_mid; then
17265                       ac_lo= ac_hi=
17266                       break
17267                     fi
17268                     ac_mid=`expr 2 '*' $ac_mid + 1`
17269 fi
17270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17271   done
17272 else
17273   echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17275
17276 cat >conftest.$ac_ext <<_ACEOF
17277 /* confdefs.h.  */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h.  */
17282 $ac_includes_default
17283 int
17284 main ()
17285 {
17286 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17287 test_array [0] = 0
17288
17289   ;
17290   return 0;
17291 }
17292 _ACEOF
17293 rm -f conftest.$ac_objext
17294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17295   (eval $ac_compile) 2>conftest.er1
17296   ac_status=$?
17297   grep -v '^ *+' conftest.er1 >conftest.err
17298   rm -f conftest.er1
17299   cat conftest.err >&5
17300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301   (exit $ac_status); } &&
17302          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304   (eval $ac_try) 2>&5
17305   ac_status=$?
17306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307   (exit $ac_status); }; } &&
17308          { ac_try='test -s conftest.$ac_objext'
17309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310   (eval $ac_try) 2>&5
17311   ac_status=$?
17312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313   (exit $ac_status); }; }; then
17314   ac_hi=-1 ac_mid=-1
17315   while :; do
17316     cat >conftest.$ac_ext <<_ACEOF
17317 /* confdefs.h.  */
17318 _ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h.  */
17322 $ac_includes_default
17323 int
17324 main ()
17325 {
17326 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17327 test_array [0] = 0
17328
17329   ;
17330   return 0;
17331 }
17332 _ACEOF
17333 rm -f conftest.$ac_objext
17334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17335   (eval $ac_compile) 2>conftest.er1
17336   ac_status=$?
17337   grep -v '^ *+' conftest.er1 >conftest.err
17338   rm -f conftest.er1
17339   cat conftest.err >&5
17340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341   (exit $ac_status); } &&
17342          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344   (eval $ac_try) 2>&5
17345   ac_status=$?
17346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347   (exit $ac_status); }; } &&
17348          { ac_try='test -s conftest.$ac_objext'
17349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350   (eval $ac_try) 2>&5
17351   ac_status=$?
17352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353   (exit $ac_status); }; }; then
17354   ac_lo=$ac_mid; break
17355 else
17356   echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17358
17359 ac_hi=`expr '(' $ac_mid ')' - 1`
17360                        if test $ac_mid -le $ac_hi; then
17361                          ac_lo= ac_hi=
17362                          break
17363                        fi
17364                        ac_mid=`expr 2 '*' $ac_mid`
17365 fi
17366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17367   done
17368 else
17369   echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17371
17372 ac_lo= ac_hi=
17373 fi
17374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17375 fi
17376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17377 # Binary search between lo and hi bounds.
17378 while test "x$ac_lo" != "x$ac_hi"; do
17379   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17380   cat >conftest.$ac_ext <<_ACEOF
17381 /* confdefs.h.  */
17382 _ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h.  */
17386 $ac_includes_default
17387 int
17388 main ()
17389 {
17390 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17391 test_array [0] = 0
17392
17393   ;
17394   return 0;
17395 }
17396 _ACEOF
17397 rm -f conftest.$ac_objext
17398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17399   (eval $ac_compile) 2>conftest.er1
17400   ac_status=$?
17401   grep -v '^ *+' conftest.er1 >conftest.err
17402   rm -f conftest.er1
17403   cat conftest.err >&5
17404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405   (exit $ac_status); } &&
17406          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408   (eval $ac_try) 2>&5
17409   ac_status=$?
17410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411   (exit $ac_status); }; } &&
17412          { ac_try='test -s conftest.$ac_objext'
17413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17414   (eval $ac_try) 2>&5
17415   ac_status=$?
17416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417   (exit $ac_status); }; }; then
17418   ac_hi=$ac_mid
17419 else
17420   echo "$as_me: failed program was:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17422
17423 ac_lo=`expr '(' $ac_mid ')' + 1`
17424 fi
17425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17426 done
17427 case $ac_lo in
17428 ?*) ac_cv_sizeof_long=$ac_lo;;
17429 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17430 See \`config.log' for more details." >&5
17431 echo "$as_me: error: cannot compute sizeof (long), 77
17432 See \`config.log' for more details." >&2;}
17433    { (exit 1); exit 1; }; } ;;
17434 esac
17435 else
17436   if test "$cross_compiling" = yes; then
17437   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17438 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17439    { (exit 1); exit 1; }; }
17440 else
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 long longval () { return (long) (sizeof (long)); }
17449 unsigned long ulongval () { return (long) (sizeof (long)); }
17450 #include <stdio.h>
17451 #include <stdlib.h>
17452 int
17453 main ()
17454 {
17455
17456   FILE *f = fopen ("conftest.val", "w");
17457   if (! f)
17458     exit (1);
17459   if (((long) (sizeof (long))) < 0)
17460     {
17461       long i = longval ();
17462       if (i != ((long) (sizeof (long))))
17463         exit (1);
17464       fprintf (f, "%ld\n", i);
17465     }
17466   else
17467     {
17468       unsigned long i = ulongval ();
17469       if (i != ((long) (sizeof (long))))
17470         exit (1);
17471       fprintf (f, "%lu\n", i);
17472     }
17473   exit (ferror (f) || fclose (f) != 0);
17474
17475   ;
17476   return 0;
17477 }
17478 _ACEOF
17479 rm -f conftest$ac_exeext
17480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17481   (eval $ac_link) 2>&5
17482   ac_status=$?
17483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486   (eval $ac_try) 2>&5
17487   ac_status=$?
17488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489   (exit $ac_status); }; }; then
17490   ac_cv_sizeof_long=`cat conftest.val`
17491 else
17492   echo "$as_me: program exited with status $ac_status" >&5
17493 echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17495
17496 ( exit $ac_status )
17497 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17498 See \`config.log' for more details." >&5
17499 echo "$as_me: error: cannot compute sizeof (long), 77
17500 See \`config.log' for more details." >&2;}
17501    { (exit 1); exit 1; }; }
17502 fi
17503 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17504 fi
17505 fi
17506 rm -f conftest.val
17507 else
17508   ac_cv_sizeof_long=0
17509 fi
17510 fi
17511 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17512 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17513 cat >>confdefs.h <<_ACEOF
17514 #define SIZEOF_LONG $ac_cv_sizeof_long
17515 _ACEOF
17516
17517
17518 echo "$as_me:$LINENO: checking for size_t" >&5
17519 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17520 if test "${ac_cv_type_size_t+set}" = set; then
17521   echo $ECHO_N "(cached) $ECHO_C" >&6
17522 else
17523   cat >conftest.$ac_ext <<_ACEOF
17524 /* confdefs.h.  */
17525 _ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h.  */
17529 $ac_includes_default
17530 int
17531 main ()
17532 {
17533 if ((size_t *) 0)
17534   return 0;
17535 if (sizeof (size_t))
17536   return 0;
17537   ;
17538   return 0;
17539 }
17540 _ACEOF
17541 rm -f conftest.$ac_objext
17542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17543   (eval $ac_compile) 2>conftest.er1
17544   ac_status=$?
17545   grep -v '^ *+' conftest.er1 >conftest.err
17546   rm -f conftest.er1
17547   cat conftest.err >&5
17548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549   (exit $ac_status); } &&
17550          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17552   (eval $ac_try) 2>&5
17553   ac_status=$?
17554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555   (exit $ac_status); }; } &&
17556          { ac_try='test -s conftest.$ac_objext'
17557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558   (eval $ac_try) 2>&5
17559   ac_status=$?
17560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561   (exit $ac_status); }; }; then
17562   ac_cv_type_size_t=yes
17563 else
17564   echo "$as_me: failed program was:" >&5
17565 sed 's/^/| /' conftest.$ac_ext >&5
17566
17567 ac_cv_type_size_t=no
17568 fi
17569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17570 fi
17571 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17572 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17573
17574 echo "$as_me:$LINENO: checking size of size_t" >&5
17575 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17576 if test "${ac_cv_sizeof_size_t+set}" = set; then
17577   echo $ECHO_N "(cached) $ECHO_C" >&6
17578 else
17579   if test "$ac_cv_type_size_t" = yes; then
17580   # The cast to unsigned long works around a bug in the HP C Compiler
17581   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17582   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17583   # This bug is HP SR number 8606223364.
17584   if test "$cross_compiling" = yes; then
17585   # Depending upon the size, compute the lo and hi bounds.
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 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17597 test_array [0] = 0
17598
17599   ;
17600   return 0;
17601 }
17602 _ACEOF
17603 rm -f conftest.$ac_objext
17604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17605   (eval $ac_compile) 2>conftest.er1
17606   ac_status=$?
17607   grep -v '^ *+' conftest.er1 >conftest.err
17608   rm -f conftest.er1
17609   cat conftest.err >&5
17610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611   (exit $ac_status); } &&
17612          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614   (eval $ac_try) 2>&5
17615   ac_status=$?
17616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617   (exit $ac_status); }; } &&
17618          { ac_try='test -s conftest.$ac_objext'
17619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620   (eval $ac_try) 2>&5
17621   ac_status=$?
17622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623   (exit $ac_status); }; }; then
17624   ac_lo=0 ac_mid=0
17625   while :; do
17626     cat >conftest.$ac_ext <<_ACEOF
17627 /* confdefs.h.  */
17628 _ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h.  */
17632 $ac_includes_default
17633 int
17634 main ()
17635 {
17636 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17637 test_array [0] = 0
17638
17639   ;
17640   return 0;
17641 }
17642 _ACEOF
17643 rm -f conftest.$ac_objext
17644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17645   (eval $ac_compile) 2>conftest.er1
17646   ac_status=$?
17647   grep -v '^ *+' conftest.er1 >conftest.err
17648   rm -f conftest.er1
17649   cat conftest.err >&5
17650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651   (exit $ac_status); } &&
17652          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654   (eval $ac_try) 2>&5
17655   ac_status=$?
17656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657   (exit $ac_status); }; } &&
17658          { ac_try='test -s conftest.$ac_objext'
17659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660   (eval $ac_try) 2>&5
17661   ac_status=$?
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); }; }; then
17664   ac_hi=$ac_mid; break
17665 else
17666   echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17668
17669 ac_lo=`expr $ac_mid + 1`
17670                     if test $ac_lo -le $ac_mid; then
17671                       ac_lo= ac_hi=
17672                       break
17673                     fi
17674                     ac_mid=`expr 2 '*' $ac_mid + 1`
17675 fi
17676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17677   done
17678 else
17679   echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17681
17682 cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h.  */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h.  */
17688 $ac_includes_default
17689 int
17690 main ()
17691 {
17692 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17693 test_array [0] = 0
17694
17695   ;
17696   return 0;
17697 }
17698 _ACEOF
17699 rm -f conftest.$ac_objext
17700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17701   (eval $ac_compile) 2>conftest.er1
17702   ac_status=$?
17703   grep -v '^ *+' conftest.er1 >conftest.err
17704   rm -f conftest.er1
17705   cat conftest.err >&5
17706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707   (exit $ac_status); } &&
17708          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710   (eval $ac_try) 2>&5
17711   ac_status=$?
17712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713   (exit $ac_status); }; } &&
17714          { ac_try='test -s conftest.$ac_objext'
17715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716   (eval $ac_try) 2>&5
17717   ac_status=$?
17718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719   (exit $ac_status); }; }; then
17720   ac_hi=-1 ac_mid=-1
17721   while :; do
17722     cat >conftest.$ac_ext <<_ACEOF
17723 /* confdefs.h.  */
17724 _ACEOF
17725 cat confdefs.h >>conftest.$ac_ext
17726 cat >>conftest.$ac_ext <<_ACEOF
17727 /* end confdefs.h.  */
17728 $ac_includes_default
17729 int
17730 main ()
17731 {
17732 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17733 test_array [0] = 0
17734
17735   ;
17736   return 0;
17737 }
17738 _ACEOF
17739 rm -f conftest.$ac_objext
17740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17741   (eval $ac_compile) 2>conftest.er1
17742   ac_status=$?
17743   grep -v '^ *+' conftest.er1 >conftest.err
17744   rm -f conftest.er1
17745   cat conftest.err >&5
17746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747   (exit $ac_status); } &&
17748          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750   (eval $ac_try) 2>&5
17751   ac_status=$?
17752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753   (exit $ac_status); }; } &&
17754          { ac_try='test -s conftest.$ac_objext'
17755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756   (eval $ac_try) 2>&5
17757   ac_status=$?
17758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759   (exit $ac_status); }; }; then
17760   ac_lo=$ac_mid; break
17761 else
17762   echo "$as_me: failed program was:" >&5
17763 sed 's/^/| /' conftest.$ac_ext >&5
17764
17765 ac_hi=`expr '(' $ac_mid ')' - 1`
17766                        if test $ac_mid -le $ac_hi; then
17767                          ac_lo= ac_hi=
17768                          break
17769                        fi
17770                        ac_mid=`expr 2 '*' $ac_mid`
17771 fi
17772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17773   done
17774 else
17775   echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17777
17778 ac_lo= ac_hi=
17779 fi
17780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17781 fi
17782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17783 # Binary search between lo and hi bounds.
17784 while test "x$ac_lo" != "x$ac_hi"; do
17785   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17786   cat >conftest.$ac_ext <<_ACEOF
17787 /* confdefs.h.  */
17788 _ACEOF
17789 cat confdefs.h >>conftest.$ac_ext
17790 cat >>conftest.$ac_ext <<_ACEOF
17791 /* end confdefs.h.  */
17792 $ac_includes_default
17793 int
17794 main ()
17795 {
17796 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17797 test_array [0] = 0
17798
17799   ;
17800   return 0;
17801 }
17802 _ACEOF
17803 rm -f conftest.$ac_objext
17804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17805   (eval $ac_compile) 2>conftest.er1
17806   ac_status=$?
17807   grep -v '^ *+' conftest.er1 >conftest.err
17808   rm -f conftest.er1
17809   cat conftest.err >&5
17810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811   (exit $ac_status); } &&
17812          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814   (eval $ac_try) 2>&5
17815   ac_status=$?
17816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817   (exit $ac_status); }; } &&
17818          { ac_try='test -s conftest.$ac_objext'
17819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820   (eval $ac_try) 2>&5
17821   ac_status=$?
17822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823   (exit $ac_status); }; }; then
17824   ac_hi=$ac_mid
17825 else
17826   echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17828
17829 ac_lo=`expr '(' $ac_mid ')' + 1`
17830 fi
17831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17832 done
17833 case $ac_lo in
17834 ?*) ac_cv_sizeof_size_t=$ac_lo;;
17835 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17836 See \`config.log' for more details." >&5
17837 echo "$as_me: error: cannot compute sizeof (size_t), 77
17838 See \`config.log' for more details." >&2;}
17839    { (exit 1); exit 1; }; } ;;
17840 esac
17841 else
17842   if test "$cross_compiling" = yes; then
17843   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17844 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
17845    { (exit 1); exit 1; }; }
17846 else
17847   cat >conftest.$ac_ext <<_ACEOF
17848 /* confdefs.h.  */
17849 _ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h.  */
17853 $ac_includes_default
17854 long longval () { return (long) (sizeof (size_t)); }
17855 unsigned long ulongval () { return (long) (sizeof (size_t)); }
17856 #include <stdio.h>
17857 #include <stdlib.h>
17858 int
17859 main ()
17860 {
17861
17862   FILE *f = fopen ("conftest.val", "w");
17863   if (! f)
17864     exit (1);
17865   if (((long) (sizeof (size_t))) < 0)
17866     {
17867       long i = longval ();
17868       if (i != ((long) (sizeof (size_t))))
17869         exit (1);
17870       fprintf (f, "%ld\n", i);
17871     }
17872   else
17873     {
17874       unsigned long i = ulongval ();
17875       if (i != ((long) (sizeof (size_t))))
17876         exit (1);
17877       fprintf (f, "%lu\n", i);
17878     }
17879   exit (ferror (f) || fclose (f) != 0);
17880
17881   ;
17882   return 0;
17883 }
17884 _ACEOF
17885 rm -f conftest$ac_exeext
17886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17887   (eval $ac_link) 2>&5
17888   ac_status=$?
17889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892   (eval $ac_try) 2>&5
17893   ac_status=$?
17894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); }; }; then
17896   ac_cv_sizeof_size_t=`cat conftest.val`
17897 else
17898   echo "$as_me: program exited with status $ac_status" >&5
17899 echo "$as_me: failed program was:" >&5
17900 sed 's/^/| /' conftest.$ac_ext >&5
17901
17902 ( exit $ac_status )
17903 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17904 See \`config.log' for more details." >&5
17905 echo "$as_me: error: cannot compute sizeof (size_t), 77
17906 See \`config.log' for more details." >&2;}
17907    { (exit 1); exit 1; }; }
17908 fi
17909 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17910 fi
17911 fi
17912 rm -f conftest.val
17913 else
17914   ac_cv_sizeof_size_t=0
17915 fi
17916 fi
17917 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17918 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17919 cat >>confdefs.h <<_ACEOF
17920 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17921 _ACEOF
17922
17923
17924
17925 case "${host}" in
17926     arm-*-linux* )
17927         echo "$as_me:$LINENO: checking for long long" >&5
17928 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17929 if test "${ac_cv_type_long_long+set}" = set; then
17930   echo $ECHO_N "(cached) $ECHO_C" >&6
17931 else
17932   cat >conftest.$ac_ext <<_ACEOF
17933 /* confdefs.h.  */
17934 _ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h.  */
17938 $ac_includes_default
17939 int
17940 main ()
17941 {
17942 if ((long long *) 0)
17943   return 0;
17944 if (sizeof (long long))
17945   return 0;
17946   ;
17947   return 0;
17948 }
17949 _ACEOF
17950 rm -f conftest.$ac_objext
17951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17952   (eval $ac_compile) 2>conftest.er1
17953   ac_status=$?
17954   grep -v '^ *+' conftest.er1 >conftest.err
17955   rm -f conftest.er1
17956   cat conftest.err >&5
17957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958   (exit $ac_status); } &&
17959          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961   (eval $ac_try) 2>&5
17962   ac_status=$?
17963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964   (exit $ac_status); }; } &&
17965          { ac_try='test -s conftest.$ac_objext'
17966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967   (eval $ac_try) 2>&5
17968   ac_status=$?
17969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970   (exit $ac_status); }; }; then
17971   ac_cv_type_long_long=yes
17972 else
17973   echo "$as_me: failed program was:" >&5
17974 sed 's/^/| /' conftest.$ac_ext >&5
17975
17976 ac_cv_type_long_long=no
17977 fi
17978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17979 fi
17980 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17981 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17982
17983 echo "$as_me:$LINENO: checking size of long long" >&5
17984 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17985 if test "${ac_cv_sizeof_long_long+set}" = set; then
17986   echo $ECHO_N "(cached) $ECHO_C" >&6
17987 else
17988   if test "$ac_cv_type_long_long" = yes; then
17989   # The cast to unsigned long works around a bug in the HP C Compiler
17990   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17991   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17992   # This bug is HP SR number 8606223364.
17993   if test "$cross_compiling" = yes; then
17994   # Depending upon the size, compute the lo and hi bounds.
17995 cat >conftest.$ac_ext <<_ACEOF
17996 /* confdefs.h.  */
17997 _ACEOF
17998 cat confdefs.h >>conftest.$ac_ext
17999 cat >>conftest.$ac_ext <<_ACEOF
18000 /* end confdefs.h.  */
18001 $ac_includes_default
18002 int
18003 main ()
18004 {
18005 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18006 test_array [0] = 0
18007
18008   ;
18009   return 0;
18010 }
18011 _ACEOF
18012 rm -f conftest.$ac_objext
18013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18014   (eval $ac_compile) 2>conftest.er1
18015   ac_status=$?
18016   grep -v '^ *+' conftest.er1 >conftest.err
18017   rm -f conftest.er1
18018   cat conftest.err >&5
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); } &&
18021          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18023   (eval $ac_try) 2>&5
18024   ac_status=$?
18025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026   (exit $ac_status); }; } &&
18027          { ac_try='test -s conftest.$ac_objext'
18028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029   (eval $ac_try) 2>&5
18030   ac_status=$?
18031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032   (exit $ac_status); }; }; then
18033   ac_lo=0 ac_mid=0
18034   while :; do
18035     cat >conftest.$ac_ext <<_ACEOF
18036 /* confdefs.h.  */
18037 _ACEOF
18038 cat confdefs.h >>conftest.$ac_ext
18039 cat >>conftest.$ac_ext <<_ACEOF
18040 /* end confdefs.h.  */
18041 $ac_includes_default
18042 int
18043 main ()
18044 {
18045 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18046 test_array [0] = 0
18047
18048   ;
18049   return 0;
18050 }
18051 _ACEOF
18052 rm -f conftest.$ac_objext
18053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18054   (eval $ac_compile) 2>conftest.er1
18055   ac_status=$?
18056   grep -v '^ *+' conftest.er1 >conftest.err
18057   rm -f conftest.er1
18058   cat conftest.err >&5
18059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060   (exit $ac_status); } &&
18061          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063   (eval $ac_try) 2>&5
18064   ac_status=$?
18065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066   (exit $ac_status); }; } &&
18067          { ac_try='test -s conftest.$ac_objext'
18068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069   (eval $ac_try) 2>&5
18070   ac_status=$?
18071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072   (exit $ac_status); }; }; then
18073   ac_hi=$ac_mid; break
18074 else
18075   echo "$as_me: failed program was:" >&5
18076 sed 's/^/| /' conftest.$ac_ext >&5
18077
18078 ac_lo=`expr $ac_mid + 1`
18079                     if test $ac_lo -le $ac_mid; then
18080                       ac_lo= ac_hi=
18081                       break
18082                     fi
18083                     ac_mid=`expr 2 '*' $ac_mid + 1`
18084 fi
18085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18086   done
18087 else
18088   echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18090
18091 cat >conftest.$ac_ext <<_ACEOF
18092 /* confdefs.h.  */
18093 _ACEOF
18094 cat confdefs.h >>conftest.$ac_ext
18095 cat >>conftest.$ac_ext <<_ACEOF
18096 /* end confdefs.h.  */
18097 $ac_includes_default
18098 int
18099 main ()
18100 {
18101 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18102 test_array [0] = 0
18103
18104   ;
18105   return 0;
18106 }
18107 _ACEOF
18108 rm -f conftest.$ac_objext
18109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18110   (eval $ac_compile) 2>conftest.er1
18111   ac_status=$?
18112   grep -v '^ *+' conftest.er1 >conftest.err
18113   rm -f conftest.er1
18114   cat conftest.err >&5
18115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116   (exit $ac_status); } &&
18117          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119   (eval $ac_try) 2>&5
18120   ac_status=$?
18121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122   (exit $ac_status); }; } &&
18123          { ac_try='test -s conftest.$ac_objext'
18124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125   (eval $ac_try) 2>&5
18126   ac_status=$?
18127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128   (exit $ac_status); }; }; then
18129   ac_hi=-1 ac_mid=-1
18130   while :; do
18131     cat >conftest.$ac_ext <<_ACEOF
18132 /* confdefs.h.  */
18133 _ACEOF
18134 cat confdefs.h >>conftest.$ac_ext
18135 cat >>conftest.$ac_ext <<_ACEOF
18136 /* end confdefs.h.  */
18137 $ac_includes_default
18138 int
18139 main ()
18140 {
18141 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18142 test_array [0] = 0
18143
18144   ;
18145   return 0;
18146 }
18147 _ACEOF
18148 rm -f conftest.$ac_objext
18149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18150   (eval $ac_compile) 2>conftest.er1
18151   ac_status=$?
18152   grep -v '^ *+' conftest.er1 >conftest.err
18153   rm -f conftest.er1
18154   cat conftest.err >&5
18155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156   (exit $ac_status); } &&
18157          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159   (eval $ac_try) 2>&5
18160   ac_status=$?
18161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162   (exit $ac_status); }; } &&
18163          { ac_try='test -s conftest.$ac_objext'
18164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165   (eval $ac_try) 2>&5
18166   ac_status=$?
18167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168   (exit $ac_status); }; }; then
18169   ac_lo=$ac_mid; break
18170 else
18171   echo "$as_me: failed program was:" >&5
18172 sed 's/^/| /' conftest.$ac_ext >&5
18173
18174 ac_hi=`expr '(' $ac_mid ')' - 1`
18175                        if test $ac_mid -le $ac_hi; then
18176                          ac_lo= ac_hi=
18177                          break
18178                        fi
18179                        ac_mid=`expr 2 '*' $ac_mid`
18180 fi
18181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18182   done
18183 else
18184   echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18186
18187 ac_lo= ac_hi=
18188 fi
18189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18190 fi
18191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18192 # Binary search between lo and hi bounds.
18193 while test "x$ac_lo" != "x$ac_hi"; do
18194   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18195   cat >conftest.$ac_ext <<_ACEOF
18196 /* confdefs.h.  */
18197 _ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h.  */
18201 $ac_includes_default
18202 int
18203 main ()
18204 {
18205 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18206 test_array [0] = 0
18207
18208   ;
18209   return 0;
18210 }
18211 _ACEOF
18212 rm -f conftest.$ac_objext
18213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18214   (eval $ac_compile) 2>conftest.er1
18215   ac_status=$?
18216   grep -v '^ *+' conftest.er1 >conftest.err
18217   rm -f conftest.er1
18218   cat conftest.err >&5
18219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220   (exit $ac_status); } &&
18221          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223   (eval $ac_try) 2>&5
18224   ac_status=$?
18225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226   (exit $ac_status); }; } &&
18227          { ac_try='test -s conftest.$ac_objext'
18228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229   (eval $ac_try) 2>&5
18230   ac_status=$?
18231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232   (exit $ac_status); }; }; then
18233   ac_hi=$ac_mid
18234 else
18235   echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18237
18238 ac_lo=`expr '(' $ac_mid ')' + 1`
18239 fi
18240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18241 done
18242 case $ac_lo in
18243 ?*) ac_cv_sizeof_long_long=$ac_lo;;
18244 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18245 See \`config.log' for more details." >&5
18246 echo "$as_me: error: cannot compute sizeof (long long), 77
18247 See \`config.log' for more details." >&2;}
18248    { (exit 1); exit 1; }; } ;;
18249 esac
18250 else
18251   if test "$cross_compiling" = yes; then
18252   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18253 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18254    { (exit 1); exit 1; }; }
18255 else
18256   cat >conftest.$ac_ext <<_ACEOF
18257 /* confdefs.h.  */
18258 _ACEOF
18259 cat confdefs.h >>conftest.$ac_ext
18260 cat >>conftest.$ac_ext <<_ACEOF
18261 /* end confdefs.h.  */
18262 $ac_includes_default
18263 long longval () { return (long) (sizeof (long long)); }
18264 unsigned long ulongval () { return (long) (sizeof (long long)); }
18265 #include <stdio.h>
18266 #include <stdlib.h>
18267 int
18268 main ()
18269 {
18270
18271   FILE *f = fopen ("conftest.val", "w");
18272   if (! f)
18273     exit (1);
18274   if (((long) (sizeof (long long))) < 0)
18275     {
18276       long i = longval ();
18277       if (i != ((long) (sizeof (long long))))
18278         exit (1);
18279       fprintf (f, "%ld\n", i);
18280     }
18281   else
18282     {
18283       unsigned long i = ulongval ();
18284       if (i != ((long) (sizeof (long long))))
18285         exit (1);
18286       fprintf (f, "%lu\n", i);
18287     }
18288   exit (ferror (f) || fclose (f) != 0);
18289
18290   ;
18291   return 0;
18292 }
18293 _ACEOF
18294 rm -f conftest$ac_exeext
18295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18296   (eval $ac_link) 2>&5
18297   ac_status=$?
18298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18301   (eval $ac_try) 2>&5
18302   ac_status=$?
18303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304   (exit $ac_status); }; }; then
18305   ac_cv_sizeof_long_long=`cat conftest.val`
18306 else
18307   echo "$as_me: program exited with status $ac_status" >&5
18308 echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18310
18311 ( exit $ac_status )
18312 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18313 See \`config.log' for more details." >&5
18314 echo "$as_me: error: cannot compute sizeof (long long), 77
18315 See \`config.log' for more details." >&2;}
18316    { (exit 1); exit 1; }; }
18317 fi
18318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18319 fi
18320 fi
18321 rm -f conftest.val
18322 else
18323   ac_cv_sizeof_long_long=0
18324 fi
18325 fi
18326 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18327 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18328 cat >>confdefs.h <<_ACEOF
18329 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18330 _ACEOF
18331
18332
18333     ;;
18334     *-hp-hpux* )
18335         echo "$as_me:$LINENO: checking for long long" >&5
18336 echo $ECHO_N "checking for long long... $ECHO_C" >&6
18337 if test "${ac_cv_type_long_long+set}" = set; then
18338   echo $ECHO_N "(cached) $ECHO_C" >&6
18339 else
18340   cat >conftest.$ac_ext <<_ACEOF
18341 /* confdefs.h.  */
18342 _ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h.  */
18346 $ac_includes_default
18347 int
18348 main ()
18349 {
18350 if ((long long *) 0)
18351   return 0;
18352 if (sizeof (long long))
18353   return 0;
18354   ;
18355   return 0;
18356 }
18357 _ACEOF
18358 rm -f conftest.$ac_objext
18359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18360   (eval $ac_compile) 2>conftest.er1
18361   ac_status=$?
18362   grep -v '^ *+' conftest.er1 >conftest.err
18363   rm -f conftest.er1
18364   cat conftest.err >&5
18365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366   (exit $ac_status); } &&
18367          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369   (eval $ac_try) 2>&5
18370   ac_status=$?
18371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372   (exit $ac_status); }; } &&
18373          { ac_try='test -s conftest.$ac_objext'
18374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375   (eval $ac_try) 2>&5
18376   ac_status=$?
18377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378   (exit $ac_status); }; }; then
18379   ac_cv_type_long_long=yes
18380 else
18381   echo "$as_me: failed program was:" >&5
18382 sed 's/^/| /' conftest.$ac_ext >&5
18383
18384 ac_cv_type_long_long=no
18385 fi
18386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18387 fi
18388 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18389 echo "${ECHO_T}$ac_cv_type_long_long" >&6
18390
18391 echo "$as_me:$LINENO: checking size of long long" >&5
18392 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18393 if test "${ac_cv_sizeof_long_long+set}" = set; then
18394   echo $ECHO_N "(cached) $ECHO_C" >&6
18395 else
18396   if test "$ac_cv_type_long_long" = yes; then
18397   # The cast to unsigned long works around a bug in the HP C Compiler
18398   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18399   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18400   # This bug is HP SR number 8606223364.
18401   if test "$cross_compiling" = yes; then
18402   # Depending upon the size, compute the lo and hi bounds.
18403 cat >conftest.$ac_ext <<_ACEOF
18404 /* confdefs.h.  */
18405 _ACEOF
18406 cat confdefs.h >>conftest.$ac_ext
18407 cat >>conftest.$ac_ext <<_ACEOF
18408 /* end confdefs.h.  */
18409 $ac_includes_default
18410 int
18411 main ()
18412 {
18413 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18414 test_array [0] = 0
18415
18416   ;
18417   return 0;
18418 }
18419 _ACEOF
18420 rm -f conftest.$ac_objext
18421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18422   (eval $ac_compile) 2>conftest.er1
18423   ac_status=$?
18424   grep -v '^ *+' conftest.er1 >conftest.err
18425   rm -f conftest.er1
18426   cat conftest.err >&5
18427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428   (exit $ac_status); } &&
18429          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431   (eval $ac_try) 2>&5
18432   ac_status=$?
18433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434   (exit $ac_status); }; } &&
18435          { ac_try='test -s conftest.$ac_objext'
18436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437   (eval $ac_try) 2>&5
18438   ac_status=$?
18439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440   (exit $ac_status); }; }; then
18441   ac_lo=0 ac_mid=0
18442   while :; do
18443     cat >conftest.$ac_ext <<_ACEOF
18444 /* confdefs.h.  */
18445 _ACEOF
18446 cat confdefs.h >>conftest.$ac_ext
18447 cat >>conftest.$ac_ext <<_ACEOF
18448 /* end confdefs.h.  */
18449 $ac_includes_default
18450 int
18451 main ()
18452 {
18453 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18454 test_array [0] = 0
18455
18456   ;
18457   return 0;
18458 }
18459 _ACEOF
18460 rm -f conftest.$ac_objext
18461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18462   (eval $ac_compile) 2>conftest.er1
18463   ac_status=$?
18464   grep -v '^ *+' conftest.er1 >conftest.err
18465   rm -f conftest.er1
18466   cat conftest.err >&5
18467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468   (exit $ac_status); } &&
18469          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471   (eval $ac_try) 2>&5
18472   ac_status=$?
18473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474   (exit $ac_status); }; } &&
18475          { ac_try='test -s conftest.$ac_objext'
18476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477   (eval $ac_try) 2>&5
18478   ac_status=$?
18479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480   (exit $ac_status); }; }; then
18481   ac_hi=$ac_mid; break
18482 else
18483   echo "$as_me: failed program was:" >&5
18484 sed 's/^/| /' conftest.$ac_ext >&5
18485
18486 ac_lo=`expr $ac_mid + 1`
18487                     if test $ac_lo -le $ac_mid; then
18488                       ac_lo= ac_hi=
18489                       break
18490                     fi
18491                     ac_mid=`expr 2 '*' $ac_mid + 1`
18492 fi
18493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18494   done
18495 else
18496   echo "$as_me: failed program was:" >&5
18497 sed 's/^/| /' conftest.$ac_ext >&5
18498
18499 cat >conftest.$ac_ext <<_ACEOF
18500 /* confdefs.h.  */
18501 _ACEOF
18502 cat confdefs.h >>conftest.$ac_ext
18503 cat >>conftest.$ac_ext <<_ACEOF
18504 /* end confdefs.h.  */
18505 $ac_includes_default
18506 int
18507 main ()
18508 {
18509 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18510 test_array [0] = 0
18511
18512   ;
18513   return 0;
18514 }
18515 _ACEOF
18516 rm -f conftest.$ac_objext
18517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18518   (eval $ac_compile) 2>conftest.er1
18519   ac_status=$?
18520   grep -v '^ *+' conftest.er1 >conftest.err
18521   rm -f conftest.er1
18522   cat conftest.err >&5
18523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524   (exit $ac_status); } &&
18525          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18527   (eval $ac_try) 2>&5
18528   ac_status=$?
18529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530   (exit $ac_status); }; } &&
18531          { ac_try='test -s conftest.$ac_objext'
18532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533   (eval $ac_try) 2>&5
18534   ac_status=$?
18535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536   (exit $ac_status); }; }; then
18537   ac_hi=-1 ac_mid=-1
18538   while :; do
18539     cat >conftest.$ac_ext <<_ACEOF
18540 /* confdefs.h.  */
18541 _ACEOF
18542 cat confdefs.h >>conftest.$ac_ext
18543 cat >>conftest.$ac_ext <<_ACEOF
18544 /* end confdefs.h.  */
18545 $ac_includes_default
18546 int
18547 main ()
18548 {
18549 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18550 test_array [0] = 0
18551
18552   ;
18553   return 0;
18554 }
18555 _ACEOF
18556 rm -f conftest.$ac_objext
18557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18558   (eval $ac_compile) 2>conftest.er1
18559   ac_status=$?
18560   grep -v '^ *+' conftest.er1 >conftest.err
18561   rm -f conftest.er1
18562   cat conftest.err >&5
18563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564   (exit $ac_status); } &&
18565          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567   (eval $ac_try) 2>&5
18568   ac_status=$?
18569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570   (exit $ac_status); }; } &&
18571          { ac_try='test -s conftest.$ac_objext'
18572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573   (eval $ac_try) 2>&5
18574   ac_status=$?
18575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576   (exit $ac_status); }; }; then
18577   ac_lo=$ac_mid; break
18578 else
18579   echo "$as_me: failed program was:" >&5
18580 sed 's/^/| /' conftest.$ac_ext >&5
18581
18582 ac_hi=`expr '(' $ac_mid ')' - 1`
18583                        if test $ac_mid -le $ac_hi; then
18584                          ac_lo= ac_hi=
18585                          break
18586                        fi
18587                        ac_mid=`expr 2 '*' $ac_mid`
18588 fi
18589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18590   done
18591 else
18592   echo "$as_me: failed program was:" >&5
18593 sed 's/^/| /' conftest.$ac_ext >&5
18594
18595 ac_lo= ac_hi=
18596 fi
18597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18598 fi
18599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18600 # Binary search between lo and hi bounds.
18601 while test "x$ac_lo" != "x$ac_hi"; do
18602   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18603   cat >conftest.$ac_ext <<_ACEOF
18604 /* confdefs.h.  */
18605 _ACEOF
18606 cat confdefs.h >>conftest.$ac_ext
18607 cat >>conftest.$ac_ext <<_ACEOF
18608 /* end confdefs.h.  */
18609 $ac_includes_default
18610 int
18611 main ()
18612 {
18613 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18614 test_array [0] = 0
18615
18616   ;
18617   return 0;
18618 }
18619 _ACEOF
18620 rm -f conftest.$ac_objext
18621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18622   (eval $ac_compile) 2>conftest.er1
18623   ac_status=$?
18624   grep -v '^ *+' conftest.er1 >conftest.err
18625   rm -f conftest.er1
18626   cat conftest.err >&5
18627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628   (exit $ac_status); } &&
18629          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631   (eval $ac_try) 2>&5
18632   ac_status=$?
18633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634   (exit $ac_status); }; } &&
18635          { ac_try='test -s conftest.$ac_objext'
18636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637   (eval $ac_try) 2>&5
18638   ac_status=$?
18639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640   (exit $ac_status); }; }; then
18641   ac_hi=$ac_mid
18642 else
18643   echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18645
18646 ac_lo=`expr '(' $ac_mid ')' + 1`
18647 fi
18648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18649 done
18650 case $ac_lo in
18651 ?*) ac_cv_sizeof_long_long=$ac_lo;;
18652 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18653 See \`config.log' for more details." >&5
18654 echo "$as_me: error: cannot compute sizeof (long long), 77
18655 See \`config.log' for more details." >&2;}
18656    { (exit 1); exit 1; }; } ;;
18657 esac
18658 else
18659   if test "$cross_compiling" = yes; then
18660   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18661 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
18662    { (exit 1); exit 1; }; }
18663 else
18664   cat >conftest.$ac_ext <<_ACEOF
18665 /* confdefs.h.  */
18666 _ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h.  */
18670 $ac_includes_default
18671 long longval () { return (long) (sizeof (long long)); }
18672 unsigned long ulongval () { return (long) (sizeof (long long)); }
18673 #include <stdio.h>
18674 #include <stdlib.h>
18675 int
18676 main ()
18677 {
18678
18679   FILE *f = fopen ("conftest.val", "w");
18680   if (! f)
18681     exit (1);
18682   if (((long) (sizeof (long long))) < 0)
18683     {
18684       long i = longval ();
18685       if (i != ((long) (sizeof (long long))))
18686         exit (1);
18687       fprintf (f, "%ld\n", i);
18688     }
18689   else
18690     {
18691       unsigned long i = ulongval ();
18692       if (i != ((long) (sizeof (long long))))
18693         exit (1);
18694       fprintf (f, "%lu\n", i);
18695     }
18696   exit (ferror (f) || fclose (f) != 0);
18697
18698   ;
18699   return 0;
18700 }
18701 _ACEOF
18702 rm -f conftest$ac_exeext
18703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18704   (eval $ac_link) 2>&5
18705   ac_status=$?
18706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709   (eval $ac_try) 2>&5
18710   ac_status=$?
18711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712   (exit $ac_status); }; }; then
18713   ac_cv_sizeof_long_long=`cat conftest.val`
18714 else
18715   echo "$as_me: program exited with status $ac_status" >&5
18716 echo "$as_me: failed program was:" >&5
18717 sed 's/^/| /' conftest.$ac_ext >&5
18718
18719 ( exit $ac_status )
18720 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18721 See \`config.log' for more details." >&5
18722 echo "$as_me: error: cannot compute sizeof (long long), 77
18723 See \`config.log' for more details." >&2;}
18724    { (exit 1); exit 1; }; }
18725 fi
18726 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18727 fi
18728 fi
18729 rm -f conftest.val
18730 else
18731   ac_cv_sizeof_long_long=0
18732 fi
18733 fi
18734 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18735 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18736 cat >>confdefs.h <<_ACEOF
18737 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18738 _ACEOF
18739
18740
18741         if test "$ac_cv_sizeof_long_long" != "0"; then
18742                         CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18743         fi
18744     ;;
18745     * )
18746         echo "$as_me:$LINENO: checking for long long" >&5
18747 echo $ECHO_N "checking for long long... $ECHO_C" >&6
18748 if test "${ac_cv_type_long_long+set}" = set; then
18749   echo $ECHO_N "(cached) $ECHO_C" >&6
18750 else
18751   cat >conftest.$ac_ext <<_ACEOF
18752 /* confdefs.h.  */
18753 _ACEOF
18754 cat confdefs.h >>conftest.$ac_ext
18755 cat >>conftest.$ac_ext <<_ACEOF
18756 /* end confdefs.h.  */
18757 $ac_includes_default
18758 int
18759 main ()
18760 {
18761 if ((long long *) 0)
18762   return 0;
18763 if (sizeof (long long))
18764   return 0;
18765   ;
18766   return 0;
18767 }
18768 _ACEOF
18769 rm -f conftest.$ac_objext
18770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18771   (eval $ac_compile) 2>conftest.er1
18772   ac_status=$?
18773   grep -v '^ *+' conftest.er1 >conftest.err
18774   rm -f conftest.er1
18775   cat conftest.err >&5
18776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777   (exit $ac_status); } &&
18778          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780   (eval $ac_try) 2>&5
18781   ac_status=$?
18782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783   (exit $ac_status); }; } &&
18784          { ac_try='test -s conftest.$ac_objext'
18785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786   (eval $ac_try) 2>&5
18787   ac_status=$?
18788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789   (exit $ac_status); }; }; then
18790   ac_cv_type_long_long=yes
18791 else
18792   echo "$as_me: failed program was:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18794
18795 ac_cv_type_long_long=no
18796 fi
18797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18798 fi
18799 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18800 echo "${ECHO_T}$ac_cv_type_long_long" >&6
18801
18802 echo "$as_me:$LINENO: checking size of long long" >&5
18803 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18804 if test "${ac_cv_sizeof_long_long+set}" = set; then
18805   echo $ECHO_N "(cached) $ECHO_C" >&6
18806 else
18807   if test "$ac_cv_type_long_long" = yes; then
18808   # The cast to unsigned long works around a bug in the HP C Compiler
18809   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18810   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18811   # This bug is HP SR number 8606223364.
18812   if test "$cross_compiling" = yes; then
18813   # Depending upon the size, compute the lo and hi bounds.
18814 cat >conftest.$ac_ext <<_ACEOF
18815 /* confdefs.h.  */
18816 _ACEOF
18817 cat confdefs.h >>conftest.$ac_ext
18818 cat >>conftest.$ac_ext <<_ACEOF
18819 /* end confdefs.h.  */
18820 $ac_includes_default
18821 int
18822 main ()
18823 {
18824 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18825 test_array [0] = 0
18826
18827   ;
18828   return 0;
18829 }
18830 _ACEOF
18831 rm -f conftest.$ac_objext
18832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18833   (eval $ac_compile) 2>conftest.er1
18834   ac_status=$?
18835   grep -v '^ *+' conftest.er1 >conftest.err
18836   rm -f conftest.er1
18837   cat conftest.err >&5
18838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839   (exit $ac_status); } &&
18840          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18842   (eval $ac_try) 2>&5
18843   ac_status=$?
18844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845   (exit $ac_status); }; } &&
18846          { ac_try='test -s conftest.$ac_objext'
18847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848   (eval $ac_try) 2>&5
18849   ac_status=$?
18850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851   (exit $ac_status); }; }; then
18852   ac_lo=0 ac_mid=0
18853   while :; do
18854     cat >conftest.$ac_ext <<_ACEOF
18855 /* confdefs.h.  */
18856 _ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h.  */
18860 $ac_includes_default
18861 int
18862 main ()
18863 {
18864 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18865 test_array [0] = 0
18866
18867   ;
18868   return 0;
18869 }
18870 _ACEOF
18871 rm -f conftest.$ac_objext
18872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18873   (eval $ac_compile) 2>conftest.er1
18874   ac_status=$?
18875   grep -v '^ *+' conftest.er1 >conftest.err
18876   rm -f conftest.er1
18877   cat conftest.err >&5
18878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879   (exit $ac_status); } &&
18880          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18882   (eval $ac_try) 2>&5
18883   ac_status=$?
18884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885   (exit $ac_status); }; } &&
18886          { ac_try='test -s conftest.$ac_objext'
18887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888   (eval $ac_try) 2>&5
18889   ac_status=$?
18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891   (exit $ac_status); }; }; then
18892   ac_hi=$ac_mid; break
18893 else
18894   echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.$ac_ext >&5
18896
18897 ac_lo=`expr $ac_mid + 1`
18898                     if test $ac_lo -le $ac_mid; then
18899                       ac_lo= ac_hi=
18900                       break
18901                     fi
18902                     ac_mid=`expr 2 '*' $ac_mid + 1`
18903 fi
18904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18905   done
18906 else
18907   echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18909
18910 cat >conftest.$ac_ext <<_ACEOF
18911 /* confdefs.h.  */
18912 _ACEOF
18913 cat confdefs.h >>conftest.$ac_ext
18914 cat >>conftest.$ac_ext <<_ACEOF
18915 /* end confdefs.h.  */
18916 $ac_includes_default
18917 int
18918 main ()
18919 {
18920 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18921 test_array [0] = 0
18922
18923   ;
18924   return 0;
18925 }
18926 _ACEOF
18927 rm -f conftest.$ac_objext
18928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18929   (eval $ac_compile) 2>conftest.er1
18930   ac_status=$?
18931   grep -v '^ *+' conftest.er1 >conftest.err
18932   rm -f conftest.er1
18933   cat conftest.err >&5
18934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935   (exit $ac_status); } &&
18936          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938   (eval $ac_try) 2>&5
18939   ac_status=$?
18940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941   (exit $ac_status); }; } &&
18942          { ac_try='test -s conftest.$ac_objext'
18943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944   (eval $ac_try) 2>&5
18945   ac_status=$?
18946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947   (exit $ac_status); }; }; then
18948   ac_hi=-1 ac_mid=-1
18949   while :; do
18950     cat >conftest.$ac_ext <<_ACEOF
18951 /* confdefs.h.  */
18952 _ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h.  */
18956 $ac_includes_default
18957 int
18958 main ()
18959 {
18960 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18961 test_array [0] = 0
18962
18963   ;
18964   return 0;
18965 }
18966 _ACEOF
18967 rm -f conftest.$ac_objext
18968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18969   (eval $ac_compile) 2>conftest.er1
18970   ac_status=$?
18971   grep -v '^ *+' conftest.er1 >conftest.err
18972   rm -f conftest.er1
18973   cat conftest.err >&5
18974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975   (exit $ac_status); } &&
18976          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
18977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18978   (eval $ac_try) 2>&5
18979   ac_status=$?
18980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981   (exit $ac_status); }; } &&
18982          { ac_try='test -s conftest.$ac_objext'
18983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18984   (eval $ac_try) 2>&5
18985   ac_status=$?
18986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987   (exit $ac_status); }; }; then
18988   ac_lo=$ac_mid; break
18989 else
18990   echo "$as_me: failed program was:" >&5
18991 sed 's/^/| /' conftest.$ac_ext >&5
18992
18993 ac_hi=`expr '(' $ac_mid ')' - 1`
18994                        if test $ac_mid -le $ac_hi; then
18995                          ac_lo= ac_hi=
18996                          break
18997                        fi
18998                        ac_mid=`expr 2 '*' $ac_mid`
18999 fi
19000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19001   done
19002 else
19003   echo "$as_me: failed program was:" >&5
19004 sed 's/^/| /' conftest.$ac_ext >&5
19005
19006 ac_lo= ac_hi=
19007 fi
19008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19009 fi
19010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19011 # Binary search between lo and hi bounds.
19012 while test "x$ac_lo" != "x$ac_hi"; do
19013   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19014   cat >conftest.$ac_ext <<_ACEOF
19015 /* confdefs.h.  */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h.  */
19020 $ac_includes_default
19021 int
19022 main ()
19023 {
19024 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19025 test_array [0] = 0
19026
19027   ;
19028   return 0;
19029 }
19030 _ACEOF
19031 rm -f conftest.$ac_objext
19032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19033   (eval $ac_compile) 2>conftest.er1
19034   ac_status=$?
19035   grep -v '^ *+' conftest.er1 >conftest.err
19036   rm -f conftest.er1
19037   cat conftest.err >&5
19038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039   (exit $ac_status); } &&
19040          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042   (eval $ac_try) 2>&5
19043   ac_status=$?
19044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045   (exit $ac_status); }; } &&
19046          { ac_try='test -s conftest.$ac_objext'
19047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048   (eval $ac_try) 2>&5
19049   ac_status=$?
19050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051   (exit $ac_status); }; }; then
19052   ac_hi=$ac_mid
19053 else
19054   echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19056
19057 ac_lo=`expr '(' $ac_mid ')' + 1`
19058 fi
19059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19060 done
19061 case $ac_lo in
19062 ?*) ac_cv_sizeof_long_long=$ac_lo;;
19063 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19064 See \`config.log' for more details." >&5
19065 echo "$as_me: error: cannot compute sizeof (long long), 77
19066 See \`config.log' for more details." >&2;}
19067    { (exit 1); exit 1; }; } ;;
19068 esac
19069 else
19070   if test "$cross_compiling" = yes; then
19071   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19072 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19073    { (exit 1); exit 1; }; }
19074 else
19075   cat >conftest.$ac_ext <<_ACEOF
19076 /* confdefs.h.  */
19077 _ACEOF
19078 cat confdefs.h >>conftest.$ac_ext
19079 cat >>conftest.$ac_ext <<_ACEOF
19080 /* end confdefs.h.  */
19081 $ac_includes_default
19082 long longval () { return (long) (sizeof (long long)); }
19083 unsigned long ulongval () { return (long) (sizeof (long long)); }
19084 #include <stdio.h>
19085 #include <stdlib.h>
19086 int
19087 main ()
19088 {
19089
19090   FILE *f = fopen ("conftest.val", "w");
19091   if (! f)
19092     exit (1);
19093   if (((long) (sizeof (long long))) < 0)
19094     {
19095       long i = longval ();
19096       if (i != ((long) (sizeof (long long))))
19097         exit (1);
19098       fprintf (f, "%ld\n", i);
19099     }
19100   else
19101     {
19102       unsigned long i = ulongval ();
19103       if (i != ((long) (sizeof (long long))))
19104         exit (1);
19105       fprintf (f, "%lu\n", i);
19106     }
19107   exit (ferror (f) || fclose (f) != 0);
19108
19109   ;
19110   return 0;
19111 }
19112 _ACEOF
19113 rm -f conftest$ac_exeext
19114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19115   (eval $ac_link) 2>&5
19116   ac_status=$?
19117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120   (eval $ac_try) 2>&5
19121   ac_status=$?
19122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123   (exit $ac_status); }; }; then
19124   ac_cv_sizeof_long_long=`cat conftest.val`
19125 else
19126   echo "$as_me: program exited with status $ac_status" >&5
19127 echo "$as_me: failed program was:" >&5
19128 sed 's/^/| /' conftest.$ac_ext >&5
19129
19130 ( exit $ac_status )
19131 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19132 See \`config.log' for more details." >&5
19133 echo "$as_me: error: cannot compute sizeof (long long), 77
19134 See \`config.log' for more details." >&2;}
19135    { (exit 1); exit 1; }; }
19136 fi
19137 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19138 fi
19139 fi
19140 rm -f conftest.val
19141 else
19142   ac_cv_sizeof_long_long=0
19143 fi
19144 fi
19145 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19146 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19147 cat >>confdefs.h <<_ACEOF
19148 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19149 _ACEOF
19150
19151
19152 esac
19153
19154 echo "$as_me:$LINENO: checking for wchar_t" >&5
19155 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19156 if test "${ac_cv_type_wchar_t+set}" = set; then
19157   echo $ECHO_N "(cached) $ECHO_C" >&6
19158 else
19159   cat >conftest.$ac_ext <<_ACEOF
19160 /* confdefs.h.  */
19161 _ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h.  */
19165
19166         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19167         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
19168         #  error "fake wchar_t"
19169         #endif
19170         #ifdef HAVE_WCHAR_H
19171         #  ifdef __CYGWIN__
19172         #    include <stddef.h>
19173         #  endif
19174         #  include <wchar.h>
19175         #endif
19176         #ifdef HAVE_STDLIB_H
19177         #  include <stdlib.h>
19178         #endif
19179         #include <stdio.h>
19180
19181
19182
19183 int
19184 main ()
19185 {
19186 if ((wchar_t *) 0)
19187   return 0;
19188 if (sizeof (wchar_t))
19189   return 0;
19190   ;
19191   return 0;
19192 }
19193 _ACEOF
19194 rm -f conftest.$ac_objext
19195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19196   (eval $ac_compile) 2>conftest.er1
19197   ac_status=$?
19198   grep -v '^ *+' conftest.er1 >conftest.err
19199   rm -f conftest.er1
19200   cat conftest.err >&5
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); } &&
19203          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205   (eval $ac_try) 2>&5
19206   ac_status=$?
19207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208   (exit $ac_status); }; } &&
19209          { ac_try='test -s conftest.$ac_objext'
19210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211   (eval $ac_try) 2>&5
19212   ac_status=$?
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); }; }; then
19215   ac_cv_type_wchar_t=yes
19216 else
19217   echo "$as_me: failed program was:" >&5
19218 sed 's/^/| /' conftest.$ac_ext >&5
19219
19220 ac_cv_type_wchar_t=no
19221 fi
19222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19223 fi
19224 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19225 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19226
19227 echo "$as_me:$LINENO: checking size of wchar_t" >&5
19228 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
19229 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
19230   echo $ECHO_N "(cached) $ECHO_C" >&6
19231 else
19232   if test "$ac_cv_type_wchar_t" = yes; then
19233   # The cast to unsigned long works around a bug in the HP C Compiler
19234   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19235   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19236   # This bug is HP SR number 8606223364.
19237   if test "$cross_compiling" = yes; then
19238   # Depending upon the size, compute the lo and hi bounds.
19239 cat >conftest.$ac_ext <<_ACEOF
19240 /* confdefs.h.  */
19241 _ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h.  */
19245
19246         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19247         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
19248         #  error "fake wchar_t"
19249         #endif
19250         #ifdef HAVE_WCHAR_H
19251         #  ifdef __CYGWIN__
19252         #    include <stddef.h>
19253         #  endif
19254         #  include <wchar.h>
19255         #endif
19256         #ifdef HAVE_STDLIB_H
19257         #  include <stdlib.h>
19258         #endif
19259         #include <stdio.h>
19260
19261
19262
19263 int
19264 main ()
19265 {
19266 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19267 test_array [0] = 0
19268
19269   ;
19270   return 0;
19271 }
19272 _ACEOF
19273 rm -f conftest.$ac_objext
19274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19275   (eval $ac_compile) 2>conftest.er1
19276   ac_status=$?
19277   grep -v '^ *+' conftest.er1 >conftest.err
19278   rm -f conftest.er1
19279   cat conftest.err >&5
19280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281   (exit $ac_status); } &&
19282          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284   (eval $ac_try) 2>&5
19285   ac_status=$?
19286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287   (exit $ac_status); }; } &&
19288          { ac_try='test -s conftest.$ac_objext'
19289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19290   (eval $ac_try) 2>&5
19291   ac_status=$?
19292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293   (exit $ac_status); }; }; then
19294   ac_lo=0 ac_mid=0
19295   while :; do
19296     cat >conftest.$ac_ext <<_ACEOF
19297 /* confdefs.h.  */
19298 _ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h.  */
19302
19303         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19304         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
19305         #  error "fake wchar_t"
19306         #endif
19307         #ifdef HAVE_WCHAR_H
19308         #  ifdef __CYGWIN__
19309         #    include <stddef.h>
19310         #  endif
19311         #  include <wchar.h>
19312         #endif
19313         #ifdef HAVE_STDLIB_H
19314         #  include <stdlib.h>
19315         #endif
19316         #include <stdio.h>
19317
19318
19319
19320 int
19321 main ()
19322 {
19323 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19324 test_array [0] = 0
19325
19326   ;
19327   return 0;
19328 }
19329 _ACEOF
19330 rm -f conftest.$ac_objext
19331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19332   (eval $ac_compile) 2>conftest.er1
19333   ac_status=$?
19334   grep -v '^ *+' conftest.er1 >conftest.err
19335   rm -f conftest.er1
19336   cat conftest.err >&5
19337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338   (exit $ac_status); } &&
19339          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341   (eval $ac_try) 2>&5
19342   ac_status=$?
19343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344   (exit $ac_status); }; } &&
19345          { ac_try='test -s conftest.$ac_objext'
19346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347   (eval $ac_try) 2>&5
19348   ac_status=$?
19349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350   (exit $ac_status); }; }; then
19351   ac_hi=$ac_mid; break
19352 else
19353   echo "$as_me: failed program was:" >&5
19354 sed 's/^/| /' conftest.$ac_ext >&5
19355
19356 ac_lo=`expr $ac_mid + 1`
19357                     if test $ac_lo -le $ac_mid; then
19358                       ac_lo= ac_hi=
19359                       break
19360                     fi
19361                     ac_mid=`expr 2 '*' $ac_mid + 1`
19362 fi
19363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19364   done
19365 else
19366   echo "$as_me: failed program was:" >&5
19367 sed 's/^/| /' conftest.$ac_ext >&5
19368
19369 cat >conftest.$ac_ext <<_ACEOF
19370 /* confdefs.h.  */
19371 _ACEOF
19372 cat confdefs.h >>conftest.$ac_ext
19373 cat >>conftest.$ac_ext <<_ACEOF
19374 /* end confdefs.h.  */
19375
19376         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19377         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
19378         #  error "fake wchar_t"
19379         #endif
19380         #ifdef HAVE_WCHAR_H
19381         #  ifdef __CYGWIN__
19382         #    include <stddef.h>
19383         #  endif
19384         #  include <wchar.h>
19385         #endif
19386         #ifdef HAVE_STDLIB_H
19387         #  include <stdlib.h>
19388         #endif
19389         #include <stdio.h>
19390
19391
19392
19393 int
19394 main ()
19395 {
19396 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19397 test_array [0] = 0
19398
19399   ;
19400   return 0;
19401 }
19402 _ACEOF
19403 rm -f conftest.$ac_objext
19404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19405   (eval $ac_compile) 2>conftest.er1
19406   ac_status=$?
19407   grep -v '^ *+' conftest.er1 >conftest.err
19408   rm -f conftest.er1
19409   cat conftest.err >&5
19410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411   (exit $ac_status); } &&
19412          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414   (eval $ac_try) 2>&5
19415   ac_status=$?
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); }; } &&
19418          { ac_try='test -s conftest.$ac_objext'
19419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19420   (eval $ac_try) 2>&5
19421   ac_status=$?
19422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423   (exit $ac_status); }; }; then
19424   ac_hi=-1 ac_mid=-1
19425   while :; do
19426     cat >conftest.$ac_ext <<_ACEOF
19427 /* confdefs.h.  */
19428 _ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h.  */
19432
19433         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19434         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
19435         #  error "fake wchar_t"
19436         #endif
19437         #ifdef HAVE_WCHAR_H
19438         #  ifdef __CYGWIN__
19439         #    include <stddef.h>
19440         #  endif
19441         #  include <wchar.h>
19442         #endif
19443         #ifdef HAVE_STDLIB_H
19444         #  include <stdlib.h>
19445         #endif
19446         #include <stdio.h>
19447
19448
19449
19450 int
19451 main ()
19452 {
19453 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19454 test_array [0] = 0
19455
19456   ;
19457   return 0;
19458 }
19459 _ACEOF
19460 rm -f conftest.$ac_objext
19461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19462   (eval $ac_compile) 2>conftest.er1
19463   ac_status=$?
19464   grep -v '^ *+' conftest.er1 >conftest.err
19465   rm -f conftest.er1
19466   cat conftest.err >&5
19467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468   (exit $ac_status); } &&
19469          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471   (eval $ac_try) 2>&5
19472   ac_status=$?
19473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474   (exit $ac_status); }; } &&
19475          { ac_try='test -s conftest.$ac_objext'
19476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477   (eval $ac_try) 2>&5
19478   ac_status=$?
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); }; }; then
19481   ac_lo=$ac_mid; break
19482 else
19483   echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486 ac_hi=`expr '(' $ac_mid ')' - 1`
19487                        if test $ac_mid -le $ac_hi; then
19488                          ac_lo= ac_hi=
19489                          break
19490                        fi
19491                        ac_mid=`expr 2 '*' $ac_mid`
19492 fi
19493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19494   done
19495 else
19496   echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19498
19499 ac_lo= ac_hi=
19500 fi
19501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19502 fi
19503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19504 # Binary search between lo and hi bounds.
19505 while test "x$ac_lo" != "x$ac_hi"; do
19506   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19507   cat >conftest.$ac_ext <<_ACEOF
19508 /* confdefs.h.  */
19509 _ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h.  */
19513
19514         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19515         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
19516         #  error "fake wchar_t"
19517         #endif
19518         #ifdef HAVE_WCHAR_H
19519         #  ifdef __CYGWIN__
19520         #    include <stddef.h>
19521         #  endif
19522         #  include <wchar.h>
19523         #endif
19524         #ifdef HAVE_STDLIB_H
19525         #  include <stdlib.h>
19526         #endif
19527         #include <stdio.h>
19528
19529
19530
19531 int
19532 main ()
19533 {
19534 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19535 test_array [0] = 0
19536
19537   ;
19538   return 0;
19539 }
19540 _ACEOF
19541 rm -f conftest.$ac_objext
19542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19543   (eval $ac_compile) 2>conftest.er1
19544   ac_status=$?
19545   grep -v '^ *+' conftest.er1 >conftest.err
19546   rm -f conftest.er1
19547   cat conftest.err >&5
19548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549   (exit $ac_status); } &&
19550          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552   (eval $ac_try) 2>&5
19553   ac_status=$?
19554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555   (exit $ac_status); }; } &&
19556          { ac_try='test -s conftest.$ac_objext'
19557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558   (eval $ac_try) 2>&5
19559   ac_status=$?
19560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561   (exit $ac_status); }; }; then
19562   ac_hi=$ac_mid
19563 else
19564   echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19566
19567 ac_lo=`expr '(' $ac_mid ')' + 1`
19568 fi
19569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19570 done
19571 case $ac_lo in
19572 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19573 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19574 See \`config.log' for more details." >&5
19575 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19576 See \`config.log' for more details." >&2;}
19577    { (exit 1); exit 1; }; } ;;
19578 esac
19579 else
19580   if test "$cross_compiling" = yes; then
19581   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19582 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
19583    { (exit 1); exit 1; }; }
19584 else
19585   cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h.  */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h.  */
19591
19592         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19593         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
19594         #  error "fake wchar_t"
19595         #endif
19596         #ifdef HAVE_WCHAR_H
19597         #  ifdef __CYGWIN__
19598         #    include <stddef.h>
19599         #  endif
19600         #  include <wchar.h>
19601         #endif
19602         #ifdef HAVE_STDLIB_H
19603         #  include <stdlib.h>
19604         #endif
19605         #include <stdio.h>
19606
19607
19608
19609 long longval () { return (long) (sizeof (wchar_t)); }
19610 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19611 #include <stdio.h>
19612 #include <stdlib.h>
19613 int
19614 main ()
19615 {
19616
19617   FILE *f = fopen ("conftest.val", "w");
19618   if (! f)
19619     exit (1);
19620   if (((long) (sizeof (wchar_t))) < 0)
19621     {
19622       long i = longval ();
19623       if (i != ((long) (sizeof (wchar_t))))
19624         exit (1);
19625       fprintf (f, "%ld\n", i);
19626     }
19627   else
19628     {
19629       unsigned long i = ulongval ();
19630       if (i != ((long) (sizeof (wchar_t))))
19631         exit (1);
19632       fprintf (f, "%lu\n", i);
19633     }
19634   exit (ferror (f) || fclose (f) != 0);
19635
19636   ;
19637   return 0;
19638 }
19639 _ACEOF
19640 rm -f conftest$ac_exeext
19641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19642   (eval $ac_link) 2>&5
19643   ac_status=$?
19644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647   (eval $ac_try) 2>&5
19648   ac_status=$?
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); }; }; then
19651   ac_cv_sizeof_wchar_t=`cat conftest.val`
19652 else
19653   echo "$as_me: program exited with status $ac_status" >&5
19654 echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19656
19657 ( exit $ac_status )
19658 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19659 See \`config.log' for more details." >&5
19660 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19661 See \`config.log' for more details." >&2;}
19662    { (exit 1); exit 1; }; }
19663 fi
19664 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19665 fi
19666 fi
19667 rm -f conftest.val
19668 else
19669   ac_cv_sizeof_wchar_t=0
19670 fi
19671 fi
19672 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19673 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
19674 cat >>confdefs.h <<_ACEOF
19675 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
19676 _ACEOF
19677
19678
19679 if test "$ac_cv_sizeof_wchar_t" != "0"; then
19680     wxUSE_WCHAR_T=yes
19681 else
19682     wxUSE_WCHAR_T=no
19683 fi
19684
19685 echo "$as_me:$LINENO: checking for va_copy" >&5
19686 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19687 if test "${wx_cv_func_va_copy+set}" = set; then
19688   echo $ECHO_N "(cached) $ECHO_C" >&6
19689 else
19690
19691         cat >conftest.$ac_ext <<_ACEOF
19692
19693             #include <stdarg.h>
19694             void foo(char *f, ...)
19695             {
19696                 va_list ap1, ap2;
19697                 va_start(ap1, f);
19698                 va_copy(ap2, ap1);
19699                 va_end(ap2);
19700                 va_end(ap1);
19701             }
19702             int main()
19703             {
19704                 foo("hi", 17);
19705                 return 0;
19706             }
19707 _ACEOF
19708 rm -f conftest.$ac_objext conftest$ac_exeext
19709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19710   (eval $ac_link) 2>conftest.er1
19711   ac_status=$?
19712   grep -v '^ *+' conftest.er1 >conftest.err
19713   rm -f conftest.er1
19714   cat conftest.err >&5
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); } &&
19717          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719   (eval $ac_try) 2>&5
19720   ac_status=$?
19721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722   (exit $ac_status); }; } &&
19723          { ac_try='test -s conftest$ac_exeext'
19724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725   (eval $ac_try) 2>&5
19726   ac_status=$?
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); }; }; then
19729   wx_cv_func_va_copy=yes
19730 else
19731   echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19733
19734 wx_cv_func_va_copy=no
19735
19736 fi
19737 rm -f conftest.err conftest.$ac_objext \
19738       conftest$ac_exeext conftest.$ac_ext
19739
19740
19741 fi
19742 echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19743 echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19744
19745 if test $wx_cv_func_va_copy = "yes"; then
19746     cat >>confdefs.h <<\_ACEOF
19747 #define HAVE_VA_COPY 1
19748 _ACEOF
19749
19750 else
19751         echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19752 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19753 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19754   echo $ECHO_N "(cached) $ECHO_C" >&6
19755 else
19756
19757             if test "$cross_compiling" = yes; then
19758                   wx_cv_type_va_list_lvalue=yes
19759
19760 else
19761   cat >conftest.$ac_ext <<_ACEOF
19762
19763                 #include <stdarg.h>
19764                 int foo(char *f, ...)
19765                 {
19766                     va_list ap1, ap2;
19767                     va_start(ap1, f);
19768                     ap2 = ap1;
19769                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19770                         return 1;
19771                     va_end(ap2);
19772                     va_end(ap1);
19773                     return 0;
19774                 }
19775                 int main()
19776                 {
19777                     return foo("hi", 17);
19778                 }
19779 _ACEOF
19780 rm -f conftest$ac_exeext
19781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19782   (eval $ac_link) 2>&5
19783   ac_status=$?
19784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787   (eval $ac_try) 2>&5
19788   ac_status=$?
19789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790   (exit $ac_status); }; }; then
19791   wx_cv_type_va_list_lvalue=yes
19792 else
19793   echo "$as_me: program exited with status $ac_status" >&5
19794 echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19796
19797 ( exit $ac_status )
19798 wx_cv_type_va_list_lvalue=no
19799 fi
19800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19801 fi
19802
19803
19804 fi
19805 echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19806 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19807
19808     if test $wx_cv_type_va_list_lvalue != "yes"; then
19809                         cat >>confdefs.h <<\_ACEOF
19810 #define VA_LIST_IS_ARRAY 1
19811 _ACEOF
19812
19813     fi
19814 fi
19815
19816 # Check whether --enable-largefile or --disable-largefile was given.
19817 if test "${enable_largefile+set}" = set; then
19818   enableval="$enable_largefile"
19819
19820 fi;
19821 if test "$enable_largefile" != no; then
19822             wx_largefile=no
19823
19824     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19825 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19826 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19827   echo $ECHO_N "(cached) $ECHO_C" >&6
19828 else
19829
19830           cat >conftest.$ac_ext <<_ACEOF
19831 /* confdefs.h.  */
19832 _ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h.  */
19836 #define _FILE_OFFSET_BITS 64
19837                           #include <sys/types.h>
19838 int
19839 main ()
19840 {
19841 typedef struct {
19842     unsigned int field: sizeof(off_t) == 8;
19843 } wxlf;
19844
19845   ;
19846   return 0;
19847 }
19848 _ACEOF
19849 rm -f conftest.$ac_objext
19850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19851   (eval $ac_compile) 2>conftest.er1
19852   ac_status=$?
19853   grep -v '^ *+' conftest.er1 >conftest.err
19854   rm -f conftest.er1
19855   cat conftest.err >&5
19856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857   (exit $ac_status); } &&
19858          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19860   (eval $ac_try) 2>&5
19861   ac_status=$?
19862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863   (exit $ac_status); }; } &&
19864          { ac_try='test -s conftest.$ac_objext'
19865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866   (eval $ac_try) 2>&5
19867   ac_status=$?
19868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869   (exit $ac_status); }; }; then
19870   ac_cv_sys_file_offset_bits=64
19871 else
19872   echo "$as_me: failed program was:" >&5
19873 sed 's/^/| /' conftest.$ac_ext >&5
19874
19875 ac_cv_sys_file_offset_bits=no
19876 fi
19877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19878
19879
19880 fi
19881 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19882 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19883
19884     if test "$ac_cv_sys_file_offset_bits" != no; then
19885         wx_largefile=yes
19886         cat >>confdefs.h <<_ACEOF
19887 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19888 _ACEOF
19889
19890     fi
19891
19892     if test "x$wx_largefile" != "xyes"; then
19893
19894     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19895 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19896 if test "${ac_cv_sys_large_files+set}" = set; then
19897   echo $ECHO_N "(cached) $ECHO_C" >&6
19898 else
19899
19900           cat >conftest.$ac_ext <<_ACEOF
19901 /* confdefs.h.  */
19902 _ACEOF
19903 cat confdefs.h >>conftest.$ac_ext
19904 cat >>conftest.$ac_ext <<_ACEOF
19905 /* end confdefs.h.  */
19906 #define _LARGE_FILES 1
19907                           #include <sys/types.h>
19908 int
19909 main ()
19910 {
19911 typedef struct {
19912     unsigned int field: sizeof(off_t) == 8;
19913 } wxlf;
19914
19915   ;
19916   return 0;
19917 }
19918 _ACEOF
19919 rm -f conftest.$ac_objext
19920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19921   (eval $ac_compile) 2>conftest.er1
19922   ac_status=$?
19923   grep -v '^ *+' conftest.er1 >conftest.err
19924   rm -f conftest.er1
19925   cat conftest.err >&5
19926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927   (exit $ac_status); } &&
19928          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930   (eval $ac_try) 2>&5
19931   ac_status=$?
19932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933   (exit $ac_status); }; } &&
19934          { ac_try='test -s conftest.$ac_objext'
19935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936   (eval $ac_try) 2>&5
19937   ac_status=$?
19938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939   (exit $ac_status); }; }; then
19940   ac_cv_sys_large_files=1
19941 else
19942   echo "$as_me: failed program was:" >&5
19943 sed 's/^/| /' conftest.$ac_ext >&5
19944
19945 ac_cv_sys_large_files=no
19946 fi
19947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19948
19949
19950 fi
19951 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19952 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19953
19954     if test "$ac_cv_sys_large_files" != no; then
19955         wx_largefile=yes
19956         cat >>confdefs.h <<_ACEOF
19957 #define _LARGE_FILES $ac_cv_sys_large_files
19958 _ACEOF
19959
19960     fi
19961
19962     fi
19963
19964     echo "$as_me:$LINENO: checking if large file support is available" >&5
19965 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19966     if test "x$wx_largefile" = "xyes"; then
19967         cat >>confdefs.h <<\_ACEOF
19968 #define HAVE_LARGEFILE_SUPPORT 1
19969 _ACEOF
19970
19971     fi
19972     echo "$as_me:$LINENO: result: $wx_largefile" >&5
19973 echo "${ECHO_T}$wx_largefile" >&6
19974 fi
19975
19976
19977 if test "x$wx_largefile" = "xyes"; then
19978     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19979         WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
19980     else
19981         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19982     fi
19983         echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19984 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19985 if test "${ac_cv_sys_largefile_source+set}" = set; then
19986   echo $ECHO_N "(cached) $ECHO_C" >&6
19987 else
19988   while :; do
19989   ac_cv_sys_largefile_source=no
19990   cat >conftest.$ac_ext <<_ACEOF
19991 /* confdefs.h.  */
19992 _ACEOF
19993 cat confdefs.h >>conftest.$ac_ext
19994 cat >>conftest.$ac_ext <<_ACEOF
19995 /* end confdefs.h.  */
19996 #include <stdio.h>
19997 int
19998 main ()
19999 {
20000 return !fseeko;
20001   ;
20002   return 0;
20003 }
20004 _ACEOF
20005 rm -f conftest.$ac_objext
20006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20007   (eval $ac_compile) 2>conftest.er1
20008   ac_status=$?
20009   grep -v '^ *+' conftest.er1 >conftest.err
20010   rm -f conftest.er1
20011   cat conftest.err >&5
20012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013   (exit $ac_status); } &&
20014          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016   (eval $ac_try) 2>&5
20017   ac_status=$?
20018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019   (exit $ac_status); }; } &&
20020          { ac_try='test -s conftest.$ac_objext'
20021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20022   (eval $ac_try) 2>&5
20023   ac_status=$?
20024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025   (exit $ac_status); }; }; then
20026   break
20027 else
20028   echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20030
20031 fi
20032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20033   cat >conftest.$ac_ext <<_ACEOF
20034 /* confdefs.h.  */
20035 _ACEOF
20036 cat confdefs.h >>conftest.$ac_ext
20037 cat >>conftest.$ac_ext <<_ACEOF
20038 /* end confdefs.h.  */
20039 #define _LARGEFILE_SOURCE 1
20040 #include <stdio.h>
20041 int
20042 main ()
20043 {
20044 return !fseeko;
20045   ;
20046   return 0;
20047 }
20048 _ACEOF
20049 rm -f conftest.$ac_objext
20050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20051   (eval $ac_compile) 2>conftest.er1
20052   ac_status=$?
20053   grep -v '^ *+' conftest.er1 >conftest.err
20054   rm -f conftest.er1
20055   cat conftest.err >&5
20056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057   (exit $ac_status); } &&
20058          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060   (eval $ac_try) 2>&5
20061   ac_status=$?
20062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063   (exit $ac_status); }; } &&
20064          { ac_try='test -s conftest.$ac_objext'
20065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20066   (eval $ac_try) 2>&5
20067   ac_status=$?
20068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069   (exit $ac_status); }; }; then
20070   ac_cv_sys_largefile_source=1; break
20071 else
20072   echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.$ac_ext >&5
20074
20075 fi
20076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20077   break
20078 done
20079 fi
20080 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20081 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20082 if test "$ac_cv_sys_largefile_source" != no; then
20083
20084 cat >>confdefs.h <<_ACEOF
20085 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20086 _ACEOF
20087
20088 fi
20089 rm -f conftest*
20090
20091 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20092 # in glibc 2.1.3, but that breaks too many other things.
20093 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20094 echo "$as_me:$LINENO: checking for fseeko" >&5
20095 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20096 if test "${ac_cv_func_fseeko+set}" = set; then
20097   echo $ECHO_N "(cached) $ECHO_C" >&6
20098 else
20099   cat >conftest.$ac_ext <<_ACEOF
20100 /* confdefs.h.  */
20101 _ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h.  */
20105 #include <stdio.h>
20106 int
20107 main ()
20108 {
20109 return fseeko && fseeko (stdin, 0, 0);
20110   ;
20111   return 0;
20112 }
20113 _ACEOF
20114 rm -f conftest.$ac_objext conftest$ac_exeext
20115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20116   (eval $ac_link) 2>conftest.er1
20117   ac_status=$?
20118   grep -v '^ *+' conftest.er1 >conftest.err
20119   rm -f conftest.er1
20120   cat conftest.err >&5
20121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122   (exit $ac_status); } &&
20123          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125   (eval $ac_try) 2>&5
20126   ac_status=$?
20127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128   (exit $ac_status); }; } &&
20129          { ac_try='test -s conftest$ac_exeext'
20130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131   (eval $ac_try) 2>&5
20132   ac_status=$?
20133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134   (exit $ac_status); }; }; then
20135   ac_cv_func_fseeko=yes
20136 else
20137   echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20139
20140 ac_cv_func_fseeko=no
20141 fi
20142 rm -f conftest.err conftest.$ac_objext \
20143       conftest$ac_exeext conftest.$ac_ext
20144 fi
20145 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20146 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20147 if test $ac_cv_func_fseeko = yes; then
20148
20149 cat >>confdefs.h <<\_ACEOF
20150 #define HAVE_FSEEKO 1
20151 _ACEOF
20152
20153 fi
20154
20155     if test "$ac_cv_sys_largefile_source" != no; then
20156         WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
20157     fi
20158     CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20159 fi
20160
20161 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20162 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20163 if test "${ac_cv_c_bigendian+set}" = set; then
20164   echo $ECHO_N "(cached) $ECHO_C" >&6
20165 else
20166   ac_cv_c_bigendian=unknown
20167 # See if sys/param.h defines the BYTE_ORDER macro.
20168 cat >conftest.$ac_ext <<_ACEOF
20169 /* confdefs.h.  */
20170 _ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h.  */
20174 #include <sys/types.h>
20175 #include <sys/param.h>
20176 int
20177 main ()
20178 {
20179
20180 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20181  bogus endian macros
20182 #endif
20183   ;
20184   return 0;
20185 }
20186 _ACEOF
20187 rm -f conftest.$ac_objext
20188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20189   (eval $ac_compile) 2>conftest.er1
20190   ac_status=$?
20191   grep -v '^ *+' conftest.er1 >conftest.err
20192   rm -f conftest.er1
20193   cat conftest.err >&5
20194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195   (exit $ac_status); } &&
20196          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198   (eval $ac_try) 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); }; } &&
20202          { ac_try='test -s conftest.$ac_objext'
20203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204   (eval $ac_try) 2>&5
20205   ac_status=$?
20206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207   (exit $ac_status); }; }; then
20208   # It does; now see whether it defined to BIG_ENDIAN or not.
20209 cat >conftest.$ac_ext <<_ACEOF
20210 /* confdefs.h.  */
20211 _ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h.  */
20215 #include <sys/types.h>
20216 #include <sys/param.h>
20217 int
20218 main ()
20219 {
20220
20221 #if BYTE_ORDER != BIG_ENDIAN
20222  not big endian
20223 #endif
20224   ;
20225   return 0;
20226 }
20227 _ACEOF
20228 rm -f conftest.$ac_objext
20229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20230   (eval $ac_compile) 2>conftest.er1
20231   ac_status=$?
20232   grep -v '^ *+' conftest.er1 >conftest.err
20233   rm -f conftest.er1
20234   cat conftest.err >&5
20235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236   (exit $ac_status); } &&
20237          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239   (eval $ac_try) 2>&5
20240   ac_status=$?
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); }; } &&
20243          { ac_try='test -s conftest.$ac_objext'
20244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245   (eval $ac_try) 2>&5
20246   ac_status=$?
20247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); }; }; then
20249   ac_cv_c_bigendian=yes
20250 else
20251   echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20253
20254 ac_cv_c_bigendian=no
20255 fi
20256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20257 else
20258   echo "$as_me: failed program was:" >&5
20259 sed 's/^/| /' conftest.$ac_ext >&5
20260
20261 fi
20262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20263 if test $ac_cv_c_bigendian = unknown; then
20264 if test "$cross_compiling" = yes; then
20265   ac_cv_c_bigendian=unknown
20266 else
20267   cat >conftest.$ac_ext <<_ACEOF
20268 /* confdefs.h.  */
20269 _ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h.  */
20273 main () {
20274   /* Are we little or big endian?  From Harbison&Steele.  */
20275   union
20276   {
20277     long l;
20278     char c[sizeof (long)];
20279   } u;
20280   u.l = 1;
20281   exit (u.c[sizeof (long) - 1] == 1);
20282 }
20283 _ACEOF
20284 rm -f conftest$ac_exeext
20285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20286   (eval $ac_link) 2>&5
20287   ac_status=$?
20288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20291   (eval $ac_try) 2>&5
20292   ac_status=$?
20293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294   (exit $ac_status); }; }; then
20295   ac_cv_c_bigendian=no
20296 else
20297   echo "$as_me: program exited with status $ac_status" >&5
20298 echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20300
20301 ( exit $ac_status )
20302 ac_cv_c_bigendian=yes
20303 fi
20304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20305 fi
20306 fi
20307 fi
20308 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20309 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20310 if test $ac_cv_c_bigendian = unknown; then
20311   { 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
20312 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;}
20313 fi
20314 if test $ac_cv_c_bigendian = yes; then
20315   cat >>confdefs.h <<\_ACEOF
20316 #define WORDS_BIGENDIAN 1
20317 _ACEOF
20318
20319 fi
20320
20321
20322 ac_ext=cc
20323 ac_cpp='$CXXCPP $CPPFLAGS'
20324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20327 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20328 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20329 if test -z "$CXXCPP"; then
20330   if test "${ac_cv_prog_CXXCPP+set}" = set; then
20331   echo $ECHO_N "(cached) $ECHO_C" >&6
20332 else
20333       # Double quotes because CXXCPP needs to be expanded
20334     for CXXCPP in "$CXX -E" "/lib/cpp"
20335     do
20336       ac_preproc_ok=false
20337 for ac_cxx_preproc_warn_flag in '' yes
20338 do
20339   # Use a header file that comes with gcc, so configuring glibc
20340   # with a fresh cross-compiler works.
20341   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20342   # <limits.h> exists even on freestanding compilers.
20343   # On the NeXT, cc -E runs the code through the compiler's parser,
20344   # not just through cpp. "Syntax error" is here to catch this case.
20345   cat >conftest.$ac_ext <<_ACEOF
20346 /* confdefs.h.  */
20347 _ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h.  */
20351 #ifdef __STDC__
20352 # include <limits.h>
20353 #else
20354 # include <assert.h>
20355 #endif
20356                      Syntax error
20357 _ACEOF
20358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20360   ac_status=$?
20361   grep -v '^ *+' conftest.er1 >conftest.err
20362   rm -f conftest.er1
20363   cat conftest.err >&5
20364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365   (exit $ac_status); } >/dev/null; then
20366   if test -s conftest.err; then
20367     ac_cpp_err=$ac_cxx_preproc_warn_flag
20368     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20369   else
20370     ac_cpp_err=
20371   fi
20372 else
20373   ac_cpp_err=yes
20374 fi
20375 if test -z "$ac_cpp_err"; then
20376   :
20377 else
20378   echo "$as_me: failed program was:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20380
20381   # Broken: fails on valid input.
20382 continue
20383 fi
20384 rm -f conftest.err conftest.$ac_ext
20385
20386   # OK, works on sane cases.  Now check whether non-existent headers
20387   # can be detected and how.
20388   cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h.  */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h.  */
20394 #include <ac_nonexistent.h>
20395 _ACEOF
20396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20398   ac_status=$?
20399   grep -v '^ *+' conftest.er1 >conftest.err
20400   rm -f conftest.er1
20401   cat conftest.err >&5
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); } >/dev/null; then
20404   if test -s conftest.err; then
20405     ac_cpp_err=$ac_cxx_preproc_warn_flag
20406     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20407   else
20408     ac_cpp_err=
20409   fi
20410 else
20411   ac_cpp_err=yes
20412 fi
20413 if test -z "$ac_cpp_err"; then
20414   # Broken: success on invalid input.
20415 continue
20416 else
20417   echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20419
20420   # Passes both tests.
20421 ac_preproc_ok=:
20422 break
20423 fi
20424 rm -f conftest.err conftest.$ac_ext
20425
20426 done
20427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20428 rm -f conftest.err conftest.$ac_ext
20429 if $ac_preproc_ok; then
20430   break
20431 fi
20432
20433     done
20434     ac_cv_prog_CXXCPP=$CXXCPP
20435
20436 fi
20437   CXXCPP=$ac_cv_prog_CXXCPP
20438 else
20439   ac_cv_prog_CXXCPP=$CXXCPP
20440 fi
20441 echo "$as_me:$LINENO: result: $CXXCPP" >&5
20442 echo "${ECHO_T}$CXXCPP" >&6
20443 ac_preproc_ok=false
20444 for ac_cxx_preproc_warn_flag in '' yes
20445 do
20446   # Use a header file that comes with gcc, so configuring glibc
20447   # with a fresh cross-compiler works.
20448   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20449   # <limits.h> exists even on freestanding compilers.
20450   # On the NeXT, cc -E runs the code through the compiler's parser,
20451   # not just through cpp. "Syntax error" is here to catch this case.
20452   cat >conftest.$ac_ext <<_ACEOF
20453 /* confdefs.h.  */
20454 _ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h.  */
20458 #ifdef __STDC__
20459 # include <limits.h>
20460 #else
20461 # include <assert.h>
20462 #endif
20463                      Syntax error
20464 _ACEOF
20465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20466   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20467   ac_status=$?
20468   grep -v '^ *+' conftest.er1 >conftest.err
20469   rm -f conftest.er1
20470   cat conftest.err >&5
20471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472   (exit $ac_status); } >/dev/null; then
20473   if test -s conftest.err; then
20474     ac_cpp_err=$ac_cxx_preproc_warn_flag
20475     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20476   else
20477     ac_cpp_err=
20478   fi
20479 else
20480   ac_cpp_err=yes
20481 fi
20482 if test -z "$ac_cpp_err"; then
20483   :
20484 else
20485   echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.$ac_ext >&5
20487
20488   # Broken: fails on valid input.
20489 continue
20490 fi
20491 rm -f conftest.err conftest.$ac_ext
20492
20493   # OK, works on sane cases.  Now check whether non-existent headers
20494   # can be detected and how.
20495   cat >conftest.$ac_ext <<_ACEOF
20496 /* confdefs.h.  */
20497 _ACEOF
20498 cat confdefs.h >>conftest.$ac_ext
20499 cat >>conftest.$ac_ext <<_ACEOF
20500 /* end confdefs.h.  */
20501 #include <ac_nonexistent.h>
20502 _ACEOF
20503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20504   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20505   ac_status=$?
20506   grep -v '^ *+' conftest.er1 >conftest.err
20507   rm -f conftest.er1
20508   cat conftest.err >&5
20509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510   (exit $ac_status); } >/dev/null; then
20511   if test -s conftest.err; then
20512     ac_cpp_err=$ac_cxx_preproc_warn_flag
20513     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20514   else
20515     ac_cpp_err=
20516   fi
20517 else
20518   ac_cpp_err=yes
20519 fi
20520 if test -z "$ac_cpp_err"; then
20521   # Broken: success on invalid input.
20522 continue
20523 else
20524   echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20526
20527   # Passes both tests.
20528 ac_preproc_ok=:
20529 break
20530 fi
20531 rm -f conftest.err conftest.$ac_ext
20532
20533 done
20534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20535 rm -f conftest.err conftest.$ac_ext
20536 if $ac_preproc_ok; then
20537   :
20538 else
20539   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20540 See \`config.log' for more details." >&5
20541 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20542 See \`config.log' for more details." >&2;}
20543    { (exit 1); exit 1; }; }
20544 fi
20545
20546 ac_ext=cc
20547 ac_cpp='$CXXCPP $CPPFLAGS'
20548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20551
20552
20553
20554
20555
20556     ac_ext=cc
20557 ac_cpp='$CXXCPP $CPPFLAGS'
20558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20561
20562
20563
20564 for ac_header in iostream
20565 do
20566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20568   echo "$as_me:$LINENO: checking for $ac_header" >&5
20569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20571   echo $ECHO_N "(cached) $ECHO_C" >&6
20572 fi
20573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20575 else
20576   # Is the header compilable?
20577 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20579 cat >conftest.$ac_ext <<_ACEOF
20580 /* confdefs.h.  */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h.  */
20585 $ac_includes_default
20586 #include <$ac_header>
20587 _ACEOF
20588 rm -f conftest.$ac_objext
20589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20590   (eval $ac_compile) 2>conftest.er1
20591   ac_status=$?
20592   grep -v '^ *+' conftest.er1 >conftest.err
20593   rm -f conftest.er1
20594   cat conftest.err >&5
20595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596   (exit $ac_status); } &&
20597          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599   (eval $ac_try) 2>&5
20600   ac_status=$?
20601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602   (exit $ac_status); }; } &&
20603          { ac_try='test -s conftest.$ac_objext'
20604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605   (eval $ac_try) 2>&5
20606   ac_status=$?
20607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608   (exit $ac_status); }; }; then
20609   ac_header_compiler=yes
20610 else
20611   echo "$as_me: failed program was:" >&5
20612 sed 's/^/| /' conftest.$ac_ext >&5
20613
20614 ac_header_compiler=no
20615 fi
20616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20618 echo "${ECHO_T}$ac_header_compiler" >&6
20619
20620 # Is the header present?
20621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20623 cat >conftest.$ac_ext <<_ACEOF
20624 /* confdefs.h.  */
20625 _ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h.  */
20629 #include <$ac_header>
20630 _ACEOF
20631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20632   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20633   ac_status=$?
20634   grep -v '^ *+' conftest.er1 >conftest.err
20635   rm -f conftest.er1
20636   cat conftest.err >&5
20637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638   (exit $ac_status); } >/dev/null; then
20639   if test -s conftest.err; then
20640     ac_cpp_err=$ac_cxx_preproc_warn_flag
20641     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20642   else
20643     ac_cpp_err=
20644   fi
20645 else
20646   ac_cpp_err=yes
20647 fi
20648 if test -z "$ac_cpp_err"; then
20649   ac_header_preproc=yes
20650 else
20651   echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20653
20654   ac_header_preproc=no
20655 fi
20656 rm -f conftest.err conftest.$ac_ext
20657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20658 echo "${ECHO_T}$ac_header_preproc" >&6
20659
20660 # So?  What about this header?
20661 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20662   yes:no: )
20663     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20667     ac_header_preproc=yes
20668     ;;
20669   no:yes:* )
20670     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20672     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20673 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20674     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20676     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20677 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20680     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20682     (
20683       cat <<\_ASBOX
20684 ## ----------------------------------------- ##
20685 ## Report this to wx-dev@lists.wxwidgets.org ##
20686 ## ----------------------------------------- ##
20687 _ASBOX
20688     ) |
20689       sed "s/^/$as_me: WARNING:     /" >&2
20690     ;;
20691 esac
20692 echo "$as_me:$LINENO: checking for $ac_header" >&5
20693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20695   echo $ECHO_N "(cached) $ECHO_C" >&6
20696 else
20697   eval "$as_ac_Header=\$ac_header_preproc"
20698 fi
20699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20701
20702 fi
20703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20704   cat >>confdefs.h <<_ACEOF
20705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20706 _ACEOF
20707
20708 fi
20709
20710 done
20711
20712
20713     if test "$ac_cv_header_iostream" = "yes" ; then
20714       :
20715     else
20716       cat >>confdefs.h <<\_ACEOF
20717 #define wxUSE_IOSTREAMH 1
20718 _ACEOF
20719
20720     fi
20721
20722     ac_ext=c
20723 ac_cpp='$CPP $CPPFLAGS'
20724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20727
20728
20729
20730
20731   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20732 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20733 if test "${wx_cv_cpp_bool+set}" = set; then
20734   echo $ECHO_N "(cached) $ECHO_C" >&6
20735 else
20736
20737
20738
20739     ac_ext=cc
20740 ac_cpp='$CXXCPP $CPPFLAGS'
20741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20744
20745
20746     cat >conftest.$ac_ext <<_ACEOF
20747 /* confdefs.h.  */
20748 _ACEOF
20749 cat confdefs.h >>conftest.$ac_ext
20750 cat >>conftest.$ac_ext <<_ACEOF
20751 /* end confdefs.h.  */
20752
20753
20754 int
20755 main ()
20756 {
20757
20758         bool b = true;
20759
20760         return 0;
20761
20762   ;
20763   return 0;
20764 }
20765 _ACEOF
20766 rm -f conftest.$ac_objext
20767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20768   (eval $ac_compile) 2>conftest.er1
20769   ac_status=$?
20770   grep -v '^ *+' conftest.er1 >conftest.err
20771   rm -f conftest.er1
20772   cat conftest.err >&5
20773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774   (exit $ac_status); } &&
20775          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20777   (eval $ac_try) 2>&5
20778   ac_status=$?
20779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780   (exit $ac_status); }; } &&
20781          { ac_try='test -s conftest.$ac_objext'
20782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20783   (eval $ac_try) 2>&5
20784   ac_status=$?
20785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786   (exit $ac_status); }; }; then
20787
20788         wx_cv_cpp_bool=yes
20789
20790 else
20791   echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20793
20794
20795         wx_cv_cpp_bool=no
20796
20797
20798 fi
20799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20800
20801     ac_ext=c
20802 ac_cpp='$CPP $CPPFLAGS'
20803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20806
20807
20808 fi
20809 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20810 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20811
20812   if test "$wx_cv_cpp_bool" = "yes"; then
20813     cat >>confdefs.h <<\_ACEOF
20814 #define HAVE_BOOL 1
20815 _ACEOF
20816
20817   fi
20818
20819
20820
20821   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20822 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20823 if test "${wx_cv_explicit+set}" = set; then
20824   echo $ECHO_N "(cached) $ECHO_C" >&6
20825 else
20826
20827
20828
20829     ac_ext=cc
20830 ac_cpp='$CXXCPP $CPPFLAGS'
20831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20834
20835
20836             cat >conftest.$ac_ext <<_ACEOF
20837 /* confdefs.h.  */
20838 _ACEOF
20839 cat confdefs.h >>conftest.$ac_ext
20840 cat >>conftest.$ac_ext <<_ACEOF
20841 /* end confdefs.h.  */
20842
20843         class Foo { public: explicit Foo(int) {} };
20844
20845 int
20846 main ()
20847 {
20848
20849         return 0;
20850
20851   ;
20852   return 0;
20853 }
20854 _ACEOF
20855 rm -f conftest.$ac_objext
20856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20857   (eval $ac_compile) 2>conftest.er1
20858   ac_status=$?
20859   grep -v '^ *+' conftest.er1 >conftest.err
20860   rm -f conftest.er1
20861   cat conftest.err >&5
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); } &&
20864          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866   (eval $ac_try) 2>&5
20867   ac_status=$?
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); }; } &&
20870          { ac_try='test -s conftest.$ac_objext'
20871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872   (eval $ac_try) 2>&5
20873   ac_status=$?
20874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875   (exit $ac_status); }; }; then
20876
20877         cat >conftest.$ac_ext <<_ACEOF
20878 /* confdefs.h.  */
20879 _ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h.  */
20883
20884                 class Foo { public: explicit Foo(int) {} };
20885                 static void TakeFoo(const Foo& foo) { }
20886
20887 int
20888 main ()
20889 {
20890
20891                 TakeFoo(17);
20892                 return 0;
20893
20894   ;
20895   return 0;
20896 }
20897 _ACEOF
20898 rm -f conftest.$ac_objext
20899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20900   (eval $ac_compile) 2>conftest.er1
20901   ac_status=$?
20902   grep -v '^ *+' conftest.er1 >conftest.err
20903   rm -f conftest.er1
20904   cat conftest.err >&5
20905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906   (exit $ac_status); } &&
20907          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909   (eval $ac_try) 2>&5
20910   ac_status=$?
20911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912   (exit $ac_status); }; } &&
20913          { ac_try='test -s conftest.$ac_objext'
20914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20915   (eval $ac_try) 2>&5
20916   ac_status=$?
20917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918   (exit $ac_status); }; }; then
20919   wx_cv_explicit=no
20920 else
20921   echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.$ac_ext >&5
20923
20924 wx_cv_explicit=yes
20925
20926 fi
20927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20928
20929 else
20930   echo "$as_me: failed program was:" >&5
20931 sed 's/^/| /' conftest.$ac_ext >&5
20932
20933 wx_cv_explicit=no
20934
20935 fi
20936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20937
20938     ac_ext=c
20939 ac_cpp='$CPP $CPPFLAGS'
20940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20943
20944
20945 fi
20946 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20947 echo "${ECHO_T}$wx_cv_explicit" >&6
20948
20949   if test "$wx_cv_explicit" = "yes"; then
20950     cat >>confdefs.h <<\_ACEOF
20951 #define HAVE_EXPLICIT 1
20952 _ACEOF
20953
20954   fi
20955
20956
20957 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20958 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20959 if test "${ac_cv_cxx_const_cast+set}" = set; then
20960   echo $ECHO_N "(cached) $ECHO_C" >&6
20961 else
20962
20963
20964  ac_ext=cc
20965 ac_cpp='$CXXCPP $CPPFLAGS'
20966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20969
20970  cat >conftest.$ac_ext <<_ACEOF
20971 /* confdefs.h.  */
20972 _ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h.  */
20976
20977 int
20978 main ()
20979 {
20980 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20981   ;
20982   return 0;
20983 }
20984 _ACEOF
20985 rm -f conftest.$ac_objext
20986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20987   (eval $ac_compile) 2>conftest.er1
20988   ac_status=$?
20989   grep -v '^ *+' conftest.er1 >conftest.err
20990   rm -f conftest.er1
20991   cat conftest.err >&5
20992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993   (exit $ac_status); } &&
20994          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
20995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996   (eval $ac_try) 2>&5
20997   ac_status=$?
20998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); }; } &&
21000          { ac_try='test -s conftest.$ac_objext'
21001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21002   (eval $ac_try) 2>&5
21003   ac_status=$?
21004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005   (exit $ac_status); }; }; then
21006   ac_cv_cxx_const_cast=yes
21007 else
21008   echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21010
21011 ac_cv_cxx_const_cast=no
21012 fi
21013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21014  ac_ext=c
21015 ac_cpp='$CPP $CPPFLAGS'
21016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21019
21020
21021 fi
21022 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21023 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21024 if test "$ac_cv_cxx_const_cast" = yes; then
21025
21026 cat >>confdefs.h <<\_ACEOF
21027 #define HAVE_CONST_CAST
21028 _ACEOF
21029
21030 fi
21031
21032 echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21033 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21034 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21035   echo $ECHO_N "(cached) $ECHO_C" >&6
21036 else
21037
21038
21039  ac_ext=cc
21040 ac_cpp='$CXXCPP $CPPFLAGS'
21041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21044
21045  cat >conftest.$ac_ext <<_ACEOF
21046 /* confdefs.h.  */
21047 _ACEOF
21048 cat confdefs.h >>conftest.$ac_ext
21049 cat >>conftest.$ac_ext <<_ACEOF
21050 /* end confdefs.h.  */
21051 #include <typeinfo>
21052 class Base { public : Base () {} virtual void f () = 0;};
21053 class Derived : public Base { public : Derived () {} virtual void f () {} };
21054 class Unrelated { public : Unrelated () {} };
21055 int g (Unrelated&) { return 0; }
21056 int
21057 main ()
21058 {
21059
21060 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21061   ;
21062   return 0;
21063 }
21064 _ACEOF
21065 rm -f conftest.$ac_objext
21066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21067   (eval $ac_compile) 2>conftest.er1
21068   ac_status=$?
21069   grep -v '^ *+' conftest.er1 >conftest.err
21070   rm -f conftest.er1
21071   cat conftest.err >&5
21072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073   (exit $ac_status); } &&
21074          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076   (eval $ac_try) 2>&5
21077   ac_status=$?
21078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079   (exit $ac_status); }; } &&
21080          { ac_try='test -s conftest.$ac_objext'
21081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21082   (eval $ac_try) 2>&5
21083   ac_status=$?
21084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085   (exit $ac_status); }; }; then
21086   ac_cv_cxx_reinterpret_cast=yes
21087 else
21088   echo "$as_me: failed program was:" >&5
21089 sed 's/^/| /' conftest.$ac_ext >&5
21090
21091 ac_cv_cxx_reinterpret_cast=no
21092 fi
21093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21094  ac_ext=c
21095 ac_cpp='$CPP $CPPFLAGS'
21096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21099
21100
21101 fi
21102 echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21103 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21104 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21105
21106 cat >>confdefs.h <<\_ACEOF
21107 #define HAVE_REINTERPRET_CAST
21108 _ACEOF
21109
21110 fi
21111
21112 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21113 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21114 if test "${ac_cv_cxx_static_cast+set}" = set; then
21115   echo $ECHO_N "(cached) $ECHO_C" >&6
21116 else
21117
21118
21119  ac_ext=cc
21120 ac_cpp='$CXXCPP $CPPFLAGS'
21121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21124
21125  cat >conftest.$ac_ext <<_ACEOF
21126 /* confdefs.h.  */
21127 _ACEOF
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h.  */
21131 #include <typeinfo>
21132 class Base { public : Base () {} virtual void f () = 0; };
21133 class Derived : public Base { public : Derived () {} virtual void f () {} };
21134 int g (Derived&) { return 0; }
21135 int
21136 main ()
21137 {
21138
21139 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21140   ;
21141   return 0;
21142 }
21143 _ACEOF
21144 rm -f conftest.$ac_objext
21145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21146   (eval $ac_compile) 2>conftest.er1
21147   ac_status=$?
21148   grep -v '^ *+' conftest.er1 >conftest.err
21149   rm -f conftest.er1
21150   cat conftest.err >&5
21151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152   (exit $ac_status); } &&
21153          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21155   (eval $ac_try) 2>&5
21156   ac_status=$?
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); }; } &&
21159          { ac_try='test -s conftest.$ac_objext'
21160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21161   (eval $ac_try) 2>&5
21162   ac_status=$?
21163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164   (exit $ac_status); }; }; then
21165   ac_cv_cxx_static_cast=yes
21166 else
21167   echo "$as_me: failed program was:" >&5
21168 sed 's/^/| /' conftest.$ac_ext >&5
21169
21170 ac_cv_cxx_static_cast=no
21171 fi
21172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21173  ac_ext=c
21174 ac_cpp='$CPP $CPPFLAGS'
21175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21178
21179
21180 fi
21181 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21182 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21183 if test "$ac_cv_cxx_static_cast" = yes; then
21184
21185 cat >>confdefs.h <<\_ACEOF
21186 #define HAVE_STATIC_CAST
21187 _ACEOF
21188
21189 fi
21190
21191
21192 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
21193     ac_ext=cc
21194 ac_cpp='$CXXCPP $CPPFLAGS'
21195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21198
21199
21200     if test "$wxUSE_UNICODE" = "yes"; then
21201         std_string="std::wstring"
21202         char_type="wchar_t"
21203     else
21204         std_string="std::string"
21205         char_type="char"
21206     fi
21207
21208         echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21209 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
21210     cat >conftest.$ac_ext <<_ACEOF
21211 /* confdefs.h.  */
21212 _ACEOF
21213 cat confdefs.h >>conftest.$ac_ext
21214 cat >>conftest.$ac_ext <<_ACEOF
21215 /* end confdefs.h.  */
21216 #include <string>
21217 int
21218 main ()
21219 {
21220 $std_string foo;
21221   ;
21222   return 0;
21223 }
21224 _ACEOF
21225 rm -f conftest.$ac_objext
21226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21227   (eval $ac_compile) 2>conftest.er1
21228   ac_status=$?
21229   grep -v '^ *+' conftest.er1 >conftest.err
21230   rm -f conftest.er1
21231   cat conftest.err >&5
21232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233   (exit $ac_status); } &&
21234          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21236   (eval $ac_try) 2>&5
21237   ac_status=$?
21238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239   (exit $ac_status); }; } &&
21240          { ac_try='test -s conftest.$ac_objext'
21241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242   (eval $ac_try) 2>&5
21243   ac_status=$?
21244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245   (exit $ac_status); }; }; then
21246   echo "$as_me:$LINENO: result: yes" >&5
21247 echo "${ECHO_T}yes" >&6
21248                     cat >>confdefs.h <<\_ACEOF
21249 #define HAVE_STD_WSTRING 1
21250 _ACEOF
21251
21252 else
21253   echo "$as_me: failed program was:" >&5
21254 sed 's/^/| /' conftest.$ac_ext >&5
21255
21256 echo "$as_me:$LINENO: result: no" >&5
21257 echo "${ECHO_T}no" >&6
21258                     echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21259 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
21260                     cat >conftest.$ac_ext <<_ACEOF
21261 /* confdefs.h.  */
21262 _ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h.  */
21266
21267                         #ifdef HAVE_WCHAR_H
21268                         #  ifdef __CYGWIN__
21269                         #    include <stddef.h>
21270                         #  endif
21271                         #  include <wchar.h>
21272                         #endif
21273                         #ifdef HAVE_STDLIB_H
21274                         #  include <stdlib.h>
21275                         #endif
21276                         #include <stdio.h>
21277                         #include <string>
21278
21279 int
21280 main ()
21281 {
21282 std::basic_string<$char_type> foo;
21283                          const $char_type* dummy = foo.c_str();
21284   ;
21285   return 0;
21286 }
21287 _ACEOF
21288 rm -f conftest.$ac_objext
21289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21290   (eval $ac_compile) 2>conftest.er1
21291   ac_status=$?
21292   grep -v '^ *+' conftest.er1 >conftest.err
21293   rm -f conftest.er1
21294   cat conftest.err >&5
21295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296   (exit $ac_status); } &&
21297          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21299   (eval $ac_try) 2>&5
21300   ac_status=$?
21301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302   (exit $ac_status); }; } &&
21303          { ac_try='test -s conftest.$ac_objext'
21304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305   (eval $ac_try) 2>&5
21306   ac_status=$?
21307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308   (exit $ac_status); }; }; then
21309   echo "$as_me:$LINENO: result: yes" >&5
21310 echo "${ECHO_T}yes" >&6
21311 else
21312   echo "$as_me: failed program was:" >&5
21313 sed 's/^/| /' conftest.$ac_ext >&5
21314
21315 echo "$as_me:$LINENO: result: no" >&5
21316 echo "${ECHO_T}no" >&6
21317                          if test "$wxUSE_STL" = "yes"; then
21318                              { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21319 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
21320    { (exit 1); exit 1; }; }
21321                          elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
21322                              { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
21323 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
21324    { (exit 1); exit 1; }; }
21325                          else
21326                              { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21327 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21328                              wxUSE_STD_STRING=no
21329                          fi
21330
21331
21332 fi
21333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21334
21335 fi
21336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21337
21338     ac_ext=c
21339 ac_cpp='$CPP $CPPFLAGS'
21340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21343
21344 fi
21345
21346 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
21347     ac_ext=cc
21348 ac_cpp='$CXXCPP $CPPFLAGS'
21349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21352
21353
21354     echo "$as_me:$LINENO: checking for std::istream" >&5
21355 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
21356 if test "${ac_cv_type_std__istream+set}" = set; then
21357   echo $ECHO_N "(cached) $ECHO_C" >&6
21358 else
21359   cat >conftest.$ac_ext <<_ACEOF
21360 /* confdefs.h.  */
21361 _ACEOF
21362 cat confdefs.h >>conftest.$ac_ext
21363 cat >>conftest.$ac_ext <<_ACEOF
21364 /* end confdefs.h.  */
21365 #include <iostream>
21366
21367 int
21368 main ()
21369 {
21370 if ((std::istream *) 0)
21371   return 0;
21372 if (sizeof (std::istream))
21373   return 0;
21374   ;
21375   return 0;
21376 }
21377 _ACEOF
21378 rm -f conftest.$ac_objext
21379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21380   (eval $ac_compile) 2>conftest.er1
21381   ac_status=$?
21382   grep -v '^ *+' conftest.er1 >conftest.err
21383   rm -f conftest.er1
21384   cat conftest.err >&5
21385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386   (exit $ac_status); } &&
21387          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389   (eval $ac_try) 2>&5
21390   ac_status=$?
21391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392   (exit $ac_status); }; } &&
21393          { ac_try='test -s conftest.$ac_objext'
21394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21395   (eval $ac_try) 2>&5
21396   ac_status=$?
21397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398   (exit $ac_status); }; }; then
21399   ac_cv_type_std__istream=yes
21400 else
21401   echo "$as_me: failed program was:" >&5
21402 sed 's/^/| /' conftest.$ac_ext >&5
21403
21404 ac_cv_type_std__istream=no
21405 fi
21406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21407 fi
21408 echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
21409 echo "${ECHO_T}$ac_cv_type_std__istream" >&6
21410 if test $ac_cv_type_std__istream = yes; then
21411
21412 cat >>confdefs.h <<_ACEOF
21413 #define HAVE_STD__ISTREAM 1
21414 _ACEOF
21415
21416
21417 else
21418   wxUSE_STD_IOSTREAM=no
21419 fi
21420 echo "$as_me:$LINENO: checking for std::ostream" >&5
21421 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
21422 if test "${ac_cv_type_std__ostream+set}" = set; then
21423   echo $ECHO_N "(cached) $ECHO_C" >&6
21424 else
21425   cat >conftest.$ac_ext <<_ACEOF
21426 /* confdefs.h.  */
21427 _ACEOF
21428 cat confdefs.h >>conftest.$ac_ext
21429 cat >>conftest.$ac_ext <<_ACEOF
21430 /* end confdefs.h.  */
21431 #include <iostream>
21432
21433 int
21434 main ()
21435 {
21436 if ((std::ostream *) 0)
21437   return 0;
21438 if (sizeof (std::ostream))
21439   return 0;
21440   ;
21441   return 0;
21442 }
21443 _ACEOF
21444 rm -f conftest.$ac_objext
21445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21446   (eval $ac_compile) 2>conftest.er1
21447   ac_status=$?
21448   grep -v '^ *+' conftest.er1 >conftest.err
21449   rm -f conftest.er1
21450   cat conftest.err >&5
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); } &&
21453          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21455   (eval $ac_try) 2>&5
21456   ac_status=$?
21457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458   (exit $ac_status); }; } &&
21459          { ac_try='test -s conftest.$ac_objext'
21460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461   (eval $ac_try) 2>&5
21462   ac_status=$?
21463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464   (exit $ac_status); }; }; then
21465   ac_cv_type_std__ostream=yes
21466 else
21467   echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21469
21470 ac_cv_type_std__ostream=no
21471 fi
21472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21473 fi
21474 echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
21475 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
21476 if test $ac_cv_type_std__ostream = yes; then
21477
21478 cat >>confdefs.h <<_ACEOF
21479 #define HAVE_STD__OSTREAM 1
21480 _ACEOF
21481
21482
21483 else
21484   wxUSE_STD_IOSTREAM=no
21485 fi
21486
21487
21488     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
21489         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
21490             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
21491 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
21492    { (exit 1); exit 1; }; }
21493         else
21494             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
21495 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
21496         fi
21497     fi
21498
21499     ac_ext=c
21500 ac_cpp='$CPP $CPPFLAGS'
21501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21504
21505 fi
21506
21507 if test "$wxUSE_STL" = "yes"; then
21508     ac_ext=cc
21509 ac_cpp='$CXXCPP $CPPFLAGS'
21510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21513
21514
21515         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21516 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
21517     cat >conftest.$ac_ext <<_ACEOF
21518 /* confdefs.h.  */
21519 _ACEOF
21520 cat confdefs.h >>conftest.$ac_ext
21521 cat >>conftest.$ac_ext <<_ACEOF
21522 /* end confdefs.h.  */
21523 #include <string>
21524                     #include <functional>
21525                     #include <algorithm>
21526                     #include <vector>
21527                     #include <list>
21528 int
21529 main ()
21530 {
21531 std::vector<int> moo;
21532                      std::list<int> foo;
21533                      std::vector<int>::iterator it =
21534                          std::find_if(moo.begin(), moo.end(),
21535                                       std::bind2nd(std::less<int>(), 3));
21536   ;
21537   return 0;
21538 }
21539 _ACEOF
21540 rm -f conftest.$ac_objext
21541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21542   (eval $ac_compile) 2>conftest.er1
21543   ac_status=$?
21544   grep -v '^ *+' conftest.er1 >conftest.err
21545   rm -f conftest.er1
21546   cat conftest.err >&5
21547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548   (exit $ac_status); } &&
21549          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551   (eval $ac_try) 2>&5
21552   ac_status=$?
21553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554   (exit $ac_status); }; } &&
21555          { ac_try='test -s conftest.$ac_objext'
21556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557   (eval $ac_try) 2>&5
21558   ac_status=$?
21559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560   (exit $ac_status); }; }; then
21561   echo "$as_me:$LINENO: result: yes" >&5
21562 echo "${ECHO_T}yes" >&6
21563 else
21564   echo "$as_me: failed program was:" >&5
21565 sed 's/^/| /' conftest.$ac_ext >&5
21566
21567 echo "$as_me:$LINENO: result: no" >&5
21568 echo "${ECHO_T}no" >&6
21569                      { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21570 echo "$as_me: error: Basic STL functionality missing" >&2;}
21571    { (exit 1); exit 1; }; }
21572 fi
21573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21574
21575         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21576 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21577     cat >conftest.$ac_ext <<_ACEOF
21578 /* confdefs.h.  */
21579 _ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h.  */
21583 #include <string>
21584 int
21585 main ()
21586 {
21587 std::string foo, bar;
21588                     foo.compare(bar);
21589                     foo.compare(1, 1, bar);
21590                     foo.compare(1, 1, bar, 1, 1);
21591                     foo.compare("");
21592                     foo.compare(1, 1, "");
21593                     foo.compare(1, 1, "", 2);
21594   ;
21595   return 0;
21596 }
21597 _ACEOF
21598 rm -f conftest.$ac_objext
21599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21600   (eval $ac_compile) 2>conftest.er1
21601   ac_status=$?
21602   grep -v '^ *+' conftest.er1 >conftest.err
21603   rm -f conftest.er1
21604   cat conftest.err >&5
21605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606   (exit $ac_status); } &&
21607          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609   (eval $ac_try) 2>&5
21610   ac_status=$?
21611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612   (exit $ac_status); }; } &&
21613          { ac_try='test -s conftest.$ac_objext'
21614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21615   (eval $ac_try) 2>&5
21616   ac_status=$?
21617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618   (exit $ac_status); }; }; then
21619   echo "$as_me:$LINENO: result: yes" >&5
21620 echo "${ECHO_T}yes" >&6
21621                     cat >>confdefs.h <<\_ACEOF
21622 #define HAVE_STD_STRING_COMPARE 1
21623 _ACEOF
21624
21625 else
21626   echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21628
21629 echo "$as_me:$LINENO: result: no" >&5
21630 echo "${ECHO_T}no" >&6
21631 fi
21632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21633
21634         if test "${ac_cv_header_hash_map+set}" = set; then
21635   echo "$as_me:$LINENO: checking for hash_map" >&5
21636 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21637 if test "${ac_cv_header_hash_map+set}" = set; then
21638   echo $ECHO_N "(cached) $ECHO_C" >&6
21639 fi
21640 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21641 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21642 else
21643   # Is the header compilable?
21644 echo "$as_me:$LINENO: checking hash_map usability" >&5
21645 echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21646 cat >conftest.$ac_ext <<_ACEOF
21647 /* confdefs.h.  */
21648 _ACEOF
21649 cat confdefs.h >>conftest.$ac_ext
21650 cat >>conftest.$ac_ext <<_ACEOF
21651 /* end confdefs.h.  */
21652 $ac_includes_default
21653 #include <hash_map>
21654 _ACEOF
21655 rm -f conftest.$ac_objext
21656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21657   (eval $ac_compile) 2>conftest.er1
21658   ac_status=$?
21659   grep -v '^ *+' conftest.er1 >conftest.err
21660   rm -f conftest.er1
21661   cat conftest.err >&5
21662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663   (exit $ac_status); } &&
21664          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666   (eval $ac_try) 2>&5
21667   ac_status=$?
21668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669   (exit $ac_status); }; } &&
21670          { ac_try='test -s conftest.$ac_objext'
21671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672   (eval $ac_try) 2>&5
21673   ac_status=$?
21674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675   (exit $ac_status); }; }; then
21676   ac_header_compiler=yes
21677 else
21678   echo "$as_me: failed program was:" >&5
21679 sed 's/^/| /' conftest.$ac_ext >&5
21680
21681 ac_header_compiler=no
21682 fi
21683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21685 echo "${ECHO_T}$ac_header_compiler" >&6
21686
21687 # Is the header present?
21688 echo "$as_me:$LINENO: checking hash_map presence" >&5
21689 echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21690 cat >conftest.$ac_ext <<_ACEOF
21691 /* confdefs.h.  */
21692 _ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h.  */
21696 #include <hash_map>
21697 _ACEOF
21698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21699   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21700   ac_status=$?
21701   grep -v '^ *+' conftest.er1 >conftest.err
21702   rm -f conftest.er1
21703   cat conftest.err >&5
21704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705   (exit $ac_status); } >/dev/null; then
21706   if test -s conftest.err; then
21707     ac_cpp_err=$ac_cxx_preproc_warn_flag
21708     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21709   else
21710     ac_cpp_err=
21711   fi
21712 else
21713   ac_cpp_err=yes
21714 fi
21715 if test -z "$ac_cpp_err"; then
21716   ac_header_preproc=yes
21717 else
21718   echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21720
21721   ac_header_preproc=no
21722 fi
21723 rm -f conftest.err conftest.$ac_ext
21724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21725 echo "${ECHO_T}$ac_header_preproc" >&6
21726
21727 # So?  What about this header?
21728 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21729   yes:no: )
21730     { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21731 echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
21732     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21733 echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21734     ac_header_preproc=yes
21735     ;;
21736   no:yes:* )
21737     { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21738 echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
21739     { echo "$as_me:$LINENO: WARNING: hash_map:     check for missing prerequisite headers?" >&5
21740 echo "$as_me: WARNING: hash_map:     check for missing prerequisite headers?" >&2;}
21741     { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21742 echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21743     { echo "$as_me:$LINENO: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&5
21744 echo "$as_me: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
21745     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21746 echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
21747     { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21748 echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
21749     (
21750       cat <<\_ASBOX
21751 ## ----------------------------------------- ##
21752 ## Report this to wx-dev@lists.wxwidgets.org ##
21753 ## ----------------------------------------- ##
21754 _ASBOX
21755     ) |
21756       sed "s/^/$as_me: WARNING:     /" >&2
21757     ;;
21758 esac
21759 echo "$as_me:$LINENO: checking for hash_map" >&5
21760 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21761 if test "${ac_cv_header_hash_map+set}" = set; then
21762   echo $ECHO_N "(cached) $ECHO_C" >&6
21763 else
21764   ac_cv_header_hash_map=$ac_header_preproc
21765 fi
21766 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21767 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21768
21769 fi
21770 if test $ac_cv_header_hash_map = yes; then
21771   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21772 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21773                      cat >conftest.$ac_ext <<_ACEOF
21774 /* confdefs.h.  */
21775 _ACEOF
21776 cat confdefs.h >>conftest.$ac_ext
21777 cat >>conftest.$ac_ext <<_ACEOF
21778 /* end confdefs.h.  */
21779 #include <hash_map>
21780                                      #include <hash_set>
21781 int
21782 main ()
21783 {
21784 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21785                                      std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21786   ;
21787   return 0;
21788 }
21789 _ACEOF
21790 rm -f conftest.$ac_objext
21791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21792   (eval $ac_compile) 2>conftest.er1
21793   ac_status=$?
21794   grep -v '^ *+' conftest.er1 >conftest.err
21795   rm -f conftest.er1
21796   cat conftest.err >&5
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); } &&
21799          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801   (eval $ac_try) 2>&5
21802   ac_status=$?
21803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804   (exit $ac_status); }; } &&
21805          { ac_try='test -s conftest.$ac_objext'
21806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807   (eval $ac_try) 2>&5
21808   ac_status=$?
21809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810   (exit $ac_status); }; }; then
21811   echo "$as_me:$LINENO: result: yes" >&5
21812 echo "${ECHO_T}yes" >&6
21813                                      cat >>confdefs.h <<\_ACEOF
21814 #define HAVE_HASH_MAP 1
21815 _ACEOF
21816
21817                                      cat >>confdefs.h <<\_ACEOF
21818 #define HAVE_STD_HASH_MAP 1
21819 _ACEOF
21820
21821 else
21822   echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21824
21825 echo "$as_me:$LINENO: result: no" >&5
21826 echo "${ECHO_T}no" >&6
21827 fi
21828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21829
21830 fi
21831
21832
21833
21834     if test "${ac_cv_header_ext_hash_map+set}" = set; then
21835   echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21836 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21837 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21838   echo $ECHO_N "(cached) $ECHO_C" >&6
21839 fi
21840 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21841 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21842 else
21843   # Is the header compilable?
21844 echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21845 echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21846 cat >conftest.$ac_ext <<_ACEOF
21847 /* confdefs.h.  */
21848 _ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h.  */
21852 $ac_includes_default
21853 #include <ext/hash_map>
21854 _ACEOF
21855 rm -f conftest.$ac_objext
21856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21857   (eval $ac_compile) 2>conftest.er1
21858   ac_status=$?
21859   grep -v '^ *+' conftest.er1 >conftest.err
21860   rm -f conftest.er1
21861   cat conftest.err >&5
21862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863   (exit $ac_status); } &&
21864          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
21865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21866   (eval $ac_try) 2>&5
21867   ac_status=$?
21868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869   (exit $ac_status); }; } &&
21870          { ac_try='test -s conftest.$ac_objext'
21871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21872   (eval $ac_try) 2>&5
21873   ac_status=$?
21874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875   (exit $ac_status); }; }; then
21876   ac_header_compiler=yes
21877 else
21878   echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21880
21881 ac_header_compiler=no
21882 fi
21883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21885 echo "${ECHO_T}$ac_header_compiler" >&6
21886
21887 # Is the header present?
21888 echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21889 echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21890 cat >conftest.$ac_ext <<_ACEOF
21891 /* confdefs.h.  */
21892 _ACEOF
21893 cat confdefs.h >>conftest.$ac_ext
21894 cat >>conftest.$ac_ext <<_ACEOF
21895 /* end confdefs.h.  */
21896 #include <ext/hash_map>
21897 _ACEOF
21898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21899   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21900   ac_status=$?
21901   grep -v '^ *+' conftest.er1 >conftest.err
21902   rm -f conftest.er1
21903   cat conftest.err >&5
21904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905   (exit $ac_status); } >/dev/null; then
21906   if test -s conftest.err; then
21907     ac_cpp_err=$ac_cxx_preproc_warn_flag
21908     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
21909   else
21910     ac_cpp_err=
21911   fi
21912 else
21913   ac_cpp_err=yes
21914 fi
21915 if test -z "$ac_cpp_err"; then
21916   ac_header_preproc=yes
21917 else
21918   echo "$as_me: failed program was:" >&5
21919 sed 's/^/| /' conftest.$ac_ext >&5
21920
21921   ac_header_preproc=no
21922 fi
21923 rm -f conftest.err conftest.$ac_ext
21924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21925 echo "${ECHO_T}$ac_header_preproc" >&6
21926
21927 # So?  What about this header?
21928 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21929   yes:no: )
21930     { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21931 echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
21932     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21933 echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21934     ac_header_preproc=yes
21935     ;;
21936   no:yes:* )
21937     { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21938 echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
21939     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&5
21940 echo "$as_me: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&2;}
21941     { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21942 echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21943     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&5
21944 echo "$as_me: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
21945     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21946 echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
21947     { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21948 echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
21949     (
21950       cat <<\_ASBOX
21951 ## ----------------------------------------- ##
21952 ## Report this to wx-dev@lists.wxwidgets.org ##
21953 ## ----------------------------------------- ##
21954 _ASBOX
21955     ) |
21956       sed "s/^/$as_me: WARNING:     /" >&2
21957     ;;
21958 esac
21959 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21960 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21961 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21962   echo $ECHO_N "(cached) $ECHO_C" >&6
21963 else
21964   ac_cv_header_ext_hash_map=$ac_header_preproc
21965 fi
21966 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21967 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21968
21969 fi
21970 if test $ac_cv_header_ext_hash_map = yes; then
21971   echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21972 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21973                      cat >conftest.$ac_ext <<_ACEOF
21974 /* confdefs.h.  */
21975 _ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h.  */
21979 #include <ext/hash_map>
21980                                      #include <ext/hash_set>
21981 int
21982 main ()
21983 {
21984 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21985                                      __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21986   ;
21987   return 0;
21988 }
21989 _ACEOF
21990 rm -f conftest.$ac_objext
21991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21992   (eval $ac_compile) 2>conftest.er1
21993   ac_status=$?
21994   grep -v '^ *+' conftest.er1 >conftest.err
21995   rm -f conftest.er1
21996   cat conftest.err >&5
21997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998   (exit $ac_status); } &&
21999          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
22000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001   (eval $ac_try) 2>&5
22002   ac_status=$?
22003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004   (exit $ac_status); }; } &&
22005          { ac_try='test -s conftest.$ac_objext'
22006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007   (eval $ac_try) 2>&5
22008   ac_status=$?
22009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010   (exit $ac_status); }; }; then
22011   echo "$as_me:$LINENO: result: yes" >&5
22012 echo "${ECHO_T}yes" >&6
22013                                      cat >>confdefs.h <<\_ACEOF
22014 #define HAVE_EXT_HASH_MAP 1
22015 _ACEOF
22016
22017                                      cat >>confdefs.h <<\_ACEOF
22018 #define HAVE_GNU_CXX_HASH_MAP 1
22019 _ACEOF
22020
22021 else
22022   echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22024
22025 echo "$as_me:$LINENO: result: no" >&5
22026 echo "${ECHO_T}no" >&6
22027 fi
22028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22029
22030 fi
22031
22032
22033
22034     ac_ext=c
22035 ac_cpp='$CPP $CPPFLAGS'
22036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22039
22040 fi
22041
22042
22043 SEARCH_INCLUDE="\
22044     /usr/local/include        \
22045                               \
22046     /usr/Motif-2.1/include    \
22047     /usr/Motif-1.2/include    \
22048     /usr/include/Motif1.2     \
22049     /opt/xpm/include/X11      \
22050     /opt/GBxpm/include/       \
22051     /opt/GBxpm/X11/include/   \
22052                               \
22053     /usr/dt/include           \
22054     /usr/openwin/include      \
22055                               \
22056     /usr/include/Xm           \
22057                               \
22058     /usr/X11R6/include        \
22059     /usr/X11R6.4/include      \
22060     /usr/X11R5/include        \
22061     /usr/X11R4/include        \
22062                               \
22063     /usr/include/X11R6        \
22064     /usr/include/X11R5        \
22065     /usr/include/X11R4        \
22066                               \
22067     /usr/local/X11R6/include  \
22068     /usr/local/X11R5/include  \
22069     /usr/local/X11R4/include  \
22070                               \
22071     /usr/local/include/X11R6  \
22072     /usr/local/include/X11R5  \
22073     /usr/local/include/X11R4  \
22074                               \
22075     /usr/X11/include          \
22076     /usr/include/X11          \
22077     /usr/local/X11/include    \
22078     /usr/local/include/X11    \
22079                               \
22080     /usr/X386/include         \
22081     /usr/x386/include         \
22082     /usr/XFree86/include/X11  \
22083                               \
22084     X:/XFree86/include        \
22085     X:/XFree86/include/X11    \
22086                               \
22087     /usr/include/gtk          \
22088     /usr/local/include/gtk    \
22089     /usr/include/glib         \
22090     /usr/local/include/glib   \
22091                               \
22092     /usr/include/qt           \
22093     /usr/local/include/qt     \
22094                               \
22095     /usr/local/arm/3.3.2/include     \
22096                               \
22097     /usr/include/windows      \
22098     /usr/include/wine         \
22099     /usr/local/include/wine   \
22100                               \
22101     /usr/unsupported/include  \
22102     /usr/athena/include       \
22103     /usr/local/x11r5/include  \
22104     /usr/lpp/Xamples/include  \
22105                               \
22106     /usr/openwin/share/include"
22107
22108 SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
22109
22110
22111 cat >confcache <<\_ACEOF
22112 # This file is a shell script that caches the results of configure
22113 # tests run on this system so they can be shared between configure
22114 # scripts and configure runs, see configure's option --config-cache.
22115 # It is not useful on other systems.  If it contains results you don't
22116 # want to keep, you may remove or edit it.
22117 #
22118 # config.status only pays attention to the cache file if you give it
22119 # the --recheck option to rerun configure.
22120 #
22121 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22122 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22123 # following values.
22124
22125 _ACEOF
22126
22127 # The following way of writing the cache mishandles newlines in values,
22128 # but we know of no workaround that is simple, portable, and efficient.
22129 # So, don't put newlines in cache variables' values.
22130 # Ultrix sh set writes to stderr and can't be redirected directly,
22131 # and sets the high bit in the cache file unless we assign to the vars.
22132 {
22133   (set) 2>&1 |
22134     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22135     *ac_space=\ *)
22136       # `set' does not quote correctly, so add quotes (double-quote
22137       # substitution turns \\\\ into \\, and sed turns \\ into \).
22138       sed -n \
22139         "s/'/'\\\\''/g;
22140           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22141       ;;
22142     *)
22143       # `set' quotes correctly as required by POSIX, so do not add quotes.
22144       sed -n \
22145         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22146       ;;
22147     esac;
22148 } |
22149   sed '
22150      t clear
22151      : clear
22152      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22153      t end
22154      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22155      : end' >>confcache
22156 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22157   if test -w $cache_file; then
22158     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22159     cat confcache >$cache_file
22160   else
22161     echo "not updating unwritable cache $cache_file"
22162   fi
22163 fi
22164 rm -f confcache
22165
22166 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22167     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22168 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22169 if test "${wx_cv_lib_glibc21+set}" = set; then
22170   echo $ECHO_N "(cached) $ECHO_C" >&6
22171 else
22172
22173         cat >conftest.$ac_ext <<_ACEOF
22174 /* confdefs.h.  */
22175 _ACEOF
22176 cat confdefs.h >>conftest.$ac_ext
22177 cat >>conftest.$ac_ext <<_ACEOF
22178 /* end confdefs.h.  */
22179 #include <features.h>
22180 int
22181 main ()
22182 {
22183
22184                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
22185                     #error not glibc2.1
22186                 #endif
22187
22188   ;
22189   return 0;
22190 }
22191 _ACEOF
22192 rm -f conftest.$ac_objext
22193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22194   (eval $ac_compile) 2>conftest.er1
22195   ac_status=$?
22196   grep -v '^ *+' conftest.er1 >conftest.err
22197   rm -f conftest.er1
22198   cat conftest.err >&5
22199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200   (exit $ac_status); } &&
22201          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203   (eval $ac_try) 2>&5
22204   ac_status=$?
22205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206   (exit $ac_status); }; } &&
22207          { ac_try='test -s conftest.$ac_objext'
22208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22209   (eval $ac_try) 2>&5
22210   ac_status=$?
22211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212   (exit $ac_status); }; }; then
22213
22214                 wx_cv_lib_glibc21=yes
22215
22216 else
22217   echo "$as_me: failed program was:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22219
22220
22221                 wx_cv_lib_glibc21=no
22222
22223
22224 fi
22225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22226
22227 fi
22228 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22229 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22230     if test "$wx_cv_lib_glibc21" = "yes"; then
22231         cat >>confdefs.h <<\_ACEOF
22232 #define wxHAVE_GLIBC2 1
22233 _ACEOF
22234
22235     fi
22236 fi
22237
22238 if test "x$wx_cv_lib_glibc21" = "xyes"; then
22239     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22240         cat >>confdefs.h <<\_ACEOF
22241 #define _GNU_SOURCE 1
22242 _ACEOF
22243
22244     fi
22245 fi
22246
22247
22248
22249 if test "$wxUSE_REGEX" != "no"; then
22250     cat >>confdefs.h <<\_ACEOF
22251 #define wxUSE_REGEX 1
22252 _ACEOF
22253
22254
22255     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22256         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22257 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22258         wxUSE_REGEX=builtin
22259     fi
22260
22261     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22262                         if test "${ac_cv_header_regex_h+set}" = set; then
22263   echo "$as_me:$LINENO: checking for regex.h" >&5
22264 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22265 if test "${ac_cv_header_regex_h+set}" = set; then
22266   echo $ECHO_N "(cached) $ECHO_C" >&6
22267 fi
22268 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22269 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22270 else
22271   # Is the header compilable?
22272 echo "$as_me:$LINENO: checking regex.h usability" >&5
22273 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22274 cat >conftest.$ac_ext <<_ACEOF
22275 /* confdefs.h.  */
22276 _ACEOF
22277 cat confdefs.h >>conftest.$ac_ext
22278 cat >>conftest.$ac_ext <<_ACEOF
22279 /* end confdefs.h.  */
22280 $ac_includes_default
22281 #include <regex.h>
22282 _ACEOF
22283 rm -f conftest.$ac_objext
22284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22285   (eval $ac_compile) 2>conftest.er1
22286   ac_status=$?
22287   grep -v '^ *+' conftest.er1 >conftest.err
22288   rm -f conftest.er1
22289   cat conftest.err >&5
22290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291   (exit $ac_status); } &&
22292          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22294   (eval $ac_try) 2>&5
22295   ac_status=$?
22296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297   (exit $ac_status); }; } &&
22298          { ac_try='test -s conftest.$ac_objext'
22299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22300   (eval $ac_try) 2>&5
22301   ac_status=$?
22302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303   (exit $ac_status); }; }; then
22304   ac_header_compiler=yes
22305 else
22306   echo "$as_me: failed program was:" >&5
22307 sed 's/^/| /' conftest.$ac_ext >&5
22308
22309 ac_header_compiler=no
22310 fi
22311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22313 echo "${ECHO_T}$ac_header_compiler" >&6
22314
22315 # Is the header present?
22316 echo "$as_me:$LINENO: checking regex.h presence" >&5
22317 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22318 cat >conftest.$ac_ext <<_ACEOF
22319 /* confdefs.h.  */
22320 _ACEOF
22321 cat confdefs.h >>conftest.$ac_ext
22322 cat >>conftest.$ac_ext <<_ACEOF
22323 /* end confdefs.h.  */
22324 #include <regex.h>
22325 _ACEOF
22326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22327   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22328   ac_status=$?
22329   grep -v '^ *+' conftest.er1 >conftest.err
22330   rm -f conftest.er1
22331   cat conftest.err >&5
22332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333   (exit $ac_status); } >/dev/null; then
22334   if test -s conftest.err; then
22335     ac_cpp_err=$ac_c_preproc_warn_flag
22336     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22337   else
22338     ac_cpp_err=
22339   fi
22340 else
22341   ac_cpp_err=yes
22342 fi
22343 if test -z "$ac_cpp_err"; then
22344   ac_header_preproc=yes
22345 else
22346   echo "$as_me: failed program was:" >&5
22347 sed 's/^/| /' conftest.$ac_ext >&5
22348
22349   ac_header_preproc=no
22350 fi
22351 rm -f conftest.err conftest.$ac_ext
22352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22353 echo "${ECHO_T}$ac_header_preproc" >&6
22354
22355 # So?  What about this header?
22356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22357   yes:no: )
22358     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22359 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22360     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22361 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22362     ac_header_preproc=yes
22363     ;;
22364   no:yes:* )
22365     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22366 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
22367     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
22368 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
22369     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22370 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22371     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
22372 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22373     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22374 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
22375     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22376 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
22377     (
22378       cat <<\_ASBOX
22379 ## ----------------------------------------- ##
22380 ## Report this to wx-dev@lists.wxwidgets.org ##
22381 ## ----------------------------------------- ##
22382 _ASBOX
22383     ) |
22384       sed "s/^/$as_me: WARNING:     /" >&2
22385     ;;
22386 esac
22387 echo "$as_me:$LINENO: checking for regex.h" >&5
22388 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22389 if test "${ac_cv_header_regex_h+set}" = set; then
22390   echo $ECHO_N "(cached) $ECHO_C" >&6
22391 else
22392   ac_cv_header_regex_h=$ac_header_preproc
22393 fi
22394 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22395 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22396
22397 fi
22398 if test $ac_cv_header_regex_h = yes; then
22399
22400 for ac_func in regcomp
22401 do
22402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22403 echo "$as_me:$LINENO: checking for $ac_func" >&5
22404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22405 if eval "test \"\${$as_ac_var+set}\" = set"; then
22406   echo $ECHO_N "(cached) $ECHO_C" >&6
22407 else
22408   cat >conftest.$ac_ext <<_ACEOF
22409 /* confdefs.h.  */
22410 _ACEOF
22411 cat confdefs.h >>conftest.$ac_ext
22412 cat >>conftest.$ac_ext <<_ACEOF
22413 /* end confdefs.h.  */
22414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22415    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22416 #define $ac_func innocuous_$ac_func
22417
22418 /* System header to define __stub macros and hopefully few prototypes,
22419     which can conflict with char $ac_func (); below.
22420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22421     <limits.h> exists even on freestanding compilers.  */
22422
22423 #ifdef __STDC__
22424 # include <limits.h>
22425 #else
22426 # include <assert.h>
22427 #endif
22428
22429 #undef $ac_func
22430
22431 /* Override any gcc2 internal prototype to avoid an error.  */
22432 #ifdef __cplusplus
22433 extern "C"
22434 {
22435 #endif
22436 /* We use char because int might match the return type of a gcc2
22437    builtin and then its argument prototype would still apply.  */
22438 char $ac_func ();
22439 /* The GNU C library defines this for functions which it implements
22440     to always fail with ENOSYS.  Some functions are actually named
22441     something starting with __ and the normal name is an alias.  */
22442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22443 choke me
22444 #else
22445 char (*f) () = $ac_func;
22446 #endif
22447 #ifdef __cplusplus
22448 }
22449 #endif
22450
22451 int
22452 main ()
22453 {
22454 return f != $ac_func;
22455   ;
22456   return 0;
22457 }
22458 _ACEOF
22459 rm -f conftest.$ac_objext conftest$ac_exeext
22460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22461   (eval $ac_link) 2>conftest.er1
22462   ac_status=$?
22463   grep -v '^ *+' conftest.er1 >conftest.err
22464   rm -f conftest.er1
22465   cat conftest.err >&5
22466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467   (exit $ac_status); } &&
22468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22470   (eval $ac_try) 2>&5
22471   ac_status=$?
22472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473   (exit $ac_status); }; } &&
22474          { ac_try='test -s conftest$ac_exeext'
22475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22476   (eval $ac_try) 2>&5
22477   ac_status=$?
22478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479   (exit $ac_status); }; }; then
22480   eval "$as_ac_var=yes"
22481 else
22482   echo "$as_me: failed program was:" >&5
22483 sed 's/^/| /' conftest.$ac_ext >&5
22484
22485 eval "$as_ac_var=no"
22486 fi
22487 rm -f conftest.err conftest.$ac_objext \
22488       conftest$ac_exeext conftest.$ac_ext
22489 fi
22490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22492 if test `eval echo '${'$as_ac_var'}'` = yes; then
22493   cat >>confdefs.h <<_ACEOF
22494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22495 _ACEOF
22496
22497 fi
22498 done
22499
22500 fi
22501
22502
22503
22504         if test "x$ac_cv_func_regcomp" != "xyes"; then
22505             if test "$wxUSE_REGEX" = "sys" ; then
22506                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22507 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22508    { (exit 1); exit 1; }; }
22509             else
22510                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22511 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22512                 wxUSE_REGEX=builtin
22513             fi
22514         else
22515                         wxUSE_REGEX=sys
22516                         cat >>confdefs.h <<\_ACEOF
22517 #define WX_NO_REGEX_ADVANCED 1
22518 _ACEOF
22519
22520         fi
22521     fi
22522 fi
22523
22524
22525 ZLIB_LINK=
22526 if test "$wxUSE_ZLIB" != "no" ; then
22527     cat >>confdefs.h <<\_ACEOF
22528 #define wxUSE_ZLIB 1
22529 _ACEOF
22530
22531
22532     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22533                                                 if test "$USE_DARWIN" = 1; then
22534             system_zlib_h_ok="yes"
22535         else
22536                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22537 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22538 if test "${ac_cv_header_zlib_h+set}" = set; then
22539   echo $ECHO_N "(cached) $ECHO_C" >&6
22540 else
22541   if test "$cross_compiling" = yes; then
22542                       unset ac_cv_header_zlib_h
22543
22544 else
22545   cat >conftest.$ac_ext <<_ACEOF
22546 /* confdefs.h.  */
22547 _ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h.  */
22551
22552                         #include <zlib.h>
22553                         #include <stdio.h>
22554
22555                         int main()
22556                         {
22557                             FILE *f=fopen("conftestval", "w");
22558                             if (!f) exit(1);
22559                             fprintf(f, "%s",
22560                                     ZLIB_VERSION[0] == '1' &&
22561                                     (ZLIB_VERSION[2] > '1' ||
22562                                     (ZLIB_VERSION[2] == '1' &&
22563                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22564                             exit(0);
22565                         }
22566
22567 _ACEOF
22568 rm -f conftest$ac_exeext
22569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22570   (eval $ac_link) 2>&5
22571   ac_status=$?
22572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22575   (eval $ac_try) 2>&5
22576   ac_status=$?
22577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578   (exit $ac_status); }; }; then
22579   ac_cv_header_zlib_h=`cat conftestval`
22580 else
22581   echo "$as_me: program exited with status $ac_status" >&5
22582 echo "$as_me: failed program was:" >&5
22583 sed 's/^/| /' conftest.$ac_ext >&5
22584
22585 ( exit $ac_status )
22586 ac_cv_header_zlib_h=no
22587 fi
22588 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22589 fi
22590
22591 fi
22592 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22593 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22594                                     if test "${ac_cv_header_zlib_h+set}" = set; then
22595   echo "$as_me:$LINENO: checking for zlib.h" >&5
22596 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22597 if test "${ac_cv_header_zlib_h+set}" = set; then
22598   echo $ECHO_N "(cached) $ECHO_C" >&6
22599 fi
22600 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22601 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22602 else
22603   # Is the header compilable?
22604 echo "$as_me:$LINENO: checking zlib.h usability" >&5
22605 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22606 cat >conftest.$ac_ext <<_ACEOF
22607 /* confdefs.h.  */
22608 _ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h.  */
22612 $ac_includes_default
22613 #include <zlib.h>
22614 _ACEOF
22615 rm -f conftest.$ac_objext
22616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22617   (eval $ac_compile) 2>conftest.er1
22618   ac_status=$?
22619   grep -v '^ *+' conftest.er1 >conftest.err
22620   rm -f conftest.er1
22621   cat conftest.err >&5
22622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); } &&
22624          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22626   (eval $ac_try) 2>&5
22627   ac_status=$?
22628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629   (exit $ac_status); }; } &&
22630          { ac_try='test -s conftest.$ac_objext'
22631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22632   (eval $ac_try) 2>&5
22633   ac_status=$?
22634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635   (exit $ac_status); }; }; then
22636   ac_header_compiler=yes
22637 else
22638   echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22640
22641 ac_header_compiler=no
22642 fi
22643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22645 echo "${ECHO_T}$ac_header_compiler" >&6
22646
22647 # Is the header present?
22648 echo "$as_me:$LINENO: checking zlib.h presence" >&5
22649 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22650 cat >conftest.$ac_ext <<_ACEOF
22651 /* confdefs.h.  */
22652 _ACEOF
22653 cat confdefs.h >>conftest.$ac_ext
22654 cat >>conftest.$ac_ext <<_ACEOF
22655 /* end confdefs.h.  */
22656 #include <zlib.h>
22657 _ACEOF
22658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22659   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22660   ac_status=$?
22661   grep -v '^ *+' conftest.er1 >conftest.err
22662   rm -f conftest.er1
22663   cat conftest.err >&5
22664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665   (exit $ac_status); } >/dev/null; then
22666   if test -s conftest.err; then
22667     ac_cpp_err=$ac_c_preproc_warn_flag
22668     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22669   else
22670     ac_cpp_err=
22671   fi
22672 else
22673   ac_cpp_err=yes
22674 fi
22675 if test -z "$ac_cpp_err"; then
22676   ac_header_preproc=yes
22677 else
22678   echo "$as_me: failed program was:" >&5
22679 sed 's/^/| /' conftest.$ac_ext >&5
22680
22681   ac_header_preproc=no
22682 fi
22683 rm -f conftest.err conftest.$ac_ext
22684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22685 echo "${ECHO_T}$ac_header_preproc" >&6
22686
22687 # So?  What about this header?
22688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22689   yes:no: )
22690     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22691 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22692     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22693 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22694     ac_header_preproc=yes
22695     ;;
22696   no:yes:* )
22697     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22698 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
22699     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
22700 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
22701     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22702 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22703     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
22704 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22705     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22706 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
22707     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22708 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
22709     (
22710       cat <<\_ASBOX
22711 ## ----------------------------------------- ##
22712 ## Report this to wx-dev@lists.wxwidgets.org ##
22713 ## ----------------------------------------- ##
22714 _ASBOX
22715     ) |
22716       sed "s/^/$as_me: WARNING:     /" >&2
22717     ;;
22718 esac
22719 echo "$as_me:$LINENO: checking for zlib.h" >&5
22720 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22721 if test "${ac_cv_header_zlib_h+set}" = set; then
22722   echo $ECHO_N "(cached) $ECHO_C" >&6
22723 else
22724   ac_cv_header_zlib_h=$ac_header_preproc
22725 fi
22726 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22727 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22728
22729 fi
22730
22731
22732
22733             system_zlib_h_ok=$ac_cv_header_zlib_h
22734         fi
22735
22736         if test "$system_zlib_h_ok" = "yes"; then
22737             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22738 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22739 if test "${ac_cv_lib_z_deflate+set}" = set; then
22740   echo $ECHO_N "(cached) $ECHO_C" >&6
22741 else
22742   ac_check_lib_save_LIBS=$LIBS
22743 LIBS="-lz  $LIBS"
22744 cat >conftest.$ac_ext <<_ACEOF
22745 /* confdefs.h.  */
22746 _ACEOF
22747 cat confdefs.h >>conftest.$ac_ext
22748 cat >>conftest.$ac_ext <<_ACEOF
22749 /* end confdefs.h.  */
22750
22751 /* Override any gcc2 internal prototype to avoid an error.  */
22752 #ifdef __cplusplus
22753 extern "C"
22754 #endif
22755 /* We use char because int might match the return type of a gcc2
22756    builtin and then its argument prototype would still apply.  */
22757 char deflate ();
22758 int
22759 main ()
22760 {
22761 deflate ();
22762   ;
22763   return 0;
22764 }
22765 _ACEOF
22766 rm -f conftest.$ac_objext conftest$ac_exeext
22767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22768   (eval $ac_link) 2>conftest.er1
22769   ac_status=$?
22770   grep -v '^ *+' conftest.er1 >conftest.err
22771   rm -f conftest.er1
22772   cat conftest.err >&5
22773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774   (exit $ac_status); } &&
22775          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22777   (eval $ac_try) 2>&5
22778   ac_status=$?
22779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780   (exit $ac_status); }; } &&
22781          { ac_try='test -s conftest$ac_exeext'
22782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783   (eval $ac_try) 2>&5
22784   ac_status=$?
22785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786   (exit $ac_status); }; }; then
22787   ac_cv_lib_z_deflate=yes
22788 else
22789   echo "$as_me: failed program was:" >&5
22790 sed 's/^/| /' conftest.$ac_ext >&5
22791
22792 ac_cv_lib_z_deflate=no
22793 fi
22794 rm -f conftest.err conftest.$ac_objext \
22795       conftest$ac_exeext conftest.$ac_ext
22796 LIBS=$ac_check_lib_save_LIBS
22797 fi
22798 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22799 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22800 if test $ac_cv_lib_z_deflate = yes; then
22801   ZLIB_LINK=" -lz"
22802 fi
22803
22804         fi
22805
22806         if test "x$ZLIB_LINK" = "x" ; then
22807             if test "$wxUSE_ZLIB" = "sys" ; then
22808                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22809 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22810    { (exit 1); exit 1; }; }
22811             else
22812                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22813 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22814                 wxUSE_ZLIB=builtin
22815             fi
22816         else
22817                         wxUSE_ZLIB=sys
22818         fi
22819     fi
22820 fi
22821
22822
22823 PNG_LINK=
22824 if test "$wxUSE_LIBPNG" != "no" ; then
22825     cat >>confdefs.h <<\_ACEOF
22826 #define wxUSE_LIBPNG 1
22827 _ACEOF
22828
22829
22830     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22831         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22832 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22833         wxUSE_LIBPNG=sys
22834     fi
22835
22836                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22837         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22838 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22839         wxUSE_LIBPNG=builtin
22840     fi
22841
22842     if test "$wxUSE_MGL" != 1 ; then
22843                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22844                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22845 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22846 if test "${ac_cv_header_png_h+set}" = set; then
22847   echo $ECHO_N "(cached) $ECHO_C" >&6
22848 else
22849   if test "$cross_compiling" = yes; then
22850                       unset ac_cv_header_png_h
22851
22852 else
22853   cat >conftest.$ac_ext <<_ACEOF
22854 /* confdefs.h.  */
22855 _ACEOF
22856 cat confdefs.h >>conftest.$ac_ext
22857 cat >>conftest.$ac_ext <<_ACEOF
22858 /* end confdefs.h.  */
22859
22860                         #include <png.h>
22861                         #include <stdio.h>
22862
22863                         int main()
22864                         {
22865                             FILE *f=fopen("conftestval", "w");
22866                             if (!f) exit(1);
22867                             fprintf(f, "%s",
22868                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
22869                             exit(0);
22870                         }
22871
22872 _ACEOF
22873 rm -f conftest$ac_exeext
22874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22875   (eval $ac_link) 2>&5
22876   ac_status=$?
22877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22880   (eval $ac_try) 2>&5
22881   ac_status=$?
22882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883   (exit $ac_status); }; }; then
22884   ac_cv_header_png_h=`cat conftestval`
22885 else
22886   echo "$as_me: program exited with status $ac_status" >&5
22887 echo "$as_me: failed program was:" >&5
22888 sed 's/^/| /' conftest.$ac_ext >&5
22889
22890 ( exit $ac_status )
22891 ac_cv_header_png_h=no
22892 fi
22893 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22894 fi
22895
22896 fi
22897 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22898 echo "${ECHO_T}$ac_cv_header_png_h" >&6
22899             if test "${ac_cv_header_png_h+set}" = set; then
22900   echo "$as_me:$LINENO: checking for png.h" >&5
22901 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22902 if test "${ac_cv_header_png_h+set}" = set; then
22903   echo $ECHO_N "(cached) $ECHO_C" >&6
22904 fi
22905 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22906 echo "${ECHO_T}$ac_cv_header_png_h" >&6
22907 else
22908   # Is the header compilable?
22909 echo "$as_me:$LINENO: checking png.h usability" >&5
22910 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22911 cat >conftest.$ac_ext <<_ACEOF
22912 /* confdefs.h.  */
22913 _ACEOF
22914 cat confdefs.h >>conftest.$ac_ext
22915 cat >>conftest.$ac_ext <<_ACEOF
22916 /* end confdefs.h.  */
22917 $ac_includes_default
22918 #include <png.h>
22919 _ACEOF
22920 rm -f conftest.$ac_objext
22921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22922   (eval $ac_compile) 2>conftest.er1
22923   ac_status=$?
22924   grep -v '^ *+' conftest.er1 >conftest.err
22925   rm -f conftest.er1
22926   cat conftest.err >&5
22927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928   (exit $ac_status); } &&
22929          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22931   (eval $ac_try) 2>&5
22932   ac_status=$?
22933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934   (exit $ac_status); }; } &&
22935          { ac_try='test -s conftest.$ac_objext'
22936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22937   (eval $ac_try) 2>&5
22938   ac_status=$?
22939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940   (exit $ac_status); }; }; then
22941   ac_header_compiler=yes
22942 else
22943   echo "$as_me: failed program was:" >&5
22944 sed 's/^/| /' conftest.$ac_ext >&5
22945
22946 ac_header_compiler=no
22947 fi
22948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22949 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22950 echo "${ECHO_T}$ac_header_compiler" >&6
22951
22952 # Is the header present?
22953 echo "$as_me:$LINENO: checking png.h presence" >&5
22954 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
22955 cat >conftest.$ac_ext <<_ACEOF
22956 /* confdefs.h.  */
22957 _ACEOF
22958 cat confdefs.h >>conftest.$ac_ext
22959 cat >>conftest.$ac_ext <<_ACEOF
22960 /* end confdefs.h.  */
22961 #include <png.h>
22962 _ACEOF
22963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22964   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22965   ac_status=$?
22966   grep -v '^ *+' conftest.er1 >conftest.err
22967   rm -f conftest.er1
22968   cat conftest.err >&5
22969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970   (exit $ac_status); } >/dev/null; then
22971   if test -s conftest.err; then
22972     ac_cpp_err=$ac_c_preproc_warn_flag
22973     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22974   else
22975     ac_cpp_err=
22976   fi
22977 else
22978   ac_cpp_err=yes
22979 fi
22980 if test -z "$ac_cpp_err"; then
22981   ac_header_preproc=yes
22982 else
22983   echo "$as_me: failed program was:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22985
22986   ac_header_preproc=no
22987 fi
22988 rm -f conftest.err conftest.$ac_ext
22989 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22990 echo "${ECHO_T}$ac_header_preproc" >&6
22991
22992 # So?  What about this header?
22993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22994   yes:no: )
22995     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
22996 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22997     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
22998 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
22999     ac_header_preproc=yes
23000     ;;
23001   no:yes:* )
23002     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
23003 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
23004     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
23005 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
23006     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
23007 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
23008     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
23009 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23010     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23011 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
23012     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23013 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
23014     (
23015       cat <<\_ASBOX
23016 ## ----------------------------------------- ##
23017 ## Report this to wx-dev@lists.wxwidgets.org ##
23018 ## ----------------------------------------- ##
23019 _ASBOX
23020     ) |
23021       sed "s/^/$as_me: WARNING:     /" >&2
23022     ;;
23023 esac
23024 echo "$as_me:$LINENO: checking for png.h" >&5
23025 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23026 if test "${ac_cv_header_png_h+set}" = set; then
23027   echo $ECHO_N "(cached) $ECHO_C" >&6
23028 else
23029   ac_cv_header_png_h=$ac_header_preproc
23030 fi
23031 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23032 echo "${ECHO_T}$ac_cv_header_png_h" >&6
23033
23034 fi
23035
23036
23037
23038             if test "$ac_cv_header_png_h" = "yes"; then
23039                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23040 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23041 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23042   echo $ECHO_N "(cached) $ECHO_C" >&6
23043 else
23044   ac_check_lib_save_LIBS=$LIBS
23045 LIBS="-lpng -lz -lm $LIBS"
23046 cat >conftest.$ac_ext <<_ACEOF
23047 /* confdefs.h.  */
23048 _ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h.  */
23052
23053 /* Override any gcc2 internal prototype to avoid an error.  */
23054 #ifdef __cplusplus
23055 extern "C"
23056 #endif
23057 /* We use char because int might match the return type of a gcc2
23058    builtin and then its argument prototype would still apply.  */
23059 char png_check_sig ();
23060 int
23061 main ()
23062 {
23063 png_check_sig ();
23064   ;
23065   return 0;
23066 }
23067 _ACEOF
23068 rm -f conftest.$ac_objext conftest$ac_exeext
23069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23070   (eval $ac_link) 2>conftest.er1
23071   ac_status=$?
23072   grep -v '^ *+' conftest.er1 >conftest.err
23073   rm -f conftest.er1
23074   cat conftest.err >&5
23075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076   (exit $ac_status); } &&
23077          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23079   (eval $ac_try) 2>&5
23080   ac_status=$?
23081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082   (exit $ac_status); }; } &&
23083          { ac_try='test -s conftest$ac_exeext'
23084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23085   (eval $ac_try) 2>&5
23086   ac_status=$?
23087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088   (exit $ac_status); }; }; then
23089   ac_cv_lib_png_png_check_sig=yes
23090 else
23091   echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23093
23094 ac_cv_lib_png_png_check_sig=no
23095 fi
23096 rm -f conftest.err conftest.$ac_objext \
23097       conftest$ac_exeext conftest.$ac_ext
23098 LIBS=$ac_check_lib_save_LIBS
23099 fi
23100 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23101 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23102 if test $ac_cv_lib_png_png_check_sig = yes; then
23103   PNG_LINK=" -lpng -lz"
23104 fi
23105
23106             fi
23107
23108             if test "x$PNG_LINK" = "x" ; then
23109                 if test "$wxUSE_LIBPNG" = "sys" ; then
23110                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23111 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23112    { (exit 1); exit 1; }; }
23113                 else
23114                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23115 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23116                     wxUSE_LIBPNG=builtin
23117                 fi
23118             else
23119                                 wxUSE_LIBPNG=sys
23120             fi
23121         fi
23122     fi
23123
23124     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23125 fi
23126
23127
23128 JPEG_LINK=
23129 if test "$wxUSE_LIBJPEG" != "no" ; then
23130     cat >>confdefs.h <<\_ACEOF
23131 #define wxUSE_LIBJPEG 1
23132 _ACEOF
23133
23134
23135     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23136         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23137 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23138         wxUSE_LIBJPEG=sys
23139     fi
23140
23141     if test "$wxUSE_MGL" != 1 ; then
23142                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23143                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23144 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23145             if test "${ac_cv_header_jpeglib_h+set}" = set; then
23146   echo $ECHO_N "(cached) $ECHO_C" >&6
23147 else
23148   cat >conftest.$ac_ext <<_ACEOF
23149 /* confdefs.h.  */
23150 _ACEOF
23151 cat confdefs.h >>conftest.$ac_ext
23152 cat >>conftest.$ac_ext <<_ACEOF
23153 /* end confdefs.h.  */
23154
23155                         #undef HAVE_STDLIB_H
23156                         #include <stdio.h>
23157                         #include <jpeglib.h>
23158
23159 int
23160 main ()
23161 {
23162
23163
23164   ;
23165   return 0;
23166 }
23167 _ACEOF
23168 rm -f conftest.$ac_objext
23169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23170   (eval $ac_compile) 2>conftest.er1
23171   ac_status=$?
23172   grep -v '^ *+' conftest.er1 >conftest.err
23173   rm -f conftest.er1
23174   cat conftest.err >&5
23175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176   (exit $ac_status); } &&
23177          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23179   (eval $ac_try) 2>&5
23180   ac_status=$?
23181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182   (exit $ac_status); }; } &&
23183          { ac_try='test -s conftest.$ac_objext'
23184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23185   (eval $ac_try) 2>&5
23186   ac_status=$?
23187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188   (exit $ac_status); }; }; then
23189   ac_cv_header_jpeglib_h=yes
23190 else
23191   echo "$as_me: failed program was:" >&5
23192 sed 's/^/| /' conftest.$ac_ext >&5
23193
23194 ac_cv_header_jpeglib_h=no
23195
23196 fi
23197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23198
23199 fi
23200
23201             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23202 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23203
23204             if test "$ac_cv_header_jpeglib_h" = "yes"; then
23205                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23206 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23207 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23208   echo $ECHO_N "(cached) $ECHO_C" >&6
23209 else
23210   ac_check_lib_save_LIBS=$LIBS
23211 LIBS="-ljpeg  $LIBS"
23212 cat >conftest.$ac_ext <<_ACEOF
23213 /* confdefs.h.  */
23214 _ACEOF
23215 cat confdefs.h >>conftest.$ac_ext
23216 cat >>conftest.$ac_ext <<_ACEOF
23217 /* end confdefs.h.  */
23218
23219 /* Override any gcc2 internal prototype to avoid an error.  */
23220 #ifdef __cplusplus
23221 extern "C"
23222 #endif
23223 /* We use char because int might match the return type of a gcc2
23224    builtin and then its argument prototype would still apply.  */
23225 char jpeg_read_header ();
23226 int
23227 main ()
23228 {
23229 jpeg_read_header ();
23230   ;
23231   return 0;
23232 }
23233 _ACEOF
23234 rm -f conftest.$ac_objext conftest$ac_exeext
23235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23236   (eval $ac_link) 2>conftest.er1
23237   ac_status=$?
23238   grep -v '^ *+' conftest.er1 >conftest.err
23239   rm -f conftest.er1
23240   cat conftest.err >&5
23241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242   (exit $ac_status); } &&
23243          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23245   (eval $ac_try) 2>&5
23246   ac_status=$?
23247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248   (exit $ac_status); }; } &&
23249          { ac_try='test -s conftest$ac_exeext'
23250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251   (eval $ac_try) 2>&5
23252   ac_status=$?
23253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254   (exit $ac_status); }; }; then
23255   ac_cv_lib_jpeg_jpeg_read_header=yes
23256 else
23257   echo "$as_me: failed program was:" >&5
23258 sed 's/^/| /' conftest.$ac_ext >&5
23259
23260 ac_cv_lib_jpeg_jpeg_read_header=no
23261 fi
23262 rm -f conftest.err conftest.$ac_objext \
23263       conftest$ac_exeext conftest.$ac_ext
23264 LIBS=$ac_check_lib_save_LIBS
23265 fi
23266 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23267 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23268 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23269   JPEG_LINK=" -ljpeg"
23270 fi
23271
23272             fi
23273
23274             if test "x$JPEG_LINK" = "x" ; then
23275                 if test "$wxUSE_LIBJPEG" = "sys" ; then
23276                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23277 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23278    { (exit 1); exit 1; }; }
23279                 else
23280                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23281 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23282                     wxUSE_LIBJPEG=builtin
23283                 fi
23284             else
23285                                 wxUSE_LIBJPEG=sys
23286             fi
23287         fi
23288     fi
23289 fi
23290
23291
23292 TIFF_LINK=
23293 TIFF_PREREQ_LINKS=-lm
23294 if test "$wxUSE_LIBTIFF" != "no" ; then
23295     cat >>confdefs.h <<\_ACEOF
23296 #define wxUSE_LIBTIFF 1
23297 _ACEOF
23298
23299
23300     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23301                         if test "$wxUSE_LIBJPEG" = "sys"; then
23302             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23303         fi
23304         if test "$wxUSE_ZLIB" = "sys"; then
23305             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23306         fi
23307         if test "${ac_cv_header_tiffio_h+set}" = set; then
23308   echo "$as_me:$LINENO: checking for tiffio.h" >&5
23309 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23310 if test "${ac_cv_header_tiffio_h+set}" = set; then
23311   echo $ECHO_N "(cached) $ECHO_C" >&6
23312 fi
23313 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23314 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23315 else
23316   # Is the header compilable?
23317 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23318 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23319 cat >conftest.$ac_ext <<_ACEOF
23320 /* confdefs.h.  */
23321 _ACEOF
23322 cat confdefs.h >>conftest.$ac_ext
23323 cat >>conftest.$ac_ext <<_ACEOF
23324 /* end confdefs.h.  */
23325 $ac_includes_default
23326 #include <tiffio.h>
23327 _ACEOF
23328 rm -f conftest.$ac_objext
23329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23330   (eval $ac_compile) 2>conftest.er1
23331   ac_status=$?
23332   grep -v '^ *+' conftest.er1 >conftest.err
23333   rm -f conftest.er1
23334   cat conftest.err >&5
23335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336   (exit $ac_status); } &&
23337          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23339   (eval $ac_try) 2>&5
23340   ac_status=$?
23341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342   (exit $ac_status); }; } &&
23343          { ac_try='test -s conftest.$ac_objext'
23344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23345   (eval $ac_try) 2>&5
23346   ac_status=$?
23347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348   (exit $ac_status); }; }; then
23349   ac_header_compiler=yes
23350 else
23351   echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23353
23354 ac_header_compiler=no
23355 fi
23356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23358 echo "${ECHO_T}$ac_header_compiler" >&6
23359
23360 # Is the header present?
23361 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23362 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23363 cat >conftest.$ac_ext <<_ACEOF
23364 /* confdefs.h.  */
23365 _ACEOF
23366 cat confdefs.h >>conftest.$ac_ext
23367 cat >>conftest.$ac_ext <<_ACEOF
23368 /* end confdefs.h.  */
23369 #include <tiffio.h>
23370 _ACEOF
23371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23372   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23373   ac_status=$?
23374   grep -v '^ *+' conftest.er1 >conftest.err
23375   rm -f conftest.er1
23376   cat conftest.err >&5
23377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378   (exit $ac_status); } >/dev/null; then
23379   if test -s conftest.err; then
23380     ac_cpp_err=$ac_c_preproc_warn_flag
23381     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23382   else
23383     ac_cpp_err=
23384   fi
23385 else
23386   ac_cpp_err=yes
23387 fi
23388 if test -z "$ac_cpp_err"; then
23389   ac_header_preproc=yes
23390 else
23391   echo "$as_me: failed program was:" >&5
23392 sed 's/^/| /' conftest.$ac_ext >&5
23393
23394   ac_header_preproc=no
23395 fi
23396 rm -f conftest.err conftest.$ac_ext
23397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23398 echo "${ECHO_T}$ac_header_preproc" >&6
23399
23400 # So?  What about this header?
23401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23402   yes:no: )
23403     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23404 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23405     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23406 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23407     ac_header_preproc=yes
23408     ;;
23409   no:yes:* )
23410     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23411 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
23412     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
23413 echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
23414     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23415 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23416     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
23417 echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23418     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23419 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
23420     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23421 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
23422     (
23423       cat <<\_ASBOX
23424 ## ----------------------------------------- ##
23425 ## Report this to wx-dev@lists.wxwidgets.org ##
23426 ## ----------------------------------------- ##
23427 _ASBOX
23428     ) |
23429       sed "s/^/$as_me: WARNING:     /" >&2
23430     ;;
23431 esac
23432 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23433 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23434 if test "${ac_cv_header_tiffio_h+set}" = set; then
23435   echo $ECHO_N "(cached) $ECHO_C" >&6
23436 else
23437   ac_cv_header_tiffio_h=$ac_header_preproc
23438 fi
23439 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23440 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23441
23442 fi
23443 if test $ac_cv_header_tiffio_h = yes; then
23444
23445                             echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23446 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23447 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23448   echo $ECHO_N "(cached) $ECHO_C" >&6
23449 else
23450   ac_check_lib_save_LIBS=$LIBS
23451 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23452 cat >conftest.$ac_ext <<_ACEOF
23453 /* confdefs.h.  */
23454 _ACEOF
23455 cat confdefs.h >>conftest.$ac_ext
23456 cat >>conftest.$ac_ext <<_ACEOF
23457 /* end confdefs.h.  */
23458
23459 /* Override any gcc2 internal prototype to avoid an error.  */
23460 #ifdef __cplusplus
23461 extern "C"
23462 #endif
23463 /* We use char because int might match the return type of a gcc2
23464    builtin and then its argument prototype would still apply.  */
23465 char TIFFError ();
23466 int
23467 main ()
23468 {
23469 TIFFError ();
23470   ;
23471   return 0;
23472 }
23473 _ACEOF
23474 rm -f conftest.$ac_objext conftest$ac_exeext
23475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23476   (eval $ac_link) 2>conftest.er1
23477   ac_status=$?
23478   grep -v '^ *+' conftest.er1 >conftest.err
23479   rm -f conftest.er1
23480   cat conftest.err >&5
23481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482   (exit $ac_status); } &&
23483          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23485   (eval $ac_try) 2>&5
23486   ac_status=$?
23487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488   (exit $ac_status); }; } &&
23489          { ac_try='test -s conftest$ac_exeext'
23490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23491   (eval $ac_try) 2>&5
23492   ac_status=$?
23493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494   (exit $ac_status); }; }; then
23495   ac_cv_lib_tiff_TIFFError=yes
23496 else
23497   echo "$as_me: failed program was:" >&5
23498 sed 's/^/| /' conftest.$ac_ext >&5
23499
23500 ac_cv_lib_tiff_TIFFError=no
23501 fi
23502 rm -f conftest.err conftest.$ac_objext \
23503       conftest$ac_exeext conftest.$ac_ext
23504 LIBS=$ac_check_lib_save_LIBS
23505 fi
23506 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23507 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23508 if test $ac_cv_lib_tiff_TIFFError = yes; then
23509   TIFF_LINK=" -ltiff"
23510 fi
23511
23512
23513
23514 fi
23515
23516
23517
23518         if test "x$TIFF_LINK" = "x" ; then
23519             if test "$wxUSE_LIBTIFF" = "sys" ; then
23520                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23521 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23522    { (exit 1); exit 1; }; }
23523             else
23524                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23525 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23526                 wxUSE_LIBTIFF=builtin
23527             fi
23528         else
23529                         wxUSE_LIBTIFF=sys
23530         fi
23531     fi
23532 fi
23533
23534
23535 if test "$wxUSE_WCHAR_T" != "yes"; then
23536     if test "$wxUSE_EXPAT" != "no"; then
23537         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
23538 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
23539         wxUSE_EXPAT=no
23540     fi
23541     if test "$wxUSE_XML" != "no"; then
23542         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
23543 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
23544         wxUSE_XML=no
23545     fi
23546 fi
23547
23548 if test "$wxUSE_EXPAT" != "no"; then
23549     wxUSE_XML=yes
23550     cat >>confdefs.h <<\_ACEOF
23551 #define wxUSE_EXPAT 1
23552 _ACEOF
23553
23554     cat >>confdefs.h <<\_ACEOF
23555 #define wxUSE_XML 1
23556 _ACEOF
23557
23558
23559     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23560         if test "${ac_cv_header_expat_h+set}" = set; then
23561   echo "$as_me:$LINENO: checking for expat.h" >&5
23562 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23563 if test "${ac_cv_header_expat_h+set}" = set; then
23564   echo $ECHO_N "(cached) $ECHO_C" >&6
23565 fi
23566 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23567 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23568 else
23569   # Is the header compilable?
23570 echo "$as_me:$LINENO: checking expat.h usability" >&5
23571 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23572 cat >conftest.$ac_ext <<_ACEOF
23573 /* confdefs.h.  */
23574 _ACEOF
23575 cat confdefs.h >>conftest.$ac_ext
23576 cat >>conftest.$ac_ext <<_ACEOF
23577 /* end confdefs.h.  */
23578 $ac_includes_default
23579 #include <expat.h>
23580 _ACEOF
23581 rm -f conftest.$ac_objext
23582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23583   (eval $ac_compile) 2>conftest.er1
23584   ac_status=$?
23585   grep -v '^ *+' conftest.er1 >conftest.err
23586   rm -f conftest.er1
23587   cat conftest.err >&5
23588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589   (exit $ac_status); } &&
23590          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23592   (eval $ac_try) 2>&5
23593   ac_status=$?
23594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595   (exit $ac_status); }; } &&
23596          { ac_try='test -s conftest.$ac_objext'
23597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23598   (eval $ac_try) 2>&5
23599   ac_status=$?
23600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601   (exit $ac_status); }; }; then
23602   ac_header_compiler=yes
23603 else
23604   echo "$as_me: failed program was:" >&5
23605 sed 's/^/| /' conftest.$ac_ext >&5
23606
23607 ac_header_compiler=no
23608 fi
23609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23611 echo "${ECHO_T}$ac_header_compiler" >&6
23612
23613 # Is the header present?
23614 echo "$as_me:$LINENO: checking expat.h presence" >&5
23615 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23616 cat >conftest.$ac_ext <<_ACEOF
23617 /* confdefs.h.  */
23618 _ACEOF
23619 cat confdefs.h >>conftest.$ac_ext
23620 cat >>conftest.$ac_ext <<_ACEOF
23621 /* end confdefs.h.  */
23622 #include <expat.h>
23623 _ACEOF
23624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23625   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23626   ac_status=$?
23627   grep -v '^ *+' conftest.er1 >conftest.err
23628   rm -f conftest.er1
23629   cat conftest.err >&5
23630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631   (exit $ac_status); } >/dev/null; then
23632   if test -s conftest.err; then
23633     ac_cpp_err=$ac_c_preproc_warn_flag
23634     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23635   else
23636     ac_cpp_err=
23637   fi
23638 else
23639   ac_cpp_err=yes
23640 fi
23641 if test -z "$ac_cpp_err"; then
23642   ac_header_preproc=yes
23643 else
23644   echo "$as_me: failed program was:" >&5
23645 sed 's/^/| /' conftest.$ac_ext >&5
23646
23647   ac_header_preproc=no
23648 fi
23649 rm -f conftest.err conftest.$ac_ext
23650 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23651 echo "${ECHO_T}$ac_header_preproc" >&6
23652
23653 # So?  What about this header?
23654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23655   yes:no: )
23656     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23657 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23658     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23659 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23660     ac_header_preproc=yes
23661     ;;
23662   no:yes:* )
23663     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23664 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
23665     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
23666 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
23667     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23668 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23669     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
23670 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23671     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23672 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
23673     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23674 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
23675     (
23676       cat <<\_ASBOX
23677 ## ----------------------------------------- ##
23678 ## Report this to wx-dev@lists.wxwidgets.org ##
23679 ## ----------------------------------------- ##
23680 _ASBOX
23681     ) |
23682       sed "s/^/$as_me: WARNING:     /" >&2
23683     ;;
23684 esac
23685 echo "$as_me:$LINENO: checking for expat.h" >&5
23686 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23687 if test "${ac_cv_header_expat_h+set}" = set; then
23688   echo $ECHO_N "(cached) $ECHO_C" >&6
23689 else
23690   ac_cv_header_expat_h=$ac_header_preproc
23691 fi
23692 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23693 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23694
23695 fi
23696 if test $ac_cv_header_expat_h = yes; then
23697   found_expat_h=1
23698 fi
23699
23700
23701         if test "x$found_expat_h" = "x1"; then
23702                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23703 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23704 if test "${wx_cv_expat_is_not_broken+set}" = set; then
23705   echo $ECHO_N "(cached) $ECHO_C" >&6
23706 else
23707
23708
23709
23710                 ac_ext=cc
23711 ac_cpp='$CXXCPP $CPPFLAGS'
23712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23715
23716                 cat >conftest.$ac_ext <<_ACEOF
23717 /* confdefs.h.  */
23718 _ACEOF
23719 cat confdefs.h >>conftest.$ac_ext
23720 cat >>conftest.$ac_ext <<_ACEOF
23721 /* end confdefs.h.  */
23722 #include <expat.h>
23723 int
23724 main ()
23725 {
23726
23727   ;
23728   return 0;
23729 }
23730 _ACEOF
23731 rm -f conftest.$ac_objext
23732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23733   (eval $ac_compile) 2>conftest.er1
23734   ac_status=$?
23735   grep -v '^ *+' conftest.er1 >conftest.err
23736   rm -f conftest.er1
23737   cat conftest.err >&5
23738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739   (exit $ac_status); } &&
23740          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
23741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23742   (eval $ac_try) 2>&5
23743   ac_status=$?
23744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745   (exit $ac_status); }; } &&
23746          { ac_try='test -s conftest.$ac_objext'
23747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23748   (eval $ac_try) 2>&5
23749   ac_status=$?
23750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751   (exit $ac_status); }; }; then
23752   wx_cv_expat_is_not_broken=yes
23753 else
23754   echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23756
23757 wx_cv_expat_is_not_broken=no
23758
23759 fi
23760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23761                 ac_ext=c
23762 ac_cpp='$CPP $CPPFLAGS'
23763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23766
23767
23768
23769 fi
23770 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23771 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23772             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23773                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23774 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23775 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23776   echo $ECHO_N "(cached) $ECHO_C" >&6
23777 else
23778   ac_check_lib_save_LIBS=$LIBS
23779 LIBS="-lexpat  $LIBS"
23780 cat >conftest.$ac_ext <<_ACEOF
23781 /* confdefs.h.  */
23782 _ACEOF
23783 cat confdefs.h >>conftest.$ac_ext
23784 cat >>conftest.$ac_ext <<_ACEOF
23785 /* end confdefs.h.  */
23786
23787 /* Override any gcc2 internal prototype to avoid an error.  */
23788 #ifdef __cplusplus
23789 extern "C"
23790 #endif
23791 /* We use char because int might match the return type of a gcc2
23792    builtin and then its argument prototype would still apply.  */
23793 char XML_ParserCreate ();
23794 int
23795 main ()
23796 {
23797 XML_ParserCreate ();
23798   ;
23799   return 0;
23800 }
23801 _ACEOF
23802 rm -f conftest.$ac_objext conftest$ac_exeext
23803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23804   (eval $ac_link) 2>conftest.er1
23805   ac_status=$?
23806   grep -v '^ *+' conftest.er1 >conftest.err
23807   rm -f conftest.er1
23808   cat conftest.err >&5
23809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23810   (exit $ac_status); } &&
23811          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23813   (eval $ac_try) 2>&5
23814   ac_status=$?
23815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816   (exit $ac_status); }; } &&
23817          { ac_try='test -s conftest$ac_exeext'
23818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23819   (eval $ac_try) 2>&5
23820   ac_status=$?
23821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822   (exit $ac_status); }; }; then
23823   ac_cv_lib_expat_XML_ParserCreate=yes
23824 else
23825   echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.$ac_ext >&5
23827
23828 ac_cv_lib_expat_XML_ParserCreate=no
23829 fi
23830 rm -f conftest.err conftest.$ac_objext \
23831       conftest$ac_exeext conftest.$ac_ext
23832 LIBS=$ac_check_lib_save_LIBS
23833 fi
23834 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23835 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23836 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23837   EXPAT_LINK=" -lexpat"
23838 fi
23839
23840             fi
23841         fi
23842         if test "x$EXPAT_LINK" = "x" ; then
23843             if test "$wxUSE_EXPAT" = "sys" ; then
23844                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23845 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23846    { (exit 1); exit 1; }; }
23847             else
23848                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23849 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23850                 wxUSE_EXPAT=builtin
23851             fi
23852         else
23853                         wxUSE_EXPAT=sys
23854         fi
23855     fi
23856     if test "$wxUSE_EXPAT" = "builtin" ; then
23857
23858
23859 subdirs="$subdirs src/expat"
23860
23861     fi
23862 fi
23863
23864
23865
23866 if test "$wxUSE_LIBMSPACK" != "no"; then
23867     if test "${ac_cv_header_mspack_h+set}" = set; then
23868   echo "$as_me:$LINENO: checking for mspack.h" >&5
23869 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23870 if test "${ac_cv_header_mspack_h+set}" = set; then
23871   echo $ECHO_N "(cached) $ECHO_C" >&6
23872 fi
23873 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23874 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23875 else
23876   # Is the header compilable?
23877 echo "$as_me:$LINENO: checking mspack.h usability" >&5
23878 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23879 cat >conftest.$ac_ext <<_ACEOF
23880 /* confdefs.h.  */
23881 _ACEOF
23882 cat confdefs.h >>conftest.$ac_ext
23883 cat >>conftest.$ac_ext <<_ACEOF
23884 /* end confdefs.h.  */
23885 $ac_includes_default
23886 #include <mspack.h>
23887 _ACEOF
23888 rm -f conftest.$ac_objext
23889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23890   (eval $ac_compile) 2>conftest.er1
23891   ac_status=$?
23892   grep -v '^ *+' conftest.er1 >conftest.err
23893   rm -f conftest.er1
23894   cat conftest.err >&5
23895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896   (exit $ac_status); } &&
23897          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23899   (eval $ac_try) 2>&5
23900   ac_status=$?
23901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902   (exit $ac_status); }; } &&
23903          { ac_try='test -s conftest.$ac_objext'
23904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23905   (eval $ac_try) 2>&5
23906   ac_status=$?
23907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908   (exit $ac_status); }; }; then
23909   ac_header_compiler=yes
23910 else
23911   echo "$as_me: failed program was:" >&5
23912 sed 's/^/| /' conftest.$ac_ext >&5
23913
23914 ac_header_compiler=no
23915 fi
23916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23917 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23918 echo "${ECHO_T}$ac_header_compiler" >&6
23919
23920 # Is the header present?
23921 echo "$as_me:$LINENO: checking mspack.h presence" >&5
23922 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23923 cat >conftest.$ac_ext <<_ACEOF
23924 /* confdefs.h.  */
23925 _ACEOF
23926 cat confdefs.h >>conftest.$ac_ext
23927 cat >>conftest.$ac_ext <<_ACEOF
23928 /* end confdefs.h.  */
23929 #include <mspack.h>
23930 _ACEOF
23931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23932   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23933   ac_status=$?
23934   grep -v '^ *+' conftest.er1 >conftest.err
23935   rm -f conftest.er1
23936   cat conftest.err >&5
23937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938   (exit $ac_status); } >/dev/null; then
23939   if test -s conftest.err; then
23940     ac_cpp_err=$ac_c_preproc_warn_flag
23941     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23942   else
23943     ac_cpp_err=
23944   fi
23945 else
23946   ac_cpp_err=yes
23947 fi
23948 if test -z "$ac_cpp_err"; then
23949   ac_header_preproc=yes
23950 else
23951   echo "$as_me: failed program was:" >&5
23952 sed 's/^/| /' conftest.$ac_ext >&5
23953
23954   ac_header_preproc=no
23955 fi
23956 rm -f conftest.err conftest.$ac_ext
23957 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23958 echo "${ECHO_T}$ac_header_preproc" >&6
23959
23960 # So?  What about this header?
23961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23962   yes:no: )
23963     { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23964 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23965     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23966 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23967     ac_header_preproc=yes
23968     ;;
23969   no:yes:* )
23970     { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23971 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
23972     { echo "$as_me:$LINENO: WARNING: mspack.h:     check for missing prerequisite headers?" >&5
23973 echo "$as_me: WARNING: mspack.h:     check for missing prerequisite headers?" >&2;}
23974     { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23975 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23976     { echo "$as_me:$LINENO: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&5
23977 echo "$as_me: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23978     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23979 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
23980     { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23981 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
23982     (
23983       cat <<\_ASBOX
23984 ## ----------------------------------------- ##
23985 ## Report this to wx-dev@lists.wxwidgets.org ##
23986 ## ----------------------------------------- ##
23987 _ASBOX
23988     ) |
23989       sed "s/^/$as_me: WARNING:     /" >&2
23990     ;;
23991 esac
23992 echo "$as_me:$LINENO: checking for mspack.h" >&5
23993 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23994 if test "${ac_cv_header_mspack_h+set}" = set; then
23995   echo $ECHO_N "(cached) $ECHO_C" >&6
23996 else
23997   ac_cv_header_mspack_h=$ac_header_preproc
23998 fi
23999 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24000 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24001
24002 fi
24003 if test $ac_cv_header_mspack_h = yes; then
24004   found_mspack_h=1
24005 fi
24006
24007
24008     if test "x$found_mspack_h" = "x1"; then
24009         echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24010 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24011 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24012   echo $ECHO_N "(cached) $ECHO_C" >&6
24013 else
24014   ac_check_lib_save_LIBS=$LIBS
24015 LIBS="-lmspack  $LIBS"
24016 cat >conftest.$ac_ext <<_ACEOF
24017 /* confdefs.h.  */
24018 _ACEOF
24019 cat confdefs.h >>conftest.$ac_ext
24020 cat >>conftest.$ac_ext <<_ACEOF
24021 /* end confdefs.h.  */
24022
24023 /* Override any gcc2 internal prototype to avoid an error.  */
24024 #ifdef __cplusplus
24025 extern "C"
24026 #endif
24027 /* We use char because int might match the return type of a gcc2
24028    builtin and then its argument prototype would still apply.  */
24029 char mspack_create_chm_decompressor ();
24030 int
24031 main ()
24032 {
24033 mspack_create_chm_decompressor ();
24034   ;
24035   return 0;
24036 }
24037 _ACEOF
24038 rm -f conftest.$ac_objext conftest$ac_exeext
24039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24040   (eval $ac_link) 2>conftest.er1
24041   ac_status=$?
24042   grep -v '^ *+' conftest.er1 >conftest.err
24043   rm -f conftest.er1
24044   cat conftest.err >&5
24045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046   (exit $ac_status); } &&
24047          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24049   (eval $ac_try) 2>&5
24050   ac_status=$?
24051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052   (exit $ac_status); }; } &&
24053          { ac_try='test -s conftest$ac_exeext'
24054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24055   (eval $ac_try) 2>&5
24056   ac_status=$?
24057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058   (exit $ac_status); }; }; then
24059   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24060 else
24061   echo "$as_me: failed program was:" >&5
24062 sed 's/^/| /' conftest.$ac_ext >&5
24063
24064 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24065 fi
24066 rm -f conftest.err conftest.$ac_objext \
24067       conftest$ac_exeext conftest.$ac_ext
24068 LIBS=$ac_check_lib_save_LIBS
24069 fi
24070 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24071 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24072 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24073   MSPACK_LINK=" -lmspack"
24074 fi
24075
24076     fi
24077     if test "x$MSPACK_LINK" = "x" ; then
24078         wxUSE_LIBMSPACK=no
24079     fi
24080 fi
24081
24082 if test "$wxUSE_LIBMSPACK" != "no"; then
24083     cat >>confdefs.h <<\_ACEOF
24084 #define wxUSE_LIBMSPACK 1
24085 _ACEOF
24086
24087 fi
24088
24089
24090
24091 AFMINSTALL=
24092 WIN32INSTALL=
24093
24094 TOOLKIT=
24095 TOOLKIT_INCLUDE=
24096 WIDGET_SET=
24097
24098 if test "$USE_WIN32" = 1 ; then
24099
24100 for ac_header in w32api.h
24101 do
24102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24104   echo "$as_me:$LINENO: checking for $ac_header" >&5
24105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24107   echo $ECHO_N "(cached) $ECHO_C" >&6
24108 fi
24109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24111 else
24112   # Is the header compilable?
24113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24115 cat >conftest.$ac_ext <<_ACEOF
24116 /* confdefs.h.  */
24117 _ACEOF
24118 cat confdefs.h >>conftest.$ac_ext
24119 cat >>conftest.$ac_ext <<_ACEOF
24120 /* end confdefs.h.  */
24121 $ac_includes_default
24122 #include <$ac_header>
24123 _ACEOF
24124 rm -f conftest.$ac_objext
24125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24126   (eval $ac_compile) 2>conftest.er1
24127   ac_status=$?
24128   grep -v '^ *+' conftest.er1 >conftest.err
24129   rm -f conftest.er1
24130   cat conftest.err >&5
24131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132   (exit $ac_status); } &&
24133          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24135   (eval $ac_try) 2>&5
24136   ac_status=$?
24137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138   (exit $ac_status); }; } &&
24139          { ac_try='test -s conftest.$ac_objext'
24140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24141   (eval $ac_try) 2>&5
24142   ac_status=$?
24143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144   (exit $ac_status); }; }; then
24145   ac_header_compiler=yes
24146 else
24147   echo "$as_me: failed program was:" >&5
24148 sed 's/^/| /' conftest.$ac_ext >&5
24149
24150 ac_header_compiler=no
24151 fi
24152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24154 echo "${ECHO_T}$ac_header_compiler" >&6
24155
24156 # Is the header present?
24157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24159 cat >conftest.$ac_ext <<_ACEOF
24160 /* confdefs.h.  */
24161 _ACEOF
24162 cat confdefs.h >>conftest.$ac_ext
24163 cat >>conftest.$ac_ext <<_ACEOF
24164 /* end confdefs.h.  */
24165 #include <$ac_header>
24166 _ACEOF
24167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24169   ac_status=$?
24170   grep -v '^ *+' conftest.er1 >conftest.err
24171   rm -f conftest.er1
24172   cat conftest.err >&5
24173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174   (exit $ac_status); } >/dev/null; then
24175   if test -s conftest.err; then
24176     ac_cpp_err=$ac_c_preproc_warn_flag
24177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24178   else
24179     ac_cpp_err=
24180   fi
24181 else
24182   ac_cpp_err=yes
24183 fi
24184 if test -z "$ac_cpp_err"; then
24185   ac_header_preproc=yes
24186 else
24187   echo "$as_me: failed program was:" >&5
24188 sed 's/^/| /' conftest.$ac_ext >&5
24189
24190   ac_header_preproc=no
24191 fi
24192 rm -f conftest.err conftest.$ac_ext
24193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24194 echo "${ECHO_T}$ac_header_preproc" >&6
24195
24196 # So?  What about this header?
24197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24198   yes:no: )
24199     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24203     ac_header_preproc=yes
24204     ;;
24205   no:yes:* )
24206     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24208     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24209 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24210     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24212     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24213 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24216     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24218     (
24219       cat <<\_ASBOX
24220 ## ----------------------------------------- ##
24221 ## Report this to wx-dev@lists.wxwidgets.org ##
24222 ## ----------------------------------------- ##
24223 _ASBOX
24224     ) |
24225       sed "s/^/$as_me: WARNING:     /" >&2
24226     ;;
24227 esac
24228 echo "$as_me:$LINENO: checking for $ac_header" >&5
24229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24231   echo $ECHO_N "(cached) $ECHO_C" >&6
24232 else
24233   eval "$as_ac_Header=\$ac_header_preproc"
24234 fi
24235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24237
24238 fi
24239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24240   cat >>confdefs.h <<_ACEOF
24241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24242 _ACEOF
24243
24244 fi
24245
24246 done
24247
24248     if test "${ac_cv_header_windows_h+set}" = set; then
24249   echo "$as_me:$LINENO: checking for windows.h" >&5
24250 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24251 if test "${ac_cv_header_windows_h+set}" = set; then
24252   echo $ECHO_N "(cached) $ECHO_C" >&6
24253 fi
24254 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24255 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24256 else
24257   # Is the header compilable?
24258 echo "$as_me:$LINENO: checking windows.h usability" >&5
24259 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24260 cat >conftest.$ac_ext <<_ACEOF
24261 /* confdefs.h.  */
24262 _ACEOF
24263 cat confdefs.h >>conftest.$ac_ext
24264 cat >>conftest.$ac_ext <<_ACEOF
24265 /* end confdefs.h.  */
24266 $ac_includes_default
24267 #include <windows.h>
24268 _ACEOF
24269 rm -f conftest.$ac_objext
24270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24271   (eval $ac_compile) 2>conftest.er1
24272   ac_status=$?
24273   grep -v '^ *+' conftest.er1 >conftest.err
24274   rm -f conftest.er1
24275   cat conftest.err >&5
24276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277   (exit $ac_status); } &&
24278          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24280   (eval $ac_try) 2>&5
24281   ac_status=$?
24282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283   (exit $ac_status); }; } &&
24284          { ac_try='test -s conftest.$ac_objext'
24285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24286   (eval $ac_try) 2>&5
24287   ac_status=$?
24288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289   (exit $ac_status); }; }; then
24290   ac_header_compiler=yes
24291 else
24292   echo "$as_me: failed program was:" >&5
24293 sed 's/^/| /' conftest.$ac_ext >&5
24294
24295 ac_header_compiler=no
24296 fi
24297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24299 echo "${ECHO_T}$ac_header_compiler" >&6
24300
24301 # Is the header present?
24302 echo "$as_me:$LINENO: checking windows.h presence" >&5
24303 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24304 cat >conftest.$ac_ext <<_ACEOF
24305 /* confdefs.h.  */
24306 _ACEOF
24307 cat confdefs.h >>conftest.$ac_ext
24308 cat >>conftest.$ac_ext <<_ACEOF
24309 /* end confdefs.h.  */
24310 #include <windows.h>
24311 _ACEOF
24312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24313   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24314   ac_status=$?
24315   grep -v '^ *+' conftest.er1 >conftest.err
24316   rm -f conftest.er1
24317   cat conftest.err >&5
24318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319   (exit $ac_status); } >/dev/null; then
24320   if test -s conftest.err; then
24321     ac_cpp_err=$ac_c_preproc_warn_flag
24322     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24323   else
24324     ac_cpp_err=
24325   fi
24326 else
24327   ac_cpp_err=yes
24328 fi
24329 if test -z "$ac_cpp_err"; then
24330   ac_header_preproc=yes
24331 else
24332   echo "$as_me: failed program was:" >&5
24333 sed 's/^/| /' conftest.$ac_ext >&5
24334
24335   ac_header_preproc=no
24336 fi
24337 rm -f conftest.err conftest.$ac_ext
24338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24339 echo "${ECHO_T}$ac_header_preproc" >&6
24340
24341 # So?  What about this header?
24342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24343   yes:no: )
24344     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24345 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24346     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24347 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24348     ac_header_preproc=yes
24349     ;;
24350   no:yes:* )
24351     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24352 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
24353     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
24354 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
24355     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24356 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24357     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
24358 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24359     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24360 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
24361     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24362 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
24363     (
24364       cat <<\_ASBOX
24365 ## ----------------------------------------- ##
24366 ## Report this to wx-dev@lists.wxwidgets.org ##
24367 ## ----------------------------------------- ##
24368 _ASBOX
24369     ) |
24370       sed "s/^/$as_me: WARNING:     /" >&2
24371     ;;
24372 esac
24373 echo "$as_me:$LINENO: checking for windows.h" >&5
24374 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24375 if test "${ac_cv_header_windows_h+set}" = set; then
24376   echo $ECHO_N "(cached) $ECHO_C" >&6
24377 else
24378   ac_cv_header_windows_h=$ac_header_preproc
24379 fi
24380 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24381 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24382
24383 fi
24384 if test $ac_cv_header_windows_h = yes; then
24385   :
24386 else
24387
24388         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24389 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24390    { (exit 1); exit 1; }; }
24391
24392 fi
24393
24394
24395
24396             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24397
24398     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24399         LIBS="$LIBS -loleacc"
24400     fi
24401
24402     case "${host}" in
24403         *-*-cygwin* )
24404                         LIBS="$LIBS -lkernel32 -luser32"
24405             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24406     esac
24407
24408         if test "$wxUSE_ODBC" = "sys" ; then
24409         wxUSE_ODBC = "yes"
24410     fi
24411     if test "$wxUSE_ODBC" = "yes" ; then
24412         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24413         cat >>confdefs.h <<\_ACEOF
24414 #define wxUSE_ODBC 1
24415 _ACEOF
24416
24417     fi
24418
24419     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24420     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24421
24422         WIN32INSTALL=win32install
24423 fi
24424
24425 if test "$wxUSE_GUI" = "yes"; then
24426     USE_GUI=1
24427
24428     GUI_TK_LIBRARY=
24429
24430     WXGTK12=
24431     WXGTK127=
24432     WXGTK20=
24433     WXGPE=
24434
24435     if test "$wxUSE_COCOA" = 1 ; then
24436         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24437             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24438 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24439             wxUSE_PRINTING_ARCHITECTURE=no
24440         fi
24441         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24442             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24443 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24444             wxUSE_DRAG_AND_DROP=no
24445         fi
24446         if test "$wxUSE_DRAGIMAGE" = "yes"; then
24447             { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24448 echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24449             wxUSE_DRAGIMAGE=no
24450         fi
24451     fi
24452
24453     if test "$wxUSE_MSW" = 1 ; then
24454         TOOLKIT=MSW
24455         GUIDIST=MSW_DIST
24456
24457                 case "${host}" in
24458             *-*-mingw32* )
24459                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24460         esac
24461     fi
24462
24463     if test "$wxUSE_GTK" = 1; then
24464         echo "$as_me:$LINENO: checking for GTK+ version" >&5
24465 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24466
24467         gtk_version_cached=1
24468         if test "${wx_cv_lib_gtk+set}" = set; then
24469   echo $ECHO_N "(cached) $ECHO_C" >&6
24470 else
24471
24472                                                 gtk_version_cached=0
24473                 echo "$as_me:$LINENO: result: " >&5
24474 echo "${ECHO_T}" >&6
24475
24476                                                 GTK_MODULES=
24477                 if test "$wxUSE_THREADS" = "yes"; then
24478                     GTK_MODULES=gthread
24479                 fi
24480
24481                                 wx_cv_lib_gtk=
24482                 if test "x$wxGTK_VERSION" != "x1"; then
24483                     # Check whether --enable-gtktest or --disable-gtktest was given.
24484 if test "${enable_gtktest+set}" = set; then
24485   enableval="$enable_gtktest"
24486
24487 else
24488   enable_gtktest=yes
24489 fi;
24490
24491   pkg_config_args=gtk+-2.0
24492   for module in . $GTK_MODULES
24493   do
24494       case "$module" in
24495          gthread)
24496              pkg_config_args="$pkg_config_args gthread-2.0"
24497          ;;
24498       esac
24499   done
24500
24501   no_gtk=""
24502
24503   # Extract the first word of "pkg-config", so it can be a program name with args.
24504 set dummy pkg-config; ac_word=$2
24505 echo "$as_me:$LINENO: checking for $ac_word" >&5
24506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24507 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24508   echo $ECHO_N "(cached) $ECHO_C" >&6
24509 else
24510   case $PKG_CONFIG in
24511   [\\/]* | ?:[\\/]*)
24512   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24513   ;;
24514   *)
24515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24516 for as_dir in $PATH
24517 do
24518   IFS=$as_save_IFS
24519   test -z "$as_dir" && as_dir=.
24520   for ac_exec_ext in '' $ac_executable_extensions; do
24521   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24522     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24524     break 2
24525   fi
24526 done
24527 done
24528
24529   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24530   ;;
24531 esac
24532 fi
24533 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24534
24535 if test -n "$PKG_CONFIG"; then
24536   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24537 echo "${ECHO_T}$PKG_CONFIG" >&6
24538 else
24539   echo "$as_me:$LINENO: result: no" >&5
24540 echo "${ECHO_T}no" >&6
24541 fi
24542
24543
24544   if test x$PKG_CONFIG != xno ; then
24545     if pkg-config --atleast-pkgconfig-version 0.7 ; then
24546       :
24547     else
24548       echo "*** pkg-config too old; version 0.7 or better required."
24549       no_gtk=yes
24550       PKG_CONFIG=no
24551     fi
24552   else
24553     no_gtk=yes
24554   fi
24555
24556   min_gtk_version=2.0.0
24557   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24558 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24559
24560   if test x$PKG_CONFIG != xno ; then
24561     ## don't try to run the test against uninstalled libtool libs
24562     if $PKG_CONFIG --uninstalled $pkg_config_args; then
24563           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24564           enable_gtktest=no
24565     fi
24566
24567     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24568           :
24569     else
24570           no_gtk=yes
24571     fi
24572   fi
24573
24574   if test x"$no_gtk" = x ; then
24575     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24576     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24577     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24578            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24579     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24580            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24581     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24582            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24583     if test "x$enable_gtktest" = "xyes" ; then
24584       ac_save_CFLAGS="$CFLAGS"
24585       ac_save_LIBS="$LIBS"
24586       CFLAGS="$CFLAGS $GTK_CFLAGS"
24587       LIBS="$GTK_LIBS $LIBS"
24588       rm -f conf.gtktest
24589       if test "$cross_compiling" = yes; then
24590   echo $ac_n "cross compiling; assumed OK... $ac_c"
24591 else
24592   cat >conftest.$ac_ext <<_ACEOF
24593 /* confdefs.h.  */
24594 _ACEOF
24595 cat confdefs.h >>conftest.$ac_ext
24596 cat >>conftest.$ac_ext <<_ACEOF
24597 /* end confdefs.h.  */
24598
24599 #include <gtk/gtk.h>
24600 #include <stdio.h>
24601 #include <stdlib.h>
24602
24603 int
24604 main ()
24605 {
24606   int major, minor, micro;
24607   char *tmp_version;
24608
24609   system ("touch conf.gtktest");
24610
24611   /* HP/UX 9 (%@#!) writes to sscanf strings */
24612   tmp_version = g_strdup("$min_gtk_version");
24613   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24614      printf("%s, bad version string\n", "$min_gtk_version");
24615      exit(1);
24616    }
24617
24618   if ((gtk_major_version != $gtk_config_major_version) ||
24619       (gtk_minor_version != $gtk_config_minor_version) ||
24620       (gtk_micro_version != $gtk_config_micro_version))
24621     {
24622       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24623              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24624              gtk_major_version, gtk_minor_version, gtk_micro_version);
24625       printf ("*** was found! If pkg-config was correct, then it is best\n");
24626       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24627       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24628       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24629       printf("*** required on your system.\n");
24630       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24631       printf("*** to point to the correct configuration files\n");
24632     }
24633   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24634            (gtk_minor_version != GTK_MINOR_VERSION) ||
24635            (gtk_micro_version != GTK_MICRO_VERSION))
24636     {
24637       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24638              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24639       printf("*** library (version %d.%d.%d)\n",
24640              gtk_major_version, gtk_minor_version, gtk_micro_version);
24641     }
24642   else
24643     {
24644       if ((gtk_major_version > major) ||
24645         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24646         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24647       {
24648         return 0;
24649        }
24650      else
24651       {
24652         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24653                gtk_major_version, gtk_minor_version, gtk_micro_version);
24654         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24655                major, minor, micro);
24656         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24657         printf("***\n");
24658         printf("*** If you have already installed a sufficiently new version, this error\n");
24659         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24660         printf("*** being found. The easiest way to fix this is to remove the old version\n");
24661         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24662         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24663         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24664         printf("*** so that the correct libraries are found at run-time))\n");
24665       }
24666     }
24667   return 1;
24668 }
24669
24670 _ACEOF
24671 rm -f conftest$ac_exeext
24672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24673   (eval $ac_link) 2>&5
24674   ac_status=$?
24675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24678   (eval $ac_try) 2>&5
24679   ac_status=$?
24680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681   (exit $ac_status); }; }; then
24682   :
24683 else
24684   echo "$as_me: program exited with status $ac_status" >&5
24685 echo "$as_me: failed program was:" >&5
24686 sed 's/^/| /' conftest.$ac_ext >&5
24687
24688 ( exit $ac_status )
24689 no_gtk=yes
24690 fi
24691 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24692 fi
24693        CFLAGS="$ac_save_CFLAGS"
24694        LIBS="$ac_save_LIBS"
24695      fi
24696   fi
24697   if test "x$no_gtk" = x ; then
24698      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24699 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24700      wx_cv_lib_gtk=2.0
24701   else
24702      echo "$as_me:$LINENO: result: no" >&5
24703 echo "${ECHO_T}no" >&6
24704      if test "$PKG_CONFIG" = "no" ; then
24705        echo "*** A new enough version of pkg-config was not found."
24706        echo "*** See http://pkgconfig.sourceforge.net"
24707      else
24708        if test -f conf.gtktest ; then
24709         :
24710        else
24711           echo "*** Could not run GTK+ test program, checking why..."
24712           ac_save_CFLAGS="$CFLAGS"
24713           ac_save_LIBS="$LIBS"
24714           CFLAGS="$CFLAGS $GTK_CFLAGS"
24715           LIBS="$LIBS $GTK_LIBS"
24716           cat >conftest.$ac_ext <<_ACEOF
24717 /* confdefs.h.  */
24718 _ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h.  */
24722
24723 #include <gtk/gtk.h>
24724 #include <stdio.h>
24725
24726 int
24727 main ()
24728 {
24729  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24730   ;
24731   return 0;
24732 }
24733 _ACEOF
24734 rm -f conftest.$ac_objext conftest$ac_exeext
24735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24736   (eval $ac_link) 2>conftest.er1
24737   ac_status=$?
24738   grep -v '^ *+' conftest.er1 >conftest.err
24739   rm -f conftest.er1
24740   cat conftest.err >&5
24741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742   (exit $ac_status); } &&
24743          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24745   (eval $ac_try) 2>&5
24746   ac_status=$?
24747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748   (exit $ac_status); }; } &&
24749          { ac_try='test -s conftest$ac_exeext'
24750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24751   (eval $ac_try) 2>&5
24752   ac_status=$?
24753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754   (exit $ac_status); }; }; then
24755    echo "*** The test program compiled, but did not run. This usually means"
24756           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24757           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24758           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24759           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
24760           echo "*** is required on your system"
24761           echo "***"
24762           echo "*** If you have an old version installed, it is best to remove it, although"
24763           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24764 else
24765   echo "$as_me: failed program was:" >&5
24766 sed 's/^/| /' conftest.$ac_ext >&5
24767
24768  echo "*** The test program failed to compile or link. See the file config.log for the"
24769           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24770 fi
24771 rm -f conftest.err conftest.$ac_objext \
24772       conftest$ac_exeext conftest.$ac_ext
24773           CFLAGS="$ac_save_CFLAGS"
24774           LIBS="$ac_save_LIBS"
24775        fi
24776      fi
24777      GTK_CFLAGS=""
24778      GTK_LIBS=""
24779      :
24780   fi
24781
24782
24783   rm -f conf.gtktest
24784
24785                 fi
24786
24787                                 if test -z "$wx_cv_lib_gtk"; then
24788                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
24789
24790 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24791 if test "${with_gtk_prefix+set}" = set; then
24792   withval="$with_gtk_prefix"
24793   gtk_config_prefix="$withval"
24794 else
24795   gtk_config_prefix=""
24796 fi;
24797
24798 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24799 if test "${with_gtk_exec_prefix+set}" = set; then
24800   withval="$with_gtk_exec_prefix"
24801   gtk_config_exec_prefix="$withval"
24802 else
24803   gtk_config_exec_prefix=""
24804 fi;
24805 # Check whether --enable-gtktest or --disable-gtktest was given.
24806 if test "${enable_gtktest+set}" = set; then
24807   enableval="$enable_gtktest"
24808
24809 else
24810   enable_gtktest=yes
24811 fi;
24812
24813   for module in . $GTK_MODULES
24814   do
24815       case "$module" in
24816          gthread)
24817              gtk_config_args="$gtk_config_args gthread"
24818          ;;
24819       esac
24820   done
24821
24822   if test x$gtk_config_exec_prefix != x ; then
24823      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24824      if test x${GTK_CONFIG+set} != xset ; then
24825         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24826      fi
24827   fi
24828   if test x$gtk_config_prefix != x ; then
24829      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24830      if test x${GTK_CONFIG+set} != xset ; then
24831         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24832      fi
24833   fi
24834
24835   # Extract the first word of "gtk-config", so it can be a program name with args.
24836 set dummy gtk-config; ac_word=$2
24837 echo "$as_me:$LINENO: checking for $ac_word" >&5
24838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24839 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24840   echo $ECHO_N "(cached) $ECHO_C" >&6
24841 else
24842   case $GTK_CONFIG in
24843   [\\/]* | ?:[\\/]*)
24844   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24845   ;;
24846   *)
24847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24848 for as_dir in $PATH
24849 do
24850   IFS=$as_save_IFS
24851   test -z "$as_dir" && as_dir=.
24852   for ac_exec_ext in '' $ac_executable_extensions; do
24853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24854     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24856     break 2
24857   fi
24858 done
24859 done
24860
24861   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24862   ;;
24863 esac
24864 fi
24865 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24866
24867 if test -n "$GTK_CONFIG"; then
24868   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24869 echo "${ECHO_T}$GTK_CONFIG" >&6
24870 else
24871   echo "$as_me:$LINENO: result: no" >&5
24872 echo "${ECHO_T}no" >&6
24873 fi
24874
24875   min_gtk_version=1.2.7
24876   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24877 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24878   no_gtk=""
24879   if test "$GTK_CONFIG" = "no" ; then
24880     no_gtk=yes
24881   else
24882     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24883     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24884     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24885            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24886     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24887            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24888     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24889            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24890     if test "x$enable_gtktest" = "xyes" ; then
24891       ac_save_CFLAGS="$CFLAGS"
24892       ac_save_LIBS="$LIBS"
24893       CFLAGS="$CFLAGS $GTK_CFLAGS"
24894       LIBS="$GTK_LIBS $LIBS"
24895       rm -f conf.gtktest
24896       if test "$cross_compiling" = yes; then
24897   echo $ac_n "cross compiling; assumed OK... $ac_c"
24898 else
24899   cat >conftest.$ac_ext <<_ACEOF
24900 /* confdefs.h.  */
24901 _ACEOF
24902 cat confdefs.h >>conftest.$ac_ext
24903 cat >>conftest.$ac_ext <<_ACEOF
24904 /* end confdefs.h.  */
24905
24906 #include <gtk/gtk.h>
24907 #include <stdio.h>
24908 #include <stdlib.h>
24909
24910 int
24911 main ()
24912 {
24913   int major, minor, micro;
24914   char *tmp_version;
24915
24916   system ("touch conf.gtktest");
24917
24918   /* HP/UX 9 (%@#!) writes to sscanf strings */
24919   tmp_version = g_strdup("$min_gtk_version");
24920   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24921      printf("%s, bad version string\n", "$min_gtk_version");
24922      exit(1);
24923    }
24924
24925   if ((gtk_major_version != $gtk_config_major_version) ||
24926       (gtk_minor_version != $gtk_config_minor_version) ||
24927       (gtk_micro_version != $gtk_config_micro_version))
24928     {
24929       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24930              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24931              gtk_major_version, gtk_minor_version, gtk_micro_version);
24932       printf ("*** was found! If gtk-config was correct, then it is best\n");
24933       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24934       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24935       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24936       printf("*** required on your system.\n");
24937       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24938       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24939       printf("*** before re-running configure\n");
24940     }
24941 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24942   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24943            (gtk_minor_version != GTK_MINOR_VERSION) ||
24944            (gtk_micro_version != GTK_MICRO_VERSION))
24945     {
24946       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24947              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24948       printf("*** library (version %d.%d.%d)\n",
24949              gtk_major_version, gtk_minor_version, gtk_micro_version);
24950     }
24951 #endif /* defined (GTK_MAJOR_VERSION) ... */
24952   else
24953     {
24954       if ((gtk_major_version > major) ||
24955         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24956         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24957       {
24958         return 0;
24959        }
24960      else
24961       {
24962         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24963                gtk_major_version, gtk_minor_version, gtk_micro_version);
24964         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24965                major, minor, micro);
24966         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24967         printf("***\n");
24968         printf("*** If you have already installed a sufficiently new version, this error\n");
24969         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24970         printf("*** being found. The easiest way to fix this is to remove the old version\n");
24971         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24972         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24973         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24974         printf("*** so that the correct libraries are found at run-time))\n");
24975       }
24976     }
24977   return 1;
24978 }
24979
24980 _ACEOF
24981 rm -f conftest$ac_exeext
24982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24983   (eval $ac_link) 2>&5
24984   ac_status=$?
24985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24988   (eval $ac_try) 2>&5
24989   ac_status=$?
24990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991   (exit $ac_status); }; }; then
24992   :
24993 else
24994   echo "$as_me: program exited with status $ac_status" >&5
24995 echo "$as_me: failed program was:" >&5
24996 sed 's/^/| /' conftest.$ac_ext >&5
24997
24998 ( exit $ac_status )
24999 no_gtk=yes
25000 fi
25001 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25002 fi
25003        CFLAGS="$ac_save_CFLAGS"
25004        LIBS="$ac_save_LIBS"
25005      fi
25006   fi
25007   if test "x$no_gtk" = x ; then
25008      echo "$as_me:$LINENO: result: yes" >&5
25009 echo "${ECHO_T}yes" >&6
25010      wx_cv_lib_gtk=1.2.7
25011   else
25012      echo "$as_me:$LINENO: result: no" >&5
25013 echo "${ECHO_T}no" >&6
25014      if test "$GTK_CONFIG" = "no" ; then
25015        echo "*** The gtk-config script installed by GTK could not be found"
25016        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25017        echo "*** your path, or set the GTK_CONFIG environment variable to the"
25018        echo "*** full path to gtk-config."
25019      else
25020        if test -f conf.gtktest ; then
25021         :
25022        else
25023           echo "*** Could not run GTK test program, checking why..."
25024           CFLAGS="$CFLAGS $GTK_CFLAGS"
25025           LIBS="$LIBS $GTK_LIBS"
25026           cat >conftest.$ac_ext <<_ACEOF
25027 /* confdefs.h.  */
25028 _ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h.  */
25032
25033 #include <gtk/gtk.h>
25034 #include <stdio.h>
25035
25036 int
25037 main ()
25038 {
25039  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25040   ;
25041   return 0;
25042 }
25043 _ACEOF
25044 rm -f conftest.$ac_objext conftest$ac_exeext
25045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25046   (eval $ac_link) 2>conftest.er1
25047   ac_status=$?
25048   grep -v '^ *+' conftest.er1 >conftest.err
25049   rm -f conftest.er1
25050   cat conftest.err >&5
25051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052   (exit $ac_status); } &&
25053          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25055   (eval $ac_try) 2>&5
25056   ac_status=$?
25057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058   (exit $ac_status); }; } &&
25059          { ac_try='test -s conftest$ac_exeext'
25060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25061   (eval $ac_try) 2>&5
25062   ac_status=$?
25063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064   (exit $ac_status); }; }; then
25065    echo "*** The test program compiled, but did not run. This usually means"
25066           echo "*** that the run-time linker is not finding GTK or finding the wrong"
25067           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25068           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25069           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
25070           echo "*** is required on your system"
25071           echo "***"
25072           echo "*** If you have an old version installed, it is best to remove it, although"
25073           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25074           echo "***"
25075           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25076           echo "*** came with the system with the command"
25077           echo "***"
25078           echo "***    rpm --erase --nodeps gtk gtk-devel"
25079 else
25080   echo "$as_me: failed program was:" >&5
25081 sed 's/^/| /' conftest.$ac_ext >&5
25082
25083  echo "*** The test program failed to compile or link. See the file config.log for the"
25084           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25085           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25086           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25087 fi
25088 rm -f conftest.err conftest.$ac_objext \
25089       conftest$ac_exeext conftest.$ac_ext
25090           CFLAGS="$ac_save_CFLAGS"
25091           LIBS="$ac_save_LIBS"
25092        fi
25093      fi
25094      GTK_CFLAGS=""
25095      GTK_LIBS=""
25096      :
25097   fi
25098
25099
25100   rm -f conf.gtktest
25101
25102
25103                         if test -z "$wx_cv_lib_gtk"; then
25104
25105 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25106 if test "${with_gtk_prefix+set}" = set; then
25107   withval="$with_gtk_prefix"
25108   gtk_config_prefix="$withval"
25109 else
25110   gtk_config_prefix=""
25111 fi;
25112
25113 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25114 if test "${with_gtk_exec_prefix+set}" = set; then
25115   withval="$with_gtk_exec_prefix"
25116   gtk_config_exec_prefix="$withval"
25117 else
25118   gtk_config_exec_prefix=""
25119 fi;
25120 # Check whether --enable-gtktest or --disable-gtktest was given.
25121 if test "${enable_gtktest+set}" = set; then
25122   enableval="$enable_gtktest"
25123
25124 else
25125   enable_gtktest=yes
25126 fi;
25127
25128   for module in . $GTK_MODULES
25129   do
25130       case "$module" in
25131          gthread)
25132              gtk_config_args="$gtk_config_args gthread"
25133          ;;
25134       esac
25135   done
25136
25137   if test x$gtk_config_exec_prefix != x ; then
25138      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25139      if test x${GTK_CONFIG+set} != xset ; then
25140         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25141      fi
25142   fi
25143   if test x$gtk_config_prefix != x ; then
25144      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25145      if test x${GTK_CONFIG+set} != xset ; then
25146         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25147      fi
25148   fi
25149
25150   # Extract the first word of "gtk-config", so it can be a program name with args.
25151 set dummy gtk-config; ac_word=$2
25152 echo "$as_me:$LINENO: checking for $ac_word" >&5
25153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25154 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25155   echo $ECHO_N "(cached) $ECHO_C" >&6
25156 else
25157   case $GTK_CONFIG in
25158   [\\/]* | ?:[\\/]*)
25159   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25160   ;;
25161   *)
25162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25163 for as_dir in $PATH
25164 do
25165   IFS=$as_save_IFS
25166   test -z "$as_dir" && as_dir=.
25167   for ac_exec_ext in '' $ac_executable_extensions; do
25168   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25169     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25171     break 2
25172   fi
25173 done
25174 done
25175
25176   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25177   ;;
25178 esac
25179 fi
25180 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25181
25182 if test -n "$GTK_CONFIG"; then
25183   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25184 echo "${ECHO_T}$GTK_CONFIG" >&6
25185 else
25186   echo "$as_me:$LINENO: result: no" >&5
25187 echo "${ECHO_T}no" >&6
25188 fi
25189
25190   min_gtk_version=1.2.3
25191   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25192 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25193   no_gtk=""
25194   if test "$GTK_CONFIG" = "no" ; then
25195     no_gtk=yes
25196   else
25197     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25198     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25199     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25200            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25201     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25202            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25203     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25204            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25205     if test "x$enable_gtktest" = "xyes" ; then
25206       ac_save_CFLAGS="$CFLAGS"
25207       ac_save_LIBS="$LIBS"
25208       CFLAGS="$CFLAGS $GTK_CFLAGS"
25209       LIBS="$GTK_LIBS $LIBS"
25210       rm -f conf.gtktest
25211       if test "$cross_compiling" = yes; then
25212   echo $ac_n "cross compiling; assumed OK... $ac_c"
25213 else
25214   cat >conftest.$ac_ext <<_ACEOF
25215 /* confdefs.h.  */
25216 _ACEOF
25217 cat confdefs.h >>conftest.$ac_ext
25218 cat >>conftest.$ac_ext <<_ACEOF
25219 /* end confdefs.h.  */
25220
25221 #include <gtk/gtk.h>
25222 #include <stdio.h>
25223 #include <stdlib.h>
25224
25225 int
25226 main ()
25227 {
25228   int major, minor, micro;
25229   char *tmp_version;
25230
25231   system ("touch conf.gtktest");
25232
25233   /* HP/UX 9 (%@#!) writes to sscanf strings */
25234   tmp_version = g_strdup("$min_gtk_version");
25235   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25236      printf("%s, bad version string\n", "$min_gtk_version");
25237      exit(1);
25238    }
25239
25240   if ((gtk_major_version != $gtk_config_major_version) ||
25241       (gtk_minor_version != $gtk_config_minor_version) ||
25242       (gtk_micro_version != $gtk_config_micro_version))
25243     {
25244       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25245              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25246              gtk_major_version, gtk_minor_version, gtk_micro_version);
25247       printf ("*** was found! If gtk-config was correct, then it is best\n");
25248       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25249       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25250       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25251       printf("*** required on your system.\n");
25252       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25253       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25254       printf("*** before re-running configure\n");
25255     }
25256 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25257   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25258            (gtk_minor_version != GTK_MINOR_VERSION) ||
25259            (gtk_micro_version != GTK_MICRO_VERSION))
25260     {
25261       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25262              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25263       printf("*** library (version %d.%d.%d)\n",
25264              gtk_major_version, gtk_minor_version, gtk_micro_version);
25265     }
25266 #endif /* defined (GTK_MAJOR_VERSION) ... */
25267   else
25268     {
25269       if ((gtk_major_version > major) ||
25270         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25271         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25272       {
25273         return 0;
25274        }
25275      else
25276       {
25277         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25278                gtk_major_version, gtk_minor_version, gtk_micro_version);
25279         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25280                major, minor, micro);
25281         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25282         printf("***\n");
25283         printf("*** If you have already installed a sufficiently new version, this error\n");
25284         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25285         printf("*** being found. The easiest way to fix this is to remove the old version\n");
25286         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25287         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25288         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25289         printf("*** so that the correct libraries are found at run-time))\n");
25290       }
25291     }
25292   return 1;
25293 }
25294
25295 _ACEOF
25296 rm -f conftest$ac_exeext
25297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25298   (eval $ac_link) 2>&5
25299   ac_status=$?
25300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25303   (eval $ac_try) 2>&5
25304   ac_status=$?
25305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306   (exit $ac_status); }; }; then
25307   :
25308 else
25309   echo "$as_me: program exited with status $ac_status" >&5
25310 echo "$as_me: failed program was:" >&5
25311 sed 's/^/| /' conftest.$ac_ext >&5
25312
25313 ( exit $ac_status )
25314 no_gtk=yes
25315 fi
25316 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25317 fi
25318        CFLAGS="$ac_save_CFLAGS"
25319        LIBS="$ac_save_LIBS"
25320      fi
25321   fi
25322   if test "x$no_gtk" = x ; then
25323      echo "$as_me:$LINENO: result: yes" >&5
25324 echo "${ECHO_T}yes" >&6
25325      wx_cv_lib_gtk=1.2.3
25326   else
25327      echo "$as_me:$LINENO: result: no" >&5
25328 echo "${ECHO_T}no" >&6
25329      if test "$GTK_CONFIG" = "no" ; then
25330        echo "*** The gtk-config script installed by GTK could not be found"
25331        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25332        echo "*** your path, or set the GTK_CONFIG environment variable to the"
25333        echo "*** full path to gtk-config."
25334      else
25335        if test -f conf.gtktest ; then
25336         :
25337        else
25338           echo "*** Could not run GTK test program, checking why..."
25339           CFLAGS="$CFLAGS $GTK_CFLAGS"
25340           LIBS="$LIBS $GTK_LIBS"
25341           cat >conftest.$ac_ext <<_ACEOF
25342 /* confdefs.h.  */
25343 _ACEOF
25344 cat confdefs.h >>conftest.$ac_ext
25345 cat >>conftest.$ac_ext <<_ACEOF
25346 /* end confdefs.h.  */
25347
25348 #include <gtk/gtk.h>
25349 #include <stdio.h>
25350
25351 int
25352 main ()
25353 {
25354  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25355   ;
25356   return 0;
25357 }
25358 _ACEOF
25359 rm -f conftest.$ac_objext conftest$ac_exeext
25360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25361   (eval $ac_link) 2>conftest.er1
25362   ac_status=$?
25363   grep -v '^ *+' conftest.er1 >conftest.err
25364   rm -f conftest.er1
25365   cat conftest.err >&5
25366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25367   (exit $ac_status); } &&
25368          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25370   (eval $ac_try) 2>&5
25371   ac_status=$?
25372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373   (exit $ac_status); }; } &&
25374          { ac_try='test -s conftest$ac_exeext'
25375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25376   (eval $ac_try) 2>&5
25377   ac_status=$?
25378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379   (exit $ac_status); }; }; then
25380    echo "*** The test program compiled, but did not run. This usually means"
25381           echo "*** that the run-time linker is not finding GTK or finding the wrong"
25382           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25383           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25384           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
25385           echo "*** is required on your system"
25386           echo "***"
25387           echo "*** If you have an old version installed, it is best to remove it, although"
25388           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25389           echo "***"
25390           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25391           echo "*** came with the system with the command"
25392           echo "***"
25393           echo "***    rpm --erase --nodeps gtk gtk-devel"
25394 else
25395   echo "$as_me: failed program was:" >&5
25396 sed 's/^/| /' conftest.$ac_ext >&5
25397
25398  echo "*** The test program failed to compile or link. See the file config.log for the"
25399           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25400           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25401           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25402 fi
25403 rm -f conftest.err conftest.$ac_objext \
25404       conftest$ac_exeext conftest.$ac_ext
25405           CFLAGS="$ac_save_CFLAGS"
25406           LIBS="$ac_save_LIBS"
25407        fi
25408      fi
25409      GTK_CFLAGS=""
25410      GTK_LIBS=""
25411      :
25412   fi
25413
25414
25415   rm -f conf.gtktest
25416
25417                         fi
25418                     fi
25419                 fi
25420
25421                 if test -z "$wx_cv_lib_gtk"; then
25422                                         wx_cv_lib_gtk=none
25423                 else
25424                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
25425                     wx_cv_libs_gtk=$GTK_LIBS
25426                 fi
25427
25428
25429 fi
25430
25431
25432                         if test "$gtk_version_cached" = 1; then
25433             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25434 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25435         fi
25436
25437         case "$wx_cv_lib_gtk" in
25438             2.0)    WXGTK20=1
25439                     TOOLKIT_VERSION=2
25440                     ;;
25441             1.2.7)  WXGTK127=1
25442                     WXGTK12=1
25443                     ;;
25444             1.2.3)  WXGTK12=1
25445                     ;;
25446             *)      { { echo "$as_me:$LINENO: error:
25447 The development files for GTK+ were not found. For GTK+ 2, please
25448 ensure that pkg-config is in the path and that gtk+-2.0.pc is
25449 installed. For GTK+ 1.2 please check that gtk-config is in the path,
25450 and that the version is 1.2.3 or above. Also check that the
25451 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25452 --libs' are in the LD_LIBRARY_PATH or equivalent.
25453                             " >&5
25454 echo "$as_me: error:
25455 The development files for GTK+ were not found. For GTK+ 2, please
25456 ensure that pkg-config is in the path and that gtk+-2.0.pc is
25457 installed. For GTK+ 1.2 please check that gtk-config is in the path,
25458 and that the version is 1.2.3 or above. Also check that the
25459 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25460 --libs' are in the LD_LIBRARY_PATH or equivalent.
25461                             " >&2;}
25462    { (exit 1); exit 1; }; }
25463                     ;;
25464         esac
25465
25466         if test "$WXGTK20" = 1; then
25467             save_CFLAGS="$CFLAGS"
25468             save_LIBS="$LIBS"
25469             CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
25470             LIBS="$LIBS $wx_cv_lib_gtk"
25471
25472
25473 for ac_func in pango_font_family_is_monospace
25474 do
25475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25476 echo "$as_me:$LINENO: checking for $ac_func" >&5
25477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25478 if eval "test \"\${$as_ac_var+set}\" = set"; then
25479   echo $ECHO_N "(cached) $ECHO_C" >&6
25480 else
25481   cat >conftest.$ac_ext <<_ACEOF
25482 /* confdefs.h.  */
25483 _ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h.  */
25487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25489 #define $ac_func innocuous_$ac_func
25490
25491 /* System header to define __stub macros and hopefully few prototypes,
25492     which can conflict with char $ac_func (); below.
25493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25494     <limits.h> exists even on freestanding compilers.  */
25495
25496 #ifdef __STDC__
25497 # include <limits.h>
25498 #else
25499 # include <assert.h>
25500 #endif
25501
25502 #undef $ac_func
25503
25504 /* Override any gcc2 internal prototype to avoid an error.  */
25505 #ifdef __cplusplus
25506 extern "C"
25507 {
25508 #endif
25509 /* We use char because int might match the return type of a gcc2
25510    builtin and then its argument prototype would still apply.  */
25511 char $ac_func ();
25512 /* The GNU C library defines this for functions which it implements
25513     to always fail with ENOSYS.  Some functions are actually named
25514     something starting with __ and the normal name is an alias.  */
25515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25516 choke me
25517 #else
25518 char (*f) () = $ac_func;
25519 #endif
25520 #ifdef __cplusplus
25521 }
25522 #endif
25523
25524 int
25525 main ()
25526 {
25527 return f != $ac_func;
25528   ;
25529   return 0;
25530 }
25531 _ACEOF
25532 rm -f conftest.$ac_objext conftest$ac_exeext
25533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25534   (eval $ac_link) 2>conftest.er1
25535   ac_status=$?
25536   grep -v '^ *+' conftest.er1 >conftest.err
25537   rm -f conftest.er1
25538   cat conftest.err >&5
25539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540   (exit $ac_status); } &&
25541          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25543   (eval $ac_try) 2>&5
25544   ac_status=$?
25545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546   (exit $ac_status); }; } &&
25547          { ac_try='test -s conftest$ac_exeext'
25548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25549   (eval $ac_try) 2>&5
25550   ac_status=$?
25551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25552   (exit $ac_status); }; }; then
25553   eval "$as_ac_var=yes"
25554 else
25555   echo "$as_me: failed program was:" >&5
25556 sed 's/^/| /' conftest.$ac_ext >&5
25557
25558 eval "$as_ac_var=no"
25559 fi
25560 rm -f conftest.err conftest.$ac_objext \
25561       conftest$ac_exeext conftest.$ac_ext
25562 fi
25563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25565 if test `eval echo '${'$as_ac_var'}'` = yes; then
25566   cat >>confdefs.h <<_ACEOF
25567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25568 _ACEOF
25569
25570 fi
25571 done
25572
25573
25574                         echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25575 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25576             cat >conftest.$ac_ext <<_ACEOF
25577 /* confdefs.h.  */
25578 _ACEOF
25579 cat confdefs.h >>conftest.$ac_ext
25580 cat >>conftest.$ac_ext <<_ACEOF
25581 /* end confdefs.h.  */
25582
25583                             #include <gtk/gtk.h>
25584
25585 int
25586 main ()
25587 {
25588
25589                             #if !GTK_CHECK_VERSION(2,4,0)
25590                             #error "Not GTK+ 2.4"
25591                             #endif
25592
25593   ;
25594   return 0;
25595 }
25596 _ACEOF
25597 rm -f conftest.$ac_objext
25598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25599   (eval $ac_compile) 2>conftest.er1
25600   ac_status=$?
25601   grep -v '^ *+' conftest.er1 >conftest.err
25602   rm -f conftest.er1
25603   cat conftest.err >&5
25604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605   (exit $ac_status); } &&
25606          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25608   (eval $ac_try) 2>&5
25609   ac_status=$?
25610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611   (exit $ac_status); }; } &&
25612          { ac_try='test -s conftest.$ac_objext'
25613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25614   (eval $ac_try) 2>&5
25615   ac_status=$?
25616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617   (exit $ac_status); }; }; then
25618
25619                             cat >>confdefs.h <<\_ACEOF
25620 #define __WXGTK24__ 1
25621 _ACEOF
25622
25623                             echo "$as_me:$LINENO: result: yes" >&5
25624 echo "${ECHO_T}yes" >&6
25625
25626 else
25627   echo "$as_me: failed program was:" >&5
25628 sed 's/^/| /' conftest.$ac_ext >&5
25629
25630
25631                             echo "$as_me:$LINENO: result: no" >&5
25632 echo "${ECHO_T}no" >&6
25633
25634 fi
25635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25636
25637             CFLAGS="$save_CFLAGS"
25638             LIBS="$save_LIBS"
25639         else
25640             if test "$wxUSE_UNICODE" = "yes"; then
25641                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25642 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25643                 wxUSE_UNICODE=no
25644             fi
25645         fi
25646
25647                         if test "$USE_DARWIN" != 1; then
25648
25649 for ac_func in poll
25650 do
25651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25652 echo "$as_me:$LINENO: checking for $ac_func" >&5
25653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25654 if eval "test \"\${$as_ac_var+set}\" = set"; then
25655   echo $ECHO_N "(cached) $ECHO_C" >&6
25656 else
25657   cat >conftest.$ac_ext <<_ACEOF
25658 /* confdefs.h.  */
25659 _ACEOF
25660 cat confdefs.h >>conftest.$ac_ext
25661 cat >>conftest.$ac_ext <<_ACEOF
25662 /* end confdefs.h.  */
25663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25665 #define $ac_func innocuous_$ac_func
25666
25667 /* System header to define __stub macros and hopefully few prototypes,
25668     which can conflict with char $ac_func (); below.
25669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25670     <limits.h> exists even on freestanding compilers.  */
25671
25672 #ifdef __STDC__
25673 # include <limits.h>
25674 #else
25675 # include <assert.h>
25676 #endif
25677
25678 #undef $ac_func
25679
25680 /* Override any gcc2 internal prototype to avoid an error.  */
25681 #ifdef __cplusplus
25682 extern "C"
25683 {
25684 #endif
25685 /* We use char because int might match the return type of a gcc2
25686    builtin and then its argument prototype would still apply.  */
25687 char $ac_func ();
25688 /* The GNU C library defines this for functions which it implements
25689     to always fail with ENOSYS.  Some functions are actually named
25690     something starting with __ and the normal name is an alias.  */
25691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25692 choke me
25693 #else
25694 char (*f) () = $ac_func;
25695 #endif
25696 #ifdef __cplusplus
25697 }
25698 #endif
25699
25700 int
25701 main ()
25702 {
25703 return f != $ac_func;
25704   ;
25705   return 0;
25706 }
25707 _ACEOF
25708 rm -f conftest.$ac_objext conftest$ac_exeext
25709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25710   (eval $ac_link) 2>conftest.er1
25711   ac_status=$?
25712   grep -v '^ *+' conftest.er1 >conftest.err
25713   rm -f conftest.er1
25714   cat conftest.err >&5
25715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716   (exit $ac_status); } &&
25717          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25719   (eval $ac_try) 2>&5
25720   ac_status=$?
25721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722   (exit $ac_status); }; } &&
25723          { ac_try='test -s conftest$ac_exeext'
25724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25725   (eval $ac_try) 2>&5
25726   ac_status=$?
25727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728   (exit $ac_status); }; }; then
25729   eval "$as_ac_var=yes"
25730 else
25731   echo "$as_me: failed program was:" >&5
25732 sed 's/^/| /' conftest.$ac_ext >&5
25733
25734 eval "$as_ac_var=no"
25735 fi
25736 rm -f conftest.err conftest.$ac_objext \
25737       conftest$ac_exeext conftest.$ac_ext
25738 fi
25739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25741 if test `eval echo '${'$as_ac_var'}'` = yes; then
25742   cat >>confdefs.h <<_ACEOF
25743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25744 _ACEOF
25745
25746 fi
25747 done
25748
25749         fi
25750
25751         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25752         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25753
25754         AFMINSTALL=afminstall
25755         TOOLKIT=GTK
25756         GUIDIST=GTK_DIST
25757
25758                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25759 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25760 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25761   echo $ECHO_N "(cached) $ECHO_C" >&6
25762 else
25763   ac_check_lib_save_LIBS=$LIBS
25764 LIBS="-lgdk  $LIBS"
25765 cat >conftest.$ac_ext <<_ACEOF
25766 /* confdefs.h.  */
25767 _ACEOF
25768 cat confdefs.h >>conftest.$ac_ext
25769 cat >>conftest.$ac_ext <<_ACEOF
25770 /* end confdefs.h.  */
25771
25772 /* Override any gcc2 internal prototype to avoid an error.  */
25773 #ifdef __cplusplus
25774 extern "C"
25775 #endif
25776 /* We use char because int might match the return type of a gcc2
25777    builtin and then its argument prototype would still apply.  */
25778 char gdk_im_open ();
25779 int
25780 main ()
25781 {
25782 gdk_im_open ();
25783   ;
25784   return 0;
25785 }
25786 _ACEOF
25787 rm -f conftest.$ac_objext conftest$ac_exeext
25788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25789   (eval $ac_link) 2>conftest.er1
25790   ac_status=$?
25791   grep -v '^ *+' conftest.er1 >conftest.err
25792   rm -f conftest.er1
25793   cat conftest.err >&5
25794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25795   (exit $ac_status); } &&
25796          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25798   (eval $ac_try) 2>&5
25799   ac_status=$?
25800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801   (exit $ac_status); }; } &&
25802          { ac_try='test -s conftest$ac_exeext'
25803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25804   (eval $ac_try) 2>&5
25805   ac_status=$?
25806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807   (exit $ac_status); }; }; then
25808   ac_cv_lib_gdk_gdk_im_open=yes
25809 else
25810   echo "$as_me: failed program was:" >&5
25811 sed 's/^/| /' conftest.$ac_ext >&5
25812
25813 ac_cv_lib_gdk_gdk_im_open=no
25814 fi
25815 rm -f conftest.err conftest.$ac_objext \
25816       conftest$ac_exeext conftest.$ac_ext
25817 LIBS=$ac_check_lib_save_LIBS
25818 fi
25819 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25820 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25821 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25822   cat >>confdefs.h <<\_ACEOF
25823 #define HAVE_XIM 1
25824 _ACEOF
25825
25826 fi
25827
25828
25829
25830                 if test "$wxUSE_GPE" = "yes"; then
25831             echo "$as_me:$LINENO: checking for gpewidget library" >&5
25832 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25833
25834 ac_find_libraries=
25835 for ac_dir in $SEARCH_LIB /usr/lib;
25836   do
25837     for ac_extension in a so sl dylib; do
25838       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25839         ac_find_libraries=$ac_dir
25840         break 2
25841       fi
25842     done
25843   done
25844
25845             if test "$ac_find_libraries" != "" ; then
25846
25847   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25848   result=$?
25849   if test $result = 0; then
25850     ac_path_to_link=""
25851   else
25852     ac_path_to_link=" -L$ac_find_libraries"
25853   fi
25854
25855                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25856                 WXGPE=1
25857                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25858 echo "${ECHO_T}found at $ac_find_libraries" >&6
25859             else
25860                 echo "$as_me:$LINENO: result: not found" >&5
25861 echo "${ECHO_T}not found" >&6
25862             fi
25863
25864                                                                                                                     fi
25865     fi
25866
25867     if test "$wxUSE_MGL" = 1; then
25868        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25869 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25870         if test "x$MGL_ROOT" = x ; then
25871             echo "$as_me:$LINENO: result: not found" >&5
25872 echo "${ECHO_T}not found" >&6
25873             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25874 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25875    { (exit 1); exit 1; }; }
25876         else
25877             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25878 echo "${ECHO_T}$MGL_ROOT" >&6
25879         fi
25880
25881         echo "$as_me:$LINENO: checking for libmgl location" >&5
25882 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25883                                 case "${host}" in
25884             *-*-linux* )
25885                                           if test "x$wxUSE_SHARED" = xyes ; then
25886                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25887               else
25888                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25889               fi
25890               ;;
25891             *-pc-msdosdjgpp )
25892               mgl_os_candidates="dos32/dj2"
25893               ;;
25894             *)
25895               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25896 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25897    { (exit 1); exit 1; }; }
25898         esac
25899
25900         mgl_lib_type=""
25901         mgl_os=""
25902
25903         for mgl_os_i in $mgl_os_candidates ; do
25904             if test "x$mgl_os" = x ; then
25905                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25906                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25907                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25908                         mgl_lib_type=debug
25909                         mgl_os=$mgl_os_i
25910                     fi
25911                 fi
25912                 if test "x$mgl_lib_type" = x ; then
25913                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25914                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25915                         mgl_lib_type=release
25916                         mgl_os=$mgl_os_i
25917                     fi
25918                 fi
25919             fi
25920         done
25921
25922         if test "x$mgl_os" = x ; then
25923             echo "$as_me:$LINENO: result: not found" >&5
25924 echo "${ECHO_T}not found" >&6
25925             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25926 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25927    { (exit 1); exit 1; }; }
25928         fi
25929         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25930 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25931
25932         wxUSE_UNIVERSAL="yes"
25933
25934         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25935         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25936
25937         AFMINSTALL=afminstall
25938         TOOLKIT=MGL
25939         GUIDIST=MGL_DIST
25940     fi
25941
25942     if test "$wxUSE_MICROWIN" = 1; then
25943         echo "$as_me:$LINENO: checking for MicroWindows" >&5
25944 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25945         if test "x$MICROWINDOWS" = x ; then
25946             echo "$as_me:$LINENO: result: not found" >&5
25947 echo "${ECHO_T}not found" >&6
25948             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25949 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25950    { (exit 1); exit 1; }; }
25951         else
25952             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25953 echo "${ECHO_T}$MICROWINDOWS" >&6
25954         fi
25955
25956         if test -f $MICROWINDOWS/lib/libmwin.a; then
25957             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25958 echo "${ECHO_T}MicroWindows' libraries found." >&6
25959         else
25960             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25961 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25962    { (exit 1); exit 1; }; }
25963         fi
25964
25965         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25966         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25967
25968         wxUSE_UNIVERSAL="yes"
25969
25970         AFMINSTALL=afminstall
25971         TOOLKIT=MICROWIN
25972         GUIDIST=MICROWIN_DIST
25973
25974         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25975     fi
25976
25977         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
25978
25979 if test "x$ac_path_x_has_been_run" != xyes; then
25980   echo "$as_me:$LINENO: checking for X" >&5
25981 echo $ECHO_N "checking for X... $ECHO_C" >&6
25982
25983 ac_path_x_has_been_run=yes
25984
25985 # Check whether --with-x or --without-x was given.
25986 if test "${with_x+set}" = set; then
25987   withval="$with_x"
25988
25989 fi;
25990 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25991 if test "x$with_x" = xno; then
25992   # The user explicitly disabled X.
25993   have_x=disabled
25994 else
25995   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25996     # Both variables are already set.
25997     have_x=yes
25998   else
25999     if test "${ac_cv_have_x+set}" = set; then
26000   echo $ECHO_N "(cached) $ECHO_C" >&6
26001 else
26002   # One or both of the vars are not set, and there is no cached value.
26003 ac_x_includes=no ac_x_libraries=no
26004 rm -fr conftest.dir
26005 if mkdir conftest.dir; then
26006   cd conftest.dir
26007   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
26008   cat >Imakefile <<'_ACEOF'
26009 acfindx:
26010         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
26011 _ACEOF
26012   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
26013     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26014     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
26015     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26016     for ac_extension in a so sl; do
26017       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
26018          test -f $ac_im_libdir/libX11.$ac_extension; then
26019         ac_im_usrlibdir=$ac_im_libdir; break
26020       fi
26021     done
26022     # Screen out bogus values from the imake configuration.  They are
26023     # bogus both because they are the default anyway, and because
26024     # using them would break gcc on systems where it needs fixed includes.
26025     case $ac_im_incroot in
26026         /usr/include) ;;
26027         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26028     esac
26029     case $ac_im_usrlibdir in
26030         /usr/lib | /lib) ;;
26031         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26032     esac
26033   fi
26034   cd ..
26035   rm -fr conftest.dir
26036 fi
26037
26038 # Standard set of common directories for X headers.
26039 # Check X11 before X11Rn because it is often a symlink to the current release.
26040 ac_x_header_dirs='
26041 /usr/X11/include
26042 /usr/X11R6/include
26043 /usr/X11R5/include
26044 /usr/X11R4/include
26045
26046 /usr/include/X11
26047 /usr/include/X11R6
26048 /usr/include/X11R5
26049 /usr/include/X11R4
26050
26051 /usr/local/X11/include
26052 /usr/local/X11R6/include
26053 /usr/local/X11R5/include
26054 /usr/local/X11R4/include
26055
26056 /usr/local/include/X11
26057 /usr/local/include/X11R6
26058 /usr/local/include/X11R5
26059 /usr/local/include/X11R4
26060
26061 /usr/X386/include
26062 /usr/x386/include
26063 /usr/XFree86/include/X11
26064
26065 /usr/include
26066 /usr/local/include
26067 /usr/unsupported/include
26068 /usr/athena/include
26069 /usr/local/x11r5/include
26070 /usr/lpp/Xamples/include
26071
26072 /usr/openwin/include
26073 /usr/openwin/share/include'
26074
26075 if test "$ac_x_includes" = no; then
26076   # Guess where to find include files, by looking for a specified header file.
26077   # First, try using that file with no special directory specified.
26078   cat >conftest.$ac_ext <<_ACEOF
26079 /* confdefs.h.  */
26080 _ACEOF
26081 cat confdefs.h >>conftest.$ac_ext
26082 cat >>conftest.$ac_ext <<_ACEOF
26083 /* end confdefs.h.  */
26084 #include <X11/Intrinsic.h>
26085 _ACEOF
26086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26087   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26088   ac_status=$?
26089   grep -v '^ *+' conftest.er1 >conftest.err
26090   rm -f conftest.er1
26091   cat conftest.err >&5
26092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26093   (exit $ac_status); } >/dev/null; then
26094   if test -s conftest.err; then
26095     ac_cpp_err=$ac_c_preproc_warn_flag
26096     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26097   else
26098     ac_cpp_err=
26099   fi
26100 else
26101   ac_cpp_err=yes
26102 fi
26103 if test -z "$ac_cpp_err"; then
26104   # We can compile using X headers with no special include directory.
26105 ac_x_includes=
26106 else
26107   echo "$as_me: failed program was:" >&5
26108 sed 's/^/| /' conftest.$ac_ext >&5
26109
26110   for ac_dir in $ac_x_header_dirs; do
26111   if test -r "$ac_dir/X11/Intrinsic.h"; then
26112     ac_x_includes=$ac_dir
26113     break
26114   fi
26115 done
26116 fi
26117 rm -f conftest.err conftest.$ac_ext
26118 fi # $ac_x_includes = no
26119
26120 if test "$ac_x_libraries" = no; then
26121   # Check for the libraries.
26122   # See if we find them without any special options.
26123   # Don't add to $LIBS permanently.
26124   ac_save_LIBS=$LIBS
26125   LIBS="-lXt $LIBS"
26126   cat >conftest.$ac_ext <<_ACEOF
26127 /* confdefs.h.  */
26128 _ACEOF
26129 cat confdefs.h >>conftest.$ac_ext
26130 cat >>conftest.$ac_ext <<_ACEOF
26131 /* end confdefs.h.  */
26132 #include <X11/Intrinsic.h>
26133 int
26134 main ()
26135 {
26136 XtMalloc (0)
26137   ;
26138   return 0;
26139 }
26140 _ACEOF
26141 rm -f conftest.$ac_objext conftest$ac_exeext
26142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26143   (eval $ac_link) 2>conftest.er1
26144   ac_status=$?
26145   grep -v '^ *+' conftest.er1 >conftest.err
26146   rm -f conftest.er1
26147   cat conftest.err >&5
26148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149   (exit $ac_status); } &&
26150          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26152   (eval $ac_try) 2>&5
26153   ac_status=$?
26154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155   (exit $ac_status); }; } &&
26156          { ac_try='test -s conftest$ac_exeext'
26157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26158   (eval $ac_try) 2>&5
26159   ac_status=$?
26160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161   (exit $ac_status); }; }; then
26162   LIBS=$ac_save_LIBS
26163 # We can link X programs with no special library path.
26164 ac_x_libraries=
26165 else
26166   echo "$as_me: failed program was:" >&5
26167 sed 's/^/| /' conftest.$ac_ext >&5
26168
26169 LIBS=$ac_save_LIBS
26170 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26171 do
26172   # Don't even attempt the hair of trying to link an X program!
26173   for ac_extension in a so sl; do
26174     if test -r $ac_dir/libXt.$ac_extension; then
26175       ac_x_libraries=$ac_dir
26176       break 2
26177     fi
26178   done
26179 done
26180 fi
26181 rm -f conftest.err conftest.$ac_objext \
26182       conftest$ac_exeext conftest.$ac_ext
26183 fi # $ac_x_libraries = no
26184
26185 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26186   # Didn't find X anywhere.  Cache the known absence of X.
26187   ac_cv_have_x="have_x=no"
26188 else
26189   # Record where we found X for the cache.
26190   ac_cv_have_x="have_x=yes \
26191                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
26192 fi
26193 fi
26194
26195   fi
26196   eval "$ac_cv_have_x"
26197 fi # $with_x != no
26198
26199 if test "$have_x" != yes; then
26200   echo "$as_me:$LINENO: result: $have_x" >&5
26201 echo "${ECHO_T}$have_x" >&6
26202   no_x=yes
26203 else
26204   # If each of the values was on the command line, it overrides each guess.
26205   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26206   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26207   # Update the cache value to reflect the command line values.
26208   ac_cv_have_x="have_x=yes \
26209                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
26210   # It might be that x_includes is empty (headers are found in the
26211   # standard search path. Then output the corresponding message
26212   ac_out_x_includes=$x_includes
26213   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26214   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26215 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
26216 fi
26217
26218 fi
26219 if test "$no_x" = yes; then
26220   # Not all programs may use this symbol, but it does not hurt to define it.
26221
26222 cat >>confdefs.h <<\_ACEOF
26223 #define X_DISPLAY_MISSING 1
26224 _ACEOF
26225
26226   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26227 else
26228   if test -n "$x_includes"; then
26229     X_CFLAGS="$X_CFLAGS -I$x_includes"
26230   fi
26231
26232   # It would also be nice to do this for all -L options, not just this one.
26233   if test -n "$x_libraries"; then
26234     X_LIBS="$X_LIBS -L$x_libraries"
26235     # For Solaris; some versions of Sun CC require a space after -R and
26236     # others require no space.  Words are not sufficient . . . .
26237     case `(uname -sr) 2>/dev/null` in
26238     "SunOS 5"*)
26239       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26240 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26241       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26242       cat >conftest.$ac_ext <<_ACEOF
26243 /* confdefs.h.  */
26244 _ACEOF
26245 cat confdefs.h >>conftest.$ac_ext
26246 cat >>conftest.$ac_ext <<_ACEOF
26247 /* end confdefs.h.  */
26248
26249 int
26250 main ()
26251 {
26252
26253   ;
26254   return 0;
26255 }
26256 _ACEOF
26257 rm -f conftest.$ac_objext conftest$ac_exeext
26258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26259   (eval $ac_link) 2>conftest.er1
26260   ac_status=$?
26261   grep -v '^ *+' conftest.er1 >conftest.err
26262   rm -f conftest.er1
26263   cat conftest.err >&5
26264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265   (exit $ac_status); } &&
26266          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26268   (eval $ac_try) 2>&5
26269   ac_status=$?
26270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26271   (exit $ac_status); }; } &&
26272          { ac_try='test -s conftest$ac_exeext'
26273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26274   (eval $ac_try) 2>&5
26275   ac_status=$?
26276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277   (exit $ac_status); }; }; then
26278   ac_R_nospace=yes
26279 else
26280   echo "$as_me: failed program was:" >&5
26281 sed 's/^/| /' conftest.$ac_ext >&5
26282
26283 ac_R_nospace=no
26284 fi
26285 rm -f conftest.err conftest.$ac_objext \
26286       conftest$ac_exeext conftest.$ac_ext
26287       if test $ac_R_nospace = yes; then
26288         echo "$as_me:$LINENO: result: no" >&5
26289 echo "${ECHO_T}no" >&6
26290         X_LIBS="$X_LIBS -R$x_libraries"
26291       else
26292         LIBS="$ac_xsave_LIBS -R $x_libraries"
26293         cat >conftest.$ac_ext <<_ACEOF
26294 /* confdefs.h.  */
26295 _ACEOF
26296 cat confdefs.h >>conftest.$ac_ext
26297 cat >>conftest.$ac_ext <<_ACEOF
26298 /* end confdefs.h.  */
26299
26300 int
26301 main ()
26302 {
26303
26304   ;
26305   return 0;
26306 }
26307 _ACEOF
26308 rm -f conftest.$ac_objext conftest$ac_exeext
26309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26310   (eval $ac_link) 2>conftest.er1
26311   ac_status=$?
26312   grep -v '^ *+' conftest.er1 >conftest.err
26313   rm -f conftest.er1
26314   cat conftest.err >&5
26315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316   (exit $ac_status); } &&
26317          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319   (eval $ac_try) 2>&5
26320   ac_status=$?
26321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322   (exit $ac_status); }; } &&
26323          { ac_try='test -s conftest$ac_exeext'
26324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325   (eval $ac_try) 2>&5
26326   ac_status=$?
26327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328   (exit $ac_status); }; }; then
26329   ac_R_space=yes
26330 else
26331   echo "$as_me: failed program was:" >&5
26332 sed 's/^/| /' conftest.$ac_ext >&5
26333
26334 ac_R_space=no
26335 fi
26336 rm -f conftest.err conftest.$ac_objext \
26337       conftest$ac_exeext conftest.$ac_ext
26338         if test $ac_R_space = yes; then
26339           echo "$as_me:$LINENO: result: yes" >&5
26340 echo "${ECHO_T}yes" >&6
26341           X_LIBS="$X_LIBS -R $x_libraries"
26342         else
26343           echo "$as_me:$LINENO: result: neither works" >&5
26344 echo "${ECHO_T}neither works" >&6
26345         fi
26346       fi
26347       LIBS=$ac_xsave_LIBS
26348     esac
26349   fi
26350
26351   # Check for system-dependent libraries X programs must link with.
26352   # Do this before checking for the system-independent R6 libraries
26353   # (-lICE), since we may need -lsocket or whatever for X linking.
26354
26355   if test "$ISC" = yes; then
26356     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26357   else
26358     # Martyn Johnson says this is needed for Ultrix, if the X
26359     # libraries were built with DECnet support.  And Karl Berry says
26360     # the Alpha needs dnet_stub (dnet does not exist).
26361     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26362     cat >conftest.$ac_ext <<_ACEOF
26363 /* confdefs.h.  */
26364 _ACEOF
26365 cat confdefs.h >>conftest.$ac_ext
26366 cat >>conftest.$ac_ext <<_ACEOF
26367 /* end confdefs.h.  */
26368
26369 /* Override any gcc2 internal prototype to avoid an error.  */
26370 #ifdef __cplusplus
26371 extern "C"
26372 #endif
26373 /* We use char because int might match the return type of a gcc2
26374    builtin and then its argument prototype would still apply.  */
26375 char XOpenDisplay ();
26376 int
26377 main ()
26378 {
26379 XOpenDisplay ();
26380   ;
26381   return 0;
26382 }
26383 _ACEOF
26384 rm -f conftest.$ac_objext conftest$ac_exeext
26385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26386   (eval $ac_link) 2>conftest.er1
26387   ac_status=$?
26388   grep -v '^ *+' conftest.er1 >conftest.err
26389   rm -f conftest.er1
26390   cat conftest.err >&5
26391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392   (exit $ac_status); } &&
26393          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26395   (eval $ac_try) 2>&5
26396   ac_status=$?
26397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398   (exit $ac_status); }; } &&
26399          { ac_try='test -s conftest$ac_exeext'
26400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26401   (eval $ac_try) 2>&5
26402   ac_status=$?
26403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404   (exit $ac_status); }; }; then
26405   :
26406 else
26407   echo "$as_me: failed program was:" >&5
26408 sed 's/^/| /' conftest.$ac_ext >&5
26409
26410 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26411 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26412 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26413   echo $ECHO_N "(cached) $ECHO_C" >&6
26414 else
26415   ac_check_lib_save_LIBS=$LIBS
26416 LIBS="-ldnet  $LIBS"
26417 cat >conftest.$ac_ext <<_ACEOF
26418 /* confdefs.h.  */
26419 _ACEOF
26420 cat confdefs.h >>conftest.$ac_ext
26421 cat >>conftest.$ac_ext <<_ACEOF
26422 /* end confdefs.h.  */
26423
26424 /* Override any gcc2 internal prototype to avoid an error.  */
26425 #ifdef __cplusplus
26426 extern "C"
26427 #endif
26428 /* We use char because int might match the return type of a gcc2
26429    builtin and then its argument prototype would still apply.  */
26430 char dnet_ntoa ();
26431 int
26432 main ()
26433 {
26434 dnet_ntoa ();
26435   ;
26436   return 0;
26437 }
26438 _ACEOF
26439 rm -f conftest.$ac_objext conftest$ac_exeext
26440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26441   (eval $ac_link) 2>conftest.er1
26442   ac_status=$?
26443   grep -v '^ *+' conftest.er1 >conftest.err
26444   rm -f conftest.er1
26445   cat conftest.err >&5
26446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447   (exit $ac_status); } &&
26448          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26450   (eval $ac_try) 2>&5
26451   ac_status=$?
26452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453   (exit $ac_status); }; } &&
26454          { ac_try='test -s conftest$ac_exeext'
26455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26456   (eval $ac_try) 2>&5
26457   ac_status=$?
26458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26459   (exit $ac_status); }; }; then
26460   ac_cv_lib_dnet_dnet_ntoa=yes
26461 else
26462   echo "$as_me: failed program was:" >&5
26463 sed 's/^/| /' conftest.$ac_ext >&5
26464
26465 ac_cv_lib_dnet_dnet_ntoa=no
26466 fi
26467 rm -f conftest.err conftest.$ac_objext \
26468       conftest$ac_exeext conftest.$ac_ext
26469 LIBS=$ac_check_lib_save_LIBS
26470 fi
26471 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26472 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26473 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26474   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26475 fi
26476
26477     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26478       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26479 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26480 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26481   echo $ECHO_N "(cached) $ECHO_C" >&6
26482 else
26483   ac_check_lib_save_LIBS=$LIBS
26484 LIBS="-ldnet_stub  $LIBS"
26485 cat >conftest.$ac_ext <<_ACEOF
26486 /* confdefs.h.  */
26487 _ACEOF
26488 cat confdefs.h >>conftest.$ac_ext
26489 cat >>conftest.$ac_ext <<_ACEOF
26490 /* end confdefs.h.  */
26491
26492 /* Override any gcc2 internal prototype to avoid an error.  */
26493 #ifdef __cplusplus
26494 extern "C"
26495 #endif
26496 /* We use char because int might match the return type of a gcc2
26497    builtin and then its argument prototype would still apply.  */
26498 char dnet_ntoa ();
26499 int
26500 main ()
26501 {
26502 dnet_ntoa ();
26503   ;
26504   return 0;
26505 }
26506 _ACEOF
26507 rm -f conftest.$ac_objext conftest$ac_exeext
26508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26509   (eval $ac_link) 2>conftest.er1
26510   ac_status=$?
26511   grep -v '^ *+' conftest.er1 >conftest.err
26512   rm -f conftest.er1
26513   cat conftest.err >&5
26514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515   (exit $ac_status); } &&
26516          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518   (eval $ac_try) 2>&5
26519   ac_status=$?
26520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521   (exit $ac_status); }; } &&
26522          { ac_try='test -s conftest$ac_exeext'
26523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26524   (eval $ac_try) 2>&5
26525   ac_status=$?
26526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527   (exit $ac_status); }; }; then
26528   ac_cv_lib_dnet_stub_dnet_ntoa=yes
26529 else
26530   echo "$as_me: failed program was:" >&5
26531 sed 's/^/| /' conftest.$ac_ext >&5
26532
26533 ac_cv_lib_dnet_stub_dnet_ntoa=no
26534 fi
26535 rm -f conftest.err conftest.$ac_objext \
26536       conftest$ac_exeext conftest.$ac_ext
26537 LIBS=$ac_check_lib_save_LIBS
26538 fi
26539 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26540 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26541 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26542   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26543 fi
26544
26545     fi
26546 fi
26547 rm -f conftest.err conftest.$ac_objext \
26548       conftest$ac_exeext conftest.$ac_ext
26549     LIBS="$ac_xsave_LIBS"
26550
26551     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26552     # to get the SysV transport functions.
26553     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26554     # needs -lnsl.
26555     # The nsl library prevents programs from opening the X display
26556     # on Irix 5.2, according to T.E. Dickey.
26557     # The functions gethostbyname, getservbyname, and inet_addr are
26558     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26559     echo "$as_me:$LINENO: checking for gethostbyname" >&5
26560 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26561 if test "${ac_cv_func_gethostbyname+set}" = set; then
26562   echo $ECHO_N "(cached) $ECHO_C" >&6
26563 else
26564   cat >conftest.$ac_ext <<_ACEOF
26565 /* confdefs.h.  */
26566 _ACEOF
26567 cat confdefs.h >>conftest.$ac_ext
26568 cat >>conftest.$ac_ext <<_ACEOF
26569 /* end confdefs.h.  */
26570 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26572 #define gethostbyname innocuous_gethostbyname
26573
26574 /* System header to define __stub macros and hopefully few prototypes,
26575     which can conflict with char gethostbyname (); below.
26576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26577     <limits.h> exists even on freestanding compilers.  */
26578
26579 #ifdef __STDC__
26580 # include <limits.h>
26581 #else
26582 # include <assert.h>
26583 #endif
26584
26585 #undef gethostbyname
26586
26587 /* Override any gcc2 internal prototype to avoid an error.  */
26588 #ifdef __cplusplus
26589 extern "C"
26590 {
26591 #endif
26592 /* We use char because int might match the return type of a gcc2
26593    builtin and then its argument prototype would still apply.  */
26594 char gethostbyname ();
26595 /* The GNU C library defines this for functions which it implements
26596     to always fail with ENOSYS.  Some functions are actually named
26597     something starting with __ and the normal name is an alias.  */
26598 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26599 choke me
26600 #else
26601 char (*f) () = gethostbyname;
26602 #endif
26603 #ifdef __cplusplus
26604 }
26605 #endif
26606
26607 int
26608 main ()
26609 {
26610 return f != gethostbyname;
26611   ;
26612   return 0;
26613 }
26614 _ACEOF
26615 rm -f conftest.$ac_objext conftest$ac_exeext
26616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26617   (eval $ac_link) 2>conftest.er1
26618   ac_status=$?
26619   grep -v '^ *+' conftest.er1 >conftest.err
26620   rm -f conftest.er1
26621   cat conftest.err >&5
26622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623   (exit $ac_status); } &&
26624          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26626   (eval $ac_try) 2>&5
26627   ac_status=$?
26628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629   (exit $ac_status); }; } &&
26630          { ac_try='test -s conftest$ac_exeext'
26631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26632   (eval $ac_try) 2>&5
26633   ac_status=$?
26634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635   (exit $ac_status); }; }; then
26636   ac_cv_func_gethostbyname=yes
26637 else
26638   echo "$as_me: failed program was:" >&5
26639 sed 's/^/| /' conftest.$ac_ext >&5
26640
26641 ac_cv_func_gethostbyname=no
26642 fi
26643 rm -f conftest.err conftest.$ac_objext \
26644       conftest$ac_exeext conftest.$ac_ext
26645 fi
26646 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26647 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26648
26649     if test $ac_cv_func_gethostbyname = no; then
26650       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26651 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26652 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26653   echo $ECHO_N "(cached) $ECHO_C" >&6
26654 else
26655   ac_check_lib_save_LIBS=$LIBS
26656 LIBS="-lnsl  $LIBS"
26657 cat >conftest.$ac_ext <<_ACEOF
26658 /* confdefs.h.  */
26659 _ACEOF
26660 cat confdefs.h >>conftest.$ac_ext
26661 cat >>conftest.$ac_ext <<_ACEOF
26662 /* end confdefs.h.  */
26663
26664 /* Override any gcc2 internal prototype to avoid an error.  */
26665 #ifdef __cplusplus
26666 extern "C"
26667 #endif
26668 /* We use char because int might match the return type of a gcc2
26669    builtin and then its argument prototype would still apply.  */
26670 char gethostbyname ();
26671 int
26672 main ()
26673 {
26674 gethostbyname ();
26675   ;
26676   return 0;
26677 }
26678 _ACEOF
26679 rm -f conftest.$ac_objext conftest$ac_exeext
26680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26681   (eval $ac_link) 2>conftest.er1
26682   ac_status=$?
26683   grep -v '^ *+' conftest.er1 >conftest.err
26684   rm -f conftest.er1
26685   cat conftest.err >&5
26686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26687   (exit $ac_status); } &&
26688          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26690   (eval $ac_try) 2>&5
26691   ac_status=$?
26692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693   (exit $ac_status); }; } &&
26694          { ac_try='test -s conftest$ac_exeext'
26695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26696   (eval $ac_try) 2>&5
26697   ac_status=$?
26698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699   (exit $ac_status); }; }; then
26700   ac_cv_lib_nsl_gethostbyname=yes
26701 else
26702   echo "$as_me: failed program was:" >&5
26703 sed 's/^/| /' conftest.$ac_ext >&5
26704
26705 ac_cv_lib_nsl_gethostbyname=no
26706 fi
26707 rm -f conftest.err conftest.$ac_objext \
26708       conftest$ac_exeext conftest.$ac_ext
26709 LIBS=$ac_check_lib_save_LIBS
26710 fi
26711 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26712 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26713 if test $ac_cv_lib_nsl_gethostbyname = yes; then
26714   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26715 fi
26716
26717       if test $ac_cv_lib_nsl_gethostbyname = no; then
26718         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26719 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26720 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26721   echo $ECHO_N "(cached) $ECHO_C" >&6
26722 else
26723   ac_check_lib_save_LIBS=$LIBS
26724 LIBS="-lbsd  $LIBS"
26725 cat >conftest.$ac_ext <<_ACEOF
26726 /* confdefs.h.  */
26727 _ACEOF
26728 cat confdefs.h >>conftest.$ac_ext
26729 cat >>conftest.$ac_ext <<_ACEOF
26730 /* end confdefs.h.  */
26731
26732 /* Override any gcc2 internal prototype to avoid an error.  */
26733 #ifdef __cplusplus
26734 extern "C"
26735 #endif
26736 /* We use char because int might match the return type of a gcc2
26737    builtin and then its argument prototype would still apply.  */
26738 char gethostbyname ();
26739 int
26740 main ()
26741 {
26742 gethostbyname ();
26743   ;
26744   return 0;
26745 }
26746 _ACEOF
26747 rm -f conftest.$ac_objext conftest$ac_exeext
26748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26749   (eval $ac_link) 2>conftest.er1
26750   ac_status=$?
26751   grep -v '^ *+' conftest.er1 >conftest.err
26752   rm -f conftest.er1
26753   cat conftest.err >&5
26754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755   (exit $ac_status); } &&
26756          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26758   (eval $ac_try) 2>&5
26759   ac_status=$?
26760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761   (exit $ac_status); }; } &&
26762          { ac_try='test -s conftest$ac_exeext'
26763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26764   (eval $ac_try) 2>&5
26765   ac_status=$?
26766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767   (exit $ac_status); }; }; then
26768   ac_cv_lib_bsd_gethostbyname=yes
26769 else
26770   echo "$as_me: failed program was:" >&5
26771 sed 's/^/| /' conftest.$ac_ext >&5
26772
26773 ac_cv_lib_bsd_gethostbyname=no
26774 fi
26775 rm -f conftest.err conftest.$ac_objext \
26776       conftest$ac_exeext conftest.$ac_ext
26777 LIBS=$ac_check_lib_save_LIBS
26778 fi
26779 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26780 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26781 if test $ac_cv_lib_bsd_gethostbyname = yes; then
26782   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26783 fi
26784
26785       fi
26786     fi
26787
26788     # lieder@skyler.mavd.honeywell.com says without -lsocket,
26789     # socket/setsockopt and other routines are undefined under SCO ODT
26790     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
26791     # on later versions), says Simon Leinen: it contains gethostby*
26792     # variants that don't use the name server (or something).  -lsocket
26793     # must be given before -lnsl if both are needed.  We assume that
26794     # if connect needs -lnsl, so does gethostbyname.
26795     echo "$as_me:$LINENO: checking for connect" >&5
26796 echo $ECHO_N "checking for connect... $ECHO_C" >&6
26797 if test "${ac_cv_func_connect+set}" = set; then
26798   echo $ECHO_N "(cached) $ECHO_C" >&6
26799 else
26800   cat >conftest.$ac_ext <<_ACEOF
26801 /* confdefs.h.  */
26802 _ACEOF
26803 cat confdefs.h >>conftest.$ac_ext
26804 cat >>conftest.$ac_ext <<_ACEOF
26805 /* end confdefs.h.  */
26806 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
26807    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26808 #define connect innocuous_connect
26809
26810 /* System header to define __stub macros and hopefully few prototypes,
26811     which can conflict with char connect (); below.
26812     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26813     <limits.h> exists even on freestanding compilers.  */
26814
26815 #ifdef __STDC__
26816 # include <limits.h>
26817 #else
26818 # include <assert.h>
26819 #endif
26820
26821 #undef connect
26822
26823 /* Override any gcc2 internal prototype to avoid an error.  */
26824 #ifdef __cplusplus
26825 extern "C"
26826 {
26827 #endif
26828 /* We use char because int might match the return type of a gcc2
26829    builtin and then its argument prototype would still apply.  */
26830 char connect ();
26831 /* The GNU C library defines this for functions which it implements
26832     to always fail with ENOSYS.  Some functions are actually named
26833     something starting with __ and the normal name is an alias.  */
26834 #if defined (__stub_connect) || defined (__stub___connect)
26835 choke me
26836 #else
26837 char (*f) () = connect;
26838 #endif
26839 #ifdef __cplusplus
26840 }
26841 #endif
26842
26843 int
26844 main ()
26845 {
26846 return f != connect;
26847   ;
26848   return 0;
26849 }
26850 _ACEOF
26851 rm -f conftest.$ac_objext conftest$ac_exeext
26852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26853   (eval $ac_link) 2>conftest.er1
26854   ac_status=$?
26855   grep -v '^ *+' conftest.er1 >conftest.err
26856   rm -f conftest.er1
26857   cat conftest.err >&5
26858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859   (exit $ac_status); } &&
26860          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26862   (eval $ac_try) 2>&5
26863   ac_status=$?
26864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865   (exit $ac_status); }; } &&
26866          { ac_try='test -s conftest$ac_exeext'
26867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26868   (eval $ac_try) 2>&5
26869   ac_status=$?
26870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871   (exit $ac_status); }; }; then
26872   ac_cv_func_connect=yes
26873 else
26874   echo "$as_me: failed program was:" >&5
26875 sed 's/^/| /' conftest.$ac_ext >&5
26876
26877 ac_cv_func_connect=no
26878 fi
26879 rm -f conftest.err conftest.$ac_objext \
26880       conftest$ac_exeext conftest.$ac_ext
26881 fi
26882 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26883 echo "${ECHO_T}$ac_cv_func_connect" >&6
26884
26885     if test $ac_cv_func_connect = no; then
26886       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26887 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26888 if test "${ac_cv_lib_socket_connect+set}" = set; then
26889   echo $ECHO_N "(cached) $ECHO_C" >&6
26890 else
26891   ac_check_lib_save_LIBS=$LIBS
26892 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26893 cat >conftest.$ac_ext <<_ACEOF
26894 /* confdefs.h.  */
26895 _ACEOF
26896 cat confdefs.h >>conftest.$ac_ext
26897 cat >>conftest.$ac_ext <<_ACEOF
26898 /* end confdefs.h.  */
26899
26900 /* Override any gcc2 internal prototype to avoid an error.  */
26901 #ifdef __cplusplus
26902 extern "C"
26903 #endif
26904 /* We use char because int might match the return type of a gcc2
26905    builtin and then its argument prototype would still apply.  */
26906 char connect ();
26907 int
26908 main ()
26909 {
26910 connect ();
26911   ;
26912   return 0;
26913 }
26914 _ACEOF
26915 rm -f conftest.$ac_objext conftest$ac_exeext
26916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26917   (eval $ac_link) 2>conftest.er1
26918   ac_status=$?
26919   grep -v '^ *+' conftest.er1 >conftest.err
26920   rm -f conftest.er1
26921   cat conftest.err >&5
26922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923   (exit $ac_status); } &&
26924          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26926   (eval $ac_try) 2>&5
26927   ac_status=$?
26928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929   (exit $ac_status); }; } &&
26930          { ac_try='test -s conftest$ac_exeext'
26931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26932   (eval $ac_try) 2>&5
26933   ac_status=$?
26934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935   (exit $ac_status); }; }; then
26936   ac_cv_lib_socket_connect=yes
26937 else
26938   echo "$as_me: failed program was:" >&5
26939 sed 's/^/| /' conftest.$ac_ext >&5
26940
26941 ac_cv_lib_socket_connect=no
26942 fi
26943 rm -f conftest.err conftest.$ac_objext \
26944       conftest$ac_exeext conftest.$ac_ext
26945 LIBS=$ac_check_lib_save_LIBS
26946 fi
26947 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26948 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26949 if test $ac_cv_lib_socket_connect = yes; then
26950   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26951 fi
26952
26953     fi
26954
26955     # Guillermo Gomez says -lposix is necessary on A/UX.
26956     echo "$as_me:$LINENO: checking for remove" >&5
26957 echo $ECHO_N "checking for remove... $ECHO_C" >&6
26958 if test "${ac_cv_func_remove+set}" = set; then
26959   echo $ECHO_N "(cached) $ECHO_C" >&6
26960 else
26961   cat >conftest.$ac_ext <<_ACEOF
26962 /* confdefs.h.  */
26963 _ACEOF
26964 cat confdefs.h >>conftest.$ac_ext
26965 cat >>conftest.$ac_ext <<_ACEOF
26966 /* end confdefs.h.  */
26967 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
26968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26969 #define remove innocuous_remove
26970
26971 /* System header to define __stub macros and hopefully few prototypes,
26972     which can conflict with char remove (); below.
26973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26974     <limits.h> exists even on freestanding compilers.  */
26975
26976 #ifdef __STDC__
26977 # include <limits.h>
26978 #else
26979 # include <assert.h>
26980 #endif
26981
26982 #undef remove
26983
26984 /* Override any gcc2 internal prototype to avoid an error.  */
26985 #ifdef __cplusplus
26986 extern "C"
26987 {
26988 #endif
26989 /* We use char because int might match the return type of a gcc2
26990    builtin and then its argument prototype would still apply.  */
26991 char remove ();
26992 /* The GNU C library defines this for functions which it implements
26993     to always fail with ENOSYS.  Some functions are actually named
26994     something starting with __ and the normal name is an alias.  */
26995 #if defined (__stub_remove) || defined (__stub___remove)
26996 choke me
26997 #else
26998 char (*f) () = remove;
26999 #endif
27000 #ifdef __cplusplus
27001 }
27002 #endif
27003
27004 int
27005 main ()
27006 {
27007 return f != remove;
27008   ;
27009   return 0;
27010 }
27011 _ACEOF
27012 rm -f conftest.$ac_objext conftest$ac_exeext
27013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27014   (eval $ac_link) 2>conftest.er1
27015   ac_status=$?
27016   grep -v '^ *+' conftest.er1 >conftest.err
27017   rm -f conftest.er1
27018   cat conftest.err >&5
27019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020   (exit $ac_status); } &&
27021          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27023   (eval $ac_try) 2>&5
27024   ac_status=$?
27025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026   (exit $ac_status); }; } &&
27027          { ac_try='test -s conftest$ac_exeext'
27028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27029   (eval $ac_try) 2>&5
27030   ac_status=$?
27031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032   (exit $ac_status); }; }; then
27033   ac_cv_func_remove=yes
27034 else
27035   echo "$as_me: failed program was:" >&5
27036 sed 's/^/| /' conftest.$ac_ext >&5
27037
27038 ac_cv_func_remove=no
27039 fi
27040 rm -f conftest.err conftest.$ac_objext \
27041       conftest$ac_exeext conftest.$ac_ext
27042 fi
27043 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27044 echo "${ECHO_T}$ac_cv_func_remove" >&6
27045
27046     if test $ac_cv_func_remove = no; then
27047       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27048 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27049 if test "${ac_cv_lib_posix_remove+set}" = set; then
27050   echo $ECHO_N "(cached) $ECHO_C" >&6
27051 else
27052   ac_check_lib_save_LIBS=$LIBS
27053 LIBS="-lposix  $LIBS"
27054 cat >conftest.$ac_ext <<_ACEOF
27055 /* confdefs.h.  */
27056 _ACEOF
27057 cat confdefs.h >>conftest.$ac_ext
27058 cat >>conftest.$ac_ext <<_ACEOF
27059 /* end confdefs.h.  */
27060
27061 /* Override any gcc2 internal prototype to avoid an error.  */
27062 #ifdef __cplusplus
27063 extern "C"
27064 #endif
27065 /* We use char because int might match the return type of a gcc2
27066    builtin and then its argument prototype would still apply.  */
27067 char remove ();
27068 int
27069 main ()
27070 {
27071 remove ();
27072   ;
27073   return 0;
27074 }
27075 _ACEOF
27076 rm -f conftest.$ac_objext conftest$ac_exeext
27077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27078   (eval $ac_link) 2>conftest.er1
27079   ac_status=$?
27080   grep -v '^ *+' conftest.er1 >conftest.err
27081   rm -f conftest.er1
27082   cat conftest.err >&5
27083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084   (exit $ac_status); } &&
27085          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27087   (eval $ac_try) 2>&5
27088   ac_status=$?
27089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090   (exit $ac_status); }; } &&
27091          { ac_try='test -s conftest$ac_exeext'
27092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27093   (eval $ac_try) 2>&5
27094   ac_status=$?
27095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096   (exit $ac_status); }; }; then
27097   ac_cv_lib_posix_remove=yes
27098 else
27099   echo "$as_me: failed program was:" >&5
27100 sed 's/^/| /' conftest.$ac_ext >&5
27101
27102 ac_cv_lib_posix_remove=no
27103 fi
27104 rm -f conftest.err conftest.$ac_objext \
27105       conftest$ac_exeext conftest.$ac_ext
27106 LIBS=$ac_check_lib_save_LIBS
27107 fi
27108 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27109 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27110 if test $ac_cv_lib_posix_remove = yes; then
27111   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27112 fi
27113
27114     fi
27115
27116     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27117     echo "$as_me:$LINENO: checking for shmat" >&5
27118 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27119 if test "${ac_cv_func_shmat+set}" = set; then
27120   echo $ECHO_N "(cached) $ECHO_C" >&6
27121 else
27122   cat >conftest.$ac_ext <<_ACEOF
27123 /* confdefs.h.  */
27124 _ACEOF
27125 cat confdefs.h >>conftest.$ac_ext
27126 cat >>conftest.$ac_ext <<_ACEOF
27127 /* end confdefs.h.  */
27128 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27130 #define shmat innocuous_shmat
27131
27132 /* System header to define __stub macros and hopefully few prototypes,
27133     which can conflict with char shmat (); below.
27134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27135     <limits.h> exists even on freestanding compilers.  */
27136
27137 #ifdef __STDC__
27138 # include <limits.h>
27139 #else
27140 # include <assert.h>
27141 #endif
27142
27143 #undef shmat
27144
27145 /* Override any gcc2 internal prototype to avoid an error.  */
27146 #ifdef __cplusplus
27147 extern "C"
27148 {
27149 #endif
27150 /* We use char because int might match the return type of a gcc2
27151    builtin and then its argument prototype would still apply.  */
27152 char shmat ();
27153 /* The GNU C library defines this for functions which it implements
27154     to always fail with ENOSYS.  Some functions are actually named
27155     something starting with __ and the normal name is an alias.  */
27156 #if defined (__stub_shmat) || defined (__stub___shmat)
27157 choke me
27158 #else
27159 char (*f) () = shmat;
27160 #endif
27161 #ifdef __cplusplus
27162 }
27163 #endif
27164
27165 int
27166 main ()
27167 {
27168 return f != shmat;
27169   ;
27170   return 0;
27171 }
27172 _ACEOF
27173 rm -f conftest.$ac_objext conftest$ac_exeext
27174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27175   (eval $ac_link) 2>conftest.er1
27176   ac_status=$?
27177   grep -v '^ *+' conftest.er1 >conftest.err
27178   rm -f conftest.er1
27179   cat conftest.err >&5
27180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27181   (exit $ac_status); } &&
27182          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27184   (eval $ac_try) 2>&5
27185   ac_status=$?
27186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187   (exit $ac_status); }; } &&
27188          { ac_try='test -s conftest$ac_exeext'
27189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27190   (eval $ac_try) 2>&5
27191   ac_status=$?
27192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193   (exit $ac_status); }; }; then
27194   ac_cv_func_shmat=yes
27195 else
27196   echo "$as_me: failed program was:" >&5
27197 sed 's/^/| /' conftest.$ac_ext >&5
27198
27199 ac_cv_func_shmat=no
27200 fi
27201 rm -f conftest.err conftest.$ac_objext \
27202       conftest$ac_exeext conftest.$ac_ext
27203 fi
27204 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27205 echo "${ECHO_T}$ac_cv_func_shmat" >&6
27206
27207     if test $ac_cv_func_shmat = no; then
27208       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27209 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27210 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27211   echo $ECHO_N "(cached) $ECHO_C" >&6
27212 else
27213   ac_check_lib_save_LIBS=$LIBS
27214 LIBS="-lipc  $LIBS"
27215 cat >conftest.$ac_ext <<_ACEOF
27216 /* confdefs.h.  */
27217 _ACEOF
27218 cat confdefs.h >>conftest.$ac_ext
27219 cat >>conftest.$ac_ext <<_ACEOF
27220 /* end confdefs.h.  */
27221
27222 /* Override any gcc2 internal prototype to avoid an error.  */
27223 #ifdef __cplusplus
27224 extern "C"
27225 #endif
27226 /* We use char because int might match the return type of a gcc2
27227    builtin and then its argument prototype would still apply.  */
27228 char shmat ();
27229 int
27230 main ()
27231 {
27232 shmat ();
27233   ;
27234   return 0;
27235 }
27236 _ACEOF
27237 rm -f conftest.$ac_objext conftest$ac_exeext
27238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27239   (eval $ac_link) 2>conftest.er1
27240   ac_status=$?
27241   grep -v '^ *+' conftest.er1 >conftest.err
27242   rm -f conftest.er1
27243   cat conftest.err >&5
27244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245   (exit $ac_status); } &&
27246          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27248   (eval $ac_try) 2>&5
27249   ac_status=$?
27250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27251   (exit $ac_status); }; } &&
27252          { ac_try='test -s conftest$ac_exeext'
27253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27254   (eval $ac_try) 2>&5
27255   ac_status=$?
27256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257   (exit $ac_status); }; }; then
27258   ac_cv_lib_ipc_shmat=yes
27259 else
27260   echo "$as_me: failed program was:" >&5
27261 sed 's/^/| /' conftest.$ac_ext >&5
27262
27263 ac_cv_lib_ipc_shmat=no
27264 fi
27265 rm -f conftest.err conftest.$ac_objext \
27266       conftest$ac_exeext conftest.$ac_ext
27267 LIBS=$ac_check_lib_save_LIBS
27268 fi
27269 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27270 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27271 if test $ac_cv_lib_ipc_shmat = yes; then
27272   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27273 fi
27274
27275     fi
27276   fi
27277
27278   # Check for libraries that X11R6 Xt/Xaw programs need.
27279   ac_save_LDFLAGS=$LDFLAGS
27280   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27281   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27282   # check for ICE first), but we must link in the order -lSM -lICE or
27283   # we get undefined symbols.  So assume we have SM if we have ICE.
27284   # These have to be linked with before -lX11, unlike the other
27285   # libraries we check for below, so use a different variable.
27286   # John Interrante, Karl Berry
27287   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27288 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27289 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27290   echo $ECHO_N "(cached) $ECHO_C" >&6
27291 else
27292   ac_check_lib_save_LIBS=$LIBS
27293 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27294 cat >conftest.$ac_ext <<_ACEOF
27295 /* confdefs.h.  */
27296 _ACEOF
27297 cat confdefs.h >>conftest.$ac_ext
27298 cat >>conftest.$ac_ext <<_ACEOF
27299 /* end confdefs.h.  */
27300
27301 /* Override any gcc2 internal prototype to avoid an error.  */
27302 #ifdef __cplusplus
27303 extern "C"
27304 #endif
27305 /* We use char because int might match the return type of a gcc2
27306    builtin and then its argument prototype would still apply.  */
27307 char IceConnectionNumber ();
27308 int
27309 main ()
27310 {
27311 IceConnectionNumber ();
27312   ;
27313   return 0;
27314 }
27315 _ACEOF
27316 rm -f conftest.$ac_objext conftest$ac_exeext
27317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27318   (eval $ac_link) 2>conftest.er1
27319   ac_status=$?
27320   grep -v '^ *+' conftest.er1 >conftest.err
27321   rm -f conftest.er1
27322   cat conftest.err >&5
27323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324   (exit $ac_status); } &&
27325          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327   (eval $ac_try) 2>&5
27328   ac_status=$?
27329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330   (exit $ac_status); }; } &&
27331          { ac_try='test -s conftest$ac_exeext'
27332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27333   (eval $ac_try) 2>&5
27334   ac_status=$?
27335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336   (exit $ac_status); }; }; then
27337   ac_cv_lib_ICE_IceConnectionNumber=yes
27338 else
27339   echo "$as_me: failed program was:" >&5
27340 sed 's/^/| /' conftest.$ac_ext >&5
27341
27342 ac_cv_lib_ICE_IceConnectionNumber=no
27343 fi
27344 rm -f conftest.err conftest.$ac_objext \
27345       conftest$ac_exeext conftest.$ac_ext
27346 LIBS=$ac_check_lib_save_LIBS
27347 fi
27348 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27349 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27350 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27351   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27352 fi
27353
27354   LDFLAGS=$ac_save_LDFLAGS
27355
27356 fi
27357
27358
27359         if test "$no_x" = "yes"; then
27360           { { echo "$as_me:$LINENO: error: X11 not found" >&5
27361 echo "$as_me: error: X11 not found" >&2;}
27362    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27363         fi
27364
27365                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27366         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
27367         AFMINSTALL=afminstall
27368         COMPILED_X_PROGRAM=0
27369
27370     fi
27371
27372     if test "$wxUSE_X11" = 1; then
27373         if test "$wxUSE_NANOX" = "yes"; then
27374             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27375 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27376             if test "x$MICROWIN" = x ; then
27377                 echo "$as_me:$LINENO: result: not found" >&5
27378 echo "${ECHO_T}not found" >&6
27379                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27380 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27381    { (exit 1); exit 1; }; }
27382             else
27383                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27384 echo "${ECHO_T}$MICROWIN" >&6
27385                 cat >>confdefs.h <<\_ACEOF
27386 #define wxUSE_NANOX 1
27387 _ACEOF
27388
27389             fi
27390         fi
27391
27392         if test "$wxUSE_UNICODE" = "yes"; then
27393
27394   succeeded=no
27395
27396   if test -z "$PKG_CONFIG"; then
27397     # Extract the first word of "pkg-config", so it can be a program name with args.
27398 set dummy pkg-config; ac_word=$2
27399 echo "$as_me:$LINENO: checking for $ac_word" >&5
27400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27401 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27402   echo $ECHO_N "(cached) $ECHO_C" >&6
27403 else
27404   case $PKG_CONFIG in
27405   [\\/]* | ?:[\\/]*)
27406   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27407   ;;
27408   *)
27409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27410 for as_dir in $PATH
27411 do
27412   IFS=$as_save_IFS
27413   test -z "$as_dir" && as_dir=.
27414   for ac_exec_ext in '' $ac_executable_extensions; do
27415   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27416     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27418     break 2
27419   fi
27420 done
27421 done
27422
27423   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27424   ;;
27425 esac
27426 fi
27427 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27428
27429 if test -n "$PKG_CONFIG"; then
27430   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27431 echo "${ECHO_T}$PKG_CONFIG" >&6
27432 else
27433   echo "$as_me:$LINENO: result: no" >&5
27434 echo "${ECHO_T}no" >&6
27435 fi
27436
27437   fi
27438
27439   if test "$PKG_CONFIG" = "no" ; then
27440      echo "*** The pkg-config script could not be found. Make sure it is"
27441      echo "*** in your path, or set the PKG_CONFIG environment variable"
27442      echo "*** to the full path to pkg-config."
27443      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27444   else
27445      PKG_CONFIG_MIN_VERSION=0.9.0
27446      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27447         echo "$as_me:$LINENO: checking for pangox" >&5
27448 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27449
27450         if $PKG_CONFIG --exists "pangox" ; then
27451             echo "$as_me:$LINENO: result: yes" >&5
27452 echo "${ECHO_T}yes" >&6
27453             succeeded=yes
27454
27455             echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27456 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27457             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27458             echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27459 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27460
27461             echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27462 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27463             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27464             echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27465 echo "${ECHO_T}$PANGOX_LIBS" >&6
27466         else
27467             PANGOX_CFLAGS=""
27468             PANGOX_LIBS=""
27469             ## If we have a custom action on failure, don't print errors, but
27470             ## do set a variable so people can do so.
27471             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27472
27473         fi
27474
27475
27476
27477      else
27478         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27479         echo "*** See http://www.freedesktop.org/software/pkgconfig"
27480      fi
27481   fi
27482
27483   if test $succeeded = yes; then
27484
27485                         CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27486                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27487
27488   else
27489
27490                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27491 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27492    { (exit 1); exit 1; }; }
27493
27494
27495   fi
27496
27497
27498   succeeded=no
27499
27500   if test -z "$PKG_CONFIG"; then
27501     # Extract the first word of "pkg-config", so it can be a program name with args.
27502 set dummy pkg-config; ac_word=$2
27503 echo "$as_me:$LINENO: checking for $ac_word" >&5
27504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27505 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27506   echo $ECHO_N "(cached) $ECHO_C" >&6
27507 else
27508   case $PKG_CONFIG in
27509   [\\/]* | ?:[\\/]*)
27510   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27511   ;;
27512   *)
27513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27514 for as_dir in $PATH
27515 do
27516   IFS=$as_save_IFS
27517   test -z "$as_dir" && as_dir=.
27518   for ac_exec_ext in '' $ac_executable_extensions; do
27519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27520     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27522     break 2
27523   fi
27524 done
27525 done
27526
27527   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27528   ;;
27529 esac
27530 fi
27531 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27532
27533 if test -n "$PKG_CONFIG"; then
27534   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27535 echo "${ECHO_T}$PKG_CONFIG" >&6
27536 else
27537   echo "$as_me:$LINENO: result: no" >&5
27538 echo "${ECHO_T}no" >&6
27539 fi
27540
27541   fi
27542
27543   if test "$PKG_CONFIG" = "no" ; then
27544      echo "*** The pkg-config script could not be found. Make sure it is"
27545      echo "*** in your path, or set the PKG_CONFIG environment variable"
27546      echo "*** to the full path to pkg-config."
27547      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27548   else
27549      PKG_CONFIG_MIN_VERSION=0.9.0
27550      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27551         echo "$as_me:$LINENO: checking for pangoft2" >&5
27552 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27553
27554         if $PKG_CONFIG --exists "pangoft2" ; then
27555             echo "$as_me:$LINENO: result: yes" >&5
27556 echo "${ECHO_T}yes" >&6
27557             succeeded=yes
27558
27559             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27560 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27561             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27562             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27563 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27564
27565             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27566 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27567             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27568             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27569 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27570         else
27571             PANGOFT2_CFLAGS=""
27572             PANGOFT2_LIBS=""
27573             ## If we have a custom action on failure, don't print errors, but
27574             ## do set a variable so people can do so.
27575             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27576
27577         fi
27578
27579
27580
27581      else
27582         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27583         echo "*** See http://www.freedesktop.org/software/pkgconfig"
27584      fi
27585   fi
27586
27587   if test $succeeded = yes; then
27588
27589                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27590                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27591
27592   else
27593
27594                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27595 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27596                         wxUSE_PRINTING_ARCHITECTURE="no"
27597
27598
27599   fi
27600
27601
27602   succeeded=no
27603
27604   if test -z "$PKG_CONFIG"; then
27605     # Extract the first word of "pkg-config", so it can be a program name with args.
27606 set dummy pkg-config; ac_word=$2
27607 echo "$as_me:$LINENO: checking for $ac_word" >&5
27608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27609 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27610   echo $ECHO_N "(cached) $ECHO_C" >&6
27611 else
27612   case $PKG_CONFIG in
27613   [\\/]* | ?:[\\/]*)
27614   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27615   ;;
27616   *)
27617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27618 for as_dir in $PATH
27619 do
27620   IFS=$as_save_IFS
27621   test -z "$as_dir" && as_dir=.
27622   for ac_exec_ext in '' $ac_executable_extensions; do
27623   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27624     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27626     break 2
27627   fi
27628 done
27629 done
27630
27631   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27632   ;;
27633 esac
27634 fi
27635 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27636
27637 if test -n "$PKG_CONFIG"; then
27638   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27639 echo "${ECHO_T}$PKG_CONFIG" >&6
27640 else
27641   echo "$as_me:$LINENO: result: no" >&5
27642 echo "${ECHO_T}no" >&6
27643 fi
27644
27645   fi
27646
27647   if test "$PKG_CONFIG" = "no" ; then
27648      echo "*** The pkg-config script could not be found. Make sure it is"
27649      echo "*** in your path, or set the PKG_CONFIG environment variable"
27650      echo "*** to the full path to pkg-config."
27651      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27652   else
27653      PKG_CONFIG_MIN_VERSION=0.9.0
27654      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27655         echo "$as_me:$LINENO: checking for pangoxft" >&5
27656 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27657
27658         if $PKG_CONFIG --exists "pangoxft" ; then
27659             echo "$as_me:$LINENO: result: yes" >&5
27660 echo "${ECHO_T}yes" >&6
27661             succeeded=yes
27662
27663             echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27664 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27665             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27666             echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27667 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27668
27669             echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27670 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27671             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27672             echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27673 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27674         else
27675             PANGOXFT_CFLAGS=""
27676             PANGOXFT_LIBS=""
27677             ## If we have a custom action on failure, don't print errors, but
27678             ## do set a variable so people can do so.
27679             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27680
27681         fi
27682
27683
27684
27685      else
27686         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27687         echo "*** See http://www.freedesktop.org/software/pkgconfig"
27688      fi
27689   fi
27690
27691   if test $succeeded = yes; then
27692
27693                         cat >>confdefs.h <<\_ACEOF
27694 #define HAVE_PANGO_XFT 1
27695 _ACEOF
27696
27697                         CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27698                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27699
27700   else
27701
27702                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27703 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27704
27705
27706   fi
27707
27708                 save_CFLAGS="$CFLAGS"
27709                 save_LIBS="$LIBS"
27710                 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27711                 LIBS="$LIBS $PANGOX_LIBS"
27712
27713 for ac_func in pango_font_family_is_monospace
27714 do
27715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27716 echo "$as_me:$LINENO: checking for $ac_func" >&5
27717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27718 if eval "test \"\${$as_ac_var+set}\" = set"; then
27719   echo $ECHO_N "(cached) $ECHO_C" >&6
27720 else
27721   cat >conftest.$ac_ext <<_ACEOF
27722 /* confdefs.h.  */
27723 _ACEOF
27724 cat confdefs.h >>conftest.$ac_ext
27725 cat >>conftest.$ac_ext <<_ACEOF
27726 /* end confdefs.h.  */
27727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27729 #define $ac_func innocuous_$ac_func
27730
27731 /* System header to define __stub macros and hopefully few prototypes,
27732     which can conflict with char $ac_func (); below.
27733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27734     <limits.h> exists even on freestanding compilers.  */
27735
27736 #ifdef __STDC__
27737 # include <limits.h>
27738 #else
27739 # include <assert.h>
27740 #endif
27741
27742 #undef $ac_func
27743
27744 /* Override any gcc2 internal prototype to avoid an error.  */
27745 #ifdef __cplusplus
27746 extern "C"
27747 {
27748 #endif
27749 /* We use char because int might match the return type of a gcc2
27750    builtin and then its argument prototype would still apply.  */
27751 char $ac_func ();
27752 /* The GNU C library defines this for functions which it implements
27753     to always fail with ENOSYS.  Some functions are actually named
27754     something starting with __ and the normal name is an alias.  */
27755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27756 choke me
27757 #else
27758 char (*f) () = $ac_func;
27759 #endif
27760 #ifdef __cplusplus
27761 }
27762 #endif
27763
27764 int
27765 main ()
27766 {
27767 return f != $ac_func;
27768   ;
27769   return 0;
27770 }
27771 _ACEOF
27772 rm -f conftest.$ac_objext conftest$ac_exeext
27773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27774   (eval $ac_link) 2>conftest.er1
27775   ac_status=$?
27776   grep -v '^ *+' conftest.er1 >conftest.err
27777   rm -f conftest.er1
27778   cat conftest.err >&5
27779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27780   (exit $ac_status); } &&
27781          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27783   (eval $ac_try) 2>&5
27784   ac_status=$?
27785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786   (exit $ac_status); }; } &&
27787          { ac_try='test -s conftest$ac_exeext'
27788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27789   (eval $ac_try) 2>&5
27790   ac_status=$?
27791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792   (exit $ac_status); }; }; then
27793   eval "$as_ac_var=yes"
27794 else
27795   echo "$as_me: failed program was:" >&5
27796 sed 's/^/| /' conftest.$ac_ext >&5
27797
27798 eval "$as_ac_var=no"
27799 fi
27800 rm -f conftest.err conftest.$ac_objext \
27801       conftest$ac_exeext conftest.$ac_ext
27802 fi
27803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27805 if test `eval echo '${'$as_ac_var'}'` = yes; then
27806   cat >>confdefs.h <<_ACEOF
27807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27808 _ACEOF
27809
27810 fi
27811 done
27812
27813                 CFLAGS="$save_CFLAGS"
27814                 LIBS="$save_LIBS"
27815         fi
27816
27817         wxUSE_UNIVERSAL="yes"
27818
27819         if test "$wxUSE_NANOX" = "yes"; then
27820             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27821             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"
27822             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27823         else
27824             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27825         fi
27826
27827         TOOLKIT=X11
27828         GUIDIST=X11_DIST
27829     fi
27830
27831     if test "$wxUSE_MOTIF" = 1; then
27832         if test "$wxUSE_UNICODE" = "yes"; then
27833             { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
27834 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
27835    { (exit 1); exit 1; }; }
27836         fi
27837
27838         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27839 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
27840
27841 ac_find_includes=
27842 for ac_dir in $SEARCH_INCLUDE /usr/include;
27843   do
27844     if test -f "$ac_dir/Xm/Xm.h"; then
27845       ac_find_includes=$ac_dir
27846       break
27847     fi
27848   done
27849
27850         if test "$ac_find_includes" != "" ; then
27851             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27852 echo "${ECHO_T}found in $ac_find_includes" >&6
27853
27854     if test "x$ac_find_includes" = "x/usr/include"; then
27855     ac_path_to_include=""
27856   else
27857     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27858     result=$?
27859     if test $result = 0; then
27860       ac_path_to_include=""
27861     else
27862       ac_path_to_include=" -I$ac_find_includes"
27863     fi
27864   fi
27865
27866             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27867         else
27868             cat >conftest.$ac_ext <<_ACEOF
27869 /* confdefs.h.  */
27870 _ACEOF
27871 cat confdefs.h >>conftest.$ac_ext
27872 cat >>conftest.$ac_ext <<_ACEOF
27873 /* end confdefs.h.  */
27874
27875                     #include <Xm/Xm.h>
27876
27877 int
27878 main ()
27879 {
27880
27881                     int version;
27882                     version = xmUseVersion;
27883
27884   ;
27885   return 0;
27886 }
27887 _ACEOF
27888 rm -f conftest.$ac_objext
27889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27890   (eval $ac_compile) 2>conftest.er1
27891   ac_status=$?
27892   grep -v '^ *+' conftest.er1 >conftest.err
27893   rm -f conftest.er1
27894   cat conftest.err >&5
27895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896   (exit $ac_status); } &&
27897          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27899   (eval $ac_try) 2>&5
27900   ac_status=$?
27901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902   (exit $ac_status); }; } &&
27903          { ac_try='test -s conftest.$ac_objext'
27904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27905   (eval $ac_try) 2>&5
27906   ac_status=$?
27907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908   (exit $ac_status); }; }; then
27909
27910                     echo "$as_me:$LINENO: result: found in default search path" >&5
27911 echo "${ECHO_T}found in default search path" >&6
27912                     COMPILED_X_PROGRAM=1
27913
27914 else
27915   echo "$as_me: failed program was:" >&5
27916 sed 's/^/| /' conftest.$ac_ext >&5
27917
27918
27919                     echo "$as_me:$LINENO: result: no" >&5
27920 echo "${ECHO_T}no" >&6
27921                     { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27922 echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27923    { (exit 1); exit 1; }; }
27924
27925
27926 fi
27927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27928         fi
27929
27930         if test "$COMPILED_X_PROGRAM" = 0; then
27931             echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27932 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27933
27934 ac_find_libraries=
27935 for ac_dir in $SEARCH_LIB /usr/lib;
27936   do
27937     for ac_extension in a so sl dylib; do
27938       if test -f "$ac_dir/libXm.$ac_extension"; then
27939         ac_find_libraries=$ac_dir
27940         break 2
27941       fi
27942     done
27943   done
27944
27945             if test "$ac_find_libraries" != "" ; then
27946                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27947 echo "${ECHO_T}found at $ac_find_libraries" >&6
27948
27949
27950   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27951   result=$?
27952   if test $result = 0; then
27953     ac_path_to_link=""
27954   else
27955     ac_path_to_link=" -L$ac_find_libraries"
27956   fi
27957
27958                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27959             else
27960                                                                 save_CFLAGS=$CFLAGS
27961                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27962
27963                 cat >conftest.$ac_ext <<_ACEOF
27964 /* confdefs.h.  */
27965 _ACEOF
27966 cat confdefs.h >>conftest.$ac_ext
27967 cat >>conftest.$ac_ext <<_ACEOF
27968 /* end confdefs.h.  */
27969
27970                         #include <Xm/Xm.h>
27971
27972 int
27973 main ()
27974 {
27975
27976                         int version;
27977                         version = xmUseVersion;
27978
27979   ;
27980   return 0;
27981 }
27982 _ACEOF
27983 rm -f conftest.$ac_objext
27984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27985   (eval $ac_compile) 2>conftest.er1
27986   ac_status=$?
27987   grep -v '^ *+' conftest.er1 >conftest.err
27988   rm -f conftest.er1
27989   cat conftest.err >&5
27990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991   (exit $ac_status); } &&
27992          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27994   (eval $ac_try) 2>&5
27995   ac_status=$?
27996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997   (exit $ac_status); }; } &&
27998          { ac_try='test -s conftest.$ac_objext'
27999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28000   (eval $ac_try) 2>&5
28001   ac_status=$?
28002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003   (exit $ac_status); }; }; then
28004
28005                         echo "$as_me:$LINENO: result: found in default search path" >&5
28006 echo "${ECHO_T}found in default search path" >&6
28007                         COMPILED_X_PROGRAM=1
28008
28009 else
28010   echo "$as_me: failed program was:" >&5
28011 sed 's/^/| /' conftest.$ac_ext >&5
28012
28013
28014                         echo "$as_me:$LINENO: result: no" >&5
28015 echo "${ECHO_T}no" >&6
28016                         { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
28017 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
28018    { (exit 1); exit 1; }; }
28019
28020
28021 fi
28022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28023
28024                 CFLAGS=$save_CFLAGS
28025             fi
28026         fi
28027
28028         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28029 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28030         libp_link=""
28031         libsm_ice_link=""
28032         libs_found=0
28033         for libp in "" " -lXp"; do
28034             if test "$libs_found" = "0"; then
28035                 for libsm_ice in "" " -lSM -lICE"; do
28036                     if test "$libs_found" = "0"; then
28037                         save_LIBS="$LIBS"
28038                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28039                         save_CFLAGS=$CFLAGS
28040                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28041
28042                         cat >conftest.$ac_ext <<_ACEOF
28043 /* confdefs.h.  */
28044 _ACEOF
28045 cat confdefs.h >>conftest.$ac_ext
28046 cat >>conftest.$ac_ext <<_ACEOF
28047 /* end confdefs.h.  */
28048
28049                                 #include <Xm/Xm.h>
28050                                 #include <Xm/List.h>
28051
28052 int
28053 main ()
28054 {
28055
28056                                 XmString string = NULL;
28057                                 Widget w = NULL;
28058                                 int position = 0;
28059                                 XmListAddItem(w, string, position);
28060
28061   ;
28062   return 0;
28063 }
28064 _ACEOF
28065 rm -f conftest.$ac_objext conftest$ac_exeext
28066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28067   (eval $ac_link) 2>conftest.er1
28068   ac_status=$?
28069   grep -v '^ *+' conftest.er1 >conftest.err
28070   rm -f conftest.er1
28071   cat conftest.err >&5
28072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073   (exit $ac_status); } &&
28074          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28076   (eval $ac_try) 2>&5
28077   ac_status=$?
28078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079   (exit $ac_status); }; } &&
28080          { ac_try='test -s conftest$ac_exeext'
28081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28082   (eval $ac_try) 2>&5
28083   ac_status=$?
28084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085   (exit $ac_status); }; }; then
28086
28087                                 libp_link="$libp"
28088                                 libsm_ice_link="$libsm_ice"
28089                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28090 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28091                                 libs_found=1
28092
28093 else
28094   echo "$as_me: failed program was:" >&5
28095 sed 's/^/| /' conftest.$ac_ext >&5
28096
28097
28098
28099 fi
28100 rm -f conftest.err conftest.$ac_objext \
28101       conftest$ac_exeext conftest.$ac_ext
28102
28103                         LIBS="$save_LIBS"
28104                         CFLAGS=$save_CFLAGS
28105                     fi
28106                 done
28107             fi
28108         done
28109
28110         if test "$libs_found" = "0"; then
28111             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28112 echo "${ECHO_T}can't find the right libraries" >&6
28113             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28114 echo "$as_me: error: can't link a simple motif program" >&2;}
28115    { (exit 1); exit 1; }; }
28116         fi
28117
28118         save_CFLAGS=$CFLAGS
28119         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28120         echo "$as_me:$LINENO: checking for Motif 2" >&5
28121 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
28122         cat >conftest.$ac_ext <<_ACEOF
28123 /* confdefs.h.  */
28124 _ACEOF
28125 cat confdefs.h >>conftest.$ac_ext
28126 cat >>conftest.$ac_ext <<_ACEOF
28127 /* end confdefs.h.  */
28128
28129                         #include <Xm/Xm.h>
28130
28131 int
28132 main ()
28133 {
28134
28135                         #if XmVersion < 2000
28136                         #error "Not Motif 2"
28137                         #endif
28138
28139   ;
28140   return 0;
28141 }
28142 _ACEOF
28143 rm -f conftest.$ac_objext
28144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28145   (eval $ac_compile) 2>conftest.er1
28146   ac_status=$?
28147   grep -v '^ *+' conftest.er1 >conftest.err
28148   rm -f conftest.er1
28149   cat conftest.err >&5
28150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151   (exit $ac_status); } &&
28152          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28154   (eval $ac_try) 2>&5
28155   ac_status=$?
28156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157   (exit $ac_status); }; } &&
28158          { ac_try='test -s conftest.$ac_objext'
28159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28160   (eval $ac_try) 2>&5
28161   ac_status=$?
28162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163   (exit $ac_status); }; }; then
28164
28165                         cat >>confdefs.h <<\_ACEOF
28166 #define __WXMOTIF20__ 1
28167 _ACEOF
28168
28169                         echo "$as_me:$LINENO: result: found" >&5
28170 echo "${ECHO_T}found" >&6
28171
28172 else
28173   echo "$as_me: failed program was:" >&5
28174 sed 's/^/| /' conftest.$ac_ext >&5
28175
28176
28177                         cat >>confdefs.h <<\_ACEOF
28178 #define __WXMOTIF20__ 0
28179 _ACEOF
28180
28181                         echo "$as_me:$LINENO: result: not found" >&5
28182 echo "${ECHO_T}not found" >&6
28183
28184 fi
28185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28186         CFLAGS=$save_CFLAGS
28187
28188         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
28189         TOOLKIT=MOTIF
28190         GUIDIST=MOTIF_DIST
28191     fi
28192
28193         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
28194                 if test "$wxUSE_LIBXPM" = "sys"; then
28195             echo "$as_me:$LINENO: checking for Xpm library" >&5
28196 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
28197
28198 ac_find_libraries=
28199 for ac_dir in $SEARCH_LIB /usr/lib;
28200   do
28201     for ac_extension in a so sl dylib; do
28202       if test -f "$ac_dir/libXpm.$ac_extension"; then
28203         ac_find_libraries=$ac_dir
28204         break 2
28205       fi
28206     done
28207   done
28208
28209             if test "$ac_find_libraries" != "" ; then
28210
28211   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28212   result=$?
28213   if test $result = 0; then
28214     ac_path_to_link=""
28215   else
28216     ac_path_to_link=" -L$ac_find_libraries"
28217   fi
28218
28219                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28220                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28221 echo "${ECHO_T}found at $ac_find_libraries" >&6
28222
28223                 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28224 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28225 if test "${wx_cv_x11_xpm_h+set}" = set; then
28226   echo $ECHO_N "(cached) $ECHO_C" >&6
28227 else
28228
28229                         save_CFLAGS=$CFLAGS
28230                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28231
28232                         cat >conftest.$ac_ext <<_ACEOF
28233 /* confdefs.h.  */
28234 _ACEOF
28235 cat confdefs.h >>conftest.$ac_ext
28236 cat >>conftest.$ac_ext <<_ACEOF
28237 /* end confdefs.h.  */
28238
28239                                 #include <X11/xpm.h>
28240
28241 int
28242 main ()
28243 {
28244
28245                                 int version;
28246                                 version = XpmLibraryVersion();
28247
28248   ;
28249   return 0;
28250 }
28251 _ACEOF
28252 rm -f conftest.$ac_objext
28253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28254   (eval $ac_compile) 2>conftest.er1
28255   ac_status=$?
28256   grep -v '^ *+' conftest.er1 >conftest.err
28257   rm -f conftest.er1
28258   cat conftest.err >&5
28259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260   (exit $ac_status); } &&
28261          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28263   (eval $ac_try) 2>&5
28264   ac_status=$?
28265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266   (exit $ac_status); }; } &&
28267          { ac_try='test -s conftest.$ac_objext'
28268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28269   (eval $ac_try) 2>&5
28270   ac_status=$?
28271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272   (exit $ac_status); }; }; then
28273   wx_cv_x11_xpm_h=yes
28274 else
28275   echo "$as_me: failed program was:" >&5
28276 sed 's/^/| /' conftest.$ac_ext >&5
28277
28278 wx_cv_x11_xpm_h=no
28279
28280 fi
28281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28282
28283                         CFLAGS=$save_CFLAGS
28284
28285
28286 fi
28287 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28288 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28289
28290                 if test $wx_cv_x11_xpm_h = "yes"; then
28291                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28292                     cat >>confdefs.h <<\_ACEOF
28293 #define wxHAVE_LIB_XPM 1
28294 _ACEOF
28295
28296                 else
28297                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28298 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28299                 fi
28300             fi
28301
28302         fi
28303
28304                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28305 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28306 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28307   echo $ECHO_N "(cached) $ECHO_C" >&6
28308 else
28309   ac_check_lib_save_LIBS=$LIBS
28310 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28311 cat >conftest.$ac_ext <<_ACEOF
28312 /* confdefs.h.  */
28313 _ACEOF
28314 cat confdefs.h >>conftest.$ac_ext
28315 cat >>conftest.$ac_ext <<_ACEOF
28316 /* end confdefs.h.  */
28317
28318 /* Override any gcc2 internal prototype to avoid an error.  */
28319 #ifdef __cplusplus
28320 extern "C"
28321 #endif
28322 /* We use char because int might match the return type of a gcc2
28323    builtin and then its argument prototype would still apply.  */
28324 char XShapeQueryExtension ();
28325 int
28326 main ()
28327 {
28328 XShapeQueryExtension ();
28329   ;
28330   return 0;
28331 }
28332 _ACEOF
28333 rm -f conftest.$ac_objext conftest$ac_exeext
28334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28335   (eval $ac_link) 2>conftest.er1
28336   ac_status=$?
28337   grep -v '^ *+' conftest.er1 >conftest.err
28338   rm -f conftest.er1
28339   cat conftest.err >&5
28340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341   (exit $ac_status); } &&
28342          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28344   (eval $ac_try) 2>&5
28345   ac_status=$?
28346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347   (exit $ac_status); }; } &&
28348          { ac_try='test -s conftest$ac_exeext'
28349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28350   (eval $ac_try) 2>&5
28351   ac_status=$?
28352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353   (exit $ac_status); }; }; then
28354   ac_cv_lib_Xext_XShapeQueryExtension=yes
28355 else
28356   echo "$as_me: failed program was:" >&5
28357 sed 's/^/| /' conftest.$ac_ext >&5
28358
28359 ac_cv_lib_Xext_XShapeQueryExtension=no
28360 fi
28361 rm -f conftest.err conftest.$ac_objext \
28362       conftest$ac_exeext conftest.$ac_ext
28363 LIBS=$ac_check_lib_save_LIBS
28364 fi
28365 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28366 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28367 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28368
28369                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28370                       wxHAVE_XEXT_LIB=1
28371
28372 fi
28373
28374
28375         if test "$wxHAVE_XEXT_LIB" = 1; then
28376             save_CFLAGS="$CFLAGS"
28377             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28378
28379             echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28380 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28381             cat >conftest.$ac_ext <<_ACEOF
28382 /* confdefs.h.  */
28383 _ACEOF
28384 cat confdefs.h >>conftest.$ac_ext
28385 cat >>conftest.$ac_ext <<_ACEOF
28386 /* end confdefs.h.  */
28387
28388                             #include <X11/Xlib.h>
28389                             #include <X11/extensions/shape.h>
28390
28391 int
28392 main ()
28393 {
28394
28395                             int dummy1, dummy2;
28396                             XShapeQueryExtension((Display*)NULL,
28397                                                  (int*)NULL, (int*)NULL);
28398
28399   ;
28400   return 0;
28401 }
28402 _ACEOF
28403 rm -f conftest.$ac_objext
28404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28405   (eval $ac_compile) 2>conftest.er1
28406   ac_status=$?
28407   grep -v '^ *+' conftest.er1 >conftest.err
28408   rm -f conftest.er1
28409   cat conftest.err >&5
28410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411   (exit $ac_status); } &&
28412          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28414   (eval $ac_try) 2>&5
28415   ac_status=$?
28416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417   (exit $ac_status); }; } &&
28418          { ac_try='test -s conftest.$ac_objext'
28419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28420   (eval $ac_try) 2>&5
28421   ac_status=$?
28422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423   (exit $ac_status); }; }; then
28424
28425                             cat >>confdefs.h <<\_ACEOF
28426 #define HAVE_XSHAPE 1
28427 _ACEOF
28428
28429                             echo "$as_me:$LINENO: result: found" >&5
28430 echo "${ECHO_T}found" >&6
28431
28432 else
28433   echo "$as_me: failed program was:" >&5
28434 sed 's/^/| /' conftest.$ac_ext >&5
28435
28436
28437                             echo "$as_me:$LINENO: result: not found" >&5
28438 echo "${ECHO_T}not found" >&6
28439
28440 fi
28441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28442             CFLAGS="$save_CFLAGS"
28443
28444         fi
28445     fi
28446
28447     if test "$wxUSE_MAC" = 1; then
28448         echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28449 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28450         if test "$GCC" = yes; then
28451             echo "$as_me:$LINENO: result: gcc" >&5
28452 echo "${ECHO_T}gcc" >&6
28453             CPPFLAGS_PASCAL="-fpascal-strings"
28454         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28455             echo "$as_me:$LINENO: result: xlc" >&5
28456 echo "${ECHO_T}xlc" >&6
28457             CPPFLAGS_PASCAL="-qmacpstr"
28458         else
28459             echo "$as_me:$LINENO: result: none" >&5
28460 echo "${ECHO_T}none" >&6
28461         fi
28462
28463         if test "x$wxUSE_UNIX" = "xyes"; then
28464             CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28465         else
28466                         CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28467         fi
28468
28469         TOOLKIT=MAC
28470                 GUIDIST=MACX_DIST
28471                         WXBASEPORT="_carbon"
28472     fi
28473
28474     if test "$wxUSE_COCOA" = 1; then
28475         TOOLKIT=COCOA
28476         GUIDIST=COCOA_DIST
28477     fi
28478
28479     if test "$wxUSE_PM" = 1; then
28480         TOOLKIT=PM
28481         GUIDIST=PM_DIST
28482         echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28483 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28484 if test "${wx_cv_spbcdata+set}" = set; then
28485   echo $ECHO_N "(cached) $ECHO_C" >&6
28486 else
28487
28488                 cat >conftest.$ac_ext <<_ACEOF
28489 /* confdefs.h.  */
28490 _ACEOF
28491 cat confdefs.h >>conftest.$ac_ext
28492 cat >>conftest.$ac_ext <<_ACEOF
28493 /* end confdefs.h.  */
28494
28495                         #define INCL_PM
28496                         #include <os2.h>
28497
28498 int
28499 main ()
28500 {
28501
28502                         SPBCDATA test;
28503
28504   ;
28505   return 0;
28506 }
28507 _ACEOF
28508 rm -f conftest.$ac_objext
28509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28510   (eval $ac_compile) 2>conftest.er1
28511   ac_status=$?
28512   grep -v '^ *+' conftest.er1 >conftest.err
28513   rm -f conftest.er1
28514   cat conftest.err >&5
28515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516   (exit $ac_status); } &&
28517          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28519   (eval $ac_try) 2>&5
28520   ac_status=$?
28521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522   (exit $ac_status); }; } &&
28523          { ac_try='test -s conftest.$ac_objext'
28524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28525   (eval $ac_try) 2>&5
28526   ac_status=$?
28527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528   (exit $ac_status); }; }; then
28529   wx_cv_spbcdata=yes
28530 else
28531   echo "$as_me: failed program was:" >&5
28532 sed 's/^/| /' conftest.$ac_ext >&5
28533
28534 wx_cv_spbcdata=no
28535
28536 fi
28537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28538
28539
28540 fi
28541 echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28542 echo "${ECHO_T}$wx_cv_spbcdata" >&6
28543
28544         if test $wx_cv_spbcdata = "yes"; then
28545             cat >>confdefs.h <<\_ACEOF
28546 #define HAVE_SPBCDATA 1
28547 _ACEOF
28548
28549         fi
28550     fi
28551
28552         if test "$TOOLKIT" = "PM" ; then
28553         TOOLKIT_DIR="os2"
28554     else
28555         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28556     fi
28557
28558     if test "$wxUSE_UNIVERSAL" = "yes"; then
28559         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28560         WIDGET_SET=univ
28561     fi
28562
28563         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28564     DISTDIR="wx\$(TOOLKIT)"
28565 else
28566     USE_GUI=0
28567
28568             TOOLKIT_DIR="base"
28569
28570         if test "$USE_WIN32" = 1 ; then
28571                         TOOLKIT="MSW"
28572     fi
28573
28574         GUIDIST="BASE_DIST"
28575     DISTDIR="wxBase"
28576 fi
28577
28578
28579
28580
28581 IODBC_C_SRC=""
28582
28583
28584 if test "$TOOLKIT" != "MSW" ; then
28585
28586     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28587
28588         if test "${ac_cv_header_sql_h+set}" = set; then
28589   echo "$as_me:$LINENO: checking for sql.h" >&5
28590 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28591 if test "${ac_cv_header_sql_h+set}" = set; then
28592   echo $ECHO_N "(cached) $ECHO_C" >&6
28593 fi
28594 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28595 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28596 else
28597   # Is the header compilable?
28598 echo "$as_me:$LINENO: checking sql.h usability" >&5
28599 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28600 cat >conftest.$ac_ext <<_ACEOF
28601 /* confdefs.h.  */
28602 _ACEOF
28603 cat confdefs.h >>conftest.$ac_ext
28604 cat >>conftest.$ac_ext <<_ACEOF
28605 /* end confdefs.h.  */
28606 $ac_includes_default
28607 #include <sql.h>
28608 _ACEOF
28609 rm -f conftest.$ac_objext
28610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28611   (eval $ac_compile) 2>conftest.er1
28612   ac_status=$?
28613   grep -v '^ *+' conftest.er1 >conftest.err
28614   rm -f conftest.er1
28615   cat conftest.err >&5
28616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617   (exit $ac_status); } &&
28618          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28620   (eval $ac_try) 2>&5
28621   ac_status=$?
28622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623   (exit $ac_status); }; } &&
28624          { ac_try='test -s conftest.$ac_objext'
28625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28626   (eval $ac_try) 2>&5
28627   ac_status=$?
28628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629   (exit $ac_status); }; }; then
28630   ac_header_compiler=yes
28631 else
28632   echo "$as_me: failed program was:" >&5
28633 sed 's/^/| /' conftest.$ac_ext >&5
28634
28635 ac_header_compiler=no
28636 fi
28637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28639 echo "${ECHO_T}$ac_header_compiler" >&6
28640
28641 # Is the header present?
28642 echo "$as_me:$LINENO: checking sql.h presence" >&5
28643 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28644 cat >conftest.$ac_ext <<_ACEOF
28645 /* confdefs.h.  */
28646 _ACEOF
28647 cat confdefs.h >>conftest.$ac_ext
28648 cat >>conftest.$ac_ext <<_ACEOF
28649 /* end confdefs.h.  */
28650 #include <sql.h>
28651 _ACEOF
28652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28653   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28654   ac_status=$?
28655   grep -v '^ *+' conftest.er1 >conftest.err
28656   rm -f conftest.er1
28657   cat conftest.err >&5
28658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659   (exit $ac_status); } >/dev/null; then
28660   if test -s conftest.err; then
28661     ac_cpp_err=$ac_c_preproc_warn_flag
28662     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28663   else
28664     ac_cpp_err=
28665   fi
28666 else
28667   ac_cpp_err=yes
28668 fi
28669 if test -z "$ac_cpp_err"; then
28670   ac_header_preproc=yes
28671 else
28672   echo "$as_me: failed program was:" >&5
28673 sed 's/^/| /' conftest.$ac_ext >&5
28674
28675   ac_header_preproc=no
28676 fi
28677 rm -f conftest.err conftest.$ac_ext
28678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28679 echo "${ECHO_T}$ac_header_preproc" >&6
28680
28681 # So?  What about this header?
28682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28683   yes:no: )
28684     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28685 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28686     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28687 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28688     ac_header_preproc=yes
28689     ;;
28690   no:yes:* )
28691     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28692 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
28693     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
28694 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
28695     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28696 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28697     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
28698 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28699     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28700 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
28701     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28702 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
28703     (
28704       cat <<\_ASBOX
28705 ## ----------------------------------------- ##
28706 ## Report this to wx-dev@lists.wxwidgets.org ##
28707 ## ----------------------------------------- ##
28708 _ASBOX
28709     ) |
28710       sed "s/^/$as_me: WARNING:     /" >&2
28711     ;;
28712 esac
28713 echo "$as_me:$LINENO: checking for sql.h" >&5
28714 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28715 if test "${ac_cv_header_sql_h+set}" = set; then
28716   echo $ECHO_N "(cached) $ECHO_C" >&6
28717 else
28718   ac_cv_header_sql_h=$ac_header_preproc
28719 fi
28720 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28721 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28722
28723 fi
28724 if test $ac_cv_header_sql_h = yes; then
28725   found_sql_h=1
28726 fi
28727
28728
28729         if test "x$found_sql_h" = "x1" ; then
28730             echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28731 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28732 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28733   echo $ECHO_N "(cached) $ECHO_C" >&6
28734 else
28735   ac_check_lib_save_LIBS=$LIBS
28736 LIBS="-liodbc  $LIBS"
28737 cat >conftest.$ac_ext <<_ACEOF
28738 /* confdefs.h.  */
28739 _ACEOF
28740 cat confdefs.h >>conftest.$ac_ext
28741 cat >>conftest.$ac_ext <<_ACEOF
28742 /* end confdefs.h.  */
28743
28744 /* Override any gcc2 internal prototype to avoid an error.  */
28745 #ifdef __cplusplus
28746 extern "C"
28747 #endif
28748 /* We use char because int might match the return type of a gcc2
28749    builtin and then its argument prototype would still apply.  */
28750 char SQLAllocEnv ();
28751 int
28752 main ()
28753 {
28754 SQLAllocEnv ();
28755   ;
28756   return 0;
28757 }
28758 _ACEOF
28759 rm -f conftest.$ac_objext conftest$ac_exeext
28760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28761   (eval $ac_link) 2>conftest.er1
28762   ac_status=$?
28763   grep -v '^ *+' conftest.er1 >conftest.err
28764   rm -f conftest.er1
28765   cat conftest.err >&5
28766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28767   (exit $ac_status); } &&
28768          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28770   (eval $ac_try) 2>&5
28771   ac_status=$?
28772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773   (exit $ac_status); }; } &&
28774          { ac_try='test -s conftest$ac_exeext'
28775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28776   (eval $ac_try) 2>&5
28777   ac_status=$?
28778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28779   (exit $ac_status); }; }; then
28780   ac_cv_lib_iodbc_SQLAllocEnv=yes
28781 else
28782   echo "$as_me: failed program was:" >&5
28783 sed 's/^/| /' conftest.$ac_ext >&5
28784
28785 ac_cv_lib_iodbc_SQLAllocEnv=no
28786 fi
28787 rm -f conftest.err conftest.$ac_objext \
28788       conftest$ac_exeext conftest.$ac_ext
28789 LIBS=$ac_check_lib_save_LIBS
28790 fi
28791 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28792 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28793 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28794   ODBC_LINK=" -liodbc"
28795 else
28796
28797                 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28798 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28799 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28800   echo $ECHO_N "(cached) $ECHO_C" >&6
28801 else
28802   ac_check_lib_save_LIBS=$LIBS
28803 LIBS="-lunixodbc  $LIBS"
28804 cat >conftest.$ac_ext <<_ACEOF
28805 /* confdefs.h.  */
28806 _ACEOF
28807 cat confdefs.h >>conftest.$ac_ext
28808 cat >>conftest.$ac_ext <<_ACEOF
28809 /* end confdefs.h.  */
28810
28811 /* Override any gcc2 internal prototype to avoid an error.  */
28812 #ifdef __cplusplus
28813 extern "C"
28814 #endif
28815 /* We use char because int might match the return type of a gcc2
28816    builtin and then its argument prototype would still apply.  */
28817 char SQLAllocEnv ();
28818 int
28819 main ()
28820 {
28821 SQLAllocEnv ();
28822   ;
28823   return 0;
28824 }
28825 _ACEOF
28826 rm -f conftest.$ac_objext conftest$ac_exeext
28827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28828   (eval $ac_link) 2>conftest.er1
28829   ac_status=$?
28830   grep -v '^ *+' conftest.er1 >conftest.err
28831   rm -f conftest.er1
28832   cat conftest.err >&5
28833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834   (exit $ac_status); } &&
28835          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28837   (eval $ac_try) 2>&5
28838   ac_status=$?
28839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840   (exit $ac_status); }; } &&
28841          { ac_try='test -s conftest$ac_exeext'
28842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28843   (eval $ac_try) 2>&5
28844   ac_status=$?
28845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846   (exit $ac_status); }; }; then
28847   ac_cv_lib_unixodbc_SQLAllocEnv=yes
28848 else
28849   echo "$as_me: failed program was:" >&5
28850 sed 's/^/| /' conftest.$ac_ext >&5
28851
28852 ac_cv_lib_unixodbc_SQLAllocEnv=no
28853 fi
28854 rm -f conftest.err conftest.$ac_objext \
28855       conftest$ac_exeext conftest.$ac_ext
28856 LIBS=$ac_check_lib_save_LIBS
28857 fi
28858 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
28859 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
28860 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
28861   ODBC_LINK=" -lunixodbc"
28862 else
28863
28864                     echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
28865 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
28866 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
28867   echo $ECHO_N "(cached) $ECHO_C" >&6
28868 else
28869   ac_check_lib_save_LIBS=$LIBS
28870 LIBS="-lodbc  $LIBS"
28871 cat >conftest.$ac_ext <<_ACEOF
28872 /* confdefs.h.  */
28873 _ACEOF
28874 cat confdefs.h >>conftest.$ac_ext
28875 cat >>conftest.$ac_ext <<_ACEOF
28876 /* end confdefs.h.  */
28877
28878 /* Override any gcc2 internal prototype to avoid an error.  */
28879 #ifdef __cplusplus
28880 extern "C"
28881 #endif
28882 /* We use char because int might match the return type of a gcc2
28883    builtin and then its argument prototype would still apply.  */
28884 char SQLAllocEnv ();
28885 int
28886 main ()
28887 {
28888 SQLAllocEnv ();
28889   ;
28890   return 0;
28891 }
28892 _ACEOF
28893 rm -f conftest.$ac_objext conftest$ac_exeext
28894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28895   (eval $ac_link) 2>conftest.er1
28896   ac_status=$?
28897   grep -v '^ *+' conftest.er1 >conftest.err
28898   rm -f conftest.er1
28899   cat conftest.err >&5
28900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901   (exit $ac_status); } &&
28902          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28904   (eval $ac_try) 2>&5
28905   ac_status=$?
28906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907   (exit $ac_status); }; } &&
28908          { ac_try='test -s conftest$ac_exeext'
28909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28910   (eval $ac_try) 2>&5
28911   ac_status=$?
28912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913   (exit $ac_status); }; }; then
28914   ac_cv_lib_odbc_SQLAllocEnv=yes
28915 else
28916   echo "$as_me: failed program was:" >&5
28917 sed 's/^/| /' conftest.$ac_ext >&5
28918
28919 ac_cv_lib_odbc_SQLAllocEnv=no
28920 fi
28921 rm -f conftest.err conftest.$ac_objext \
28922       conftest$ac_exeext conftest.$ac_ext
28923 LIBS=$ac_check_lib_save_LIBS
28924 fi
28925 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28926 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28927 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28928   ODBC_LINK=" -lodbc"
28929 fi
28930
28931
28932 fi
28933
28934
28935 fi
28936
28937         fi
28938         if test "x$ODBC_LINK" = "x" ; then
28939             if test "$wxUSE_ODBC" = "sys" ; then
28940                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28941 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28942    { (exit 1); exit 1; }; }
28943             else
28944                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28945 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28946                 wxUSE_ODBC=builtin
28947             fi
28948         else
28949                         wxUSE_ODBC=sys
28950         fi
28951     fi
28952
28953     if test "$wxUSE_ODBC" = "builtin" ; then
28954         cat >>confdefs.h <<\_ACEOF
28955 #define wxUSE_BUILTIN_IODBC 1
28956 _ACEOF
28957
28958     fi
28959 fi
28960
28961 if test "$wxUSE_ODBC" != "no" ; then
28962     cat >>confdefs.h <<\_ACEOF
28963 #define wxUSE_ODBC 1
28964 _ACEOF
28965
28966     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28967
28968         WXODBCFLAG="-D_IODBC_"
28969 fi
28970
28971
28972 if test "$wxUSE_DISPLAY" = "yes"; then
28973     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
28974         echo "$as_me:$LINENO: checking for Xinerama" >&5
28975 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28976
28977 ac_find_libraries=
28978 for ac_dir in $SEARCH_LIB /usr/lib;
28979   do
28980     for ac_extension in a so sl dylib; do
28981       if test -f "$ac_dir/libXinerama.$ac_extension"; then
28982         ac_find_libraries=$ac_dir
28983         break 2
28984       fi
28985     done
28986   done
28987
28988         if test "$ac_find_libraries" != "" ; then
28989
28990   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28991   result=$?
28992   if test $result = 0; then
28993     ac_path_to_link=""
28994   else
28995     ac_path_to_link=" -L$ac_find_libraries"
28996   fi
28997
28998             if test "$ac_path_to_link" != " -L/usr/lib" ; then
28999                 LDFLAGS="$LDFLAGS $ac_path_to_link"
29000             fi
29001             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
29002             echo "$as_me:$LINENO: result: yes" >&5
29003 echo "${ECHO_T}yes" >&6
29004
29005             echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
29006 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
29007
29008 ac_find_libraries=
29009 for ac_dir in $SEARCH_LIB /usr/lib;
29010   do
29011     for ac_extension in a so sl dylib; do
29012       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
29013         ac_find_libraries=$ac_dir
29014         break 2
29015       fi
29016     done
29017   done
29018
29019             if test "$ac_find_libraries" != "" ; then
29020                 echo "$as_me:$LINENO: result: yes" >&5
29021 echo "${ECHO_T}yes" >&6
29022
29023 for ac_header in X11/extensions/xf86vmode.h
29024 do
29025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29026 echo "$as_me:$LINENO: checking for $ac_header" >&5
29027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29029   echo $ECHO_N "(cached) $ECHO_C" >&6
29030 else
29031   cat >conftest.$ac_ext <<_ACEOF
29032 /* confdefs.h.  */
29033 _ACEOF
29034 cat confdefs.h >>conftest.$ac_ext
29035 cat >>conftest.$ac_ext <<_ACEOF
29036 /* end confdefs.h.  */
29037
29038                                       #if HAVE_X11_XLIB_H
29039                                         #include <X11/Xlib.h>
29040                                       #endif
29041
29042
29043 #include <$ac_header>
29044 _ACEOF
29045 rm -f conftest.$ac_objext
29046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29047   (eval $ac_compile) 2>conftest.er1
29048   ac_status=$?
29049   grep -v '^ *+' conftest.er1 >conftest.err
29050   rm -f conftest.er1
29051   cat conftest.err >&5
29052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053   (exit $ac_status); } &&
29054          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29056   (eval $ac_try) 2>&5
29057   ac_status=$?
29058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29059   (exit $ac_status); }; } &&
29060          { ac_try='test -s conftest.$ac_objext'
29061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29062   (eval $ac_try) 2>&5
29063   ac_status=$?
29064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065   (exit $ac_status); }; }; then
29066   eval "$as_ac_Header=yes"
29067 else
29068   echo "$as_me: failed program was:" >&5
29069 sed 's/^/| /' conftest.$ac_ext >&5
29070
29071 eval "$as_ac_Header=no"
29072 fi
29073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29074 fi
29075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29078   cat >>confdefs.h <<_ACEOF
29079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29080 _ACEOF
29081
29082                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
29083
29084 fi
29085
29086 done
29087
29088             else
29089                 echo "$as_me:$LINENO: result: no" >&5
29090 echo "${ECHO_T}no" >&6
29091             fi
29092
29093         else
29094             echo "$as_me:$LINENO: result: no" >&5
29095 echo "${ECHO_T}no" >&6
29096             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
29097 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
29098             wxUSE_DISPLAY="no"
29099         fi
29100     elif test "$wxUSE_MSW" = 1; then
29101
29102
29103 for ac_header in multimon.h ddraw.h
29104 do
29105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29106 echo "$as_me:$LINENO: checking for $ac_header" >&5
29107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29109   echo $ECHO_N "(cached) $ECHO_C" >&6
29110 else
29111   cat >conftest.$ac_ext <<_ACEOF
29112 /* confdefs.h.  */
29113 _ACEOF
29114 cat confdefs.h >>conftest.$ac_ext
29115 cat >>conftest.$ac_ext <<_ACEOF
29116 /* end confdefs.h.  */
29117 #include <windows.h>
29118
29119 #include <$ac_header>
29120 _ACEOF
29121 rm -f conftest.$ac_objext
29122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29123   (eval $ac_compile) 2>conftest.er1
29124   ac_status=$?
29125   grep -v '^ *+' conftest.er1 >conftest.err
29126   rm -f conftest.er1
29127   cat conftest.err >&5
29128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129   (exit $ac_status); } &&
29130          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29132   (eval $ac_try) 2>&5
29133   ac_status=$?
29134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29135   (exit $ac_status); }; } &&
29136          { ac_try='test -s conftest.$ac_objext'
29137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29138   (eval $ac_try) 2>&5
29139   ac_status=$?
29140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29141   (exit $ac_status); }; }; then
29142   eval "$as_ac_Header=yes"
29143 else
29144   echo "$as_me: failed program was:" >&5
29145 sed 's/^/| /' conftest.$ac_ext >&5
29146
29147 eval "$as_ac_Header=no"
29148 fi
29149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29150 fi
29151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29154   cat >>confdefs.h <<_ACEOF
29155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29156 _ACEOF
29157
29158 else
29159
29160                 wxUSE_DISPLAY="no"
29161                 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
29162 echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
29163
29164 fi
29165
29166 done
29167
29168     fi
29169 fi
29170
29171
29172 USE_OPENGL=0
29173 if test "$wxUSE_OPENGL" = "yes"; then
29174     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
29175         OPENGL_LIBS="-framework OpenGL -framework AGL"
29176     elif test "$wxUSE_MSW" = 1; then
29177         OPENGL_LIBS="-lopengl32 -lglu32"
29178     else
29179
29180
29181 ac_find_includes=
29182 for ac_dir in $SEARCH_INCLUDE /usr/include;
29183   do
29184     if test -f "$ac_dir/GL/gl.h"; then
29185       ac_find_includes=$ac_dir
29186       break
29187     fi
29188   done
29189
29190         if test "$ac_find_includes" != "" ; then
29191             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29192 echo "${ECHO_T}found in $ac_find_includes" >&6
29193
29194     if test "x$ac_find_includes" = "x/usr/include"; then
29195     ac_path_to_include=""
29196   else
29197     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
29198     result=$?
29199     if test $result = 0; then
29200       ac_path_to_include=""
29201     else
29202       ac_path_to_include=" -I$ac_find_includes"
29203     fi
29204   fi
29205
29206             CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29207         fi
29208
29209         if test "${ac_cv_header_GL_gl_h+set}" = set; then
29210   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29211 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29212 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29213   echo $ECHO_N "(cached) $ECHO_C" >&6
29214 fi
29215 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29216 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29217 else
29218   # Is the header compilable?
29219 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29220 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29221 cat >conftest.$ac_ext <<_ACEOF
29222 /* confdefs.h.  */
29223 _ACEOF
29224 cat confdefs.h >>conftest.$ac_ext
29225 cat >>conftest.$ac_ext <<_ACEOF
29226 /* end confdefs.h.  */
29227 $ac_includes_default
29228 #include <GL/gl.h>
29229 _ACEOF
29230 rm -f conftest.$ac_objext
29231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29232   (eval $ac_compile) 2>conftest.er1
29233   ac_status=$?
29234   grep -v '^ *+' conftest.er1 >conftest.err
29235   rm -f conftest.er1
29236   cat conftest.err >&5
29237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238   (exit $ac_status); } &&
29239          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29241   (eval $ac_try) 2>&5
29242   ac_status=$?
29243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29244   (exit $ac_status); }; } &&
29245          { ac_try='test -s conftest.$ac_objext'
29246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29247   (eval $ac_try) 2>&5
29248   ac_status=$?
29249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250   (exit $ac_status); }; }; then
29251   ac_header_compiler=yes
29252 else
29253   echo "$as_me: failed program was:" >&5
29254 sed 's/^/| /' conftest.$ac_ext >&5
29255
29256 ac_header_compiler=no
29257 fi
29258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29260 echo "${ECHO_T}$ac_header_compiler" >&6
29261
29262 # Is the header present?
29263 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29264 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29265 cat >conftest.$ac_ext <<_ACEOF
29266 /* confdefs.h.  */
29267 _ACEOF
29268 cat confdefs.h >>conftest.$ac_ext
29269 cat >>conftest.$ac_ext <<_ACEOF
29270 /* end confdefs.h.  */
29271 #include <GL/gl.h>
29272 _ACEOF
29273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29274   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29275   ac_status=$?
29276   grep -v '^ *+' conftest.er1 >conftest.err
29277   rm -f conftest.er1
29278   cat conftest.err >&5
29279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280   (exit $ac_status); } >/dev/null; then
29281   if test -s conftest.err; then
29282     ac_cpp_err=$ac_c_preproc_warn_flag
29283     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29284   else
29285     ac_cpp_err=
29286   fi
29287 else
29288   ac_cpp_err=yes
29289 fi
29290 if test -z "$ac_cpp_err"; then
29291   ac_header_preproc=yes
29292 else
29293   echo "$as_me: failed program was:" >&5
29294 sed 's/^/| /' conftest.$ac_ext >&5
29295
29296   ac_header_preproc=no
29297 fi
29298 rm -f conftest.err conftest.$ac_ext
29299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29300 echo "${ECHO_T}$ac_header_preproc" >&6
29301
29302 # So?  What about this header?
29303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29304   yes:no: )
29305     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29306 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29307     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29308 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29309     ac_header_preproc=yes
29310     ;;
29311   no:yes:* )
29312     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29313 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
29314     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
29315 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
29316     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29317 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29318     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
29319 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29320     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29321 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
29322     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29323 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
29324     (
29325       cat <<\_ASBOX
29326 ## ----------------------------------------- ##
29327 ## Report this to wx-dev@lists.wxwidgets.org ##
29328 ## ----------------------------------------- ##
29329 _ASBOX
29330     ) |
29331       sed "s/^/$as_me: WARNING:     /" >&2
29332     ;;
29333 esac
29334 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29335 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29336 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29337   echo $ECHO_N "(cached) $ECHO_C" >&6
29338 else
29339   ac_cv_header_GL_gl_h=$ac_header_preproc
29340 fi
29341 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29342 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29343
29344 fi
29345 if test $ac_cv_header_GL_gl_h = yes; then
29346
29347                 found_gl=0
29348
29349                 echo "$as_me:$LINENO: checking for -lGL" >&5
29350 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29351
29352 ac_find_libraries=
29353 for ac_dir in $SEARCH_LIB /usr/lib;
29354   do
29355     for ac_extension in a so sl dylib; do
29356       if test -f "$ac_dir/libGL.$ac_extension"; then
29357         ac_find_libraries=$ac_dir
29358         break 2
29359       fi
29360     done
29361   done
29362
29363                 if test "$ac_find_libraries" != "" ; then
29364                     echo "$as_me:$LINENO: result: yes" >&5
29365 echo "${ECHO_T}yes" >&6
29366
29367
29368   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29369   result=$?
29370   if test $result = 0; then
29371     ac_path_to_link=""
29372   else
29373     ac_path_to_link=" -L$ac_find_libraries"
29374   fi
29375
29376                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
29377                         LDFLAGS_GL="$ac_path_to_link"
29378                     fi
29379
29380                                                                                 echo "$as_me:$LINENO: checking for -lGLU" >&5
29381 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
29382
29383 ac_find_libraries=
29384 for ac_dir in $SEARCH_LIB /usr/lib;
29385   do
29386     for ac_extension in a so sl dylib; do
29387       if test -f "$ac_dir/libGLU.$ac_extension"; then
29388         ac_find_libraries=$ac_dir
29389         break 2
29390       fi
29391     done
29392   done
29393
29394                     if test "$ac_find_libraries" != "" ; then
29395
29396   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29397   result=$?
29398   if test $result = 0; then
29399     ac_path_to_link=""
29400   else
29401     ac_path_to_link=" -L$ac_find_libraries"
29402   fi
29403
29404                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
29405                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
29406                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29407                         fi
29408
29409                         found_gl=1
29410                         OPENGL_LIBS="-lGL -lGLU"
29411                         echo "$as_me:$LINENO: result: yes" >&5
29412 echo "${ECHO_T}yes" >&6
29413                     else
29414                         echo "$as_me:$LINENO: result: no" >&5
29415 echo "${ECHO_T}no" >&6
29416                     fi
29417                 else
29418                     echo "$as_me:$LINENO: result: no" >&5
29419 echo "${ECHO_T}no" >&6
29420                 fi
29421
29422                 if test "$found_gl" != 1; then
29423                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29424 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29425
29426 ac_find_libraries=
29427 for ac_dir in $SEARCH_LIB /usr/lib;
29428   do
29429     for ac_extension in a so sl dylib; do
29430       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29431         ac_find_libraries=$ac_dir
29432         break 2
29433       fi
29434     done
29435   done
29436
29437                     if test "$ac_find_libraries" != "" ; then
29438
29439   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29440   result=$?
29441   if test $result = 0; then
29442     ac_path_to_link=""
29443   else
29444     ac_path_to_link=" -L$ac_find_libraries"
29445   fi
29446
29447                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29448                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
29449                         echo "$as_me:$LINENO: result: yes" >&5
29450 echo "${ECHO_T}yes" >&6
29451                     else
29452                         echo "$as_me:$LINENO: result: no" >&5
29453 echo "${ECHO_T}no" >&6
29454                     fi
29455                 fi
29456
29457 fi
29458
29459
29460
29461         if test "x$OPENGL_LIBS" = "x"; then
29462                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29463 echo "$as_me: error: OpenGL libraries not available" >&2;}
29464    { (exit 1); exit 1; }; }
29465         fi
29466     fi
29467
29468     if test "$wxUSE_OPENGL" = "yes"; then
29469         USE_OPENGL=1
29470         cat >>confdefs.h <<\_ACEOF
29471 #define wxUSE_OPENGL 1
29472 _ACEOF
29473
29474         cat >>confdefs.h <<\_ACEOF
29475 #define wxUSE_GLCANVAS 1
29476 _ACEOF
29477
29478         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29479     fi
29480 fi
29481
29482
29483 if test -n "$TOOLKIT" ; then
29484     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29485 fi
29486
29487
29488
29489 if test "$wxUSE_SHARED" = "yes"; then
29490     case "${host}" in
29491       *-pc-msdosdjgpp )
29492                 wxUSE_SHARED=no
29493         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29494 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29495       ;;
29496     esac
29497 fi
29498
29499 if test "$wxUSE_SHARED" = "yes"; then
29500
29501
29502   found_versioning=no
29503
29504
29505     if test $found_versioning = no ; then
29506       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29507 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29508 if test "${wx_cv_version_script+set}" = set; then
29509   echo $ECHO_N "(cached) $ECHO_C" >&6
29510 else
29511
29512         echo "VER_1 { *; };" >conftest.sym
29513         echo "int main() { return 0; }" >conftest.cpp
29514
29515         if { ac_try='
29516                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29517                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29519   (eval $ac_try) 2>&5
29520   ac_status=$?
29521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522   (exit $ac_status); }; } ; then
29523           if test -s conftest.stderr ; then
29524               wx_cv_version_script=no
29525           else
29526               wx_cv_version_script=yes
29527           fi
29528         else
29529           wx_cv_version_script=no
29530         fi
29531
29532                                                                                                 if test $wx_cv_version_script = yes
29533         then
29534           echo "struct B { virtual ~B() { } }; \
29535                 struct D : public B { }; \
29536                 void F() { D d; }" > conftest.cpp
29537
29538           if { ac_try='
29539                 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29540                 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
29541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29542   (eval $ac_try) 2>&5
29543   ac_status=$?
29544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545   (exit $ac_status); }; } &&
29546              { ac_try='
29547                 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29548                 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
29549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29550   (eval $ac_try) 2>&5
29551   ac_status=$?
29552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553   (exit $ac_status); }; }
29554           then
29555             if { ac_try='
29556                   $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29557                   -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
29558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29559   (eval $ac_try) 2>&5
29560   ac_status=$?
29561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562   (exit $ac_status); }; }
29563             then
29564               wx_cv_version_script=yes
29565             else
29566               wx_cv_version_script=no
29567             fi
29568           fi
29569         fi
29570
29571         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
29572         rm -f conftest1.output conftest2.output conftest3.output
29573
29574 fi
29575 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29576 echo "${ECHO_T}$wx_cv_version_script" >&6
29577       if test $wx_cv_version_script = yes ; then
29578         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29579       fi
29580   fi
29581
29582
29583     case "${host}" in
29584       *-*-linux* | *-*-gnu* )
29585         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
29586         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
29587         ;;
29588
29589       *-*-solaris2* )
29590         if test "$GCC" = yes ; then
29591                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29592
29593                                     saveLdflags="$LDFLAGS"
29594             LDFLAGS="$saveLdflags -Wl,-rpath,/"
29595             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29596 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29597             cat >conftest.$ac_ext <<_ACEOF
29598 /* confdefs.h.  */
29599 _ACEOF
29600 cat confdefs.h >>conftest.$ac_ext
29601 cat >>conftest.$ac_ext <<_ACEOF
29602 /* end confdefs.h.  */
29603
29604 int
29605 main ()
29606 {
29607
29608   ;
29609   return 0;
29610 }
29611 _ACEOF
29612 rm -f conftest.$ac_objext conftest$ac_exeext
29613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29614   (eval $ac_link) 2>conftest.er1
29615   ac_status=$?
29616   grep -v '^ *+' conftest.er1 >conftest.err
29617   rm -f conftest.er1
29618   cat conftest.err >&5
29619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620   (exit $ac_status); } &&
29621          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29623   (eval $ac_try) 2>&5
29624   ac_status=$?
29625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626   (exit $ac_status); }; } &&
29627          { ac_try='test -s conftest$ac_exeext'
29628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29629   (eval $ac_try) 2>&5
29630   ac_status=$?
29631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632   (exit $ac_status); }; }; then
29633
29634                     echo "$as_me:$LINENO: result: yes" >&5
29635 echo "${ECHO_T}yes" >&6
29636                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
29637                     WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
29638
29639 else
29640   echo "$as_me: failed program was:" >&5
29641 sed 's/^/| /' conftest.$ac_ext >&5
29642
29643
29644                     echo "$as_me:$LINENO: result: no" >&5
29645 echo "${ECHO_T}no" >&6
29646                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29647 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29648                     LDFLAGS="$saveLdflags -Wl,-R,/"
29649                     cat >conftest.$ac_ext <<_ACEOF
29650 /* confdefs.h.  */
29651 _ACEOF
29652 cat confdefs.h >>conftest.$ac_ext
29653 cat >>conftest.$ac_ext <<_ACEOF
29654 /* end confdefs.h.  */
29655
29656 int
29657 main ()
29658 {
29659
29660   ;
29661   return 0;
29662 }
29663 _ACEOF
29664 rm -f conftest.$ac_objext conftest$ac_exeext
29665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29666   (eval $ac_link) 2>conftest.er1
29667   ac_status=$?
29668   grep -v '^ *+' conftest.er1 >conftest.err
29669   rm -f conftest.er1
29670   cat conftest.err >&5
29671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29672   (exit $ac_status); } &&
29673          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29675   (eval $ac_try) 2>&5
29676   ac_status=$?
29677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678   (exit $ac_status); }; } &&
29679          { ac_try='test -s conftest$ac_exeext'
29680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29681   (eval $ac_try) 2>&5
29682   ac_status=$?
29683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29684   (exit $ac_status); }; }; then
29685
29686                             echo "$as_me:$LINENO: result: yes" >&5
29687 echo "${ECHO_T}yes" >&6
29688                             SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29689                             WXCONFIG_RPATH="-Wl,-R,\$libdir"
29690
29691 else
29692   echo "$as_me: failed program was:" >&5
29693 sed 's/^/| /' conftest.$ac_ext >&5
29694
29695
29696                             echo "$as_me:$LINENO: result: no" >&5
29697 echo "${ECHO_T}no" >&6
29698
29699 fi
29700 rm -f conftest.err conftest.$ac_objext \
29701       conftest$ac_exeext conftest.$ac_ext
29702
29703 fi
29704 rm -f conftest.err conftest.$ac_objext \
29705       conftest$ac_exeext conftest.$ac_ext
29706             LDFLAGS="$saveLdflags"
29707         else
29708             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
29709             WXCONFIG_RPATH="-R\$libdir"
29710         fi
29711       ;;
29712
29713       powerpc-*-darwin* )
29714         SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29715         cat <<EOF >change-install-names
29716 #!/bin/sh
29717 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29718 inst_cmd="install_name_tool "
29719 for i in \${libnames} ; do
29720     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29721 done
29722 \${inst_cmd} \${3}
29723 EOF
29724         chmod +x change-install-names
29725       ;;
29726
29727       *-*-cygwin* | *-*-mingw32* )
29728         TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29729         ;;
29730
29731       *-*-hpux* )
29732         SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29733         WXCONFIG_RPATH="-Wl,+b,\$libdir"
29734         ;;
29735
29736     esac
29737
29738     if test $wxUSE_RPATH = "no"; then
29739         SAMPLES_RPATH_FLAG=''
29740         SAMPLES_RPATH_POSTLINK=''
29741         WXCONFIG_RPATH=''
29742     fi
29743
29744     SHARED=1
29745
29746 else
29747
29748     config_linkage_component="-static"
29749     SHARED=0
29750
29751 fi
29752
29753
29754 UNICODE=0
29755 lib_unicode_suffix=
29756 WX_CHARTYPE="ansi"
29757 if test "$wxUSE_UNICODE" = "yes"; then
29758     lib_unicode_suffix=u
29759     WX_CHARTYPE="unicode"
29760     UNICODE=1
29761 fi
29762
29763 lib_debug_suffix=
29764 WX_DEBUGTYPE="release"
29765 DEBUG_FLAG=0
29766 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29767     lib_debug_suffix=d
29768     WX_DEBUGTYPE="debug"
29769     DEBUG_FLAG=1
29770 fi
29771
29772 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29773 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
29774
29775 DEBUG_INFO=0
29776 if test "$wxUSE_DEBUG_INFO" = "yes"; then
29777     DEBUG_INFO=1
29778 fi
29779
29780 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
29781
29782 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
29783
29784 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
29785
29786 if test "$cross_compiling" = "yes"; then
29787     HOST_SUFFIX="-$host_alias"
29788     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29789     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
29790 fi
29791
29792 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29793 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29794
29795
29796
29797 if test "$wxUSE_COCOA" = 1; then
29798
29799
29800     ac_ext=c
29801 ac_cpp='$CPP $CPPFLAGS'
29802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29805
29806 ac_ext=m
29807
29808     echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
29809 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
29810     cat >conftest.$ac_ext <<_ACEOF
29811 /* confdefs.h.  */
29812 _ACEOF
29813 cat confdefs.h >>conftest.$ac_ext
29814 cat >>conftest.$ac_ext <<_ACEOF
29815 /* end confdefs.h.  */
29816 #include <AppKit/NSEvent.h>
29817 #include <CoreFoundation/CoreFoundation.h>
29818
29819 int
29820 main ()
29821 {
29822
29823   ;
29824   return 0;
29825 }
29826 _ACEOF
29827 rm -f conftest.$ac_objext
29828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29829   (eval $ac_compile) 2>conftest.er1
29830   ac_status=$?
29831   grep -v '^ *+' conftest.er1 >conftest.err
29832   rm -f conftest.er1
29833   cat conftest.err >&5
29834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835   (exit $ac_status); } &&
29836          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29838   (eval $ac_try) 2>&5
29839   ac_status=$?
29840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841   (exit $ac_status); }; } &&
29842          { ac_try='test -s conftest.$ac_objext'
29843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29844   (eval $ac_try) 2>&5
29845   ac_status=$?
29846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847   (exit $ac_status); }; }; then
29848   echo "$as_me:$LINENO: result: no" >&5
29849 echo "${ECHO_T}no" >&6
29850 else
29851   echo "$as_me: failed program was:" >&5
29852 sed 's/^/| /' conftest.$ac_ext >&5
29853
29854 echo "$as_me:$LINENO: result: yes" >&5
29855 echo "${ECHO_T}yes" >&6
29856         echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
29857 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
29858         cat >conftest.$ac_ext <<_ACEOF
29859 /* confdefs.h.  */
29860 _ACEOF
29861 cat confdefs.h >>conftest.$ac_ext
29862 cat >>conftest.$ac_ext <<_ACEOF
29863 /* end confdefs.h.  */
29864 #define __Point__ 1
29865 #include <AppKit/NSEvent.h>
29866 #include <CoreFoundation/CoreFoundation.h>
29867
29868 int
29869 main ()
29870 {
29871
29872   ;
29873   return 0;
29874 }
29875 _ACEOF
29876 rm -f conftest.$ac_objext
29877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29878   (eval $ac_compile) 2>conftest.er1
29879   ac_status=$?
29880   grep -v '^ *+' conftest.er1 >conftest.err
29881   rm -f conftest.er1
29882   cat conftest.err >&5
29883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884   (exit $ac_status); } &&
29885          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29887   (eval $ac_try) 2>&5
29888   ac_status=$?
29889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890   (exit $ac_status); }; } &&
29891          { ac_try='test -s conftest.$ac_objext'
29892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29893   (eval $ac_try) 2>&5
29894   ac_status=$?
29895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896   (exit $ac_status); }; }; then
29897   echo "$as_me:$LINENO: result: yes" >&5
29898 echo "${ECHO_T}yes" >&6
29899             cat >>confdefs.h <<\_ACEOF
29900 #define __Point__ 1
29901 _ACEOF
29902
29903
29904 else
29905   echo "$as_me: failed program was:" >&5
29906 sed 's/^/| /' conftest.$ac_ext >&5
29907
29908 { { echo "$as_me:$LINENO: error: no
29909 See \`config.log' for more details." >&5
29910 echo "$as_me: error: no
29911 See \`config.log' for more details." >&2;}
29912    { (exit 1); exit 1; }; }
29913
29914 fi
29915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29916
29917 fi
29918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29919     ac_ext=c
29920 ac_cpp='$CPP $CPPFLAGS'
29921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29924
29925 fi
29926
29927 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
29928             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
29929     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
29930
29931         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
29932
29933     # Extract the first word of "Rez", so it can be a program name with args.
29934 set dummy Rez; ac_word=$2
29935 echo "$as_me:$LINENO: checking for $ac_word" >&5
29936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29937 if test "${ac_cv_prog_RESCOMP+set}" = set; then
29938   echo $ECHO_N "(cached) $ECHO_C" >&6
29939 else
29940   if test -n "$RESCOMP"; then
29941   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
29942 else
29943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29944 for as_dir in $PATH
29945 do
29946   IFS=$as_save_IFS
29947   test -z "$as_dir" && as_dir=.
29948   for ac_exec_ext in '' $ac_executable_extensions; do
29949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29950     ac_cv_prog_RESCOMP="Rez"
29951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29952     break 2
29953   fi
29954 done
29955 done
29956
29957   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
29958 fi
29959 fi
29960 RESCOMP=$ac_cv_prog_RESCOMP
29961 if test -n "$RESCOMP"; then
29962   echo "$as_me:$LINENO: result: $RESCOMP" >&5
29963 echo "${ECHO_T}$RESCOMP" >&6
29964 else
29965   echo "$as_me:$LINENO: result: no" >&5
29966 echo "${ECHO_T}no" >&6
29967 fi
29968
29969     # Extract the first word of "DeRez", so it can be a program name with args.
29970 set dummy DeRez; ac_word=$2
29971 echo "$as_me:$LINENO: checking for $ac_word" >&5
29972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29973 if test "${ac_cv_prog_DEREZ+set}" = set; then
29974   echo $ECHO_N "(cached) $ECHO_C" >&6
29975 else
29976   if test -n "$DEREZ"; then
29977   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
29978 else
29979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29980 for as_dir in $PATH
29981 do
29982   IFS=$as_save_IFS
29983   test -z "$as_dir" && as_dir=.
29984   for ac_exec_ext in '' $ac_executable_extensions; do
29985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29986     ac_cv_prog_DEREZ="DeRez"
29987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29988     break 2
29989   fi
29990 done
29991 done
29992
29993   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29994 fi
29995 fi
29996 DEREZ=$ac_cv_prog_DEREZ
29997 if test -n "$DEREZ"; then
29998   echo "$as_me:$LINENO: result: $DEREZ" >&5
29999 echo "${ECHO_T}$DEREZ" >&6
30000 else
30001   echo "$as_me:$LINENO: result: no" >&5
30002 echo "${ECHO_T}no" >&6
30003 fi
30004
30005     # Extract the first word of "SetFile", so it can be a program name with args.
30006 set dummy SetFile; ac_word=$2
30007 echo "$as_me:$LINENO: checking for $ac_word" >&5
30008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30009 if test "${ac_cv_prog_SETFILE+set}" = set; then
30010   echo $ECHO_N "(cached) $ECHO_C" >&6
30011 else
30012   if test -n "$SETFILE"; then
30013   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
30014 else
30015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30016 for as_dir in $PATH
30017 do
30018   IFS=$as_save_IFS
30019   test -z "$as_dir" && as_dir=.
30020   for ac_exec_ext in '' $ac_executable_extensions; do
30021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30022     ac_cv_prog_SETFILE="SetFile"
30023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30024     break 2
30025   fi
30026 done
30027 done
30028
30029   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
30030 fi
30031 fi
30032 SETFILE=$ac_cv_prog_SETFILE
30033 if test -n "$SETFILE"; then
30034   echo "$as_me:$LINENO: result: $SETFILE" >&5
30035 echo "${ECHO_T}$SETFILE" >&6
30036 else
30037   echo "$as_me:$LINENO: result: no" >&5
30038 echo "${ECHO_T}no" >&6
30039 fi
30040
30041
30042     MACSETFILE="\$(SETFILE)"
30043
30044             if test "$wxUSE_MAC" = 1; then
30045         MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
30046
30047                         MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
30048     else
30049         MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
30050         MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
30051     fi
30052 else
30053         MACSETFILE="@true"
30054     MACRESWXCONFIG="@true"
30055
30056         if test "$wxUSE_PM" = 1; then
30057         MACRESCOMP="emxbind -ep"
30058     else
30059         MACRESCOMP="@true"
30060     fi
30061 fi
30062
30063
30064
30065 echo "$as_me:$LINENO: checking for mode_t" >&5
30066 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
30067 if test "${ac_cv_type_mode_t+set}" = set; then
30068   echo $ECHO_N "(cached) $ECHO_C" >&6
30069 else
30070   cat >conftest.$ac_ext <<_ACEOF
30071 /* confdefs.h.  */
30072 _ACEOF
30073 cat confdefs.h >>conftest.$ac_ext
30074 cat >>conftest.$ac_ext <<_ACEOF
30075 /* end confdefs.h.  */
30076 $ac_includes_default
30077 int
30078 main ()
30079 {
30080 if ((mode_t *) 0)
30081   return 0;
30082 if (sizeof (mode_t))
30083   return 0;
30084   ;
30085   return 0;
30086 }
30087 _ACEOF
30088 rm -f conftest.$ac_objext
30089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30090   (eval $ac_compile) 2>conftest.er1
30091   ac_status=$?
30092   grep -v '^ *+' conftest.er1 >conftest.err
30093   rm -f conftest.er1
30094   cat conftest.err >&5
30095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096   (exit $ac_status); } &&
30097          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30099   (eval $ac_try) 2>&5
30100   ac_status=$?
30101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102   (exit $ac_status); }; } &&
30103          { ac_try='test -s conftest.$ac_objext'
30104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30105   (eval $ac_try) 2>&5
30106   ac_status=$?
30107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30108   (exit $ac_status); }; }; then
30109   ac_cv_type_mode_t=yes
30110 else
30111   echo "$as_me: failed program was:" >&5
30112 sed 's/^/| /' conftest.$ac_ext >&5
30113
30114 ac_cv_type_mode_t=no
30115 fi
30116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30117 fi
30118 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
30119 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
30120 if test $ac_cv_type_mode_t = yes; then
30121   :
30122 else
30123
30124 cat >>confdefs.h <<_ACEOF
30125 #define mode_t int
30126 _ACEOF
30127
30128 fi
30129
30130 echo "$as_me:$LINENO: checking for off_t" >&5
30131 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30132 if test "${ac_cv_type_off_t+set}" = set; then
30133   echo $ECHO_N "(cached) $ECHO_C" >&6
30134 else
30135   cat >conftest.$ac_ext <<_ACEOF
30136 /* confdefs.h.  */
30137 _ACEOF
30138 cat confdefs.h >>conftest.$ac_ext
30139 cat >>conftest.$ac_ext <<_ACEOF
30140 /* end confdefs.h.  */
30141 $ac_includes_default
30142 int
30143 main ()
30144 {
30145 if ((off_t *) 0)
30146   return 0;
30147 if (sizeof (off_t))
30148   return 0;
30149   ;
30150   return 0;
30151 }
30152 _ACEOF
30153 rm -f conftest.$ac_objext
30154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30155   (eval $ac_compile) 2>conftest.er1
30156   ac_status=$?
30157   grep -v '^ *+' conftest.er1 >conftest.err
30158   rm -f conftest.er1
30159   cat conftest.err >&5
30160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161   (exit $ac_status); } &&
30162          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30164   (eval $ac_try) 2>&5
30165   ac_status=$?
30166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167   (exit $ac_status); }; } &&
30168          { ac_try='test -s conftest.$ac_objext'
30169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30170   (eval $ac_try) 2>&5
30171   ac_status=$?
30172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173   (exit $ac_status); }; }; then
30174   ac_cv_type_off_t=yes
30175 else
30176   echo "$as_me: failed program was:" >&5
30177 sed 's/^/| /' conftest.$ac_ext >&5
30178
30179 ac_cv_type_off_t=no
30180 fi
30181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30182 fi
30183 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30184 echo "${ECHO_T}$ac_cv_type_off_t" >&6
30185 if test $ac_cv_type_off_t = yes; then
30186   :
30187 else
30188
30189 cat >>confdefs.h <<_ACEOF
30190 #define off_t long
30191 _ACEOF
30192
30193 fi
30194
30195 echo "$as_me:$LINENO: checking for pid_t" >&5
30196 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30197 if test "${ac_cv_type_pid_t+set}" = set; then
30198   echo $ECHO_N "(cached) $ECHO_C" >&6
30199 else
30200   cat >conftest.$ac_ext <<_ACEOF
30201 /* confdefs.h.  */
30202 _ACEOF
30203 cat confdefs.h >>conftest.$ac_ext
30204 cat >>conftest.$ac_ext <<_ACEOF
30205 /* end confdefs.h.  */
30206 $ac_includes_default
30207 int
30208 main ()
30209 {
30210 if ((pid_t *) 0)
30211   return 0;
30212 if (sizeof (pid_t))
30213   return 0;
30214   ;
30215   return 0;
30216 }
30217 _ACEOF
30218 rm -f conftest.$ac_objext
30219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30220   (eval $ac_compile) 2>conftest.er1
30221   ac_status=$?
30222   grep -v '^ *+' conftest.er1 >conftest.err
30223   rm -f conftest.er1
30224   cat conftest.err >&5
30225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226   (exit $ac_status); } &&
30227          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30229   (eval $ac_try) 2>&5
30230   ac_status=$?
30231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232   (exit $ac_status); }; } &&
30233          { ac_try='test -s conftest.$ac_objext'
30234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30235   (eval $ac_try) 2>&5
30236   ac_status=$?
30237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30238   (exit $ac_status); }; }; then
30239   ac_cv_type_pid_t=yes
30240 else
30241   echo "$as_me: failed program was:" >&5
30242 sed 's/^/| /' conftest.$ac_ext >&5
30243
30244 ac_cv_type_pid_t=no
30245 fi
30246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30247 fi
30248 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30249 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30250 if test $ac_cv_type_pid_t = yes; then
30251   :
30252 else
30253
30254 cat >>confdefs.h <<_ACEOF
30255 #define pid_t int
30256 _ACEOF
30257
30258 fi
30259
30260 echo "$as_me:$LINENO: checking for size_t" >&5
30261 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30262 if test "${ac_cv_type_size_t+set}" = set; then
30263   echo $ECHO_N "(cached) $ECHO_C" >&6
30264 else
30265   cat >conftest.$ac_ext <<_ACEOF
30266 /* confdefs.h.  */
30267 _ACEOF
30268 cat confdefs.h >>conftest.$ac_ext
30269 cat >>conftest.$ac_ext <<_ACEOF
30270 /* end confdefs.h.  */
30271 $ac_includes_default
30272 int
30273 main ()
30274 {
30275 if ((size_t *) 0)
30276   return 0;
30277 if (sizeof (size_t))
30278   return 0;
30279   ;
30280   return 0;
30281 }
30282 _ACEOF
30283 rm -f conftest.$ac_objext
30284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30285   (eval $ac_compile) 2>conftest.er1
30286   ac_status=$?
30287   grep -v '^ *+' conftest.er1 >conftest.err
30288   rm -f conftest.er1
30289   cat conftest.err >&5
30290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291   (exit $ac_status); } &&
30292          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30294   (eval $ac_try) 2>&5
30295   ac_status=$?
30296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297   (exit $ac_status); }; } &&
30298          { ac_try='test -s conftest.$ac_objext'
30299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30300   (eval $ac_try) 2>&5
30301   ac_status=$?
30302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303   (exit $ac_status); }; }; then
30304   ac_cv_type_size_t=yes
30305 else
30306   echo "$as_me: failed program was:" >&5
30307 sed 's/^/| /' conftest.$ac_ext >&5
30308
30309 ac_cv_type_size_t=no
30310 fi
30311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30312 fi
30313 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30314 echo "${ECHO_T}$ac_cv_type_size_t" >&6
30315 if test $ac_cv_type_size_t = yes; then
30316   :
30317 else
30318
30319 cat >>confdefs.h <<_ACEOF
30320 #define size_t unsigned
30321 _ACEOF
30322
30323 fi
30324
30325 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30326 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30327 if test "${ac_cv_type_uid_t+set}" = set; then
30328   echo $ECHO_N "(cached) $ECHO_C" >&6
30329 else
30330   cat >conftest.$ac_ext <<_ACEOF
30331 /* confdefs.h.  */
30332 _ACEOF
30333 cat confdefs.h >>conftest.$ac_ext
30334 cat >>conftest.$ac_ext <<_ACEOF
30335 /* end confdefs.h.  */
30336 #include <sys/types.h>
30337
30338 _ACEOF
30339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30340   $EGREP "uid_t" >/dev/null 2>&1; then
30341   ac_cv_type_uid_t=yes
30342 else
30343   ac_cv_type_uid_t=no
30344 fi
30345 rm -f conftest*
30346
30347 fi
30348 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30349 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30350 if test $ac_cv_type_uid_t = no; then
30351
30352 cat >>confdefs.h <<\_ACEOF
30353 #define uid_t int
30354 _ACEOF
30355
30356
30357 cat >>confdefs.h <<\_ACEOF
30358 #define gid_t int
30359 _ACEOF
30360
30361 fi
30362
30363
30364 echo "$as_me:$LINENO: checking for ssize_t" >&5
30365 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30366 if test "${ac_cv_type_ssize_t+set}" = set; then
30367   echo $ECHO_N "(cached) $ECHO_C" >&6
30368 else
30369   cat >conftest.$ac_ext <<_ACEOF
30370 /* confdefs.h.  */
30371 _ACEOF
30372 cat confdefs.h >>conftest.$ac_ext
30373 cat >>conftest.$ac_ext <<_ACEOF
30374 /* end confdefs.h.  */
30375 $ac_includes_default
30376 int
30377 main ()
30378 {
30379 if ((ssize_t *) 0)
30380   return 0;
30381 if (sizeof (ssize_t))
30382   return 0;
30383   ;
30384   return 0;
30385 }
30386 _ACEOF
30387 rm -f conftest.$ac_objext
30388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30389   (eval $ac_compile) 2>conftest.er1
30390   ac_status=$?
30391   grep -v '^ *+' conftest.er1 >conftest.err
30392   rm -f conftest.er1
30393   cat conftest.err >&5
30394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395   (exit $ac_status); } &&
30396          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30398   (eval $ac_try) 2>&5
30399   ac_status=$?
30400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401   (exit $ac_status); }; } &&
30402          { ac_try='test -s conftest.$ac_objext'
30403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30404   (eval $ac_try) 2>&5
30405   ac_status=$?
30406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30407   (exit $ac_status); }; }; then
30408   ac_cv_type_ssize_t=yes
30409 else
30410   echo "$as_me: failed program was:" >&5
30411 sed 's/^/| /' conftest.$ac_ext >&5
30412
30413 ac_cv_type_ssize_t=no
30414 fi
30415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30416 fi
30417 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30418 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30419 if test $ac_cv_type_ssize_t = yes; then
30420
30421 cat >>confdefs.h <<_ACEOF
30422 #define HAVE_SSIZE_T 1
30423 _ACEOF
30424
30425
30426 fi
30427
30428
30429
30430
30431 ac_ext=cc
30432 ac_cpp='$CXXCPP $CPPFLAGS'
30433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30436
30437 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30438 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30439 if test "${wx_cv_size_t_is_uint+set}" = set; then
30440   echo $ECHO_N "(cached) $ECHO_C" >&6
30441 else
30442
30443                             cat >conftest.$ac_ext <<_ACEOF
30444 /* confdefs.h.  */
30445 _ACEOF
30446 cat confdefs.h >>conftest.$ac_ext
30447 cat >>conftest.$ac_ext <<_ACEOF
30448 /* end confdefs.h.  */
30449 #include <stddef.h>
30450 int
30451 main ()
30452 {
30453
30454             return 0; }
30455
30456             struct Foo { void foo(size_t); void foo(unsigned int); };
30457
30458             int bar() {
30459
30460   ;
30461   return 0;
30462 }
30463 _ACEOF
30464 rm -f conftest.$ac_objext
30465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30466   (eval $ac_compile) 2>conftest.er1
30467   ac_status=$?
30468   grep -v '^ *+' conftest.er1 >conftest.err
30469   rm -f conftest.er1
30470   cat conftest.err >&5
30471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30472   (exit $ac_status); } &&
30473          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30475   (eval $ac_try) 2>&5
30476   ac_status=$?
30477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478   (exit $ac_status); }; } &&
30479          { ac_try='test -s conftest.$ac_objext'
30480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30481   (eval $ac_try) 2>&5
30482   ac_status=$?
30483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484   (exit $ac_status); }; }; then
30485   wx_cv_size_t_is_uint=no
30486 else
30487   echo "$as_me: failed program was:" >&5
30488 sed 's/^/| /' conftest.$ac_ext >&5
30489
30490 wx_cv_size_t_is_uint=yes
30491
30492 fi
30493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30494
30495
30496 fi
30497 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30498 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30499
30500 if test "$wx_cv_size_t_is_uint" = "yes"; then
30501     cat >>confdefs.h <<\_ACEOF
30502 #define wxSIZE_T_IS_UINT 1
30503 _ACEOF
30504
30505 else
30506     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30507 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30508 if test "${wx_cv_size_t_is_ulong+set}" = set; then
30509   echo $ECHO_N "(cached) $ECHO_C" >&6
30510 else
30511   cat >conftest.$ac_ext <<_ACEOF
30512 /* confdefs.h.  */
30513 _ACEOF
30514 cat confdefs.h >>conftest.$ac_ext
30515 cat >>conftest.$ac_ext <<_ACEOF
30516 /* end confdefs.h.  */
30517 #include <stddef.h>
30518 int
30519 main ()
30520 {
30521
30522                 return 0; }
30523
30524                 struct Foo { void foo(size_t); void foo(unsigned long); };
30525
30526                 int bar() {
30527
30528   ;
30529   return 0;
30530 }
30531 _ACEOF
30532 rm -f conftest.$ac_objext
30533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30534   (eval $ac_compile) 2>conftest.er1
30535   ac_status=$?
30536   grep -v '^ *+' conftest.er1 >conftest.err
30537   rm -f conftest.er1
30538   cat conftest.err >&5
30539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30540   (exit $ac_status); } &&
30541          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
30542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30543   (eval $ac_try) 2>&5
30544   ac_status=$?
30545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546   (exit $ac_status); }; } &&
30547          { ac_try='test -s conftest.$ac_objext'
30548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30549   (eval $ac_try) 2>&5
30550   ac_status=$?
30551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552   (exit $ac_status); }; }; then
30553   wx_cv_size_t_is_ulong=no
30554 else
30555   echo "$as_me: failed program was:" >&5
30556 sed 's/^/| /' conftest.$ac_ext >&5
30557
30558 wx_cv_size_t_is_ulong=yes
30559
30560 fi
30561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30562
30563 fi
30564 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30565 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30566
30567     if test "$wx_cv_size_t_is_ulong" = "yes"; then
30568         cat >>confdefs.h <<\_ACEOF
30569 #define wxSIZE_T_IS_ULONG 1
30570 _ACEOF
30571
30572     fi
30573 fi
30574
30575 ac_ext=c
30576 ac_cpp='$CPP $CPPFLAGS'
30577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30580
30581
30582
30583 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30584 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30585 if test "${wx_cv_struct_pw_gecos+set}" = set; then
30586   echo $ECHO_N "(cached) $ECHO_C" >&6
30587 else
30588
30589         cat >conftest.$ac_ext <<_ACEOF
30590 /* confdefs.h.  */
30591 _ACEOF
30592 cat confdefs.h >>conftest.$ac_ext
30593 cat >>conftest.$ac_ext <<_ACEOF
30594 /* end confdefs.h.  */
30595 #include <pwd.h>
30596 int
30597 main ()
30598 {
30599
30600                 char *p;
30601                 struct passwd *pw;
30602                 p = pw->pw_gecos;
30603
30604   ;
30605   return 0;
30606 }
30607 _ACEOF
30608 rm -f conftest.$ac_objext
30609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30610   (eval $ac_compile) 2>conftest.er1
30611   ac_status=$?
30612   grep -v '^ *+' conftest.er1 >conftest.err
30613   rm -f conftest.er1
30614   cat conftest.err >&5
30615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616   (exit $ac_status); } &&
30617          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30619   (eval $ac_try) 2>&5
30620   ac_status=$?
30621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622   (exit $ac_status); }; } &&
30623          { ac_try='test -s conftest.$ac_objext'
30624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30625   (eval $ac_try) 2>&5
30626   ac_status=$?
30627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628   (exit $ac_status); }; }; then
30629
30630                 wx_cv_struct_pw_gecos=yes
30631
30632 else
30633   echo "$as_me: failed program was:" >&5
30634 sed 's/^/| /' conftest.$ac_ext >&5
30635
30636
30637                 wx_cv_struct_pw_gecos=no
30638
30639
30640 fi
30641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30642
30643
30644 fi
30645 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30646 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30647
30648 if test "$wx_cv_struct_pw_gecos" = "yes"; then
30649     cat >>confdefs.h <<\_ACEOF
30650 #define HAVE_PW_GECOS 1
30651 _ACEOF
30652
30653 fi
30654
30655
30656 if test "$wxUSE_WCHAR_T" = "yes"; then
30657     cat >>confdefs.h <<\_ACEOF
30658 #define wxUSE_WCHAR_T 1
30659 _ACEOF
30660
30661
30662         WCSLEN_FOUND=0
30663     WCHAR_LINK=
30664
30665 for ac_func in wcslen
30666 do
30667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30668 echo "$as_me:$LINENO: checking for $ac_func" >&5
30669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30670 if eval "test \"\${$as_ac_var+set}\" = set"; then
30671   echo $ECHO_N "(cached) $ECHO_C" >&6
30672 else
30673   cat >conftest.$ac_ext <<_ACEOF
30674 /* confdefs.h.  */
30675 _ACEOF
30676 cat confdefs.h >>conftest.$ac_ext
30677 cat >>conftest.$ac_ext <<_ACEOF
30678 /* end confdefs.h.  */
30679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30681 #define $ac_func innocuous_$ac_func
30682
30683 /* System header to define __stub macros and hopefully few prototypes,
30684     which can conflict with char $ac_func (); below.
30685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30686     <limits.h> exists even on freestanding compilers.  */
30687
30688 #ifdef __STDC__
30689 # include <limits.h>
30690 #else
30691 # include <assert.h>
30692 #endif
30693
30694 #undef $ac_func
30695
30696 /* Override any gcc2 internal prototype to avoid an error.  */
30697 #ifdef __cplusplus
30698 extern "C"
30699 {
30700 #endif
30701 /* We use char because int might match the return type of a gcc2
30702    builtin and then its argument prototype would still apply.  */
30703 char $ac_func ();
30704 /* The GNU C library defines this for functions which it implements
30705     to always fail with ENOSYS.  Some functions are actually named
30706     something starting with __ and the normal name is an alias.  */
30707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30708 choke me
30709 #else
30710 char (*f) () = $ac_func;
30711 #endif
30712 #ifdef __cplusplus
30713 }
30714 #endif
30715
30716 int
30717 main ()
30718 {
30719 return f != $ac_func;
30720   ;
30721   return 0;
30722 }
30723 _ACEOF
30724 rm -f conftest.$ac_objext conftest$ac_exeext
30725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30726   (eval $ac_link) 2>conftest.er1
30727   ac_status=$?
30728   grep -v '^ *+' conftest.er1 >conftest.err
30729   rm -f conftest.er1
30730   cat conftest.err >&5
30731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732   (exit $ac_status); } &&
30733          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30735   (eval $ac_try) 2>&5
30736   ac_status=$?
30737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30738   (exit $ac_status); }; } &&
30739          { ac_try='test -s conftest$ac_exeext'
30740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30741   (eval $ac_try) 2>&5
30742   ac_status=$?
30743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744   (exit $ac_status); }; }; then
30745   eval "$as_ac_var=yes"
30746 else
30747   echo "$as_me: failed program was:" >&5
30748 sed 's/^/| /' conftest.$ac_ext >&5
30749
30750 eval "$as_ac_var=no"
30751 fi
30752 rm -f conftest.err conftest.$ac_objext \
30753       conftest$ac_exeext conftest.$ac_ext
30754 fi
30755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30756 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30757 if test `eval echo '${'$as_ac_var'}'` = yes; then
30758   cat >>confdefs.h <<_ACEOF
30759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30760 _ACEOF
30761  WCSLEN_FOUND=1
30762 fi
30763 done
30764
30765
30766     if test "$WCSLEN_FOUND" = 0; then
30767         if test "$TOOLKIT" = "MSW"; then
30768             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30769 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30770 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30771   echo $ECHO_N "(cached) $ECHO_C" >&6
30772 else
30773   ac_check_lib_save_LIBS=$LIBS
30774 LIBS="-lmsvcrt  $LIBS"
30775 cat >conftest.$ac_ext <<_ACEOF
30776 /* confdefs.h.  */
30777 _ACEOF
30778 cat confdefs.h >>conftest.$ac_ext
30779 cat >>conftest.$ac_ext <<_ACEOF
30780 /* end confdefs.h.  */
30781
30782 /* Override any gcc2 internal prototype to avoid an error.  */
30783 #ifdef __cplusplus
30784 extern "C"
30785 #endif
30786 /* We use char because int might match the return type of a gcc2
30787    builtin and then its argument prototype would still apply.  */
30788 char wcslen ();
30789 int
30790 main ()
30791 {
30792 wcslen ();
30793   ;
30794   return 0;
30795 }
30796 _ACEOF
30797 rm -f conftest.$ac_objext conftest$ac_exeext
30798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30799   (eval $ac_link) 2>conftest.er1
30800   ac_status=$?
30801   grep -v '^ *+' conftest.er1 >conftest.err
30802   rm -f conftest.er1
30803   cat conftest.err >&5
30804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805   (exit $ac_status); } &&
30806          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30808   (eval $ac_try) 2>&5
30809   ac_status=$?
30810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811   (exit $ac_status); }; } &&
30812          { ac_try='test -s conftest$ac_exeext'
30813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30814   (eval $ac_try) 2>&5
30815   ac_status=$?
30816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817   (exit $ac_status); }; }; then
30818   ac_cv_lib_msvcrt_wcslen=yes
30819 else
30820   echo "$as_me: failed program was:" >&5
30821 sed 's/^/| /' conftest.$ac_ext >&5
30822
30823 ac_cv_lib_msvcrt_wcslen=no
30824 fi
30825 rm -f conftest.err conftest.$ac_objext \
30826       conftest$ac_exeext conftest.$ac_ext
30827 LIBS=$ac_check_lib_save_LIBS
30828 fi
30829 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
30830 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
30831 if test $ac_cv_lib_msvcrt_wcslen = yes; then
30832   WCHAR_OK=1
30833 fi
30834
30835         else
30836             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
30837 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
30838 if test "${ac_cv_lib_w_wcslen+set}" = set; then
30839   echo $ECHO_N "(cached) $ECHO_C" >&6
30840 else
30841   ac_check_lib_save_LIBS=$LIBS
30842 LIBS="-lw  $LIBS"
30843 cat >conftest.$ac_ext <<_ACEOF
30844 /* confdefs.h.  */
30845 _ACEOF
30846 cat confdefs.h >>conftest.$ac_ext
30847 cat >>conftest.$ac_ext <<_ACEOF
30848 /* end confdefs.h.  */
30849
30850 /* Override any gcc2 internal prototype to avoid an error.  */
30851 #ifdef __cplusplus
30852 extern "C"
30853 #endif
30854 /* We use char because int might match the return type of a gcc2
30855    builtin and then its argument prototype would still apply.  */
30856 char wcslen ();
30857 int
30858 main ()
30859 {
30860 wcslen ();
30861   ;
30862   return 0;
30863 }
30864 _ACEOF
30865 rm -f conftest.$ac_objext conftest$ac_exeext
30866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30867   (eval $ac_link) 2>conftest.er1
30868   ac_status=$?
30869   grep -v '^ *+' conftest.er1 >conftest.err
30870   rm -f conftest.er1
30871   cat conftest.err >&5
30872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873   (exit $ac_status); } &&
30874          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30876   (eval $ac_try) 2>&5
30877   ac_status=$?
30878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879   (exit $ac_status); }; } &&
30880          { ac_try='test -s conftest$ac_exeext'
30881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30882   (eval $ac_try) 2>&5
30883   ac_status=$?
30884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885   (exit $ac_status); }; }; then
30886   ac_cv_lib_w_wcslen=yes
30887 else
30888   echo "$as_me: failed program was:" >&5
30889 sed 's/^/| /' conftest.$ac_ext >&5
30890
30891 ac_cv_lib_w_wcslen=no
30892 fi
30893 rm -f conftest.err conftest.$ac_objext \
30894       conftest$ac_exeext conftest.$ac_ext
30895 LIBS=$ac_check_lib_save_LIBS
30896 fi
30897 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
30898 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
30899 if test $ac_cv_lib_w_wcslen = yes; then
30900
30901                             WCHAR_LINK=" -lw"
30902                             WCSLEN_FOUND=1
30903
30904 fi
30905
30906         fi
30907     fi
30908
30909     if test "$WCSLEN_FOUND" = 1; then
30910         cat >>confdefs.h <<\_ACEOF
30911 #define HAVE_WCSLEN 1
30912 _ACEOF
30913
30914     fi
30915
30916         if test "$USE_HPUX" = 1; then
30917         CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
30918     fi
30919
30920
30921 for ac_func in wcsrtombs
30922 do
30923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30924 echo "$as_me:$LINENO: checking for $ac_func" >&5
30925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30926 if eval "test \"\${$as_ac_var+set}\" = set"; then
30927   echo $ECHO_N "(cached) $ECHO_C" >&6
30928 else
30929   cat >conftest.$ac_ext <<_ACEOF
30930 /* confdefs.h.  */
30931 _ACEOF
30932 cat confdefs.h >>conftest.$ac_ext
30933 cat >>conftest.$ac_ext <<_ACEOF
30934 /* end confdefs.h.  */
30935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30937 #define $ac_func innocuous_$ac_func
30938
30939 /* System header to define __stub macros and hopefully few prototypes,
30940     which can conflict with char $ac_func (); below.
30941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30942     <limits.h> exists even on freestanding compilers.  */
30943
30944 #ifdef __STDC__
30945 # include <limits.h>
30946 #else
30947 # include <assert.h>
30948 #endif
30949
30950 #undef $ac_func
30951
30952 /* Override any gcc2 internal prototype to avoid an error.  */
30953 #ifdef __cplusplus
30954 extern "C"
30955 {
30956 #endif
30957 /* We use char because int might match the return type of a gcc2
30958    builtin and then its argument prototype would still apply.  */
30959 char $ac_func ();
30960 /* The GNU C library defines this for functions which it implements
30961     to always fail with ENOSYS.  Some functions are actually named
30962     something starting with __ and the normal name is an alias.  */
30963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30964 choke me
30965 #else
30966 char (*f) () = $ac_func;
30967 #endif
30968 #ifdef __cplusplus
30969 }
30970 #endif
30971
30972 int
30973 main ()
30974 {
30975 return f != $ac_func;
30976   ;
30977   return 0;
30978 }
30979 _ACEOF
30980 rm -f conftest.$ac_objext conftest$ac_exeext
30981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30982   (eval $ac_link) 2>conftest.er1
30983   ac_status=$?
30984   grep -v '^ *+' conftest.er1 >conftest.err
30985   rm -f conftest.er1
30986   cat conftest.err >&5
30987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30988   (exit $ac_status); } &&
30989          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30991   (eval $ac_try) 2>&5
30992   ac_status=$?
30993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994   (exit $ac_status); }; } &&
30995          { ac_try='test -s conftest$ac_exeext'
30996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30997   (eval $ac_try) 2>&5
30998   ac_status=$?
30999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31000   (exit $ac_status); }; }; then
31001   eval "$as_ac_var=yes"
31002 else
31003   echo "$as_me: failed program was:" >&5
31004 sed 's/^/| /' conftest.$ac_ext >&5
31005
31006 eval "$as_ac_var=no"
31007 fi
31008 rm -f conftest.err conftest.$ac_objext \
31009       conftest$ac_exeext conftest.$ac_ext
31010 fi
31011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31012 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31013 if test `eval echo '${'$as_ac_var'}'` = yes; then
31014   cat >>confdefs.h <<_ACEOF
31015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31016 _ACEOF
31017
31018 fi
31019 done
31020
31021 else
31022     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
31023 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
31024 fi
31025
31026
31027
31028 ac_ext=cc
31029 ac_cpp='$CXXCPP $CPPFLAGS'
31030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31033
31034
31035
31036 for ac_func in vsnprintf
31037 do
31038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31039 echo "$as_me:$LINENO: checking for $ac_func" >&5
31040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31041 if eval "test \"\${$as_ac_var+set}\" = set"; then
31042   echo $ECHO_N "(cached) $ECHO_C" >&6
31043 else
31044   cat >conftest.$ac_ext <<_ACEOF
31045 /* confdefs.h.  */
31046 _ACEOF
31047 cat confdefs.h >>conftest.$ac_ext
31048 cat >>conftest.$ac_ext <<_ACEOF
31049 /* end confdefs.h.  */
31050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31052 #define $ac_func innocuous_$ac_func
31053
31054 /* System header to define __stub macros and hopefully few prototypes,
31055     which can conflict with char $ac_func (); below.
31056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31057     <limits.h> exists even on freestanding compilers.  */
31058
31059 #ifdef __STDC__
31060 # include <limits.h>
31061 #else
31062 # include <assert.h>
31063 #endif
31064
31065 #undef $ac_func
31066
31067 /* Override any gcc2 internal prototype to avoid an error.  */
31068 #ifdef __cplusplus
31069 extern "C"
31070 {
31071 #endif
31072 /* We use char because int might match the return type of a gcc2
31073    builtin and then its argument prototype would still apply.  */
31074 char $ac_func ();
31075 /* The GNU C library defines this for functions which it implements
31076     to always fail with ENOSYS.  Some functions are actually named
31077     something starting with __ and the normal name is an alias.  */
31078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31079 choke me
31080 #else
31081 char (*f) () = $ac_func;
31082 #endif
31083 #ifdef __cplusplus
31084 }
31085 #endif
31086
31087 int
31088 main ()
31089 {
31090 return f != $ac_func;
31091   ;
31092   return 0;
31093 }
31094 _ACEOF
31095 rm -f conftest.$ac_objext conftest$ac_exeext
31096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31097   (eval $ac_link) 2>conftest.er1
31098   ac_status=$?
31099   grep -v '^ *+' conftest.er1 >conftest.err
31100   rm -f conftest.er1
31101   cat conftest.err >&5
31102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31103   (exit $ac_status); } &&
31104          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31106   (eval $ac_try) 2>&5
31107   ac_status=$?
31108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31109   (exit $ac_status); }; } &&
31110          { ac_try='test -s conftest$ac_exeext'
31111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31112   (eval $ac_try) 2>&5
31113   ac_status=$?
31114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115   (exit $ac_status); }; }; then
31116   eval "$as_ac_var=yes"
31117 else
31118   echo "$as_me: failed program was:" >&5
31119 sed 's/^/| /' conftest.$ac_ext >&5
31120
31121 eval "$as_ac_var=no"
31122 fi
31123 rm -f conftest.err conftest.$ac_objext \
31124       conftest$ac_exeext conftest.$ac_ext
31125 fi
31126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31128 if test `eval echo '${'$as_ac_var'}'` = yes; then
31129   cat >>confdefs.h <<_ACEOF
31130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31131 _ACEOF
31132
31133 fi
31134 done
31135
31136
31137 if test "$ac_cv_func_vsnprintf" = "yes"; then
31138         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
31139 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
31140 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
31141   echo $ECHO_N "(cached) $ECHO_C" >&6
31142 else
31143
31144             cat >conftest.$ac_ext <<_ACEOF
31145 /* confdefs.h.  */
31146 _ACEOF
31147 cat confdefs.h >>conftest.$ac_ext
31148 cat >>conftest.$ac_ext <<_ACEOF
31149 /* end confdefs.h.  */
31150
31151                     #include <stdio.h>
31152                     #include <stdarg.h>
31153
31154 int
31155 main ()
31156 {
31157
31158                     char *buf;
31159                     va_list ap;
31160                     vsnprintf(buf, 10u, "%s", ap);
31161
31162   ;
31163   return 0;
31164 }
31165 _ACEOF
31166 rm -f conftest.$ac_objext
31167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31168   (eval $ac_compile) 2>conftest.er1
31169   ac_status=$?
31170   grep -v '^ *+' conftest.er1 >conftest.err
31171   rm -f conftest.er1
31172   cat conftest.err >&5
31173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174   (exit $ac_status); } &&
31175          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31177   (eval $ac_try) 2>&5
31178   ac_status=$?
31179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180   (exit $ac_status); }; } &&
31181          { ac_try='test -s conftest.$ac_objext'
31182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31183   (eval $ac_try) 2>&5
31184   ac_status=$?
31185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31186   (exit $ac_status); }; }; then
31187   wx_cv_func_vsnprintf_decl=yes
31188 else
31189   echo "$as_me: failed program was:" >&5
31190 sed 's/^/| /' conftest.$ac_ext >&5
31191
31192
31193                                                                                                                         cat >conftest.$ac_ext <<_ACEOF
31194 /* confdefs.h.  */
31195 _ACEOF
31196 cat confdefs.h >>conftest.$ac_ext
31197 cat >>conftest.$ac_ext <<_ACEOF
31198 /* end confdefs.h.  */
31199
31200                             #include <stdio.h>
31201                             #include <stdarg.h>
31202                             using namespace std;
31203
31204 int
31205 main ()
31206 {
31207
31208                             char *buf;
31209                             va_list ap;
31210                             vsnprintf(buf, 10u, "%s", ap);
31211
31212   ;
31213   return 0;
31214 }
31215 _ACEOF
31216 rm -f conftest.$ac_objext
31217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31218   (eval $ac_compile) 2>conftest.er1
31219   ac_status=$?
31220   grep -v '^ *+' conftest.er1 >conftest.err
31221   rm -f conftest.er1
31222   cat conftest.err >&5
31223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224   (exit $ac_status); } &&
31225          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31227   (eval $ac_try) 2>&5
31228   ac_status=$?
31229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230   (exit $ac_status); }; } &&
31231          { ac_try='test -s conftest.$ac_objext'
31232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31233   (eval $ac_try) 2>&5
31234   ac_status=$?
31235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236   (exit $ac_status); }; }; then
31237   wx_cv_func_vsnprintf_decl=yes
31238 else
31239   echo "$as_me: failed program was:" >&5
31240 sed 's/^/| /' conftest.$ac_ext >&5
31241
31242 wx_cv_func_vsnprintf_decl=no
31243
31244 fi
31245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31246
31247
31248 fi
31249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31250
31251
31252 fi
31253 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31254 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31255
31256     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31257         cat >>confdefs.h <<\_ACEOF
31258 #define HAVE_VSNPRINTF_DECL 1
31259 _ACEOF
31260
31261     fi
31262 fi
31263
31264 if test "$wxUSE_UNICODE" = yes; then
31265
31266
31267
31268
31269
31270
31271 for ac_func in wputc wputchar putws fputws wprintf vswprintf
31272 do
31273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31274 echo "$as_me:$LINENO: checking for $ac_func" >&5
31275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31276 if eval "test \"\${$as_ac_var+set}\" = set"; then
31277   echo $ECHO_N "(cached) $ECHO_C" >&6
31278 else
31279   cat >conftest.$ac_ext <<_ACEOF
31280 /* confdefs.h.  */
31281 _ACEOF
31282 cat confdefs.h >>conftest.$ac_ext
31283 cat >>conftest.$ac_ext <<_ACEOF
31284 /* end confdefs.h.  */
31285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31287 #define $ac_func innocuous_$ac_func
31288
31289 /* System header to define __stub macros and hopefully few prototypes,
31290     which can conflict with char $ac_func (); below.
31291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31292     <limits.h> exists even on freestanding compilers.  */
31293
31294 #ifdef __STDC__
31295 # include <limits.h>
31296 #else
31297 # include <assert.h>
31298 #endif
31299
31300 #undef $ac_func
31301
31302 /* Override any gcc2 internal prototype to avoid an error.  */
31303 #ifdef __cplusplus
31304 extern "C"
31305 {
31306 #endif
31307 /* We use char because int might match the return type of a gcc2
31308    builtin and then its argument prototype would still apply.  */
31309 char $ac_func ();
31310 /* The GNU C library defines this for functions which it implements
31311     to always fail with ENOSYS.  Some functions are actually named
31312     something starting with __ and the normal name is an alias.  */
31313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31314 choke me
31315 #else
31316 char (*f) () = $ac_func;
31317 #endif
31318 #ifdef __cplusplus
31319 }
31320 #endif
31321
31322 int
31323 main ()
31324 {
31325 return f != $ac_func;
31326   ;
31327   return 0;
31328 }
31329 _ACEOF
31330 rm -f conftest.$ac_objext conftest$ac_exeext
31331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31332   (eval $ac_link) 2>conftest.er1
31333   ac_status=$?
31334   grep -v '^ *+' conftest.er1 >conftest.err
31335   rm -f conftest.er1
31336   cat conftest.err >&5
31337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338   (exit $ac_status); } &&
31339          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31341   (eval $ac_try) 2>&5
31342   ac_status=$?
31343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344   (exit $ac_status); }; } &&
31345          { ac_try='test -s conftest$ac_exeext'
31346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31347   (eval $ac_try) 2>&5
31348   ac_status=$?
31349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31350   (exit $ac_status); }; }; then
31351   eval "$as_ac_var=yes"
31352 else
31353   echo "$as_me: failed program was:" >&5
31354 sed 's/^/| /' conftest.$ac_ext >&5
31355
31356 eval "$as_ac_var=no"
31357 fi
31358 rm -f conftest.err conftest.$ac_objext \
31359       conftest$ac_exeext conftest.$ac_ext
31360 fi
31361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31363 if test `eval echo '${'$as_ac_var'}'` = yes; then
31364   cat >>confdefs.h <<_ACEOF
31365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31366 _ACEOF
31367
31368 fi
31369 done
31370
31371
31372                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31373 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31374     cat >conftest.$ac_ext <<_ACEOF
31375 /* confdefs.h.  */
31376 _ACEOF
31377 cat confdefs.h >>conftest.$ac_ext
31378 cat >>conftest.$ac_ext <<_ACEOF
31379 /* end confdefs.h.  */
31380 #include <wchar.h>
31381 int
31382 main ()
31383 {
31384 &_vsnwprintf;
31385   ;
31386   return 0;
31387 }
31388 _ACEOF
31389 rm -f conftest.$ac_objext
31390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31391   (eval $ac_compile) 2>conftest.er1
31392   ac_status=$?
31393   grep -v '^ *+' conftest.er1 >conftest.err
31394   rm -f conftest.er1
31395   cat conftest.err >&5
31396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31397   (exit $ac_status); } &&
31398          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31400   (eval $ac_try) 2>&5
31401   ac_status=$?
31402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31403   (exit $ac_status); }; } &&
31404          { ac_try='test -s conftest.$ac_objext'
31405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31406   (eval $ac_try) 2>&5
31407   ac_status=$?
31408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31409   (exit $ac_status); }; }; then
31410   echo "$as_me:$LINENO: result: yes" >&5
31411 echo "${ECHO_T}yes" >&6
31412                     cat >>confdefs.h <<\_ACEOF
31413 #define HAVE__VSNWPRINTF 1
31414 _ACEOF
31415
31416 else
31417   echo "$as_me: failed program was:" >&5
31418 sed 's/^/| /' conftest.$ac_ext >&5
31419
31420 echo "$as_me:$LINENO: result: no" >&5
31421 echo "${ECHO_T}no" >&6
31422 fi
31423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
31424 fi
31425
31426 ac_ext=c
31427 ac_cpp='$CPP $CPPFLAGS'
31428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31431
31432
31433
31434
31435 if test "$TOOLKIT" != "MSW"; then
31436
31437
31438
31439
31440 ac_ext=cc
31441 ac_cpp='$CXXCPP $CPPFLAGS'
31442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31445
31446
31447
31448
31449 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31450 if test "${with_libiconv_prefix+set}" = set; then
31451   withval="$with_libiconv_prefix"
31452
31453     for dir in `echo "$withval" | tr : ' '`; do
31454       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31455       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31456     done
31457
31458 fi;
31459
31460   echo "$as_me:$LINENO: checking for iconv" >&5
31461 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31462 if test "${am_cv_func_iconv+set}" = set; then
31463   echo $ECHO_N "(cached) $ECHO_C" >&6
31464 else
31465
31466     am_cv_func_iconv="no, consider installing GNU libiconv"
31467     am_cv_lib_iconv=no
31468     cat >conftest.$ac_ext <<_ACEOF
31469 /* confdefs.h.  */
31470 _ACEOF
31471 cat confdefs.h >>conftest.$ac_ext
31472 cat >>conftest.$ac_ext <<_ACEOF
31473 /* end confdefs.h.  */
31474 #include <stdlib.h>
31475 #include <iconv.h>
31476 int
31477 main ()
31478 {
31479 iconv_t cd = iconv_open("","");
31480        iconv(cd,NULL,NULL,NULL,NULL);
31481        iconv_close(cd);
31482   ;
31483   return 0;
31484 }
31485 _ACEOF
31486 rm -f conftest.$ac_objext conftest$ac_exeext
31487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31488   (eval $ac_link) 2>conftest.er1
31489   ac_status=$?
31490   grep -v '^ *+' conftest.er1 >conftest.err
31491   rm -f conftest.er1
31492   cat conftest.err >&5
31493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494   (exit $ac_status); } &&
31495          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31497   (eval $ac_try) 2>&5
31498   ac_status=$?
31499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500   (exit $ac_status); }; } &&
31501          { ac_try='test -s conftest$ac_exeext'
31502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31503   (eval $ac_try) 2>&5
31504   ac_status=$?
31505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31506   (exit $ac_status); }; }; then
31507   am_cv_func_iconv=yes
31508 else
31509   echo "$as_me: failed program was:" >&5
31510 sed 's/^/| /' conftest.$ac_ext >&5
31511
31512 fi
31513 rm -f conftest.err conftest.$ac_objext \
31514       conftest$ac_exeext conftest.$ac_ext
31515     if test "$am_cv_func_iconv" != yes; then
31516       am_save_LIBS="$LIBS"
31517       LIBS="$LIBS -liconv"
31518       cat >conftest.$ac_ext <<_ACEOF
31519 /* confdefs.h.  */
31520 _ACEOF
31521 cat confdefs.h >>conftest.$ac_ext
31522 cat >>conftest.$ac_ext <<_ACEOF
31523 /* end confdefs.h.  */
31524 #include <stdlib.h>
31525 #include <iconv.h>
31526 int
31527 main ()
31528 {
31529 iconv_t cd = iconv_open("","");
31530          iconv(cd,NULL,NULL,NULL,NULL);
31531          iconv_close(cd);
31532   ;
31533   return 0;
31534 }
31535 _ACEOF
31536 rm -f conftest.$ac_objext conftest$ac_exeext
31537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31538   (eval $ac_link) 2>conftest.er1
31539   ac_status=$?
31540   grep -v '^ *+' conftest.er1 >conftest.err
31541   rm -f conftest.er1
31542   cat conftest.err >&5
31543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544   (exit $ac_status); } &&
31545          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31547   (eval $ac_try) 2>&5
31548   ac_status=$?
31549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550   (exit $ac_status); }; } &&
31551          { ac_try='test -s conftest$ac_exeext'
31552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31553   (eval $ac_try) 2>&5
31554   ac_status=$?
31555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556   (exit $ac_status); }; }; then
31557   am_cv_lib_iconv=yes
31558         am_cv_func_iconv=yes
31559 else
31560   echo "$as_me: failed program was:" >&5
31561 sed 's/^/| /' conftest.$ac_ext >&5
31562
31563 fi
31564 rm -f conftest.err conftest.$ac_objext \
31565       conftest$ac_exeext conftest.$ac_ext
31566       LIBS="$am_save_LIBS"
31567     fi
31568
31569 fi
31570 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31571 echo "${ECHO_T}$am_cv_func_iconv" >&6
31572   if test "$am_cv_func_iconv" = yes; then
31573
31574 cat >>confdefs.h <<\_ACEOF
31575 #define HAVE_ICONV 1
31576 _ACEOF
31577
31578     echo "$as_me:$LINENO: checking if iconv needs const" >&5
31579 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31580 if test "${wx_cv_func_iconv_const+set}" = set; then
31581   echo $ECHO_N "(cached) $ECHO_C" >&6
31582 else
31583   cat >conftest.$ac_ext <<_ACEOF
31584 /* confdefs.h.  */
31585 _ACEOF
31586 cat confdefs.h >>conftest.$ac_ext
31587 cat >>conftest.$ac_ext <<_ACEOF
31588 /* end confdefs.h.  */
31589
31590 #include <stdlib.h>
31591 #include <iconv.h>
31592 extern
31593 #ifdef __cplusplus
31594 "C"
31595 #endif
31596 #if defined(__STDC__) || defined(__cplusplus)
31597 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31598 #else
31599 size_t iconv();
31600 #endif
31601
31602 int
31603 main ()
31604 {
31605
31606   ;
31607   return 0;
31608 }
31609 _ACEOF
31610 rm -f conftest.$ac_objext
31611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31612   (eval $ac_compile) 2>conftest.er1
31613   ac_status=$?
31614   grep -v '^ *+' conftest.er1 >conftest.err
31615   rm -f conftest.er1
31616   cat conftest.err >&5
31617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31618   (exit $ac_status); } &&
31619          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31621   (eval $ac_try) 2>&5
31622   ac_status=$?
31623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624   (exit $ac_status); }; } &&
31625          { ac_try='test -s conftest.$ac_objext'
31626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31627   (eval $ac_try) 2>&5
31628   ac_status=$?
31629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630   (exit $ac_status); }; }; then
31631   wx_cv_func_iconv_const="no"
31632 else
31633   echo "$as_me: failed program was:" >&5
31634 sed 's/^/| /' conftest.$ac_ext >&5
31635
31636 wx_cv_func_iconv_const="yes"
31637
31638 fi
31639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31640
31641 fi
31642 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31643 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31644
31645     iconv_const=
31646     if test "x$wx_cv_func_iconv_const" = "xyes"; then
31647         iconv_const="const"
31648     fi
31649
31650
31651 cat >>confdefs.h <<_ACEOF
31652 #define ICONV_CONST $iconv_const
31653 _ACEOF
31654
31655   fi
31656   LIBICONV=
31657   if test "$am_cv_lib_iconv" = yes; then
31658     LIBICONV="-liconv"
31659   fi
31660
31661
31662 LIBS="$LIBICONV $LIBS"
31663 ac_ext=c
31664 ac_cpp='$CPP $CPPFLAGS'
31665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31668
31669
31670 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31671
31672 for ac_func in sigaction
31673 do
31674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31675 echo "$as_me:$LINENO: checking for $ac_func" >&5
31676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31677 if eval "test \"\${$as_ac_var+set}\" = set"; then
31678   echo $ECHO_N "(cached) $ECHO_C" >&6
31679 else
31680   cat >conftest.$ac_ext <<_ACEOF
31681 /* confdefs.h.  */
31682 _ACEOF
31683 cat confdefs.h >>conftest.$ac_ext
31684 cat >>conftest.$ac_ext <<_ACEOF
31685 /* end confdefs.h.  */
31686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31687    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31688 #define $ac_func innocuous_$ac_func
31689
31690 /* System header to define __stub macros and hopefully few prototypes,
31691     which can conflict with char $ac_func (); below.
31692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31693     <limits.h> exists even on freestanding compilers.  */
31694
31695 #ifdef __STDC__
31696 # include <limits.h>
31697 #else
31698 # include <assert.h>
31699 #endif
31700
31701 #undef $ac_func
31702
31703 /* Override any gcc2 internal prototype to avoid an error.  */
31704 #ifdef __cplusplus
31705 extern "C"
31706 {
31707 #endif
31708 /* We use char because int might match the return type of a gcc2
31709    builtin and then its argument prototype would still apply.  */
31710 char $ac_func ();
31711 /* The GNU C library defines this for functions which it implements
31712     to always fail with ENOSYS.  Some functions are actually named
31713     something starting with __ and the normal name is an alias.  */
31714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31715 choke me
31716 #else
31717 char (*f) () = $ac_func;
31718 #endif
31719 #ifdef __cplusplus
31720 }
31721 #endif
31722
31723 int
31724 main ()
31725 {
31726 return f != $ac_func;
31727   ;
31728   return 0;
31729 }
31730 _ACEOF
31731 rm -f conftest.$ac_objext conftest$ac_exeext
31732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31733   (eval $ac_link) 2>conftest.er1
31734   ac_status=$?
31735   grep -v '^ *+' conftest.er1 >conftest.err
31736   rm -f conftest.er1
31737   cat conftest.err >&5
31738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739   (exit $ac_status); } &&
31740          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
31741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31742   (eval $ac_try) 2>&5
31743   ac_status=$?
31744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31745   (exit $ac_status); }; } &&
31746          { ac_try='test -s conftest$ac_exeext'
31747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31748   (eval $ac_try) 2>&5
31749   ac_status=$?
31750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31751   (exit $ac_status); }; }; then
31752   eval "$as_ac_var=yes"
31753 else
31754   echo "$as_me: failed program was:" >&5
31755 sed 's/^/| /' conftest.$ac_ext >&5
31756
31757 eval "$as_ac_var=no"
31758 fi
31759 rm -f conftest.err conftest.$ac_objext \
31760       conftest$ac_exeext conftest.$ac_ext
31761 fi
31762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31764 if test `eval echo '${'$as_ac_var'}'` = yes; then
31765   cat >>confdefs.h <<_ACEOF
31766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31767 _ACEOF
31768
31769 fi
31770 done
31771
31772
31773     if test "$ac_cv_func_sigaction" = "no"; then
31774         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
31775 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
31776         wxUSE_ON_FATAL_EXCEPTION=no
31777     fi
31778
31779     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31780
31781
31782       ac_ext=cc
31783 ac_cpp='$CXXCPP $CPPFLAGS'
31784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31787
31788
31789       echo "$as_me:$LINENO: checking for sa_handler type" >&5
31790 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
31791 if test "${wx_cv_type_sa_handler+set}" = set; then
31792   echo $ECHO_N "(cached) $ECHO_C" >&6
31793 else
31794
31795         cat >conftest.$ac_ext <<_ACEOF
31796 /* confdefs.h.  */
31797 _ACEOF
31798 cat confdefs.h >>conftest.$ac_ext
31799 cat >>conftest.$ac_ext <<_ACEOF
31800 /* end confdefs.h.  */
31801 #include <signal.h>
31802 int
31803 main ()
31804 {
31805
31806                         extern void testSigHandler(int);
31807
31808                         struct sigaction sa;
31809                         sa.sa_handler = testSigHandler;
31810
31811   ;
31812   return 0;
31813 }
31814 _ACEOF
31815 rm -f conftest.$ac_objext
31816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31817   (eval $ac_compile) 2>conftest.er1
31818   ac_status=$?
31819   grep -v '^ *+' conftest.er1 >conftest.err
31820   rm -f conftest.er1
31821   cat conftest.err >&5
31822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823   (exit $ac_status); } &&
31824          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31826   (eval $ac_try) 2>&5
31827   ac_status=$?
31828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31829   (exit $ac_status); }; } &&
31830          { ac_try='test -s conftest.$ac_objext'
31831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31832   (eval $ac_try) 2>&5
31833   ac_status=$?
31834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31835   (exit $ac_status); }; }; then
31836
31837                         wx_cv_type_sa_handler=int
31838
31839 else
31840   echo "$as_me: failed program was:" >&5
31841 sed 's/^/| /' conftest.$ac_ext >&5
31842
31843
31844                         wx_cv_type_sa_handler=void
31845
31846 fi
31847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31848
31849 fi
31850 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
31851 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
31852
31853       ac_ext=c
31854 ac_cpp='$CPP $CPPFLAGS'
31855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31858
31859
31860       cat >>confdefs.h <<_ACEOF
31861 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
31862 _ACEOF
31863
31864     fi
31865 fi
31866
31867 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31868
31869
31870     ac_ext=cc
31871 ac_cpp='$CXXCPP $CPPFLAGS'
31872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31875
31876
31877     echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
31878 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
31879 if test "${wx_cv_func_backtrace+set}" = set; then
31880   echo $ECHO_N "(cached) $ECHO_C" >&6
31881 else
31882
31883             cat >conftest.$ac_ext <<_ACEOF
31884 /* confdefs.h.  */
31885 _ACEOF
31886 cat confdefs.h >>conftest.$ac_ext
31887 cat >>conftest.$ac_ext <<_ACEOF
31888 /* end confdefs.h.  */
31889 #include <execinfo.h>
31890 int
31891 main ()
31892 {
31893
31894                     void *trace[1];
31895                     char **messages;
31896
31897                     backtrace(trace, 1);
31898                     messages = backtrace_symbols(trace, 1);
31899
31900   ;
31901   return 0;
31902 }
31903 _ACEOF
31904 rm -f conftest.$ac_objext
31905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31906   (eval $ac_compile) 2>conftest.er1
31907   ac_status=$?
31908   grep -v '^ *+' conftest.er1 >conftest.err
31909   rm -f conftest.er1
31910   cat conftest.err >&5
31911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912   (exit $ac_status); } &&
31913          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31915   (eval $ac_try) 2>&5
31916   ac_status=$?
31917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918   (exit $ac_status); }; } &&
31919          { ac_try='test -s conftest.$ac_objext'
31920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31921   (eval $ac_try) 2>&5
31922   ac_status=$?
31923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924   (exit $ac_status); }; }; then
31925   wx_cv_func_backtrace=yes
31926 else
31927   echo "$as_me: failed program was:" >&5
31928 sed 's/^/| /' conftest.$ac_ext >&5
31929
31930 wx_cv_func_backtrace=no
31931
31932 fi
31933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31934
31935
31936 fi
31937 echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
31938 echo "${ECHO_T}$wx_cv_func_backtrace" >&6
31939
31940
31941     if test "$wx_cv_func_backtrace" = "no"; then
31942         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
31943 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
31944         wxUSE_STACKWALKER=no
31945     else
31946         echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
31947 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
31948 if test "${wx_cv_func_cxa_demangle+set}" = set; then
31949   echo $ECHO_N "(cached) $ECHO_C" >&6
31950 else
31951
31952                 cat >conftest.$ac_ext <<_ACEOF
31953 /* confdefs.h.  */
31954 _ACEOF
31955 cat confdefs.h >>conftest.$ac_ext
31956 cat >>conftest.$ac_ext <<_ACEOF
31957 /* end confdefs.h.  */
31958 #include <cxxabi.h>
31959 int
31960 main ()
31961 {
31962
31963                         int rc;
31964                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
31965
31966   ;
31967   return 0;
31968 }
31969 _ACEOF
31970 rm -f conftest.$ac_objext conftest$ac_exeext
31971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31972   (eval $ac_link) 2>conftest.er1
31973   ac_status=$?
31974   grep -v '^ *+' conftest.er1 >conftest.err
31975   rm -f conftest.er1
31976   cat conftest.err >&5
31977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978   (exit $ac_status); } &&
31979          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
31980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31981   (eval $ac_try) 2>&5
31982   ac_status=$?
31983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31984   (exit $ac_status); }; } &&
31985          { ac_try='test -s conftest$ac_exeext'
31986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31987   (eval $ac_try) 2>&5
31988   ac_status=$?
31989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990   (exit $ac_status); }; }; then
31991   wx_cv_func_cxa_demangle=yes
31992 else
31993   echo "$as_me: failed program was:" >&5
31994 sed 's/^/| /' conftest.$ac_ext >&5
31995
31996 wx_cv_func_cxa_demangle=no
31997
31998 fi
31999 rm -f conftest.err conftest.$ac_objext \
32000       conftest$ac_exeext conftest.$ac_ext
32001
32002
32003 fi
32004 echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
32005 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
32006
32007         if test "$wx_cv_func_cxa_demangle" = "yes"; then
32008             cat >>confdefs.h <<\_ACEOF
32009 #define HAVE_CXA_DEMANGLE 1
32010 _ACEOF
32011
32012         fi
32013     fi
32014
32015     ac_ext=c
32016 ac_cpp='$CPP $CPPFLAGS'
32017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32020
32021 fi
32022
32023 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
32024     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
32025 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
32026     wxUSE_STACKWALKER=no
32027 fi
32028
32029
32030
32031
32032 for ac_func in mkstemp mktemp
32033 do
32034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32035 echo "$as_me:$LINENO: checking for $ac_func" >&5
32036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32037 if eval "test \"\${$as_ac_var+set}\" = set"; then
32038   echo $ECHO_N "(cached) $ECHO_C" >&6
32039 else
32040   cat >conftest.$ac_ext <<_ACEOF
32041 /* confdefs.h.  */
32042 _ACEOF
32043 cat confdefs.h >>conftest.$ac_ext
32044 cat >>conftest.$ac_ext <<_ACEOF
32045 /* end confdefs.h.  */
32046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32048 #define $ac_func innocuous_$ac_func
32049
32050 /* System header to define __stub macros and hopefully few prototypes,
32051     which can conflict with char $ac_func (); below.
32052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32053     <limits.h> exists even on freestanding compilers.  */
32054
32055 #ifdef __STDC__
32056 # include <limits.h>
32057 #else
32058 # include <assert.h>
32059 #endif
32060
32061 #undef $ac_func
32062
32063 /* Override any gcc2 internal prototype to avoid an error.  */
32064 #ifdef __cplusplus
32065 extern "C"
32066 {
32067 #endif
32068 /* We use char because int might match the return type of a gcc2
32069    builtin and then its argument prototype would still apply.  */
32070 char $ac_func ();
32071 /* The GNU C library defines this for functions which it implements
32072     to always fail with ENOSYS.  Some functions are actually named
32073     something starting with __ and the normal name is an alias.  */
32074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32075 choke me
32076 #else
32077 char (*f) () = $ac_func;
32078 #endif
32079 #ifdef __cplusplus
32080 }
32081 #endif
32082
32083 int
32084 main ()
32085 {
32086 return f != $ac_func;
32087   ;
32088   return 0;
32089 }
32090 _ACEOF
32091 rm -f conftest.$ac_objext conftest$ac_exeext
32092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32093   (eval $ac_link) 2>conftest.er1
32094   ac_status=$?
32095   grep -v '^ *+' conftest.er1 >conftest.err
32096   rm -f conftest.er1
32097   cat conftest.err >&5
32098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099   (exit $ac_status); } &&
32100          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32102   (eval $ac_try) 2>&5
32103   ac_status=$?
32104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105   (exit $ac_status); }; } &&
32106          { ac_try='test -s conftest$ac_exeext'
32107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32108   (eval $ac_try) 2>&5
32109   ac_status=$?
32110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111   (exit $ac_status); }; }; then
32112   eval "$as_ac_var=yes"
32113 else
32114   echo "$as_me: failed program was:" >&5
32115 sed 's/^/| /' conftest.$ac_ext >&5
32116
32117 eval "$as_ac_var=no"
32118 fi
32119 rm -f conftest.err conftest.$ac_objext \
32120       conftest$ac_exeext conftest.$ac_ext
32121 fi
32122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32124 if test `eval echo '${'$as_ac_var'}'` = yes; then
32125   cat >>confdefs.h <<_ACEOF
32126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32127 _ACEOF
32128  break
32129 fi
32130 done
32131
32132
32133 echo "$as_me:$LINENO: checking for statfs" >&5
32134 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
32135 if test "${wx_cv_func_statfs+set}" = set; then
32136   echo $ECHO_N "(cached) $ECHO_C" >&6
32137 else
32138   cat >conftest.$ac_ext <<_ACEOF
32139 /* confdefs.h.  */
32140 _ACEOF
32141 cat confdefs.h >>conftest.$ac_ext
32142 cat >>conftest.$ac_ext <<_ACEOF
32143 /* end confdefs.h.  */
32144
32145              #if defined(__BSD__)
32146                #include <sys/param.h>
32147                #include <sys/mount.h>
32148              #else
32149                #include <sys/vfs.h>
32150              #endif
32151
32152 int
32153 main ()
32154 {
32155
32156              long l;
32157              struct statfs fs;
32158              statfs("/", &fs);
32159              l = fs.f_bsize;
32160              l += fs.f_blocks;
32161              l += fs.f_bavail;
32162
32163   ;
32164   return 0;
32165 }
32166 _ACEOF
32167 rm -f conftest.$ac_objext
32168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32169   (eval $ac_compile) 2>conftest.er1
32170   ac_status=$?
32171   grep -v '^ *+' conftest.er1 >conftest.err
32172   rm -f conftest.er1
32173   cat conftest.err >&5
32174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32175   (exit $ac_status); } &&
32176          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32178   (eval $ac_try) 2>&5
32179   ac_status=$?
32180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181   (exit $ac_status); }; } &&
32182          { ac_try='test -s conftest.$ac_objext'
32183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32184   (eval $ac_try) 2>&5
32185   ac_status=$?
32186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32187   (exit $ac_status); }; }; then
32188
32189              wx_cv_func_statfs=yes
32190
32191 else
32192   echo "$as_me: failed program was:" >&5
32193 sed 's/^/| /' conftest.$ac_ext >&5
32194
32195
32196              wx_cv_func_statfs=no
32197
32198
32199 fi
32200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32201
32202 fi
32203 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
32204 echo "${ECHO_T}$wx_cv_func_statfs" >&6
32205
32206 if test "$wx_cv_func_statfs" = "yes"; then
32207     wx_cv_type_statvfs_t="struct statfs"
32208     cat >>confdefs.h <<\_ACEOF
32209 #define HAVE_STATFS 1
32210 _ACEOF
32211
32212 else
32213     echo "$as_me:$LINENO: checking for statvfs" >&5
32214 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
32215 if test "${wx_cv_func_statvfs+set}" = set; then
32216   echo $ECHO_N "(cached) $ECHO_C" >&6
32217 else
32218   cat >conftest.$ac_ext <<_ACEOF
32219 /* confdefs.h.  */
32220 _ACEOF
32221 cat confdefs.h >>conftest.$ac_ext
32222 cat >>conftest.$ac_ext <<_ACEOF
32223 /* end confdefs.h.  */
32224
32225                 #include <stddef.h>
32226                 #include <sys/statvfs.h>
32227
32228 int
32229 main ()
32230 {
32231
32232                 statvfs("/", NULL);
32233
32234   ;
32235   return 0;
32236 }
32237 _ACEOF
32238 rm -f conftest.$ac_objext
32239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32240   (eval $ac_compile) 2>conftest.er1
32241   ac_status=$?
32242   grep -v '^ *+' conftest.er1 >conftest.err
32243   rm -f conftest.er1
32244   cat conftest.err >&5
32245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32246   (exit $ac_status); } &&
32247          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32249   (eval $ac_try) 2>&5
32250   ac_status=$?
32251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32252   (exit $ac_status); }; } &&
32253          { ac_try='test -s conftest.$ac_objext'
32254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32255   (eval $ac_try) 2>&5
32256   ac_status=$?
32257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32258   (exit $ac_status); }; }; then
32259   wx_cv_func_statvfs=yes
32260 else
32261   echo "$as_me: failed program was:" >&5
32262 sed 's/^/| /' conftest.$ac_ext >&5
32263
32264 wx_cv_func_statvfs=no
32265
32266 fi
32267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32268
32269 fi
32270 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
32271 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
32272
32273     if test "$wx_cv_func_statvfs" = "yes"; then
32274
32275
32276         ac_ext=cc
32277 ac_cpp='$CXXCPP $CPPFLAGS'
32278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32281
32282
32283         echo "$as_me:$LINENO: checking for statvfs argument type" >&5
32284 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
32285 if test "${wx_cv_type_statvfs_t+set}" = set; then
32286   echo $ECHO_N "(cached) $ECHO_C" >&6
32287 else
32288   cat >conftest.$ac_ext <<_ACEOF
32289 /* confdefs.h.  */
32290 _ACEOF
32291 cat confdefs.h >>conftest.$ac_ext
32292 cat >>conftest.$ac_ext <<_ACEOF
32293 /* end confdefs.h.  */
32294
32295                     #include <sys/statvfs.h>
32296
32297 int
32298 main ()
32299 {
32300
32301                     long l;
32302                     statvfs_t fs;
32303                     statvfs("/", &fs);
32304                     l = fs.f_bsize;
32305                     l += fs.f_blocks;
32306                     l += fs.f_bavail;
32307
32308   ;
32309   return 0;
32310 }
32311 _ACEOF
32312 rm -f conftest.$ac_objext
32313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32314   (eval $ac_compile) 2>conftest.er1
32315   ac_status=$?
32316   grep -v '^ *+' conftest.er1 >conftest.err
32317   rm -f conftest.er1
32318   cat conftest.err >&5
32319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32320   (exit $ac_status); } &&
32321          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32323   (eval $ac_try) 2>&5
32324   ac_status=$?
32325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32326   (exit $ac_status); }; } &&
32327          { ac_try='test -s conftest.$ac_objext'
32328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32329   (eval $ac_try) 2>&5
32330   ac_status=$?
32331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332   (exit $ac_status); }; }; then
32333   wx_cv_type_statvfs_t=statvfs_t
32334 else
32335   echo "$as_me: failed program was:" >&5
32336 sed 's/^/| /' conftest.$ac_ext >&5
32337
32338
32339                     cat >conftest.$ac_ext <<_ACEOF
32340 /* confdefs.h.  */
32341 _ACEOF
32342 cat confdefs.h >>conftest.$ac_ext
32343 cat >>conftest.$ac_ext <<_ACEOF
32344 /* end confdefs.h.  */
32345
32346                             #include <sys/statvfs.h>
32347
32348 int
32349 main ()
32350 {
32351
32352                             long l;
32353                             struct statvfs fs;
32354                             statvfs("/", &fs);
32355                             l = fs.f_bsize;
32356                             l += fs.f_blocks;
32357                             l += fs.f_bavail;
32358
32359   ;
32360   return 0;
32361 }
32362 _ACEOF
32363 rm -f conftest.$ac_objext
32364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32365   (eval $ac_compile) 2>conftest.er1
32366   ac_status=$?
32367   grep -v '^ *+' conftest.er1 >conftest.err
32368   rm -f conftest.er1
32369   cat conftest.err >&5
32370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32371   (exit $ac_status); } &&
32372          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
32373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32374   (eval $ac_try) 2>&5
32375   ac_status=$?
32376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377   (exit $ac_status); }; } &&
32378          { ac_try='test -s conftest.$ac_objext'
32379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32380   (eval $ac_try) 2>&5
32381   ac_status=$?
32382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32383   (exit $ac_status); }; }; then
32384   wx_cv_type_statvfs_t="struct statvfs"
32385 else
32386   echo "$as_me: failed program was:" >&5
32387 sed 's/^/| /' conftest.$ac_ext >&5
32388
32389 wx_cv_type_statvfs_t="unknown"
32390
32391 fi
32392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32393
32394
32395 fi
32396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32397
32398 fi
32399 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32400 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32401
32402         ac_ext=c
32403 ac_cpp='$CPP $CPPFLAGS'
32404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32407
32408
32409         if test "$wx_cv_type_statvfs_t" != "unknown"; then
32410             cat >>confdefs.h <<\_ACEOF
32411 #define HAVE_STATVFS 1
32412 _ACEOF
32413
32414         fi
32415     else
32416                 wx_cv_type_statvfs_t="unknown"
32417     fi
32418 fi
32419
32420 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32421     cat >>confdefs.h <<_ACEOF
32422 #define WX_STATFS_T $wx_cv_type_statvfs_t
32423 _ACEOF
32424
32425 else
32426     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32427 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32428 fi
32429
32430 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32431
32432
32433 for ac_func in fcntl flock
32434 do
32435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32436 echo "$as_me:$LINENO: checking for $ac_func" >&5
32437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32438 if eval "test \"\${$as_ac_var+set}\" = set"; then
32439   echo $ECHO_N "(cached) $ECHO_C" >&6
32440 else
32441   cat >conftest.$ac_ext <<_ACEOF
32442 /* confdefs.h.  */
32443 _ACEOF
32444 cat confdefs.h >>conftest.$ac_ext
32445 cat >>conftest.$ac_ext <<_ACEOF
32446 /* end confdefs.h.  */
32447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32448    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32449 #define $ac_func innocuous_$ac_func
32450
32451 /* System header to define __stub macros and hopefully few prototypes,
32452     which can conflict with char $ac_func (); below.
32453     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32454     <limits.h> exists even on freestanding compilers.  */
32455
32456 #ifdef __STDC__
32457 # include <limits.h>
32458 #else
32459 # include <assert.h>
32460 #endif
32461
32462 #undef $ac_func
32463
32464 /* Override any gcc2 internal prototype to avoid an error.  */
32465 #ifdef __cplusplus
32466 extern "C"
32467 {
32468 #endif
32469 /* We use char because int might match the return type of a gcc2
32470    builtin and then its argument prototype would still apply.  */
32471 char $ac_func ();
32472 /* The GNU C library defines this for functions which it implements
32473     to always fail with ENOSYS.  Some functions are actually named
32474     something starting with __ and the normal name is an alias.  */
32475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32476 choke me
32477 #else
32478 char (*f) () = $ac_func;
32479 #endif
32480 #ifdef __cplusplus
32481 }
32482 #endif
32483
32484 int
32485 main ()
32486 {
32487 return f != $ac_func;
32488   ;
32489   return 0;
32490 }
32491 _ACEOF
32492 rm -f conftest.$ac_objext conftest$ac_exeext
32493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32494   (eval $ac_link) 2>conftest.er1
32495   ac_status=$?
32496   grep -v '^ *+' conftest.er1 >conftest.err
32497   rm -f conftest.er1
32498   cat conftest.err >&5
32499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32500   (exit $ac_status); } &&
32501          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32503   (eval $ac_try) 2>&5
32504   ac_status=$?
32505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32506   (exit $ac_status); }; } &&
32507          { ac_try='test -s conftest$ac_exeext'
32508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32509   (eval $ac_try) 2>&5
32510   ac_status=$?
32511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512   (exit $ac_status); }; }; then
32513   eval "$as_ac_var=yes"
32514 else
32515   echo "$as_me: failed program was:" >&5
32516 sed 's/^/| /' conftest.$ac_ext >&5
32517
32518 eval "$as_ac_var=no"
32519 fi
32520 rm -f conftest.err conftest.$ac_objext \
32521       conftest$ac_exeext conftest.$ac_ext
32522 fi
32523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32525 if test `eval echo '${'$as_ac_var'}'` = yes; then
32526   cat >>confdefs.h <<_ACEOF
32527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32528 _ACEOF
32529  break
32530 fi
32531 done
32532
32533
32534     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32535         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32536 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32537         wxUSE_SNGLINST_CHECKER=no
32538     fi
32539 fi
32540
32541
32542 for ac_func in timegm
32543 do
32544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32545 echo "$as_me:$LINENO: checking for $ac_func" >&5
32546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32547 if eval "test \"\${$as_ac_var+set}\" = set"; then
32548   echo $ECHO_N "(cached) $ECHO_C" >&6
32549 else
32550   cat >conftest.$ac_ext <<_ACEOF
32551 /* confdefs.h.  */
32552 _ACEOF
32553 cat confdefs.h >>conftest.$ac_ext
32554 cat >>conftest.$ac_ext <<_ACEOF
32555 /* end confdefs.h.  */
32556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32558 #define $ac_func innocuous_$ac_func
32559
32560 /* System header to define __stub macros and hopefully few prototypes,
32561     which can conflict with char $ac_func (); below.
32562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32563     <limits.h> exists even on freestanding compilers.  */
32564
32565 #ifdef __STDC__
32566 # include <limits.h>
32567 #else
32568 # include <assert.h>
32569 #endif
32570
32571 #undef $ac_func
32572
32573 /* Override any gcc2 internal prototype to avoid an error.  */
32574 #ifdef __cplusplus
32575 extern "C"
32576 {
32577 #endif
32578 /* We use char because int might match the return type of a gcc2
32579    builtin and then its argument prototype would still apply.  */
32580 char $ac_func ();
32581 /* The GNU C library defines this for functions which it implements
32582     to always fail with ENOSYS.  Some functions are actually named
32583     something starting with __ and the normal name is an alias.  */
32584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32585 choke me
32586 #else
32587 char (*f) () = $ac_func;
32588 #endif
32589 #ifdef __cplusplus
32590 }
32591 #endif
32592
32593 int
32594 main ()
32595 {
32596 return f != $ac_func;
32597   ;
32598   return 0;
32599 }
32600 _ACEOF
32601 rm -f conftest.$ac_objext conftest$ac_exeext
32602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32603   (eval $ac_link) 2>conftest.er1
32604   ac_status=$?
32605   grep -v '^ *+' conftest.er1 >conftest.err
32606   rm -f conftest.er1
32607   cat conftest.err >&5
32608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609   (exit $ac_status); } &&
32610          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32612   (eval $ac_try) 2>&5
32613   ac_status=$?
32614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615   (exit $ac_status); }; } &&
32616          { ac_try='test -s conftest$ac_exeext'
32617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32618   (eval $ac_try) 2>&5
32619   ac_status=$?
32620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621   (exit $ac_status); }; }; then
32622   eval "$as_ac_var=yes"
32623 else
32624   echo "$as_me: failed program was:" >&5
32625 sed 's/^/| /' conftest.$ac_ext >&5
32626
32627 eval "$as_ac_var=no"
32628 fi
32629 rm -f conftest.err conftest.$ac_objext \
32630       conftest$ac_exeext conftest.$ac_ext
32631 fi
32632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32634 if test `eval echo '${'$as_ac_var'}'` = yes; then
32635   cat >>confdefs.h <<_ACEOF
32636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32637 _ACEOF
32638
32639 fi
32640 done
32641
32642
32643
32644
32645 for ac_func in putenv setenv
32646 do
32647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32648 echo "$as_me:$LINENO: checking for $ac_func" >&5
32649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32650 if eval "test \"\${$as_ac_var+set}\" = set"; then
32651   echo $ECHO_N "(cached) $ECHO_C" >&6
32652 else
32653   cat >conftest.$ac_ext <<_ACEOF
32654 /* confdefs.h.  */
32655 _ACEOF
32656 cat confdefs.h >>conftest.$ac_ext
32657 cat >>conftest.$ac_ext <<_ACEOF
32658 /* end confdefs.h.  */
32659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32661 #define $ac_func innocuous_$ac_func
32662
32663 /* System header to define __stub macros and hopefully few prototypes,
32664     which can conflict with char $ac_func (); below.
32665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32666     <limits.h> exists even on freestanding compilers.  */
32667
32668 #ifdef __STDC__
32669 # include <limits.h>
32670 #else
32671 # include <assert.h>
32672 #endif
32673
32674 #undef $ac_func
32675
32676 /* Override any gcc2 internal prototype to avoid an error.  */
32677 #ifdef __cplusplus
32678 extern "C"
32679 {
32680 #endif
32681 /* We use char because int might match the return type of a gcc2
32682    builtin and then its argument prototype would still apply.  */
32683 char $ac_func ();
32684 /* The GNU C library defines this for functions which it implements
32685     to always fail with ENOSYS.  Some functions are actually named
32686     something starting with __ and the normal name is an alias.  */
32687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32688 choke me
32689 #else
32690 char (*f) () = $ac_func;
32691 #endif
32692 #ifdef __cplusplus
32693 }
32694 #endif
32695
32696 int
32697 main ()
32698 {
32699 return f != $ac_func;
32700   ;
32701   return 0;
32702 }
32703 _ACEOF
32704 rm -f conftest.$ac_objext conftest$ac_exeext
32705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32706   (eval $ac_link) 2>conftest.er1
32707   ac_status=$?
32708   grep -v '^ *+' conftest.er1 >conftest.err
32709   rm -f conftest.er1
32710   cat conftest.err >&5
32711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32712   (exit $ac_status); } &&
32713          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32715   (eval $ac_try) 2>&5
32716   ac_status=$?
32717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32718   (exit $ac_status); }; } &&
32719          { ac_try='test -s conftest$ac_exeext'
32720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32721   (eval $ac_try) 2>&5
32722   ac_status=$?
32723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32724   (exit $ac_status); }; }; then
32725   eval "$as_ac_var=yes"
32726 else
32727   echo "$as_me: failed program was:" >&5
32728 sed 's/^/| /' conftest.$ac_ext >&5
32729
32730 eval "$as_ac_var=no"
32731 fi
32732 rm -f conftest.err conftest.$ac_objext \
32733       conftest$ac_exeext conftest.$ac_ext
32734 fi
32735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32737 if test `eval echo '${'$as_ac_var'}'` = yes; then
32738   cat >>confdefs.h <<_ACEOF
32739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32740 _ACEOF
32741  break
32742 fi
32743 done
32744
32745
32746 HAVE_SOME_SLEEP_FUNC=0
32747 if test "$USE_BEOS" = 1; then
32748             cat >>confdefs.h <<\_ACEOF
32749 #define HAVE_SLEEP 1
32750 _ACEOF
32751
32752     HAVE_SOME_SLEEP_FUNC=1
32753 fi
32754
32755 if test "$USE_DARWIN" = 1; then
32756             cat >>confdefs.h <<\_ACEOF
32757 #define HAVE_USLEEP 1
32758 _ACEOF
32759
32760     HAVE_SOME_SLEEP_FUNC=1
32761 fi
32762
32763 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32764         POSIX4_LINK=
32765
32766 for ac_func in nanosleep
32767 do
32768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32769 echo "$as_me:$LINENO: checking for $ac_func" >&5
32770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32771 if eval "test \"\${$as_ac_var+set}\" = set"; then
32772   echo $ECHO_N "(cached) $ECHO_C" >&6
32773 else
32774   cat >conftest.$ac_ext <<_ACEOF
32775 /* confdefs.h.  */
32776 _ACEOF
32777 cat confdefs.h >>conftest.$ac_ext
32778 cat >>conftest.$ac_ext <<_ACEOF
32779 /* end confdefs.h.  */
32780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32782 #define $ac_func innocuous_$ac_func
32783
32784 /* System header to define __stub macros and hopefully few prototypes,
32785     which can conflict with char $ac_func (); below.
32786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32787     <limits.h> exists even on freestanding compilers.  */
32788
32789 #ifdef __STDC__
32790 # include <limits.h>
32791 #else
32792 # include <assert.h>
32793 #endif
32794
32795 #undef $ac_func
32796
32797 /* Override any gcc2 internal prototype to avoid an error.  */
32798 #ifdef __cplusplus
32799 extern "C"
32800 {
32801 #endif
32802 /* We use char because int might match the return type of a gcc2
32803    builtin and then its argument prototype would still apply.  */
32804 char $ac_func ();
32805 /* The GNU C library defines this for functions which it implements
32806     to always fail with ENOSYS.  Some functions are actually named
32807     something starting with __ and the normal name is an alias.  */
32808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32809 choke me
32810 #else
32811 char (*f) () = $ac_func;
32812 #endif
32813 #ifdef __cplusplus
32814 }
32815 #endif
32816
32817 int
32818 main ()
32819 {
32820 return f != $ac_func;
32821   ;
32822   return 0;
32823 }
32824 _ACEOF
32825 rm -f conftest.$ac_objext conftest$ac_exeext
32826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32827   (eval $ac_link) 2>conftest.er1
32828   ac_status=$?
32829   grep -v '^ *+' conftest.er1 >conftest.err
32830   rm -f conftest.er1
32831   cat conftest.err >&5
32832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833   (exit $ac_status); } &&
32834          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32836   (eval $ac_try) 2>&5
32837   ac_status=$?
32838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32839   (exit $ac_status); }; } &&
32840          { ac_try='test -s conftest$ac_exeext'
32841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32842   (eval $ac_try) 2>&5
32843   ac_status=$?
32844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32845   (exit $ac_status); }; }; then
32846   eval "$as_ac_var=yes"
32847 else
32848   echo "$as_me: failed program was:" >&5
32849 sed 's/^/| /' conftest.$ac_ext >&5
32850
32851 eval "$as_ac_var=no"
32852 fi
32853 rm -f conftest.err conftest.$ac_objext \
32854       conftest$ac_exeext conftest.$ac_ext
32855 fi
32856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32858 if test `eval echo '${'$as_ac_var'}'` = yes; then
32859   cat >>confdefs.h <<_ACEOF
32860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32861 _ACEOF
32862  cat >>confdefs.h <<\_ACEOF
32863 #define HAVE_NANOSLEEP 1
32864 _ACEOF
32865
32866 else
32867
32868             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
32869 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
32870 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
32871   echo $ECHO_N "(cached) $ECHO_C" >&6
32872 else
32873   ac_check_lib_save_LIBS=$LIBS
32874 LIBS="-lposix4  $LIBS"
32875 cat >conftest.$ac_ext <<_ACEOF
32876 /* confdefs.h.  */
32877 _ACEOF
32878 cat confdefs.h >>conftest.$ac_ext
32879 cat >>conftest.$ac_ext <<_ACEOF
32880 /* end confdefs.h.  */
32881
32882 /* Override any gcc2 internal prototype to avoid an error.  */
32883 #ifdef __cplusplus
32884 extern "C"
32885 #endif
32886 /* We use char because int might match the return type of a gcc2
32887    builtin and then its argument prototype would still apply.  */
32888 char nanosleep ();
32889 int
32890 main ()
32891 {
32892 nanosleep ();
32893   ;
32894   return 0;
32895 }
32896 _ACEOF
32897 rm -f conftest.$ac_objext conftest$ac_exeext
32898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32899   (eval $ac_link) 2>conftest.er1
32900   ac_status=$?
32901   grep -v '^ *+' conftest.er1 >conftest.err
32902   rm -f conftest.er1
32903   cat conftest.err >&5
32904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32905   (exit $ac_status); } &&
32906          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
32907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32908   (eval $ac_try) 2>&5
32909   ac_status=$?
32910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32911   (exit $ac_status); }; } &&
32912          { ac_try='test -s conftest$ac_exeext'
32913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32914   (eval $ac_try) 2>&5
32915   ac_status=$?
32916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32917   (exit $ac_status); }; }; then
32918   ac_cv_lib_posix4_nanosleep=yes
32919 else
32920   echo "$as_me: failed program was:" >&5
32921 sed 's/^/| /' conftest.$ac_ext >&5
32922
32923 ac_cv_lib_posix4_nanosleep=no
32924 fi
32925 rm -f conftest.err conftest.$ac_objext \
32926       conftest$ac_exeext conftest.$ac_ext
32927 LIBS=$ac_check_lib_save_LIBS
32928 fi
32929 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
32930 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
32931 if test $ac_cv_lib_posix4_nanosleep = yes; then
32932
32933                     cat >>confdefs.h <<\_ACEOF
32934 #define HAVE_NANOSLEEP 1
32935 _ACEOF
32936
32937                     POSIX4_LINK=" -lposix4"
32938
32939 else
32940
32941
32942 for ac_func in usleep
32943 do
32944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32945 echo "$as_me:$LINENO: checking for $ac_func" >&5
32946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32947 if eval "test \"\${$as_ac_var+set}\" = set"; then
32948   echo $ECHO_N "(cached) $ECHO_C" >&6
32949 else
32950   cat >conftest.$ac_ext <<_ACEOF
32951 /* confdefs.h.  */
32952 _ACEOF
32953 cat confdefs.h >>conftest.$ac_ext
32954 cat >>conftest.$ac_ext <<_ACEOF
32955 /* end confdefs.h.  */
32956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32958 #define $ac_func innocuous_$ac_func
32959
32960 /* System header to define __stub macros and hopefully few prototypes,
32961     which can conflict with char $ac_func (); below.
32962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32963     <limits.h> exists even on freestanding compilers.  */
32964
32965 #ifdef __STDC__
32966 # include <limits.h>
32967 #else
32968 # include <assert.h>
32969 #endif
32970
32971 #undef $ac_func
32972
32973 /* Override any gcc2 internal prototype to avoid an error.  */
32974 #ifdef __cplusplus
32975 extern "C"
32976 {
32977 #endif
32978 /* We use char because int might match the return type of a gcc2
32979    builtin and then its argument prototype would still apply.  */
32980 char $ac_func ();
32981 /* The GNU C library defines this for functions which it implements
32982     to always fail with ENOSYS.  Some functions are actually named
32983     something starting with __ and the normal name is an alias.  */
32984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32985 choke me
32986 #else
32987 char (*f) () = $ac_func;
32988 #endif
32989 #ifdef __cplusplus
32990 }
32991 #endif
32992
32993 int
32994 main ()
32995 {
32996 return f != $ac_func;
32997   ;
32998   return 0;
32999 }
33000 _ACEOF
33001 rm -f conftest.$ac_objext conftest$ac_exeext
33002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33003   (eval $ac_link) 2>conftest.er1
33004   ac_status=$?
33005   grep -v '^ *+' conftest.er1 >conftest.err
33006   rm -f conftest.er1
33007   cat conftest.err >&5
33008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009   (exit $ac_status); } &&
33010          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33012   (eval $ac_try) 2>&5
33013   ac_status=$?
33014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33015   (exit $ac_status); }; } &&
33016          { ac_try='test -s conftest$ac_exeext'
33017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33018   (eval $ac_try) 2>&5
33019   ac_status=$?
33020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33021   (exit $ac_status); }; }; then
33022   eval "$as_ac_var=yes"
33023 else
33024   echo "$as_me: failed program was:" >&5
33025 sed 's/^/| /' conftest.$ac_ext >&5
33026
33027 eval "$as_ac_var=no"
33028 fi
33029 rm -f conftest.err conftest.$ac_objext \
33030       conftest$ac_exeext conftest.$ac_ext
33031 fi
33032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33034 if test `eval echo '${'$as_ac_var'}'` = yes; then
33035   cat >>confdefs.h <<_ACEOF
33036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33037 _ACEOF
33038  cat >>confdefs.h <<\_ACEOF
33039 #define HAVE_USLEEP 1
33040 _ACEOF
33041
33042 else
33043   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
33044 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
33045
33046 fi
33047 done
33048
33049
33050
33051 fi
33052
33053
33054
33055 fi
33056 done
33057
33058 fi
33059
33060
33061
33062 for ac_func in uname gethostname
33063 do
33064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33065 echo "$as_me:$LINENO: checking for $ac_func" >&5
33066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33067 if eval "test \"\${$as_ac_var+set}\" = set"; then
33068   echo $ECHO_N "(cached) $ECHO_C" >&6
33069 else
33070   cat >conftest.$ac_ext <<_ACEOF
33071 /* confdefs.h.  */
33072 _ACEOF
33073 cat confdefs.h >>conftest.$ac_ext
33074 cat >>conftest.$ac_ext <<_ACEOF
33075 /* end confdefs.h.  */
33076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33078 #define $ac_func innocuous_$ac_func
33079
33080 /* System header to define __stub macros and hopefully few prototypes,
33081     which can conflict with char $ac_func (); below.
33082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33083     <limits.h> exists even on freestanding compilers.  */
33084
33085 #ifdef __STDC__
33086 # include <limits.h>
33087 #else
33088 # include <assert.h>
33089 #endif
33090
33091 #undef $ac_func
33092
33093 /* Override any gcc2 internal prototype to avoid an error.  */
33094 #ifdef __cplusplus
33095 extern "C"
33096 {
33097 #endif
33098 /* We use char because int might match the return type of a gcc2
33099    builtin and then its argument prototype would still apply.  */
33100 char $ac_func ();
33101 /* The GNU C library defines this for functions which it implements
33102     to always fail with ENOSYS.  Some functions are actually named
33103     something starting with __ and the normal name is an alias.  */
33104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33105 choke me
33106 #else
33107 char (*f) () = $ac_func;
33108 #endif
33109 #ifdef __cplusplus
33110 }
33111 #endif
33112
33113 int
33114 main ()
33115 {
33116 return f != $ac_func;
33117   ;
33118   return 0;
33119 }
33120 _ACEOF
33121 rm -f conftest.$ac_objext conftest$ac_exeext
33122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33123   (eval $ac_link) 2>conftest.er1
33124   ac_status=$?
33125   grep -v '^ *+' conftest.er1 >conftest.err
33126   rm -f conftest.er1
33127   cat conftest.err >&5
33128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129   (exit $ac_status); } &&
33130          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33132   (eval $ac_try) 2>&5
33133   ac_status=$?
33134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33135   (exit $ac_status); }; } &&
33136          { ac_try='test -s conftest$ac_exeext'
33137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33138   (eval $ac_try) 2>&5
33139   ac_status=$?
33140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141   (exit $ac_status); }; }; then
33142   eval "$as_ac_var=yes"
33143 else
33144   echo "$as_me: failed program was:" >&5
33145 sed 's/^/| /' conftest.$ac_ext >&5
33146
33147 eval "$as_ac_var=no"
33148 fi
33149 rm -f conftest.err conftest.$ac_objext \
33150       conftest$ac_exeext conftest.$ac_ext
33151 fi
33152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33154 if test `eval echo '${'$as_ac_var'}'` = yes; then
33155   cat >>confdefs.h <<_ACEOF
33156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33157 _ACEOF
33158  break
33159 fi
33160 done
33161
33162
33163
33164
33165 ac_ext=cc
33166 ac_cpp='$CXXCPP $CPPFLAGS'
33167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33170
33171
33172
33173 for ac_func in strtok_r
33174 do
33175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33176 echo "$as_me:$LINENO: checking for $ac_func" >&5
33177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33178 if eval "test \"\${$as_ac_var+set}\" = set"; then
33179   echo $ECHO_N "(cached) $ECHO_C" >&6
33180 else
33181   cat >conftest.$ac_ext <<_ACEOF
33182 /* confdefs.h.  */
33183 _ACEOF
33184 cat confdefs.h >>conftest.$ac_ext
33185 cat >>conftest.$ac_ext <<_ACEOF
33186 /* end confdefs.h.  */
33187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33188    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33189 #define $ac_func innocuous_$ac_func
33190
33191 /* System header to define __stub macros and hopefully few prototypes,
33192     which can conflict with char $ac_func (); below.
33193     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33194     <limits.h> exists even on freestanding compilers.  */
33195
33196 #ifdef __STDC__
33197 # include <limits.h>
33198 #else
33199 # include <assert.h>
33200 #endif
33201
33202 #undef $ac_func
33203
33204 /* Override any gcc2 internal prototype to avoid an error.  */
33205 #ifdef __cplusplus
33206 extern "C"
33207 {
33208 #endif
33209 /* We use char because int might match the return type of a gcc2
33210    builtin and then its argument prototype would still apply.  */
33211 char $ac_func ();
33212 /* The GNU C library defines this for functions which it implements
33213     to always fail with ENOSYS.  Some functions are actually named
33214     something starting with __ and the normal name is an alias.  */
33215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33216 choke me
33217 #else
33218 char (*f) () = $ac_func;
33219 #endif
33220 #ifdef __cplusplus
33221 }
33222 #endif
33223
33224 int
33225 main ()
33226 {
33227 return f != $ac_func;
33228   ;
33229   return 0;
33230 }
33231 _ACEOF
33232 rm -f conftest.$ac_objext conftest$ac_exeext
33233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33234   (eval $ac_link) 2>conftest.er1
33235   ac_status=$?
33236   grep -v '^ *+' conftest.er1 >conftest.err
33237   rm -f conftest.er1
33238   cat conftest.err >&5
33239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33240   (exit $ac_status); } &&
33241          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
33242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33243   (eval $ac_try) 2>&5
33244   ac_status=$?
33245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246   (exit $ac_status); }; } &&
33247          { ac_try='test -s conftest$ac_exeext'
33248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33249   (eval $ac_try) 2>&5
33250   ac_status=$?
33251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252   (exit $ac_status); }; }; then
33253   eval "$as_ac_var=yes"
33254 else
33255   echo "$as_me: failed program was:" >&5
33256 sed 's/^/| /' conftest.$ac_ext >&5
33257
33258 eval "$as_ac_var=no"
33259 fi
33260 rm -f conftest.err conftest.$ac_objext \
33261       conftest$ac_exeext conftest.$ac_ext
33262 fi
33263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33265 if test `eval echo '${'$as_ac_var'}'` = yes; then
33266   cat >>confdefs.h <<_ACEOF
33267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33268 _ACEOF
33269
33270 fi
33271 done
33272
33273
33274 ac_ext=c
33275 ac_cpp='$CPP $CPPFLAGS'
33276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33279
33280
33281 INET_LINK=
33282
33283 for ac_func in inet_addr
33284 do
33285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33286 echo "$as_me:$LINENO: checking for $ac_func" >&5
33287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33288 if eval "test \"\${$as_ac_var+set}\" = set"; then
33289   echo $ECHO_N "(cached) $ECHO_C" >&6
33290 else
33291   cat >conftest.$ac_ext <<_ACEOF
33292 /* confdefs.h.  */
33293 _ACEOF
33294 cat confdefs.h >>conftest.$ac_ext
33295 cat >>conftest.$ac_ext <<_ACEOF
33296 /* end confdefs.h.  */
33297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33298    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33299 #define $ac_func innocuous_$ac_func
33300
33301 /* System header to define __stub macros and hopefully few prototypes,
33302     which can conflict with char $ac_func (); below.
33303     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33304     <limits.h> exists even on freestanding compilers.  */
33305
33306 #ifdef __STDC__
33307 # include <limits.h>
33308 #else
33309 # include <assert.h>
33310 #endif
33311
33312 #undef $ac_func
33313
33314 /* Override any gcc2 internal prototype to avoid an error.  */
33315 #ifdef __cplusplus
33316 extern "C"
33317 {
33318 #endif
33319 /* We use char because int might match the return type of a gcc2
33320    builtin and then its argument prototype would still apply.  */
33321 char $ac_func ();
33322 /* The GNU C library defines this for functions which it implements
33323     to always fail with ENOSYS.  Some functions are actually named
33324     something starting with __ and the normal name is an alias.  */
33325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33326 choke me
33327 #else
33328 char (*f) () = $ac_func;
33329 #endif
33330 #ifdef __cplusplus
33331 }
33332 #endif
33333
33334 int
33335 main ()
33336 {
33337 return f != $ac_func;
33338   ;
33339   return 0;
33340 }
33341 _ACEOF
33342 rm -f conftest.$ac_objext conftest$ac_exeext
33343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33344   (eval $ac_link) 2>conftest.er1
33345   ac_status=$?
33346   grep -v '^ *+' conftest.er1 >conftest.err
33347   rm -f conftest.er1
33348   cat conftest.err >&5
33349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33350   (exit $ac_status); } &&
33351          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33353   (eval $ac_try) 2>&5
33354   ac_status=$?
33355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356   (exit $ac_status); }; } &&
33357          { ac_try='test -s conftest$ac_exeext'
33358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33359   (eval $ac_try) 2>&5
33360   ac_status=$?
33361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362   (exit $ac_status); }; }; then
33363   eval "$as_ac_var=yes"
33364 else
33365   echo "$as_me: failed program was:" >&5
33366 sed 's/^/| /' conftest.$ac_ext >&5
33367
33368 eval "$as_ac_var=no"
33369 fi
33370 rm -f conftest.err conftest.$ac_objext \
33371       conftest$ac_exeext conftest.$ac_ext
33372 fi
33373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33375 if test `eval echo '${'$as_ac_var'}'` = yes; then
33376   cat >>confdefs.h <<_ACEOF
33377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33378 _ACEOF
33379  cat >>confdefs.h <<\_ACEOF
33380 #define HAVE_INET_ADDR 1
33381 _ACEOF
33382
33383 else
33384
33385         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33386 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33387 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33388   echo $ECHO_N "(cached) $ECHO_C" >&6
33389 else
33390   ac_check_lib_save_LIBS=$LIBS
33391 LIBS="-lnsl  $LIBS"
33392 cat >conftest.$ac_ext <<_ACEOF
33393 /* confdefs.h.  */
33394 _ACEOF
33395 cat confdefs.h >>conftest.$ac_ext
33396 cat >>conftest.$ac_ext <<_ACEOF
33397 /* end confdefs.h.  */
33398
33399 /* Override any gcc2 internal prototype to avoid an error.  */
33400 #ifdef __cplusplus
33401 extern "C"
33402 #endif
33403 /* We use char because int might match the return type of a gcc2
33404    builtin and then its argument prototype would still apply.  */
33405 char inet_addr ();
33406 int
33407 main ()
33408 {
33409 inet_addr ();
33410   ;
33411   return 0;
33412 }
33413 _ACEOF
33414 rm -f conftest.$ac_objext conftest$ac_exeext
33415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33416   (eval $ac_link) 2>conftest.er1
33417   ac_status=$?
33418   grep -v '^ *+' conftest.er1 >conftest.err
33419   rm -f conftest.er1
33420   cat conftest.err >&5
33421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33422   (exit $ac_status); } &&
33423          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33425   (eval $ac_try) 2>&5
33426   ac_status=$?
33427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33428   (exit $ac_status); }; } &&
33429          { ac_try='test -s conftest$ac_exeext'
33430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33431   (eval $ac_try) 2>&5
33432   ac_status=$?
33433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434   (exit $ac_status); }; }; then
33435   ac_cv_lib_nsl_inet_addr=yes
33436 else
33437   echo "$as_me: failed program was:" >&5
33438 sed 's/^/| /' conftest.$ac_ext >&5
33439
33440 ac_cv_lib_nsl_inet_addr=no
33441 fi
33442 rm -f conftest.err conftest.$ac_objext \
33443       conftest$ac_exeext conftest.$ac_ext
33444 LIBS=$ac_check_lib_save_LIBS
33445 fi
33446 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33447 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33448 if test $ac_cv_lib_nsl_inet_addr = yes; then
33449   INET_LINK="nsl"
33450 else
33451
33452                 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33453 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33454 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33455   echo $ECHO_N "(cached) $ECHO_C" >&6
33456 else
33457   ac_check_lib_save_LIBS=$LIBS
33458 LIBS="-lresolv  $LIBS"
33459 cat >conftest.$ac_ext <<_ACEOF
33460 /* confdefs.h.  */
33461 _ACEOF
33462 cat confdefs.h >>conftest.$ac_ext
33463 cat >>conftest.$ac_ext <<_ACEOF
33464 /* end confdefs.h.  */
33465
33466 /* Override any gcc2 internal prototype to avoid an error.  */
33467 #ifdef __cplusplus
33468 extern "C"
33469 #endif
33470 /* We use char because int might match the return type of a gcc2
33471    builtin and then its argument prototype would still apply.  */
33472 char inet_addr ();
33473 int
33474 main ()
33475 {
33476 inet_addr ();
33477   ;
33478   return 0;
33479 }
33480 _ACEOF
33481 rm -f conftest.$ac_objext conftest$ac_exeext
33482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33483   (eval $ac_link) 2>conftest.er1
33484   ac_status=$?
33485   grep -v '^ *+' conftest.er1 >conftest.err
33486   rm -f conftest.er1
33487   cat conftest.err >&5
33488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33489   (exit $ac_status); } &&
33490          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33492   (eval $ac_try) 2>&5
33493   ac_status=$?
33494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33495   (exit $ac_status); }; } &&
33496          { ac_try='test -s conftest$ac_exeext'
33497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33498   (eval $ac_try) 2>&5
33499   ac_status=$?
33500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33501   (exit $ac_status); }; }; then
33502   ac_cv_lib_resolv_inet_addr=yes
33503 else
33504   echo "$as_me: failed program was:" >&5
33505 sed 's/^/| /' conftest.$ac_ext >&5
33506
33507 ac_cv_lib_resolv_inet_addr=no
33508 fi
33509 rm -f conftest.err conftest.$ac_objext \
33510       conftest$ac_exeext conftest.$ac_ext
33511 LIBS=$ac_check_lib_save_LIBS
33512 fi
33513 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33514 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33515 if test $ac_cv_lib_resolv_inet_addr = yes; then
33516   INET_LINK="resolv"
33517 else
33518
33519                         echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33520 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33521 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33522   echo $ECHO_N "(cached) $ECHO_C" >&6
33523 else
33524   ac_check_lib_save_LIBS=$LIBS
33525 LIBS="-lsocket  $LIBS"
33526 cat >conftest.$ac_ext <<_ACEOF
33527 /* confdefs.h.  */
33528 _ACEOF
33529 cat confdefs.h >>conftest.$ac_ext
33530 cat >>conftest.$ac_ext <<_ACEOF
33531 /* end confdefs.h.  */
33532
33533 /* Override any gcc2 internal prototype to avoid an error.  */
33534 #ifdef __cplusplus
33535 extern "C"
33536 #endif
33537 /* We use char because int might match the return type of a gcc2
33538    builtin and then its argument prototype would still apply.  */
33539 char inet_addr ();
33540 int
33541 main ()
33542 {
33543 inet_addr ();
33544   ;
33545   return 0;
33546 }
33547 _ACEOF
33548 rm -f conftest.$ac_objext conftest$ac_exeext
33549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33550   (eval $ac_link) 2>conftest.er1
33551   ac_status=$?
33552   grep -v '^ *+' conftest.er1 >conftest.err
33553   rm -f conftest.er1
33554   cat conftest.err >&5
33555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33556   (exit $ac_status); } &&
33557          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33559   (eval $ac_try) 2>&5
33560   ac_status=$?
33561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33562   (exit $ac_status); }; } &&
33563          { ac_try='test -s conftest$ac_exeext'
33564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33565   (eval $ac_try) 2>&5
33566   ac_status=$?
33567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33568   (exit $ac_status); }; }; then
33569   ac_cv_lib_socket_inet_addr=yes
33570 else
33571   echo "$as_me: failed program was:" >&5
33572 sed 's/^/| /' conftest.$ac_ext >&5
33573
33574 ac_cv_lib_socket_inet_addr=no
33575 fi
33576 rm -f conftest.err conftest.$ac_objext \
33577       conftest$ac_exeext conftest.$ac_ext
33578 LIBS=$ac_check_lib_save_LIBS
33579 fi
33580 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33581 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33582 if test $ac_cv_lib_socket_inet_addr = yes; then
33583   INET_LINK="socket"
33584
33585 fi
33586
33587
33588
33589 fi
33590
33591
33592
33593 fi
33594
33595
33596
33597 fi
33598 done
33599
33600
33601
33602 for ac_func in inet_aton
33603 do
33604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33605 echo "$as_me:$LINENO: checking for $ac_func" >&5
33606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33607 if eval "test \"\${$as_ac_var+set}\" = set"; then
33608   echo $ECHO_N "(cached) $ECHO_C" >&6
33609 else
33610   cat >conftest.$ac_ext <<_ACEOF
33611 /* confdefs.h.  */
33612 _ACEOF
33613 cat confdefs.h >>conftest.$ac_ext
33614 cat >>conftest.$ac_ext <<_ACEOF
33615 /* end confdefs.h.  */
33616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33618 #define $ac_func innocuous_$ac_func
33619
33620 /* System header to define __stub macros and hopefully few prototypes,
33621     which can conflict with char $ac_func (); below.
33622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33623     <limits.h> exists even on freestanding compilers.  */
33624
33625 #ifdef __STDC__
33626 # include <limits.h>
33627 #else
33628 # include <assert.h>
33629 #endif
33630
33631 #undef $ac_func
33632
33633 /* Override any gcc2 internal prototype to avoid an error.  */
33634 #ifdef __cplusplus
33635 extern "C"
33636 {
33637 #endif
33638 /* We use char because int might match the return type of a gcc2
33639    builtin and then its argument prototype would still apply.  */
33640 char $ac_func ();
33641 /* The GNU C library defines this for functions which it implements
33642     to always fail with ENOSYS.  Some functions are actually named
33643     something starting with __ and the normal name is an alias.  */
33644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33645 choke me
33646 #else
33647 char (*f) () = $ac_func;
33648 #endif
33649 #ifdef __cplusplus
33650 }
33651 #endif
33652
33653 int
33654 main ()
33655 {
33656 return f != $ac_func;
33657   ;
33658   return 0;
33659 }
33660 _ACEOF
33661 rm -f conftest.$ac_objext conftest$ac_exeext
33662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33663   (eval $ac_link) 2>conftest.er1
33664   ac_status=$?
33665   grep -v '^ *+' conftest.er1 >conftest.err
33666   rm -f conftest.er1
33667   cat conftest.err >&5
33668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33669   (exit $ac_status); } &&
33670          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33672   (eval $ac_try) 2>&5
33673   ac_status=$?
33674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675   (exit $ac_status); }; } &&
33676          { ac_try='test -s conftest$ac_exeext'
33677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33678   (eval $ac_try) 2>&5
33679   ac_status=$?
33680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33681   (exit $ac_status); }; }; then
33682   eval "$as_ac_var=yes"
33683 else
33684   echo "$as_me: failed program was:" >&5
33685 sed 's/^/| /' conftest.$ac_ext >&5
33686
33687 eval "$as_ac_var=no"
33688 fi
33689 rm -f conftest.err conftest.$ac_objext \
33690       conftest$ac_exeext conftest.$ac_ext
33691 fi
33692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33694 if test `eval echo '${'$as_ac_var'}'` = yes; then
33695   cat >>confdefs.h <<_ACEOF
33696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33697 _ACEOF
33698  cat >>confdefs.h <<\_ACEOF
33699 #define HAVE_INET_ATON 1
33700 _ACEOF
33701
33702 else
33703
33704                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33705 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33706 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33707 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33708   echo $ECHO_N "(cached) $ECHO_C" >&6
33709 else
33710   ac_check_lib_save_LIBS=$LIBS
33711 LIBS="-l$INET_LINK  $LIBS"
33712 cat >conftest.$ac_ext <<_ACEOF
33713 /* confdefs.h.  */
33714 _ACEOF
33715 cat confdefs.h >>conftest.$ac_ext
33716 cat >>conftest.$ac_ext <<_ACEOF
33717 /* end confdefs.h.  */
33718
33719 /* Override any gcc2 internal prototype to avoid an error.  */
33720 #ifdef __cplusplus
33721 extern "C"
33722 #endif
33723 /* We use char because int might match the return type of a gcc2
33724    builtin and then its argument prototype would still apply.  */
33725 char inet_aton ();
33726 int
33727 main ()
33728 {
33729 inet_aton ();
33730   ;
33731   return 0;
33732 }
33733 _ACEOF
33734 rm -f conftest.$ac_objext conftest$ac_exeext
33735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33736   (eval $ac_link) 2>conftest.er1
33737   ac_status=$?
33738   grep -v '^ *+' conftest.er1 >conftest.err
33739   rm -f conftest.er1
33740   cat conftest.err >&5
33741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33742   (exit $ac_status); } &&
33743          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33745   (eval $ac_try) 2>&5
33746   ac_status=$?
33747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748   (exit $ac_status); }; } &&
33749          { ac_try='test -s conftest$ac_exeext'
33750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33751   (eval $ac_try) 2>&5
33752   ac_status=$?
33753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33754   (exit $ac_status); }; }; then
33755   eval "$as_ac_Lib=yes"
33756 else
33757   echo "$as_me: failed program was:" >&5
33758 sed 's/^/| /' conftest.$ac_ext >&5
33759
33760 eval "$as_ac_Lib=no"
33761 fi
33762 rm -f conftest.err conftest.$ac_objext \
33763       conftest$ac_exeext conftest.$ac_ext
33764 LIBS=$ac_check_lib_save_LIBS
33765 fi
33766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
33767 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
33768 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33769   cat >>confdefs.h <<\_ACEOF
33770 #define HAVE_INET_ATON 1
33771 _ACEOF
33772
33773 fi
33774
33775
33776 fi
33777 done
33778
33779
33780 if test "x$INET_LINK" != "x"; then
33781     cat >>confdefs.h <<\_ACEOF
33782 #define HAVE_INET_ADDR 1
33783 _ACEOF
33784
33785     INET_LINK=" -l$INET_LINK"
33786 fi
33787
33788 fi
33789
33790
33791
33792 EXTRALIBS_ESD=
33793 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
33794 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
33795 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
33796   echo $ECHO_N "(cached) $ECHO_C" >&6
33797 else
33798   ac_check_lib_save_LIBS=$LIBS
33799 LIBS="-lesd  $LIBS"
33800 cat >conftest.$ac_ext <<_ACEOF
33801 /* confdefs.h.  */
33802 _ACEOF
33803 cat confdefs.h >>conftest.$ac_ext
33804 cat >>conftest.$ac_ext <<_ACEOF
33805 /* end confdefs.h.  */
33806
33807 /* Override any gcc2 internal prototype to avoid an error.  */
33808 #ifdef __cplusplus
33809 extern "C"
33810 #endif
33811 /* We use char because int might match the return type of a gcc2
33812    builtin and then its argument prototype would still apply.  */
33813 char esd_close ();
33814 int
33815 main ()
33816 {
33817 esd_close ();
33818   ;
33819   return 0;
33820 }
33821 _ACEOF
33822 rm -f conftest.$ac_objext conftest$ac_exeext
33823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33824   (eval $ac_link) 2>conftest.er1
33825   ac_status=$?
33826   grep -v '^ *+' conftest.er1 >conftest.err
33827   rm -f conftest.er1
33828   cat conftest.err >&5
33829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33830   (exit $ac_status); } &&
33831          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33833   (eval $ac_try) 2>&5
33834   ac_status=$?
33835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33836   (exit $ac_status); }; } &&
33837          { ac_try='test -s conftest$ac_exeext'
33838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33839   (eval $ac_try) 2>&5
33840   ac_status=$?
33841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33842   (exit $ac_status); }; }; then
33843   ac_cv_lib_esd_esd_close=yes
33844 else
33845   echo "$as_me: failed program was:" >&5
33846 sed 's/^/| /' conftest.$ac_ext >&5
33847
33848 ac_cv_lib_esd_esd_close=no
33849 fi
33850 rm -f conftest.err conftest.$ac_objext \
33851       conftest$ac_exeext conftest.$ac_ext
33852 LIBS=$ac_check_lib_save_LIBS
33853 fi
33854 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
33855 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
33856 if test $ac_cv_lib_esd_esd_close = yes; then
33857
33858
33859 for ac_header in esd.h
33860 do
33861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33863   echo "$as_me:$LINENO: checking for $ac_header" >&5
33864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33866   echo $ECHO_N "(cached) $ECHO_C" >&6
33867 fi
33868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33870 else
33871   # Is the header compilable?
33872 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33873 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33874 cat >conftest.$ac_ext <<_ACEOF
33875 /* confdefs.h.  */
33876 _ACEOF
33877 cat confdefs.h >>conftest.$ac_ext
33878 cat >>conftest.$ac_ext <<_ACEOF
33879 /* end confdefs.h.  */
33880 $ac_includes_default
33881 #include <$ac_header>
33882 _ACEOF
33883 rm -f conftest.$ac_objext
33884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33885   (eval $ac_compile) 2>conftest.er1
33886   ac_status=$?
33887   grep -v '^ *+' conftest.er1 >conftest.err
33888   rm -f conftest.er1
33889   cat conftest.err >&5
33890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33891   (exit $ac_status); } &&
33892          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
33893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33894   (eval $ac_try) 2>&5
33895   ac_status=$?
33896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897   (exit $ac_status); }; } &&
33898          { ac_try='test -s conftest.$ac_objext'
33899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33900   (eval $ac_try) 2>&5
33901   ac_status=$?
33902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33903   (exit $ac_status); }; }; then
33904   ac_header_compiler=yes
33905 else
33906   echo "$as_me: failed program was:" >&5
33907 sed 's/^/| /' conftest.$ac_ext >&5
33908
33909 ac_header_compiler=no
33910 fi
33911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33913 echo "${ECHO_T}$ac_header_compiler" >&6
33914
33915 # Is the header present?
33916 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33918 cat >conftest.$ac_ext <<_ACEOF
33919 /* confdefs.h.  */
33920 _ACEOF
33921 cat confdefs.h >>conftest.$ac_ext
33922 cat >>conftest.$ac_ext <<_ACEOF
33923 /* end confdefs.h.  */
33924 #include <$ac_header>
33925 _ACEOF
33926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33927   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33928   ac_status=$?
33929   grep -v '^ *+' conftest.er1 >conftest.err
33930   rm -f conftest.er1
33931   cat conftest.err >&5
33932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933   (exit $ac_status); } >/dev/null; then
33934   if test -s conftest.err; then
33935     ac_cpp_err=$ac_c_preproc_warn_flag
33936     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33937   else
33938     ac_cpp_err=
33939   fi
33940 else
33941   ac_cpp_err=yes
33942 fi
33943 if test -z "$ac_cpp_err"; then
33944   ac_header_preproc=yes
33945 else
33946   echo "$as_me: failed program was:" >&5
33947 sed 's/^/| /' conftest.$ac_ext >&5
33948
33949   ac_header_preproc=no
33950 fi
33951 rm -f conftest.err conftest.$ac_ext
33952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33953 echo "${ECHO_T}$ac_header_preproc" >&6
33954
33955 # So?  What about this header?
33956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33957   yes:no: )
33958     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33962     ac_header_preproc=yes
33963     ;;
33964   no:yes:* )
33965     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33967     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33968 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33969     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33971     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33972 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33973     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33975     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33977     (
33978       cat <<\_ASBOX
33979 ## ----------------------------------------- ##
33980 ## Report this to wx-dev@lists.wxwidgets.org ##
33981 ## ----------------------------------------- ##
33982 _ASBOX
33983     ) |
33984       sed "s/^/$as_me: WARNING:     /" >&2
33985     ;;
33986 esac
33987 echo "$as_me:$LINENO: checking for $ac_header" >&5
33988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33990   echo $ECHO_N "(cached) $ECHO_C" >&6
33991 else
33992   eval "$as_ac_Header=\$ac_header_preproc"
33993 fi
33994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33996
33997 fi
33998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33999   cat >>confdefs.h <<_ACEOF
34000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34001 _ACEOF
34002
34003     EXTRALIBS_ESD="-lesd"
34004
34005 fi
34006
34007 done
34008
34009
34010 fi
34011
34012
34013
34014 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
34015 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
34016 cat >conftest.$ac_ext <<_ACEOF
34017 /* confdefs.h.  */
34018 _ACEOF
34019 cat confdefs.h >>conftest.$ac_ext
34020 cat >>conftest.$ac_ext <<_ACEOF
34021 /* end confdefs.h.  */
34022 #ifdef __linux__
34023                 #include <linux/cdrom.h>
34024                 #else
34025                 /* For Solaris */
34026                 #include <sys/cdio.h>
34027                 #endif
34028
34029 int
34030 main ()
34031 {
34032 struct cdrom_tocentry entry, old_entry;
34033   ;
34034   return 0;
34035 }
34036 _ACEOF
34037 rm -f conftest.$ac_objext
34038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34039   (eval $ac_compile) 2>conftest.er1
34040   ac_status=$?
34041   grep -v '^ *+' conftest.er1 >conftest.err
34042   rm -f conftest.er1
34043   cat conftest.err >&5
34044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34045   (exit $ac_status); } &&
34046          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34048   (eval $ac_try) 2>&5
34049   ac_status=$?
34050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051   (exit $ac_status); }; } &&
34052          { ac_try='test -s conftest.$ac_objext'
34053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34054   (eval $ac_try) 2>&5
34055   ac_status=$?
34056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057   (exit $ac_status); }; }; then
34058   echo "$as_me:$LINENO: result: yes" >&5
34059 echo "${ECHO_T}yes" >&6
34060                 cat >>confdefs.h <<\_ACEOF
34061 #define HAVE_KNOWN_CDROM_INTERFACE 1
34062 _ACEOF
34063
34064 else
34065   echo "$as_me: failed program was:" >&5
34066 sed 's/^/| /' conftest.$ac_ext >&5
34067
34068 echo "$as_me:$LINENO: result: no" >&5
34069 echo "${ECHO_T}no" >&6
34070 fi
34071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34072
34073
34074 cat >confcache <<\_ACEOF
34075 # This file is a shell script that caches the results of configure
34076 # tests run on this system so they can be shared between configure
34077 # scripts and configure runs, see configure's option --config-cache.
34078 # It is not useful on other systems.  If it contains results you don't
34079 # want to keep, you may remove or edit it.
34080 #
34081 # config.status only pays attention to the cache file if you give it
34082 # the --recheck option to rerun configure.
34083 #
34084 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34085 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34086 # following values.
34087
34088 _ACEOF
34089
34090 # The following way of writing the cache mishandles newlines in values,
34091 # but we know of no workaround that is simple, portable, and efficient.
34092 # So, don't put newlines in cache variables' values.
34093 # Ultrix sh set writes to stderr and can't be redirected directly,
34094 # and sets the high bit in the cache file unless we assign to the vars.
34095 {
34096   (set) 2>&1 |
34097     case `(ac_space=' '; set | grep ac_space) 2>&1` in
34098     *ac_space=\ *)
34099       # `set' does not quote correctly, so add quotes (double-quote
34100       # substitution turns \\\\ into \\, and sed turns \\ into \).
34101       sed -n \
34102         "s/'/'\\\\''/g;
34103           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34104       ;;
34105     *)
34106       # `set' quotes correctly as required by POSIX, so do not add quotes.
34107       sed -n \
34108         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
34109       ;;
34110     esac;
34111 } |
34112   sed '
34113      t clear
34114      : clear
34115      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34116      t end
34117      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34118      : end' >>confcache
34119 if diff $cache_file confcache >/dev/null 2>&1; then :; else
34120   if test -w $cache_file; then
34121     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34122     cat confcache >$cache_file
34123   else
34124     echo "not updating unwritable cache $cache_file"
34125   fi
34126 fi
34127 rm -f confcache
34128
34129
34130 CPP_MT_FLAG=
34131 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34132
34133
34134     THREADS_LINK=
34135     THREADS_CFLAGS=
34136
34137     if test "$wxUSE_THREADS" = "yes" ; then
34138         if test "$USE_BEOS" = 1; then
34139             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
34140 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
34141             wxUSE_THREADS="no"
34142         fi
34143     fi
34144
34145     if test "$wxUSE_THREADS" = "yes" ; then
34146
34147
34148                                 THREAD_OPTS="-pthread"
34149         case "${host}" in
34150           *-*-solaris2* | *-*-sunos4* )
34151                 if test "x$GCC" = "xyes"; then
34152                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
34153                 else
34154                     THREAD_OPTS="-mt $THREAD_OPTS"
34155                 fi
34156                 ;;
34157           *-*-freebsd*)
34158                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
34159                 ;;
34160           *-*-darwin* | *-*-cygwin* )
34161                                                 THREAD_OPTS=""
34162                 ;;
34163           *-*-aix*)
34164                                 THREAD_OPTS="pthreads"
34165                 ;;
34166           *-hp-hpux* )
34167                                                                 if test "x$GCC" != "xyes"; then
34168                     THREAD_OPTS=""
34169                 fi
34170                 ;;
34171
34172           *-*-irix* )
34173                                                                 if test "x$GCC" = "xyes"; then
34174                     THREAD_OPTS=""
34175                 fi
34176                 ;;
34177
34178           *-*-*UnixWare*)
34179                                 if test "x$GCC" != "xyes"; then
34180                     THREAD_OPTS="-Ethread"
34181                 fi
34182                 ;;
34183         esac
34184
34185                                 THREAD_OPTS="$THREAD_OPTS pthread none"
34186
34187                 THREADS_OK=no
34188         for flag in $THREAD_OPTS; do
34189             case $flag in
34190                 none)
34191                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
34192 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
34193                     ;;
34194
34195                 -*)
34196                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
34197 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
34198                     THREADS_CFLAGS="$flag"
34199                     ;;
34200
34201                 *)
34202                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
34203 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
34204                     THREADS_LINK="-l$flag"
34205                     ;;
34206               esac
34207
34208               save_LIBS="$LIBS"
34209               save_CFLAGS="$CFLAGS"
34210               LIBS="$THREADS_LINK $LIBS"
34211               CFLAGS="$THREADS_CFLAGS $CFLAGS"
34212
34213               cat >conftest.$ac_ext <<_ACEOF
34214 /* confdefs.h.  */
34215 _ACEOF
34216 cat confdefs.h >>conftest.$ac_ext
34217 cat >>conftest.$ac_ext <<_ACEOF
34218 /* end confdefs.h.  */
34219 #include <pthread.h>
34220 int
34221 main ()
34222 {
34223 pthread_create(0,0,0,0);
34224   ;
34225   return 0;
34226 }
34227 _ACEOF
34228 rm -f conftest.$ac_objext conftest$ac_exeext
34229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34230   (eval $ac_link) 2>conftest.er1
34231   ac_status=$?
34232   grep -v '^ *+' conftest.er1 >conftest.err
34233   rm -f conftest.er1
34234   cat conftest.err >&5
34235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34236   (exit $ac_status); } &&
34237          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34239   (eval $ac_try) 2>&5
34240   ac_status=$?
34241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34242   (exit $ac_status); }; } &&
34243          { ac_try='test -s conftest$ac_exeext'
34244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34245   (eval $ac_try) 2>&5
34246   ac_status=$?
34247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34248   (exit $ac_status); }; }; then
34249   THREADS_OK=yes
34250 else
34251   echo "$as_me: failed program was:" >&5
34252 sed 's/^/| /' conftest.$ac_ext >&5
34253
34254 fi
34255 rm -f conftest.err conftest.$ac_objext \
34256       conftest$ac_exeext conftest.$ac_ext
34257
34258               LIBS="$save_LIBS"
34259               CFLAGS="$save_CFLAGS"
34260
34261               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
34262 echo "${ECHO_T}$THREADS_OK" >&6
34263               if test "x$THREADS_OK" = "xyes"; then
34264                       break;
34265               fi
34266
34267               THREADS_LINK=""
34268               THREADS_CFLAGS=""
34269       done
34270
34271       if test "x$THREADS_OK" != "xyes"; then
34272           wxUSE_THREADS=no
34273           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
34274 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
34275       else
34276                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
34277           LIBS="$THREADS_LINK $LIBS"
34278
34279           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
34280 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
34281           flag=no
34282           case "${host}" in
34283             *-aix*)
34284                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
34285                 flag="-D_THREAD_SAFE"
34286                 ;;
34287             *-freebsd*)
34288                 flag="-D_THREAD_SAFE"
34289                 ;;
34290             *-hp-hpux* )
34291                 flag="-D_REENTRANT"
34292                 if test "x$GCC" != "xyes"; then
34293                                         flag="$flag -D_RWSTD_MULTI_THREAD"
34294                 fi
34295                 ;;
34296             *solaris* | alpha*-osf*)
34297                 flag="-D_REENTRANT"
34298                 ;;
34299           esac
34300           echo "$as_me:$LINENO: result: ${flag}" >&5
34301 echo "${ECHO_T}${flag}" >&6
34302           if test "x$flag" != xno; then
34303               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
34304           fi
34305
34306           if test "x$THREADS_CFLAGS" != "x"; then
34307                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
34308             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
34309           fi
34310       fi
34311     fi
34312
34313         if test "$wxUSE_THREADS" = "yes" ; then
34314
34315 for ac_func in thr_setconcurrency
34316 do
34317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34318 echo "$as_me:$LINENO: checking for $ac_func" >&5
34319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34320 if eval "test \"\${$as_ac_var+set}\" = set"; then
34321   echo $ECHO_N "(cached) $ECHO_C" >&6
34322 else
34323   cat >conftest.$ac_ext <<_ACEOF
34324 /* confdefs.h.  */
34325 _ACEOF
34326 cat confdefs.h >>conftest.$ac_ext
34327 cat >>conftest.$ac_ext <<_ACEOF
34328 /* end confdefs.h.  */
34329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34331 #define $ac_func innocuous_$ac_func
34332
34333 /* System header to define __stub macros and hopefully few prototypes,
34334     which can conflict with char $ac_func (); below.
34335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34336     <limits.h> exists even on freestanding compilers.  */
34337
34338 #ifdef __STDC__
34339 # include <limits.h>
34340 #else
34341 # include <assert.h>
34342 #endif
34343
34344 #undef $ac_func
34345
34346 /* Override any gcc2 internal prototype to avoid an error.  */
34347 #ifdef __cplusplus
34348 extern "C"
34349 {
34350 #endif
34351 /* We use char because int might match the return type of a gcc2
34352    builtin and then its argument prototype would still apply.  */
34353 char $ac_func ();
34354 /* The GNU C library defines this for functions which it implements
34355     to always fail with ENOSYS.  Some functions are actually named
34356     something starting with __ and the normal name is an alias.  */
34357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34358 choke me
34359 #else
34360 char (*f) () = $ac_func;
34361 #endif
34362 #ifdef __cplusplus
34363 }
34364 #endif
34365
34366 int
34367 main ()
34368 {
34369 return f != $ac_func;
34370   ;
34371   return 0;
34372 }
34373 _ACEOF
34374 rm -f conftest.$ac_objext conftest$ac_exeext
34375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34376   (eval $ac_link) 2>conftest.er1
34377   ac_status=$?
34378   grep -v '^ *+' conftest.er1 >conftest.err
34379   rm -f conftest.er1
34380   cat conftest.err >&5
34381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34382   (exit $ac_status); } &&
34383          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34385   (eval $ac_try) 2>&5
34386   ac_status=$?
34387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34388   (exit $ac_status); }; } &&
34389          { ac_try='test -s conftest$ac_exeext'
34390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34391   (eval $ac_try) 2>&5
34392   ac_status=$?
34393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394   (exit $ac_status); }; }; then
34395   eval "$as_ac_var=yes"
34396 else
34397   echo "$as_me: failed program was:" >&5
34398 sed 's/^/| /' conftest.$ac_ext >&5
34399
34400 eval "$as_ac_var=no"
34401 fi
34402 rm -f conftest.err conftest.$ac_objext \
34403       conftest$ac_exeext conftest.$ac_ext
34404 fi
34405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34407 if test `eval echo '${'$as_ac_var'}'` = yes; then
34408   cat >>confdefs.h <<_ACEOF
34409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34410 _ACEOF
34411
34412 fi
34413 done
34414
34415
34416
34417 for ac_header in sched.h
34418 do
34419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34421   echo "$as_me:$LINENO: checking for $ac_header" >&5
34422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34424   echo $ECHO_N "(cached) $ECHO_C" >&6
34425 fi
34426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34428 else
34429   # Is the header compilable?
34430 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34432 cat >conftest.$ac_ext <<_ACEOF
34433 /* confdefs.h.  */
34434 _ACEOF
34435 cat confdefs.h >>conftest.$ac_ext
34436 cat >>conftest.$ac_ext <<_ACEOF
34437 /* end confdefs.h.  */
34438 $ac_includes_default
34439 #include <$ac_header>
34440 _ACEOF
34441 rm -f conftest.$ac_objext
34442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34443   (eval $ac_compile) 2>conftest.er1
34444   ac_status=$?
34445   grep -v '^ *+' conftest.er1 >conftest.err
34446   rm -f conftest.er1
34447   cat conftest.err >&5
34448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34449   (exit $ac_status); } &&
34450          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34452   (eval $ac_try) 2>&5
34453   ac_status=$?
34454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34455   (exit $ac_status); }; } &&
34456          { ac_try='test -s conftest.$ac_objext'
34457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34458   (eval $ac_try) 2>&5
34459   ac_status=$?
34460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34461   (exit $ac_status); }; }; then
34462   ac_header_compiler=yes
34463 else
34464   echo "$as_me: failed program was:" >&5
34465 sed 's/^/| /' conftest.$ac_ext >&5
34466
34467 ac_header_compiler=no
34468 fi
34469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34471 echo "${ECHO_T}$ac_header_compiler" >&6
34472
34473 # Is the header present?
34474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34476 cat >conftest.$ac_ext <<_ACEOF
34477 /* confdefs.h.  */
34478 _ACEOF
34479 cat confdefs.h >>conftest.$ac_ext
34480 cat >>conftest.$ac_ext <<_ACEOF
34481 /* end confdefs.h.  */
34482 #include <$ac_header>
34483 _ACEOF
34484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34485   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34486   ac_status=$?
34487   grep -v '^ *+' conftest.er1 >conftest.err
34488   rm -f conftest.er1
34489   cat conftest.err >&5
34490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34491   (exit $ac_status); } >/dev/null; then
34492   if test -s conftest.err; then
34493     ac_cpp_err=$ac_c_preproc_warn_flag
34494     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34495   else
34496     ac_cpp_err=
34497   fi
34498 else
34499   ac_cpp_err=yes
34500 fi
34501 if test -z "$ac_cpp_err"; then
34502   ac_header_preproc=yes
34503 else
34504   echo "$as_me: failed program was:" >&5
34505 sed 's/^/| /' conftest.$ac_ext >&5
34506
34507   ac_header_preproc=no
34508 fi
34509 rm -f conftest.err conftest.$ac_ext
34510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34511 echo "${ECHO_T}$ac_header_preproc" >&6
34512
34513 # So?  What about this header?
34514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34515   yes:no: )
34516     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34520     ac_header_preproc=yes
34521     ;;
34522   no:yes:* )
34523     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34525     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34526 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34527     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34529     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34530 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34533     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34535     (
34536       cat <<\_ASBOX
34537 ## ----------------------------------------- ##
34538 ## Report this to wx-dev@lists.wxwidgets.org ##
34539 ## ----------------------------------------- ##
34540 _ASBOX
34541     ) |
34542       sed "s/^/$as_me: WARNING:     /" >&2
34543     ;;
34544 esac
34545 echo "$as_me:$LINENO: checking for $ac_header" >&5
34546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34548   echo $ECHO_N "(cached) $ECHO_C" >&6
34549 else
34550   eval "$as_ac_Header=\$ac_header_preproc"
34551 fi
34552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34554
34555 fi
34556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34557   cat >>confdefs.h <<_ACEOF
34558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34559 _ACEOF
34560
34561 fi
34562
34563 done
34564
34565       if test "$ac_cv_header_sched_h" = "yes"; then
34566           echo "$as_me:$LINENO: checking for sched_yield" >&5
34567 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
34568 if test "${ac_cv_func_sched_yield+set}" = set; then
34569   echo $ECHO_N "(cached) $ECHO_C" >&6
34570 else
34571   cat >conftest.$ac_ext <<_ACEOF
34572 /* confdefs.h.  */
34573 _ACEOF
34574 cat confdefs.h >>conftest.$ac_ext
34575 cat >>conftest.$ac_ext <<_ACEOF
34576 /* end confdefs.h.  */
34577 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34579 #define sched_yield innocuous_sched_yield
34580
34581 /* System header to define __stub macros and hopefully few prototypes,
34582     which can conflict with char sched_yield (); below.
34583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34584     <limits.h> exists even on freestanding compilers.  */
34585
34586 #ifdef __STDC__
34587 # include <limits.h>
34588 #else
34589 # include <assert.h>
34590 #endif
34591
34592 #undef sched_yield
34593
34594 /* Override any gcc2 internal prototype to avoid an error.  */
34595 #ifdef __cplusplus
34596 extern "C"
34597 {
34598 #endif
34599 /* We use char because int might match the return type of a gcc2
34600    builtin and then its argument prototype would still apply.  */
34601 char sched_yield ();
34602 /* The GNU C library defines this for functions which it implements
34603     to always fail with ENOSYS.  Some functions are actually named
34604     something starting with __ and the normal name is an alias.  */
34605 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34606 choke me
34607 #else
34608 char (*f) () = sched_yield;
34609 #endif
34610 #ifdef __cplusplus
34611 }
34612 #endif
34613
34614 int
34615 main ()
34616 {
34617 return f != sched_yield;
34618   ;
34619   return 0;
34620 }
34621 _ACEOF
34622 rm -f conftest.$ac_objext conftest$ac_exeext
34623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34624   (eval $ac_link) 2>conftest.er1
34625   ac_status=$?
34626   grep -v '^ *+' conftest.er1 >conftest.err
34627   rm -f conftest.er1
34628   cat conftest.err >&5
34629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34630   (exit $ac_status); } &&
34631          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34633   (eval $ac_try) 2>&5
34634   ac_status=$?
34635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34636   (exit $ac_status); }; } &&
34637          { ac_try='test -s conftest$ac_exeext'
34638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34639   (eval $ac_try) 2>&5
34640   ac_status=$?
34641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34642   (exit $ac_status); }; }; then
34643   ac_cv_func_sched_yield=yes
34644 else
34645   echo "$as_me: failed program was:" >&5
34646 sed 's/^/| /' conftest.$ac_ext >&5
34647
34648 ac_cv_func_sched_yield=no
34649 fi
34650 rm -f conftest.err conftest.$ac_objext \
34651       conftest$ac_exeext conftest.$ac_ext
34652 fi
34653 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34654 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34655 if test $ac_cv_func_sched_yield = yes; then
34656   cat >>confdefs.h <<\_ACEOF
34657 #define HAVE_SCHED_YIELD 1
34658 _ACEOF
34659
34660 else
34661
34662                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34663 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34664 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34665   echo $ECHO_N "(cached) $ECHO_C" >&6
34666 else
34667   ac_check_lib_save_LIBS=$LIBS
34668 LIBS="-lposix4  $LIBS"
34669 cat >conftest.$ac_ext <<_ACEOF
34670 /* confdefs.h.  */
34671 _ACEOF
34672 cat confdefs.h >>conftest.$ac_ext
34673 cat >>conftest.$ac_ext <<_ACEOF
34674 /* end confdefs.h.  */
34675
34676 /* Override any gcc2 internal prototype to avoid an error.  */
34677 #ifdef __cplusplus
34678 extern "C"
34679 #endif
34680 /* We use char because int might match the return type of a gcc2
34681    builtin and then its argument prototype would still apply.  */
34682 char sched_yield ();
34683 int
34684 main ()
34685 {
34686 sched_yield ();
34687   ;
34688   return 0;
34689 }
34690 _ACEOF
34691 rm -f conftest.$ac_objext conftest$ac_exeext
34692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34693   (eval $ac_link) 2>conftest.er1
34694   ac_status=$?
34695   grep -v '^ *+' conftest.er1 >conftest.err
34696   rm -f conftest.er1
34697   cat conftest.err >&5
34698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34699   (exit $ac_status); } &&
34700          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34702   (eval $ac_try) 2>&5
34703   ac_status=$?
34704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34705   (exit $ac_status); }; } &&
34706          { ac_try='test -s conftest$ac_exeext'
34707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34708   (eval $ac_try) 2>&5
34709   ac_status=$?
34710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34711   (exit $ac_status); }; }; then
34712   ac_cv_lib_posix4_sched_yield=yes
34713 else
34714   echo "$as_me: failed program was:" >&5
34715 sed 's/^/| /' conftest.$ac_ext >&5
34716
34717 ac_cv_lib_posix4_sched_yield=no
34718 fi
34719 rm -f conftest.err conftest.$ac_objext \
34720       conftest$ac_exeext conftest.$ac_ext
34721 LIBS=$ac_check_lib_save_LIBS
34722 fi
34723 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34724 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34725 if test $ac_cv_lib_posix4_sched_yield = yes; then
34726   cat >>confdefs.h <<\_ACEOF
34727 #define HAVE_SCHED_YIELD 1
34728 _ACEOF
34729  POSIX4_LINK=" -lposix4"
34730 else
34731   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34732 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34733
34734 fi
34735
34736
34737
34738 fi
34739
34740       fi
34741
34742                                           HAVE_PRIOR_FUNCS=0
34743       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34744 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34745 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34746   echo $ECHO_N "(cached) $ECHO_C" >&6
34747 else
34748   cat >conftest.$ac_ext <<_ACEOF
34749 /* confdefs.h.  */
34750 _ACEOF
34751 cat confdefs.h >>conftest.$ac_ext
34752 cat >>conftest.$ac_ext <<_ACEOF
34753 /* end confdefs.h.  */
34754 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
34755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34756 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
34757
34758 /* System header to define __stub macros and hopefully few prototypes,
34759     which can conflict with char pthread_attr_getschedpolicy (); below.
34760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34761     <limits.h> exists even on freestanding compilers.  */
34762
34763 #ifdef __STDC__
34764 # include <limits.h>
34765 #else
34766 # include <assert.h>
34767 #endif
34768
34769 #undef pthread_attr_getschedpolicy
34770
34771 /* Override any gcc2 internal prototype to avoid an error.  */
34772 #ifdef __cplusplus
34773 extern "C"
34774 {
34775 #endif
34776 /* We use char because int might match the return type of a gcc2
34777    builtin and then its argument prototype would still apply.  */
34778 char pthread_attr_getschedpolicy ();
34779 /* The GNU C library defines this for functions which it implements
34780     to always fail with ENOSYS.  Some functions are actually named
34781     something starting with __ and the normal name is an alias.  */
34782 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
34783 choke me
34784 #else
34785 char (*f) () = pthread_attr_getschedpolicy;
34786 #endif
34787 #ifdef __cplusplus
34788 }
34789 #endif
34790
34791 int
34792 main ()
34793 {
34794 return f != pthread_attr_getschedpolicy;
34795   ;
34796   return 0;
34797 }
34798 _ACEOF
34799 rm -f conftest.$ac_objext conftest$ac_exeext
34800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34801   (eval $ac_link) 2>conftest.er1
34802   ac_status=$?
34803   grep -v '^ *+' conftest.er1 >conftest.err
34804   rm -f conftest.er1
34805   cat conftest.err >&5
34806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34807   (exit $ac_status); } &&
34808          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34810   (eval $ac_try) 2>&5
34811   ac_status=$?
34812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34813   (exit $ac_status); }; } &&
34814          { ac_try='test -s conftest$ac_exeext'
34815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34816   (eval $ac_try) 2>&5
34817   ac_status=$?
34818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34819   (exit $ac_status); }; }; then
34820   ac_cv_func_pthread_attr_getschedpolicy=yes
34821 else
34822   echo "$as_me: failed program was:" >&5
34823 sed 's/^/| /' conftest.$ac_ext >&5
34824
34825 ac_cv_func_pthread_attr_getschedpolicy=no
34826 fi
34827 rm -f conftest.err conftest.$ac_objext \
34828       conftest$ac_exeext conftest.$ac_ext
34829 fi
34830 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
34831 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
34832 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
34833   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
34834 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
34835 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
34836   echo $ECHO_N "(cached) $ECHO_C" >&6
34837 else
34838   cat >conftest.$ac_ext <<_ACEOF
34839 /* confdefs.h.  */
34840 _ACEOF
34841 cat confdefs.h >>conftest.$ac_ext
34842 cat >>conftest.$ac_ext <<_ACEOF
34843 /* end confdefs.h.  */
34844 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
34845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34846 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
34847
34848 /* System header to define __stub macros and hopefully few prototypes,
34849     which can conflict with char pthread_attr_setschedparam (); below.
34850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34851     <limits.h> exists even on freestanding compilers.  */
34852
34853 #ifdef __STDC__
34854 # include <limits.h>
34855 #else
34856 # include <assert.h>
34857 #endif
34858
34859 #undef pthread_attr_setschedparam
34860
34861 /* Override any gcc2 internal prototype to avoid an error.  */
34862 #ifdef __cplusplus
34863 extern "C"
34864 {
34865 #endif
34866 /* We use char because int might match the return type of a gcc2
34867    builtin and then its argument prototype would still apply.  */
34868 char pthread_attr_setschedparam ();
34869 /* The GNU C library defines this for functions which it implements
34870     to always fail with ENOSYS.  Some functions are actually named
34871     something starting with __ and the normal name is an alias.  */
34872 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
34873 choke me
34874 #else
34875 char (*f) () = pthread_attr_setschedparam;
34876 #endif
34877 #ifdef __cplusplus
34878 }
34879 #endif
34880
34881 int
34882 main ()
34883 {
34884 return f != pthread_attr_setschedparam;
34885   ;
34886   return 0;
34887 }
34888 _ACEOF
34889 rm -f conftest.$ac_objext conftest$ac_exeext
34890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34891   (eval $ac_link) 2>conftest.er1
34892   ac_status=$?
34893   grep -v '^ *+' conftest.er1 >conftest.err
34894   rm -f conftest.er1
34895   cat conftest.err >&5
34896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897   (exit $ac_status); } &&
34898          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34900   (eval $ac_try) 2>&5
34901   ac_status=$?
34902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34903   (exit $ac_status); }; } &&
34904          { ac_try='test -s conftest$ac_exeext'
34905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34906   (eval $ac_try) 2>&5
34907   ac_status=$?
34908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34909   (exit $ac_status); }; }; then
34910   ac_cv_func_pthread_attr_setschedparam=yes
34911 else
34912   echo "$as_me: failed program was:" >&5
34913 sed 's/^/| /' conftest.$ac_ext >&5
34914
34915 ac_cv_func_pthread_attr_setschedparam=no
34916 fi
34917 rm -f conftest.err conftest.$ac_objext \
34918       conftest$ac_exeext conftest.$ac_ext
34919 fi
34920 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
34921 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
34922 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
34923   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
34924 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
34925 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
34926   echo $ECHO_N "(cached) $ECHO_C" >&6
34927 else
34928   cat >conftest.$ac_ext <<_ACEOF
34929 /* confdefs.h.  */
34930 _ACEOF
34931 cat confdefs.h >>conftest.$ac_ext
34932 cat >>conftest.$ac_ext <<_ACEOF
34933 /* end confdefs.h.  */
34934 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
34935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34936 #define sched_get_priority_max innocuous_sched_get_priority_max
34937
34938 /* System header to define __stub macros and hopefully few prototypes,
34939     which can conflict with char sched_get_priority_max (); below.
34940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34941     <limits.h> exists even on freestanding compilers.  */
34942
34943 #ifdef __STDC__
34944 # include <limits.h>
34945 #else
34946 # include <assert.h>
34947 #endif
34948
34949 #undef sched_get_priority_max
34950
34951 /* Override any gcc2 internal prototype to avoid an error.  */
34952 #ifdef __cplusplus
34953 extern "C"
34954 {
34955 #endif
34956 /* We use char because int might match the return type of a gcc2
34957    builtin and then its argument prototype would still apply.  */
34958 char sched_get_priority_max ();
34959 /* The GNU C library defines this for functions which it implements
34960     to always fail with ENOSYS.  Some functions are actually named
34961     something starting with __ and the normal name is an alias.  */
34962 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
34963 choke me
34964 #else
34965 char (*f) () = sched_get_priority_max;
34966 #endif
34967 #ifdef __cplusplus
34968 }
34969 #endif
34970
34971 int
34972 main ()
34973 {
34974 return f != sched_get_priority_max;
34975   ;
34976   return 0;
34977 }
34978 _ACEOF
34979 rm -f conftest.$ac_objext conftest$ac_exeext
34980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34981   (eval $ac_link) 2>conftest.er1
34982   ac_status=$?
34983   grep -v '^ *+' conftest.er1 >conftest.err
34984   rm -f conftest.er1
34985   cat conftest.err >&5
34986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34987   (exit $ac_status); } &&
34988          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
34989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34990   (eval $ac_try) 2>&5
34991   ac_status=$?
34992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34993   (exit $ac_status); }; } &&
34994          { ac_try='test -s conftest$ac_exeext'
34995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34996   (eval $ac_try) 2>&5
34997   ac_status=$?
34998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34999   (exit $ac_status); }; }; then
35000   ac_cv_func_sched_get_priority_max=yes
35001 else
35002   echo "$as_me: failed program was:" >&5
35003 sed 's/^/| /' conftest.$ac_ext >&5
35004
35005 ac_cv_func_sched_get_priority_max=no
35006 fi
35007 rm -f conftest.err conftest.$ac_objext \
35008       conftest$ac_exeext conftest.$ac_ext
35009 fi
35010 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
35011 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
35012 if test $ac_cv_func_sched_get_priority_max = yes; then
35013   HAVE_PRIOR_FUNCS=1
35014 else
35015   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
35016 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
35017 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
35018   echo $ECHO_N "(cached) $ECHO_C" >&6
35019 else
35020   ac_check_lib_save_LIBS=$LIBS
35021 LIBS="-lposix4  $LIBS"
35022 cat >conftest.$ac_ext <<_ACEOF
35023 /* confdefs.h.  */
35024 _ACEOF
35025 cat confdefs.h >>conftest.$ac_ext
35026 cat >>conftest.$ac_ext <<_ACEOF
35027 /* end confdefs.h.  */
35028
35029 /* Override any gcc2 internal prototype to avoid an error.  */
35030 #ifdef __cplusplus
35031 extern "C"
35032 #endif
35033 /* We use char because int might match the return type of a gcc2
35034    builtin and then its argument prototype would still apply.  */
35035 char sched_get_priority_max ();
35036 int
35037 main ()
35038 {
35039 sched_get_priority_max ();
35040   ;
35041   return 0;
35042 }
35043 _ACEOF
35044 rm -f conftest.$ac_objext conftest$ac_exeext
35045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35046   (eval $ac_link) 2>conftest.er1
35047   ac_status=$?
35048   grep -v '^ *+' conftest.er1 >conftest.err
35049   rm -f conftest.er1
35050   cat conftest.err >&5
35051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052   (exit $ac_status); } &&
35053          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35055   (eval $ac_try) 2>&5
35056   ac_status=$?
35057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35058   (exit $ac_status); }; } &&
35059          { ac_try='test -s conftest$ac_exeext'
35060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35061   (eval $ac_try) 2>&5
35062   ac_status=$?
35063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35064   (exit $ac_status); }; }; then
35065   ac_cv_lib_posix4_sched_get_priority_max=yes
35066 else
35067   echo "$as_me: failed program was:" >&5
35068 sed 's/^/| /' conftest.$ac_ext >&5
35069
35070 ac_cv_lib_posix4_sched_get_priority_max=no
35071 fi
35072 rm -f conftest.err conftest.$ac_objext \
35073       conftest$ac_exeext conftest.$ac_ext
35074 LIBS=$ac_check_lib_save_LIBS
35075 fi
35076 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
35077 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
35078 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
35079
35080                                 HAVE_PRIOR_FUNCS=1
35081                                 POSIX4_LINK=" -lposix4"
35082
35083 fi
35084
35085
35086 fi
35087
35088
35089 fi
35090
35091
35092 fi
35093
35094
35095       if test "$HAVE_PRIOR_FUNCS" = 1; then
35096         cat >>confdefs.h <<\_ACEOF
35097 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
35098 _ACEOF
35099
35100       else
35101         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
35102 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
35103       fi
35104
35105       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
35106 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
35107 if test "${ac_cv_func_pthread_cancel+set}" = set; then
35108   echo $ECHO_N "(cached) $ECHO_C" >&6
35109 else
35110   cat >conftest.$ac_ext <<_ACEOF
35111 /* confdefs.h.  */
35112 _ACEOF
35113 cat confdefs.h >>conftest.$ac_ext
35114 cat >>conftest.$ac_ext <<_ACEOF
35115 /* end confdefs.h.  */
35116 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
35117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35118 #define pthread_cancel innocuous_pthread_cancel
35119
35120 /* System header to define __stub macros and hopefully few prototypes,
35121     which can conflict with char pthread_cancel (); below.
35122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35123     <limits.h> exists even on freestanding compilers.  */
35124
35125 #ifdef __STDC__
35126 # include <limits.h>
35127 #else
35128 # include <assert.h>
35129 #endif
35130
35131 #undef pthread_cancel
35132
35133 /* Override any gcc2 internal prototype to avoid an error.  */
35134 #ifdef __cplusplus
35135 extern "C"
35136 {
35137 #endif
35138 /* We use char because int might match the return type of a gcc2
35139    builtin and then its argument prototype would still apply.  */
35140 char pthread_cancel ();
35141 /* The GNU C library defines this for functions which it implements
35142     to always fail with ENOSYS.  Some functions are actually named
35143     something starting with __ and the normal name is an alias.  */
35144 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
35145 choke me
35146 #else
35147 char (*f) () = pthread_cancel;
35148 #endif
35149 #ifdef __cplusplus
35150 }
35151 #endif
35152
35153 int
35154 main ()
35155 {
35156 return f != pthread_cancel;
35157   ;
35158   return 0;
35159 }
35160 _ACEOF
35161 rm -f conftest.$ac_objext conftest$ac_exeext
35162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35163   (eval $ac_link) 2>conftest.er1
35164   ac_status=$?
35165   grep -v '^ *+' conftest.er1 >conftest.err
35166   rm -f conftest.er1
35167   cat conftest.err >&5
35168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35169   (exit $ac_status); } &&
35170          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35172   (eval $ac_try) 2>&5
35173   ac_status=$?
35174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35175   (exit $ac_status); }; } &&
35176          { ac_try='test -s conftest$ac_exeext'
35177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35178   (eval $ac_try) 2>&5
35179   ac_status=$?
35180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35181   (exit $ac_status); }; }; then
35182   ac_cv_func_pthread_cancel=yes
35183 else
35184   echo "$as_me: failed program was:" >&5
35185 sed 's/^/| /' conftest.$ac_ext >&5
35186
35187 ac_cv_func_pthread_cancel=no
35188 fi
35189 rm -f conftest.err conftest.$ac_objext \
35190       conftest$ac_exeext conftest.$ac_ext
35191 fi
35192 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
35193 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
35194 if test $ac_cv_func_pthread_cancel = yes; then
35195   cat >>confdefs.h <<\_ACEOF
35196 #define HAVE_PTHREAD_CANCEL 1
35197 _ACEOF
35198
35199 else
35200   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
35201 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
35202 fi
35203
35204
35205
35206
35207       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
35208 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
35209 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
35210   echo $ECHO_N "(cached) $ECHO_C" >&6
35211 else
35212
35213         cat >conftest.$ac_ext <<_ACEOF
35214 /* confdefs.h.  */
35215 _ACEOF
35216 cat confdefs.h >>conftest.$ac_ext
35217 cat >>conftest.$ac_ext <<_ACEOF
35218 /* end confdefs.h.  */
35219 #include <pthread.h>
35220 int
35221 main ()
35222 {
35223
35224                pthread_mutexattr_t attr;
35225                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
35226
35227   ;
35228   return 0;
35229 }
35230 _ACEOF
35231 rm -f conftest.$ac_objext
35232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35233   (eval $ac_compile) 2>conftest.er1
35234   ac_status=$?
35235   grep -v '^ *+' conftest.er1 >conftest.err
35236   rm -f conftest.er1
35237   cat conftest.err >&5
35238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35239   (exit $ac_status); } &&
35240          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35242   (eval $ac_try) 2>&5
35243   ac_status=$?
35244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35245   (exit $ac_status); }; } &&
35246          { ac_try='test -s conftest.$ac_objext'
35247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35248   (eval $ac_try) 2>&5
35249   ac_status=$?
35250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35251   (exit $ac_status); }; }; then
35252
35253                wx_cv_type_pthread_mutexattr_t=yes
35254
35255 else
35256   echo "$as_me: failed program was:" >&5
35257 sed 's/^/| /' conftest.$ac_ext >&5
35258
35259
35260                wx_cv_type_pthread_mutexattr_t=no
35261
35262
35263 fi
35264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35265
35266 fi
35267 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
35268 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
35269
35270       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
35271         cat >>confdefs.h <<\_ACEOF
35272 #define HAVE_PTHREAD_MUTEXATTR_T 1
35273 _ACEOF
35274
35275       else
35276                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
35277 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
35278 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
35279   echo $ECHO_N "(cached) $ECHO_C" >&6
35280 else
35281
35282             cat >conftest.$ac_ext <<_ACEOF
35283 /* confdefs.h.  */
35284 _ACEOF
35285 cat confdefs.h >>conftest.$ac_ext
35286 cat >>conftest.$ac_ext <<_ACEOF
35287 /* end confdefs.h.  */
35288 #include <pthread.h>
35289 int
35290 main ()
35291 {
35292
35293                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
35294
35295   ;
35296   return 0;
35297 }
35298 _ACEOF
35299 rm -f conftest.$ac_objext
35300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35301   (eval $ac_compile) 2>conftest.er1
35302   ac_status=$?
35303   grep -v '^ *+' conftest.er1 >conftest.err
35304   rm -f conftest.er1
35305   cat conftest.err >&5
35306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35307   (exit $ac_status); } &&
35308          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35310   (eval $ac_try) 2>&5
35311   ac_status=$?
35312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35313   (exit $ac_status); }; } &&
35314          { ac_try='test -s conftest.$ac_objext'
35315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35316   (eval $ac_try) 2>&5
35317   ac_status=$?
35318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35319   (exit $ac_status); }; }; then
35320
35321                     wx_cv_type_pthread_rec_mutex_init=yes
35322
35323 else
35324   echo "$as_me: failed program was:" >&5
35325 sed 's/^/| /' conftest.$ac_ext >&5
35326
35327
35328                     wx_cv_type_pthread_rec_mutex_init=no
35329
35330
35331 fi
35332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35333
35334 fi
35335 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
35336 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
35337         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
35338           cat >>confdefs.h <<\_ACEOF
35339 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
35340 _ACEOF
35341
35342         else
35343                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
35344 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
35345         fi
35346       fi
35347     fi
35348
35349 else
35350     if test "$wxUSE_THREADS" = "yes" ; then
35351       case "${host}" in
35352         *-*-mingw32* )
35353                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
35354 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
35355 if test "${wx_cv_cflags_mthread+set}" = set; then
35356   echo $ECHO_N "(cached) $ECHO_C" >&6
35357 else
35358
35359                     CFLAGS_OLD="$CFLAGS"
35360                     CFLAGS="$CFLAGS -mthreads"
35361                     cat >conftest.$ac_ext <<_ACEOF
35362 /* confdefs.h.  */
35363 _ACEOF
35364 cat confdefs.h >>conftest.$ac_ext
35365 cat >>conftest.$ac_ext <<_ACEOF
35366 /* end confdefs.h.  */
35367
35368 int
35369 main ()
35370 {
35371
35372   ;
35373   return 0;
35374 }
35375 _ACEOF
35376 rm -f conftest.$ac_objext
35377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35378   (eval $ac_compile) 2>conftest.er1
35379   ac_status=$?
35380   grep -v '^ *+' conftest.er1 >conftest.err
35381   rm -f conftest.er1
35382   cat conftest.err >&5
35383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35384   (exit $ac_status); } &&
35385          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35387   (eval $ac_try) 2>&5
35388   ac_status=$?
35389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35390   (exit $ac_status); }; } &&
35391          { ac_try='test -s conftest.$ac_objext'
35392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35393   (eval $ac_try) 2>&5
35394   ac_status=$?
35395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35396   (exit $ac_status); }; }; then
35397   wx_cv_cflags_mthread=yes
35398 else
35399   echo "$as_me: failed program was:" >&5
35400 sed 's/^/| /' conftest.$ac_ext >&5
35401
35402 wx_cv_cflags_mthread=no
35403
35404 fi
35405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35406
35407
35408 fi
35409 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
35410 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
35411
35412             if test "$wx_cv_cflags_mthread" = "yes"; then
35413                                 CXXFLAGS="$CXXFLAGS -mthreads"
35414                 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
35415                 LDFLAGS="$LDFLAGS -mthreads"
35416             else
35417                                 CFLAGS="$CFLAGS_OLD"
35418             fi
35419         ;;
35420         *-pc-os2*emx )
35421             CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
35422             CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
35423             LDFLAGS="$LDFLAGS -Zmt"
35424         ;;
35425       esac
35426     fi
35427 fi
35428
35429 if test "$wxUSE_THREADS" = "yes"; then
35430   cat >>confdefs.h <<\_ACEOF
35431 #define wxUSE_THREADS 1
35432 _ACEOF
35433
35434
35435   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
35436 else
35437       if test "$ac_cv_func_strtok_r" = "yes"; then
35438     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
35439 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
35440     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
35441         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
35442         echo "$as_me:$LINENO: result: yes" >&5
35443 echo "${ECHO_T}yes" >&6
35444     else
35445         echo "$as_me:$LINENO: result: no" >&5
35446 echo "${ECHO_T}no" >&6
35447     fi
35448   fi
35449 fi
35450
35451 if test "$WXGTK20" = 1 ; then
35452   cat >>confdefs.h <<_ACEOF
35453 #define __WXGTK20__ $WXGTK20
35454 _ACEOF
35455
35456   WXGTK12=1
35457 fi
35458
35459 if test "$WXGTK12" = 1 ; then
35460   cat >>confdefs.h <<_ACEOF
35461 #define __WXGTK12__ $WXGTK12
35462 _ACEOF
35463
35464 fi
35465
35466 if test "$WXGTK127" = 1 ; then
35467   cat >>confdefs.h <<_ACEOF
35468 #define __WXGTK127__ $WXGTK127
35469 _ACEOF
35470
35471 fi
35472
35473 if test "$WXGPE" = 1 ; then
35474   cat >>confdefs.h <<_ACEOF
35475 #define __WXGPE__ $WXGPE
35476 _ACEOF
35477
35478 fi
35479
35480 WXDEBUG=
35481
35482 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
35483     WXDEBUG="-g"
35484     wxUSE_OPTIMISE=no
35485 fi
35486
35487 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
35488     wxUSE_DEBUG_INFO=yes
35489     WXDEBUG="-ggdb"
35490 fi
35491
35492 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
35493     cat >>confdefs.h <<\_ACEOF
35494 #define WXDEBUG 1
35495 _ACEOF
35496
35497     WXDEBUG_DEFINE="-D__WXDEBUG__"
35498 else
35499     if test "$wxUSE_GTK" = 1 ; then
35500         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
35501     fi
35502 fi
35503
35504 if test "$wxUSE_MEM_TRACING" = "yes" ; then
35505     cat >>confdefs.h <<\_ACEOF
35506 #define wxUSE_MEMORY_TRACING 1
35507 _ACEOF
35508
35509     cat >>confdefs.h <<\_ACEOF
35510 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
35511 _ACEOF
35512
35513     cat >>confdefs.h <<\_ACEOF
35514 #define wxUSE_DEBUG_NEW_ALWAYS 1
35515 _ACEOF
35516
35517     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
35518 fi
35519
35520 if test "$wxUSE_DMALLOC" = "yes" ; then
35521     DMALLOC_LIBS="-ldmalloc"
35522 fi
35523
35524 PROFILE=
35525 if test "$wxUSE_PROFILE" = "yes" ; then
35526     PROFILE=" -pg"
35527 fi
35528
35529 CODE_GEN_FLAGS=
35530 CODE_GEN_FLAGS_CXX=
35531 if test "$GCC" = "yes" ; then
35532     if test "$wxUSE_NO_RTTI" = "yes" ; then
35533         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
35534     fi
35535     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
35536         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
35537     fi
35538     if test "$wxUSE_PERMISSIVE" = "yes" ; then
35539         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
35540     fi
35541
35542                                                 case "${host}" in
35543       powerpc*-*-aix* )
35544         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
35545         ;;
35546       *-hppa* )
35547         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
35548         ;;
35549     esac
35550 fi
35551
35552 OPTIMISE=
35553 if test "$wxUSE_OPTIMISE" = "no" ; then
35554     if test "$GCC" = yes ; then
35555                         OPTIMISE="-O0"
35556     fi
35557 else
35558     if test "$GCC" = yes ; then
35559         OPTIMISE="-O2"
35560
35561                 case "${host}" in
35562             i586-*-*|i686-*-* )
35563             OPTIMISE="${OPTIMISE} "
35564         ;;
35565         esac
35566     else
35567         OPTIMISE="-O"
35568     fi
35569 fi
35570
35571
35572 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35573     cat >>confdefs.h <<\_ACEOF
35574 #define WXWIN_COMPATIBILITY_2_2 1
35575 _ACEOF
35576
35577
35578     WXWIN_COMPATIBILITY_2_4="yes"
35579 fi
35580
35581 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35582     cat >>confdefs.h <<\_ACEOF
35583 #define WXWIN_COMPATIBILITY_2_4 1
35584 _ACEOF
35585
35586 fi
35587
35588
35589 if test "$wxUSE_GUI" = "yes"; then
35590     cat >>confdefs.h <<\_ACEOF
35591 #define wxUSE_GUI 1
35592 _ACEOF
35593
35594
35595                                             fi
35596
35597
35598 if test "$wxUSE_UNIX" = "yes"; then
35599   cat >>confdefs.h <<\_ACEOF
35600 #define wxUSE_UNIX 1
35601 _ACEOF
35602
35603 fi
35604
35605
35606 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35607
35608     HAVE_DL_FUNCS=0
35609     HAVE_SHL_FUNCS=0
35610     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35611         if test "$USE_DARWIN" = 1; then
35612                         HAVE_DL_FUNCS=1
35613         elif test "$USE_DOS" = 1; then
35614             HAVE_DL_FUNCS=0
35615         else
35616
35617 for ac_func in dlopen
35618 do
35619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35620 echo "$as_me:$LINENO: checking for $ac_func" >&5
35621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35622 if eval "test \"\${$as_ac_var+set}\" = set"; then
35623   echo $ECHO_N "(cached) $ECHO_C" >&6
35624 else
35625   cat >conftest.$ac_ext <<_ACEOF
35626 /* confdefs.h.  */
35627 _ACEOF
35628 cat confdefs.h >>conftest.$ac_ext
35629 cat >>conftest.$ac_ext <<_ACEOF
35630 /* end confdefs.h.  */
35631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35633 #define $ac_func innocuous_$ac_func
35634
35635 /* System header to define __stub macros and hopefully few prototypes,
35636     which can conflict with char $ac_func (); below.
35637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35638     <limits.h> exists even on freestanding compilers.  */
35639
35640 #ifdef __STDC__
35641 # include <limits.h>
35642 #else
35643 # include <assert.h>
35644 #endif
35645
35646 #undef $ac_func
35647
35648 /* Override any gcc2 internal prototype to avoid an error.  */
35649 #ifdef __cplusplus
35650 extern "C"
35651 {
35652 #endif
35653 /* We use char because int might match the return type of a gcc2
35654    builtin and then its argument prototype would still apply.  */
35655 char $ac_func ();
35656 /* The GNU C library defines this for functions which it implements
35657     to always fail with ENOSYS.  Some functions are actually named
35658     something starting with __ and the normal name is an alias.  */
35659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35660 choke me
35661 #else
35662 char (*f) () = $ac_func;
35663 #endif
35664 #ifdef __cplusplus
35665 }
35666 #endif
35667
35668 int
35669 main ()
35670 {
35671 return f != $ac_func;
35672   ;
35673   return 0;
35674 }
35675 _ACEOF
35676 rm -f conftest.$ac_objext conftest$ac_exeext
35677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35678   (eval $ac_link) 2>conftest.er1
35679   ac_status=$?
35680   grep -v '^ *+' conftest.er1 >conftest.err
35681   rm -f conftest.er1
35682   cat conftest.err >&5
35683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35684   (exit $ac_status); } &&
35685          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35687   (eval $ac_try) 2>&5
35688   ac_status=$?
35689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690   (exit $ac_status); }; } &&
35691          { ac_try='test -s conftest$ac_exeext'
35692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35693   (eval $ac_try) 2>&5
35694   ac_status=$?
35695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696   (exit $ac_status); }; }; then
35697   eval "$as_ac_var=yes"
35698 else
35699   echo "$as_me: failed program was:" >&5
35700 sed 's/^/| /' conftest.$ac_ext >&5
35701
35702 eval "$as_ac_var=no"
35703 fi
35704 rm -f conftest.err conftest.$ac_objext \
35705       conftest$ac_exeext conftest.$ac_ext
35706 fi
35707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35709 if test `eval echo '${'$as_ac_var'}'` = yes; then
35710   cat >>confdefs.h <<_ACEOF
35711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35712 _ACEOF
35713
35714                 cat >>confdefs.h <<\_ACEOF
35715 #define HAVE_DLOPEN 1
35716 _ACEOF
35717
35718                 HAVE_DL_FUNCS=1
35719
35720 else
35721
35722                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
35723 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
35724 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
35725   echo $ECHO_N "(cached) $ECHO_C" >&6
35726 else
35727   ac_check_lib_save_LIBS=$LIBS
35728 LIBS="-ldl  $LIBS"
35729 cat >conftest.$ac_ext <<_ACEOF
35730 /* confdefs.h.  */
35731 _ACEOF
35732 cat confdefs.h >>conftest.$ac_ext
35733 cat >>conftest.$ac_ext <<_ACEOF
35734 /* end confdefs.h.  */
35735
35736 /* Override any gcc2 internal prototype to avoid an error.  */
35737 #ifdef __cplusplus
35738 extern "C"
35739 #endif
35740 /* We use char because int might match the return type of a gcc2
35741    builtin and then its argument prototype would still apply.  */
35742 char dlopen ();
35743 int
35744 main ()
35745 {
35746 dlopen ();
35747   ;
35748   return 0;
35749 }
35750 _ACEOF
35751 rm -f conftest.$ac_objext conftest$ac_exeext
35752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35753   (eval $ac_link) 2>conftest.er1
35754   ac_status=$?
35755   grep -v '^ *+' conftest.er1 >conftest.err
35756   rm -f conftest.er1
35757   cat conftest.err >&5
35758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759   (exit $ac_status); } &&
35760          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35762   (eval $ac_try) 2>&5
35763   ac_status=$?
35764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35765   (exit $ac_status); }; } &&
35766          { ac_try='test -s conftest$ac_exeext'
35767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35768   (eval $ac_try) 2>&5
35769   ac_status=$?
35770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35771   (exit $ac_status); }; }; then
35772   ac_cv_lib_dl_dlopen=yes
35773 else
35774   echo "$as_me: failed program was:" >&5
35775 sed 's/^/| /' conftest.$ac_ext >&5
35776
35777 ac_cv_lib_dl_dlopen=no
35778 fi
35779 rm -f conftest.err conftest.$ac_objext \
35780       conftest$ac_exeext conftest.$ac_ext
35781 LIBS=$ac_check_lib_save_LIBS
35782 fi
35783 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
35784 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
35785 if test $ac_cv_lib_dl_dlopen = yes; then
35786
35787                                 cat >>confdefs.h <<\_ACEOF
35788 #define HAVE_DLOPEN 1
35789 _ACEOF
35790
35791                                 HAVE_DL_FUNCS=1
35792                                 DL_LINK=" -ldl$DL_LINK"
35793
35794 else
35795
35796
35797 for ac_func in shl_load
35798 do
35799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35800 echo "$as_me:$LINENO: checking for $ac_func" >&5
35801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35802 if eval "test \"\${$as_ac_var+set}\" = set"; then
35803   echo $ECHO_N "(cached) $ECHO_C" >&6
35804 else
35805   cat >conftest.$ac_ext <<_ACEOF
35806 /* confdefs.h.  */
35807 _ACEOF
35808 cat confdefs.h >>conftest.$ac_ext
35809 cat >>conftest.$ac_ext <<_ACEOF
35810 /* end confdefs.h.  */
35811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35813 #define $ac_func innocuous_$ac_func
35814
35815 /* System header to define __stub macros and hopefully few prototypes,
35816     which can conflict with char $ac_func (); below.
35817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35818     <limits.h> exists even on freestanding compilers.  */
35819
35820 #ifdef __STDC__
35821 # include <limits.h>
35822 #else
35823 # include <assert.h>
35824 #endif
35825
35826 #undef $ac_func
35827
35828 /* Override any gcc2 internal prototype to avoid an error.  */
35829 #ifdef __cplusplus
35830 extern "C"
35831 {
35832 #endif
35833 /* We use char because int might match the return type of a gcc2
35834    builtin and then its argument prototype would still apply.  */
35835 char $ac_func ();
35836 /* The GNU C library defines this for functions which it implements
35837     to always fail with ENOSYS.  Some functions are actually named
35838     something starting with __ and the normal name is an alias.  */
35839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35840 choke me
35841 #else
35842 char (*f) () = $ac_func;
35843 #endif
35844 #ifdef __cplusplus
35845 }
35846 #endif
35847
35848 int
35849 main ()
35850 {
35851 return f != $ac_func;
35852   ;
35853   return 0;
35854 }
35855 _ACEOF
35856 rm -f conftest.$ac_objext conftest$ac_exeext
35857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35858   (eval $ac_link) 2>conftest.er1
35859   ac_status=$?
35860   grep -v '^ *+' conftest.er1 >conftest.err
35861   rm -f conftest.er1
35862   cat conftest.err >&5
35863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35864   (exit $ac_status); } &&
35865          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35867   (eval $ac_try) 2>&5
35868   ac_status=$?
35869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35870   (exit $ac_status); }; } &&
35871          { ac_try='test -s conftest$ac_exeext'
35872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35873   (eval $ac_try) 2>&5
35874   ac_status=$?
35875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35876   (exit $ac_status); }; }; then
35877   eval "$as_ac_var=yes"
35878 else
35879   echo "$as_me: failed program was:" >&5
35880 sed 's/^/| /' conftest.$ac_ext >&5
35881
35882 eval "$as_ac_var=no"
35883 fi
35884 rm -f conftest.err conftest.$ac_objext \
35885       conftest$ac_exeext conftest.$ac_ext
35886 fi
35887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35889 if test `eval echo '${'$as_ac_var'}'` = yes; then
35890   cat >>confdefs.h <<_ACEOF
35891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35892 _ACEOF
35893
35894                                                 cat >>confdefs.h <<\_ACEOF
35895 #define HAVE_SHL_LOAD 1
35896 _ACEOF
35897
35898                                                 HAVE_SHL_FUNCS=1
35899
35900 else
35901
35902                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
35903 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
35904 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
35905   echo $ECHO_N "(cached) $ECHO_C" >&6
35906 else
35907   ac_check_lib_save_LIBS=$LIBS
35908 LIBS="-lshl_load  $LIBS"
35909 cat >conftest.$ac_ext <<_ACEOF
35910 /* confdefs.h.  */
35911 _ACEOF
35912 cat confdefs.h >>conftest.$ac_ext
35913 cat >>conftest.$ac_ext <<_ACEOF
35914 /* end confdefs.h.  */
35915
35916 /* Override any gcc2 internal prototype to avoid an error.  */
35917 #ifdef __cplusplus
35918 extern "C"
35919 #endif
35920 /* We use char because int might match the return type of a gcc2
35921    builtin and then its argument prototype would still apply.  */
35922 char dld ();
35923 int
35924 main ()
35925 {
35926 dld ();
35927   ;
35928   return 0;
35929 }
35930 _ACEOF
35931 rm -f conftest.$ac_objext conftest$ac_exeext
35932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35933   (eval $ac_link) 2>conftest.er1
35934   ac_status=$?
35935   grep -v '^ *+' conftest.er1 >conftest.err
35936   rm -f conftest.er1
35937   cat conftest.err >&5
35938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35939   (exit $ac_status); } &&
35940          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
35941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35942   (eval $ac_try) 2>&5
35943   ac_status=$?
35944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35945   (exit $ac_status); }; } &&
35946          { ac_try='test -s conftest$ac_exeext'
35947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35948   (eval $ac_try) 2>&5
35949   ac_status=$?
35950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35951   (exit $ac_status); }; }; then
35952   ac_cv_lib_shl_load_dld=yes
35953 else
35954   echo "$as_me: failed program was:" >&5
35955 sed 's/^/| /' conftest.$ac_ext >&5
35956
35957 ac_cv_lib_shl_load_dld=no
35958 fi
35959 rm -f conftest.err conftest.$ac_objext \
35960       conftest$ac_exeext conftest.$ac_ext
35961 LIBS=$ac_check_lib_save_LIBS
35962 fi
35963 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
35964 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
35965 if test $ac_cv_lib_shl_load_dld = yes; then
35966
35967                                                                 HAVE_SHL_FUNCS=1
35968                                                                 DL_LINK=" -ldld$DL_LINK"
35969
35970 fi
35971
35972
35973 fi
35974 done
35975
35976
35977 fi
35978
35979
35980 fi
35981 done
35982
35983
35984                 if test "$HAVE_DL_FUNCS" = 1; then
35985
35986 for ac_func in dlerror
35987 do
35988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35989 echo "$as_me:$LINENO: checking for $ac_func" >&5
35990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35991 if eval "test \"\${$as_ac_var+set}\" = set"; then
35992   echo $ECHO_N "(cached) $ECHO_C" >&6
35993 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36002 #define $ac_func innocuous_$ac_func
36003
36004 /* System header to define __stub macros and hopefully few prototypes,
36005     which can conflict with char $ac_func (); below.
36006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36007     <limits.h> exists even on freestanding compilers.  */
36008
36009 #ifdef __STDC__
36010 # include <limits.h>
36011 #else
36012 # include <assert.h>
36013 #endif
36014
36015 #undef $ac_func
36016
36017 /* Override any gcc2 internal prototype to avoid an error.  */
36018 #ifdef __cplusplus
36019 extern "C"
36020 {
36021 #endif
36022 /* We use char because int might match the return type of a gcc2
36023    builtin and then its argument prototype would still apply.  */
36024 char $ac_func ();
36025 /* The GNU C library defines this for functions which it implements
36026     to always fail with ENOSYS.  Some functions are actually named
36027     something starting with __ and the normal name is an alias.  */
36028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36029 choke me
36030 #else
36031 char (*f) () = $ac_func;
36032 #endif
36033 #ifdef __cplusplus
36034 }
36035 #endif
36036
36037 int
36038 main ()
36039 {
36040 return f != $ac_func;
36041   ;
36042   return 0;
36043 }
36044 _ACEOF
36045 rm -f conftest.$ac_objext conftest$ac_exeext
36046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36047   (eval $ac_link) 2>conftest.er1
36048   ac_status=$?
36049   grep -v '^ *+' conftest.er1 >conftest.err
36050   rm -f conftest.er1
36051   cat conftest.err >&5
36052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36053   (exit $ac_status); } &&
36054          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36056   (eval $ac_try) 2>&5
36057   ac_status=$?
36058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36059   (exit $ac_status); }; } &&
36060          { ac_try='test -s conftest$ac_exeext'
36061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36062   (eval $ac_try) 2>&5
36063   ac_status=$?
36064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36065   (exit $ac_status); }; }; then
36066   eval "$as_ac_var=yes"
36067 else
36068   echo "$as_me: failed program was:" >&5
36069 sed 's/^/| /' conftest.$ac_ext >&5
36070
36071 eval "$as_ac_var=no"
36072 fi
36073 rm -f conftest.err conftest.$ac_objext \
36074       conftest$ac_exeext conftest.$ac_ext
36075 fi
36076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36078 if test `eval echo '${'$as_ac_var'}'` = yes; then
36079   cat >>confdefs.h <<_ACEOF
36080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36081 _ACEOF
36082  cat >>confdefs.h <<\_ACEOF
36083 #define HAVE_DLERROR 1
36084 _ACEOF
36085
36086 else
36087
36088                     echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
36089 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
36090 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
36091   echo $ECHO_N "(cached) $ECHO_C" >&6
36092 else
36093   ac_check_lib_save_LIBS=$LIBS
36094 LIBS="-ldl  $LIBS"
36095 cat >conftest.$ac_ext <<_ACEOF
36096 /* confdefs.h.  */
36097 _ACEOF
36098 cat confdefs.h >>conftest.$ac_ext
36099 cat >>conftest.$ac_ext <<_ACEOF
36100 /* end confdefs.h.  */
36101
36102 /* Override any gcc2 internal prototype to avoid an error.  */
36103 #ifdef __cplusplus
36104 extern "C"
36105 #endif
36106 /* We use char because int might match the return type of a gcc2
36107    builtin and then its argument prototype would still apply.  */
36108 char dlerror ();
36109 int
36110 main ()
36111 {
36112 dlerror ();
36113   ;
36114   return 0;
36115 }
36116 _ACEOF
36117 rm -f conftest.$ac_objext conftest$ac_exeext
36118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36119   (eval $ac_link) 2>conftest.er1
36120   ac_status=$?
36121   grep -v '^ *+' conftest.er1 >conftest.err
36122   rm -f conftest.er1
36123   cat conftest.err >&5
36124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36125   (exit $ac_status); } &&
36126          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36128   (eval $ac_try) 2>&5
36129   ac_status=$?
36130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36131   (exit $ac_status); }; } &&
36132          { ac_try='test -s conftest$ac_exeext'
36133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36134   (eval $ac_try) 2>&5
36135   ac_status=$?
36136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36137   (exit $ac_status); }; }; then
36138   ac_cv_lib_dl_dlerror=yes
36139 else
36140   echo "$as_me: failed program was:" >&5
36141 sed 's/^/| /' conftest.$ac_ext >&5
36142
36143 ac_cv_lib_dl_dlerror=no
36144 fi
36145 rm -f conftest.err conftest.$ac_objext \
36146       conftest$ac_exeext conftest.$ac_ext
36147 LIBS=$ac_check_lib_save_LIBS
36148 fi
36149 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
36150 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
36151 if test $ac_cv_lib_dl_dlerror = yes; then
36152   cat >>confdefs.h <<\_ACEOF
36153 #define HAVE_DLERROR 1
36154 _ACEOF
36155
36156 fi
36157
36158
36159
36160 fi
36161 done
36162
36163         fi
36164         fi
36165
36166         if test "$HAVE_DL_FUNCS" = 0; then
36167             if test "$HAVE_SHL_FUNCS" = 0; then
36168               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
36169                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
36170 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
36171                   wxUSE_DYNAMIC_LOADER=no
36172                   wxUSE_DYNLIB_CLASS=no
36173               else
36174                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
36175 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
36176               fi
36177             fi
36178         fi
36179     fi
36180 fi
36181
36182 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
36183     cat >>confdefs.h <<\_ACEOF
36184 #define wxUSE_DYNAMIC_LOADER 1
36185 _ACEOF
36186
36187 fi
36188 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36189     cat >>confdefs.h <<\_ACEOF
36190 #define wxUSE_DYNLIB_CLASS 1
36191 _ACEOF
36192
36193 fi
36194
36195
36196
36197 if test "$wxUSE_PLUGINS" = "yes" ; then
36198     if test "$wxUSE_SHARED" = "no" ; then
36199         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
36200 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
36201         wxUSE_PLUGINS=no
36202     fi
36203     if test "$wxUSE_MONOLITHIC" = "yes" ; then
36204         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
36205 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
36206         wxUSE_PLUGINS=no
36207     fi
36208     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
36209         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
36210 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
36211         wxUSE_PLUGINS=no
36212     fi
36213     if test "$wxUSE_PLUGINS" = "yes" ; then
36214         cat >>confdefs.h <<\_ACEOF
36215 #define wxUSE_PLUGINS 1
36216 _ACEOF
36217
36218     fi
36219 fi
36220
36221
36222 if test "$wxUSE_STL" = "yes"; then
36223   cat >>confdefs.h <<\_ACEOF
36224 #define wxUSE_STL 1
36225 _ACEOF
36226
36227 fi
36228
36229 if test "$wxUSE_APPLE_IEEE" = "yes"; then
36230   cat >>confdefs.h <<\_ACEOF
36231 #define wxUSE_APPLE_IEEE 1
36232 _ACEOF
36233
36234 fi
36235
36236 if test "$wxUSE_TIMER" = "yes"; then
36237   cat >>confdefs.h <<\_ACEOF
36238 #define wxUSE_TIMER 1
36239 _ACEOF
36240
36241 fi
36242
36243 if test "$USE_UNIX" = "1" ; then
36244
36245 for ac_header in sys/soundcard.h
36246 do
36247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36249   echo "$as_me:$LINENO: checking for $ac_header" >&5
36250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36252   echo $ECHO_N "(cached) $ECHO_C" >&6
36253 fi
36254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36256 else
36257   # Is the header compilable?
36258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36260 cat >conftest.$ac_ext <<_ACEOF
36261 /* confdefs.h.  */
36262 _ACEOF
36263 cat confdefs.h >>conftest.$ac_ext
36264 cat >>conftest.$ac_ext <<_ACEOF
36265 /* end confdefs.h.  */
36266 $ac_includes_default
36267 #include <$ac_header>
36268 _ACEOF
36269 rm -f conftest.$ac_objext
36270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36271   (eval $ac_compile) 2>conftest.er1
36272   ac_status=$?
36273   grep -v '^ *+' conftest.er1 >conftest.err
36274   rm -f conftest.er1
36275   cat conftest.err >&5
36276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277   (exit $ac_status); } &&
36278          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36280   (eval $ac_try) 2>&5
36281   ac_status=$?
36282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36283   (exit $ac_status); }; } &&
36284          { ac_try='test -s conftest.$ac_objext'
36285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36286   (eval $ac_try) 2>&5
36287   ac_status=$?
36288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36289   (exit $ac_status); }; }; then
36290   ac_header_compiler=yes
36291 else
36292   echo "$as_me: failed program was:" >&5
36293 sed 's/^/| /' conftest.$ac_ext >&5
36294
36295 ac_header_compiler=no
36296 fi
36297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36299 echo "${ECHO_T}$ac_header_compiler" >&6
36300
36301 # Is the header present?
36302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36304 cat >conftest.$ac_ext <<_ACEOF
36305 /* confdefs.h.  */
36306 _ACEOF
36307 cat confdefs.h >>conftest.$ac_ext
36308 cat >>conftest.$ac_ext <<_ACEOF
36309 /* end confdefs.h.  */
36310 #include <$ac_header>
36311 _ACEOF
36312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36313   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36314   ac_status=$?
36315   grep -v '^ *+' conftest.er1 >conftest.err
36316   rm -f conftest.er1
36317   cat conftest.err >&5
36318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36319   (exit $ac_status); } >/dev/null; then
36320   if test -s conftest.err; then
36321     ac_cpp_err=$ac_c_preproc_warn_flag
36322     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36323   else
36324     ac_cpp_err=
36325   fi
36326 else
36327   ac_cpp_err=yes
36328 fi
36329 if test -z "$ac_cpp_err"; then
36330   ac_header_preproc=yes
36331 else
36332   echo "$as_me: failed program was:" >&5
36333 sed 's/^/| /' conftest.$ac_ext >&5
36334
36335   ac_header_preproc=no
36336 fi
36337 rm -f conftest.err conftest.$ac_ext
36338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36339 echo "${ECHO_T}$ac_header_preproc" >&6
36340
36341 # So?  What about this header?
36342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36343   yes:no: )
36344     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36348     ac_header_preproc=yes
36349     ;;
36350   no:yes:* )
36351     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36353     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36354 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36355     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36357     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36358 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36361     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36363     (
36364       cat <<\_ASBOX
36365 ## ----------------------------------------- ##
36366 ## Report this to wx-dev@lists.wxwidgets.org ##
36367 ## ----------------------------------------- ##
36368 _ASBOX
36369     ) |
36370       sed "s/^/$as_me: WARNING:     /" >&2
36371     ;;
36372 esac
36373 echo "$as_me:$LINENO: checking for $ac_header" >&5
36374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36376   echo $ECHO_N "(cached) $ECHO_C" >&6
36377 else
36378   eval "$as_ac_Header=\$ac_header_preproc"
36379 fi
36380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36382
36383 fi
36384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36385   cat >>confdefs.h <<_ACEOF
36386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36387 _ACEOF
36388
36389 else
36390   DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
36391 fi
36392
36393 done
36394
36395 fi
36396 WITH_PLUGIN_SDL=0
36397 if test "$wxUSE_SOUND" = "yes"; then
36398   if test "$USE_UNIX" = "1" ; then
36399     if test "$wxUSE_LIBSDL" != "no"; then
36400
36401 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
36402 if test "${with_sdl_prefix+set}" = set; then
36403   withval="$with_sdl_prefix"
36404   sdl_prefix="$withval"
36405 else
36406   sdl_prefix=""
36407 fi;
36408
36409 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
36410 if test "${with_sdl_exec_prefix+set}" = set; then
36411   withval="$with_sdl_exec_prefix"
36412   sdl_exec_prefix="$withval"
36413 else
36414   sdl_exec_prefix=""
36415 fi;
36416 # Check whether --enable-sdltest or --disable-sdltest was given.
36417 if test "${enable_sdltest+set}" = set; then
36418   enableval="$enable_sdltest"
36419
36420 else
36421   enable_sdltest=yes
36422 fi;
36423
36424   if test x$sdl_exec_prefix != x ; then
36425      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
36426      if test x${SDL_CONFIG+set} != xset ; then
36427         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
36428      fi
36429   fi
36430   if test x$sdl_prefix != x ; then
36431      sdl_args="$sdl_args --prefix=$sdl_prefix"
36432      if test x${SDL_CONFIG+set} != xset ; then
36433         SDL_CONFIG=$sdl_prefix/bin/sdl-config
36434      fi
36435   fi
36436
36437
36438   PATH="$prefix/bin:$prefix/usr/bin:$PATH"
36439   # Extract the first word of "sdl-config", so it can be a program name with args.
36440 set dummy sdl-config; ac_word=$2
36441 echo "$as_me:$LINENO: checking for $ac_word" >&5
36442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36443 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
36444   echo $ECHO_N "(cached) $ECHO_C" >&6
36445 else
36446   case $SDL_CONFIG in
36447   [\\/]* | ?:[\\/]*)
36448   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
36449   ;;
36450   *)
36451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36452 for as_dir in $PATH
36453 do
36454   IFS=$as_save_IFS
36455   test -z "$as_dir" && as_dir=.
36456   for ac_exec_ext in '' $ac_executable_extensions; do
36457   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36458     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36460     break 2
36461   fi
36462 done
36463 done
36464
36465   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
36466   ;;
36467 esac
36468 fi
36469 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
36470
36471 if test -n "$SDL_CONFIG"; then
36472   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
36473 echo "${ECHO_T}$SDL_CONFIG" >&6
36474 else
36475   echo "$as_me:$LINENO: result: no" >&5
36476 echo "${ECHO_T}no" >&6
36477 fi
36478
36479   min_sdl_version=1.2.0
36480   echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
36481 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
36482   no_sdl=""
36483   if test "$SDL_CONFIG" = "no" ; then
36484     no_sdl=yes
36485   else
36486     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
36487     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
36488
36489     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
36490            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36491     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
36492            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36493     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
36494            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36495     if test "x$enable_sdltest" = "xyes" ; then
36496       ac_save_CFLAGS="$CFLAGS"
36497       ac_save_CXXFLAGS="$CXXFLAGS"
36498       ac_save_LIBS="$LIBS"
36499       CFLAGS="$CFLAGS $SDL_CFLAGS"
36500       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36501       LIBS="$LIBS $SDL_LIBS"
36502       rm -f conf.sdltest
36503       if test "$cross_compiling" = yes; then
36504   echo $ac_n "cross compiling; assumed OK... $ac_c"
36505 else
36506   cat >conftest.$ac_ext <<_ACEOF
36507 /* confdefs.h.  */
36508 _ACEOF
36509 cat confdefs.h >>conftest.$ac_ext
36510 cat >>conftest.$ac_ext <<_ACEOF
36511 /* end confdefs.h.  */
36512
36513 #include <stdio.h>
36514 #include <stdlib.h>
36515 #include <string.h>
36516 #include "SDL.h"
36517
36518 char*
36519 my_strdup (char *str)
36520 {
36521   char *new_str;
36522
36523   if (str)
36524     {
36525       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
36526       strcpy (new_str, str);
36527     }
36528   else
36529     new_str = NULL;
36530
36531   return new_str;
36532 }
36533
36534 int main (int argc, char *argv[])
36535 {
36536   int major, minor, micro;
36537   char *tmp_version;
36538
36539   /* This hangs on some systems (?)
36540   system ("touch conf.sdltest");
36541   */
36542   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
36543
36544   /* HP/UX 9 (%@#!) writes to sscanf strings */
36545   tmp_version = my_strdup("$min_sdl_version");
36546   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
36547      printf("%s, bad version string\n", "$min_sdl_version");
36548      exit(1);
36549    }
36550
36551    if (($sdl_major_version > major) ||
36552       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
36553       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
36554     {
36555       return 0;
36556     }
36557   else
36558     {
36559       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
36560       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
36561       printf("*** best to upgrade to the required version.\n");
36562       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
36563       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
36564       printf("*** config.cache before re-running configure\n");
36565       return 1;
36566     }
36567 }
36568
36569
36570 _ACEOF
36571 rm -f conftest$ac_exeext
36572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36573   (eval $ac_link) 2>&5
36574   ac_status=$?
36575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36576   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36578   (eval $ac_try) 2>&5
36579   ac_status=$?
36580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36581   (exit $ac_status); }; }; then
36582   :
36583 else
36584   echo "$as_me: program exited with status $ac_status" >&5
36585 echo "$as_me: failed program was:" >&5
36586 sed 's/^/| /' conftest.$ac_ext >&5
36587
36588 ( exit $ac_status )
36589 no_sdl=yes
36590 fi
36591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36592 fi
36593        CFLAGS="$ac_save_CFLAGS"
36594        CXXFLAGS="$ac_save_CXXFLAGS"
36595        LIBS="$ac_save_LIBS"
36596      fi
36597   fi
36598   if test "x$no_sdl" = x ; then
36599      echo "$as_me:$LINENO: result: yes" >&5
36600 echo "${ECHO_T}yes" >&6
36601
36602                     EXTRALIBS_SDL="$SDL_LIBS"
36603                     CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36604                     cat >>confdefs.h <<\_ACEOF
36605 #define wxUSE_LIBSDL 1
36606 _ACEOF
36607
36608
36609   else
36610      echo "$as_me:$LINENO: result: no" >&5
36611 echo "${ECHO_T}no" >&6
36612      if test "$SDL_CONFIG" = "no" ; then
36613        echo "*** The sdl-config script installed by SDL could not be found"
36614        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36615        echo "*** your path, or set the SDL_CONFIG environment variable to the"
36616        echo "*** full path to sdl-config."
36617      else
36618        if test -f conf.sdltest ; then
36619         :
36620        else
36621           echo "*** Could not run SDL test program, checking why..."
36622           CFLAGS="$CFLAGS $SDL_CFLAGS"
36623           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36624           LIBS="$LIBS $SDL_LIBS"
36625           cat >conftest.$ac_ext <<_ACEOF
36626 /* confdefs.h.  */
36627 _ACEOF
36628 cat confdefs.h >>conftest.$ac_ext
36629 cat >>conftest.$ac_ext <<_ACEOF
36630 /* end confdefs.h.  */
36631
36632 #include <stdio.h>
36633 #include "SDL.h"
36634
36635 int main(int argc, char *argv[])
36636 { return 0; }
36637 #undef  main
36638 #define main K_and_R_C_main
36639
36640 int
36641 main ()
36642 {
36643  return 0;
36644   ;
36645   return 0;
36646 }
36647 _ACEOF
36648 rm -f conftest.$ac_objext conftest$ac_exeext
36649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36650   (eval $ac_link) 2>conftest.er1
36651   ac_status=$?
36652   grep -v '^ *+' conftest.er1 >conftest.err
36653   rm -f conftest.er1
36654   cat conftest.err >&5
36655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656   (exit $ac_status); } &&
36657          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
36658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36659   (eval $ac_try) 2>&5
36660   ac_status=$?
36661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36662   (exit $ac_status); }; } &&
36663          { ac_try='test -s conftest$ac_exeext'
36664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36665   (eval $ac_try) 2>&5
36666   ac_status=$?
36667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36668   (exit $ac_status); }; }; then
36669    echo "*** The test program compiled, but did not run. This usually means"
36670           echo "*** that the run-time linker is not finding SDL or finding the wrong"
36671           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36672           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36673           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
36674           echo "*** is required on your system"
36675           echo "***"
36676           echo "*** If you have an old version installed, it is best to remove it, although"
36677           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
36678 else
36679   echo "$as_me: failed program was:" >&5
36680 sed 's/^/| /' conftest.$ac_ext >&5
36681
36682  echo "*** The test program failed to compile or link. See the file config.log for the"
36683           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
36684           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
36685           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
36686 fi
36687 rm -f conftest.err conftest.$ac_objext \
36688       conftest$ac_exeext conftest.$ac_ext
36689           CFLAGS="$ac_save_CFLAGS"
36690           CXXFLAGS="$ac_save_CXXFLAGS"
36691           LIBS="$ac_save_LIBS"
36692        fi
36693      fi
36694      SDL_CFLAGS=""
36695      SDL_LIBS=""
36696      wxUSE_LIBSDL="no"
36697   fi
36698
36699
36700   rm -f conf.sdltest
36701
36702       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
36703         WITH_PLUGIN_SDL=1
36704       fi
36705     fi
36706   fi
36707
36708   cat >>confdefs.h <<\_ACEOF
36709 #define wxUSE_SOUND 1
36710 _ACEOF
36711
36712   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
36713 fi
36714
36715 if test "$WXGTK20" = 1; then
36716     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36717         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
36718
36719
36720   succeeded=no
36721
36722   if test -z "$PKG_CONFIG"; then
36723     # Extract the first word of "pkg-config", so it can be a program name with args.
36724 set dummy pkg-config; ac_word=$2
36725 echo "$as_me:$LINENO: checking for $ac_word" >&5
36726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36727 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36728   echo $ECHO_N "(cached) $ECHO_C" >&6
36729 else
36730   case $PKG_CONFIG in
36731   [\\/]* | ?:[\\/]*)
36732   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36733   ;;
36734   *)
36735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36736 for as_dir in $PATH
36737 do
36738   IFS=$as_save_IFS
36739   test -z "$as_dir" && as_dir=.
36740   for ac_exec_ext in '' $ac_executable_extensions; do
36741   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36742     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36744     break 2
36745   fi
36746 done
36747 done
36748
36749   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
36750   ;;
36751 esac
36752 fi
36753 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36754
36755 if test -n "$PKG_CONFIG"; then
36756   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36757 echo "${ECHO_T}$PKG_CONFIG" >&6
36758 else
36759   echo "$as_me:$LINENO: result: no" >&5
36760 echo "${ECHO_T}no" >&6
36761 fi
36762
36763   fi
36764
36765   if test "$PKG_CONFIG" = "no" ; then
36766      echo "*** The pkg-config script could not be found. Make sure it is"
36767      echo "*** in your path, or set the PKG_CONFIG environment variable"
36768      echo "*** to the full path to pkg-config."
36769      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
36770   else
36771      PKG_CONFIG_MIN_VERSION=0.9.0
36772      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
36773         echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
36774 echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
36775
36776         if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
36777             echo "$as_me:$LINENO: result: yes" >&5
36778 echo "${ECHO_T}yes" >&6
36779             succeeded=yes
36780
36781             echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
36782 echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
36783             LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
36784             echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
36785 echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
36786
36787             echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
36788 echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
36789             LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
36790             echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
36791 echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
36792         else
36793             LIBGNOMEPRINTUI_CFLAGS=""
36794             LIBGNOMEPRINTUI_LIBS=""
36795             ## If we have a custom action on failure, don't print errors, but
36796             ## do set a variable so people can do so.
36797             LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
36798
36799         fi
36800
36801
36802
36803      else
36804         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
36805         echo "*** See http://www.freedesktop.org/software/pkgconfig"
36806      fi
36807   fi
36808
36809   if test $succeeded = yes; then
36810
36811                         CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
36812                         cat >>confdefs.h <<\_ACEOF
36813 #define wxUSE_LIBGNOMEPRINT 1
36814 _ACEOF
36815
36816
36817   else
36818
36819                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
36820 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
36821                         wxUSE_LIBGNOMEPRINT="no"
36822
36823
36824   fi
36825
36826         fi
36827     fi
36828 fi
36829
36830
36831 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
36832   cat >>confdefs.h <<\_ACEOF
36833 #define wxUSE_CMDLINE_PARSER 1
36834 _ACEOF
36835
36836 fi
36837
36838 if test "$wxUSE_STOPWATCH" = "yes"; then
36839   cat >>confdefs.h <<\_ACEOF
36840 #define wxUSE_STOPWATCH 1
36841 _ACEOF
36842
36843 fi
36844
36845 if test "$wxUSE_DATETIME" = "yes"; then
36846   cat >>confdefs.h <<\_ACEOF
36847 #define wxUSE_DATETIME 1
36848 _ACEOF
36849
36850 fi
36851
36852 if test "$wxUSE_FILE" = "yes"; then
36853   cat >>confdefs.h <<\_ACEOF
36854 #define wxUSE_FILE 1
36855 _ACEOF
36856
36857 fi
36858
36859 if test "$wxUSE_FFILE" = "yes"; then
36860   cat >>confdefs.h <<\_ACEOF
36861 #define wxUSE_FFILE 1
36862 _ACEOF
36863
36864 fi
36865
36866 if test "$wxUSE_FILESYSTEM" = "yes"; then
36867   cat >>confdefs.h <<\_ACEOF
36868 #define wxUSE_FILESYSTEM 1
36869 _ACEOF
36870
36871 fi
36872
36873 if test "$wxUSE_FS_ZIP" = "yes"; then
36874   cat >>confdefs.h <<\_ACEOF
36875 #define wxUSE_FS_ZIP 1
36876 _ACEOF
36877
36878 fi
36879
36880 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
36881   cat >>confdefs.h <<\_ACEOF
36882 #define wxUSE_ARCHIVE_STREAMS 1
36883 _ACEOF
36884
36885 fi
36886
36887 if test "$wxUSE_ZIPSTREAM" = "yes"; then
36888   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
36889     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
36890 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
36891   elif test "$wxUSE_ZLIB" = "no"; then
36892     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
36893 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
36894   else
36895     cat >>confdefs.h <<\_ACEOF
36896 #define wxUSE_ZIPSTREAM 1
36897 _ACEOF
36898
36899   fi
36900 fi
36901
36902 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36903   cat >>confdefs.h <<\_ACEOF
36904 #define wxUSE_ON_FATAL_EXCEPTION 1
36905 _ACEOF
36906
36907 fi
36908
36909 if test "$wxUSE_STACKWALKER" = "yes"; then
36910     cat >>confdefs.h <<\_ACEOF
36911 #define wxUSE_STACKWALKER 1
36912 _ACEOF
36913
36914 fi
36915
36916 if test "$wxUSE_DEBUGREPORT" = "yes"; then
36917     if test "$USE_OS2" = "1"; then
36918         { echo "$as_me:$LINENO: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&5
36919 echo "$as_me: WARNING: Creating debug reports not supported under OS/2 yet, disabled" >&2;}
36920         wxUSE_DEBUGREPORT=no
36921     else
36922         cat >>confdefs.h <<\_ACEOF
36923 #define wxUSE_DEBUGREPORT 1
36924 _ACEOF
36925
36926         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36927             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
36928         fi
36929     fi
36930 fi
36931
36932 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36933   cat >>confdefs.h <<\_ACEOF
36934 #define wxUSE_SNGLINST_CHECKER 1
36935 _ACEOF
36936
36937 fi
36938
36939 if test "$wxUSE_BUSYINFO" = "yes"; then
36940   cat >>confdefs.h <<\_ACEOF
36941 #define wxUSE_BUSYINFO 1
36942 _ACEOF
36943
36944 fi
36945
36946 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
36947   cat >>confdefs.h <<\_ACEOF
36948 #define wxUSE_STD_IOSTREAM 1
36949 _ACEOF
36950
36951 fi
36952
36953 if test "$wxUSE_STD_STRING" = "yes"; then
36954   cat >>confdefs.h <<\_ACEOF
36955 #define wxUSE_STD_STRING 1
36956 _ACEOF
36957
36958 fi
36959
36960 if test "$wxUSE_STDPATHS" = "yes"; then
36961   cat >>confdefs.h <<\_ACEOF
36962 #define wxUSE_STDPATHS 1
36963 _ACEOF
36964
36965 fi
36966
36967 if test "$wxUSE_TEXTBUFFER" = "yes"; then
36968     cat >>confdefs.h <<\_ACEOF
36969 #define wxUSE_TEXTBUFFER 1
36970 _ACEOF
36971
36972 fi
36973
36974 if test "$wxUSE_TEXTFILE" = "yes"; then
36975   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
36976     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
36977 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
36978   else
36979     cat >>confdefs.h <<\_ACEOF
36980 #define wxUSE_TEXTFILE 1
36981 _ACEOF
36982
36983   fi
36984 fi
36985
36986 if test "$wxUSE_CONFIG" = "yes" ; then
36987   if test "$wxUSE_TEXTFILE" != "yes"; then
36988     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
36989 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
36990   else
36991     cat >>confdefs.h <<\_ACEOF
36992 #define wxUSE_CONFIG 1
36993 _ACEOF
36994
36995     cat >>confdefs.h <<\_ACEOF
36996 #define wxUSE_CONFIG_NATIVE 1
36997 _ACEOF
36998
36999     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
37000   fi
37001 fi
37002
37003 if test "$wxUSE_INTL" = "yes" ; then
37004   if test "$wxUSE_FILE" != "yes"; then
37005     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
37006 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
37007   else
37008     cat >>confdefs.h <<\_ACEOF
37009 #define wxUSE_INTL 1
37010 _ACEOF
37011
37012     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
37013     GUIDIST="$GUIDIST INTL_DIST"
37014   fi
37015 fi
37016
37017 if test "$wxUSE_LOG" = "yes"; then
37018   cat >>confdefs.h <<\_ACEOF
37019 #define wxUSE_LOG 1
37020 _ACEOF
37021
37022
37023     if test "$wxUSE_LOGGUI" = "yes"; then
37024       cat >>confdefs.h <<\_ACEOF
37025 #define wxUSE_LOGGUI 1
37026 _ACEOF
37027
37028     fi
37029
37030     if test "$wxUSE_LOGWINDOW" = "yes"; then
37031       cat >>confdefs.h <<\_ACEOF
37032 #define wxUSE_LOGWINDOW 1
37033 _ACEOF
37034
37035     fi
37036
37037     if test "$wxUSE_LOGDIALOG" = "yes"; then
37038       cat >>confdefs.h <<\_ACEOF
37039 #define wxUSE_LOG_DIALOG 1
37040 _ACEOF
37041
37042     fi
37043
37044         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
37045 fi
37046
37047 if test "$wxUSE_LONGLONG" = "yes"; then
37048   cat >>confdefs.h <<\_ACEOF
37049 #define wxUSE_LONGLONG 1
37050 _ACEOF
37051
37052 fi
37053
37054 if test "$wxUSE_GEOMETRY" = "yes"; then
37055   cat >>confdefs.h <<\_ACEOF
37056 #define wxUSE_GEOMETRY 1
37057 _ACEOF
37058
37059 fi
37060
37061 if test "$wxUSE_STREAMS" = "yes" ; then
37062   cat >>confdefs.h <<\_ACEOF
37063 #define wxUSE_STREAMS 1
37064 _ACEOF
37065
37066 fi
37067
37068
37069 if test "$wxUSE_DATETIME" = "yes"; then
37070
37071 for ac_func in strptime
37072 do
37073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37074 echo "$as_me:$LINENO: checking for $ac_func" >&5
37075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37076 if eval "test \"\${$as_ac_var+set}\" = set"; then
37077   echo $ECHO_N "(cached) $ECHO_C" >&6
37078 else
37079   cat >conftest.$ac_ext <<_ACEOF
37080 /* confdefs.h.  */
37081 _ACEOF
37082 cat confdefs.h >>conftest.$ac_ext
37083 cat >>conftest.$ac_ext <<_ACEOF
37084 /* end confdefs.h.  */
37085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37087 #define $ac_func innocuous_$ac_func
37088
37089 /* System header to define __stub macros and hopefully few prototypes,
37090     which can conflict with char $ac_func (); below.
37091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37092     <limits.h> exists even on freestanding compilers.  */
37093
37094 #ifdef __STDC__
37095 # include <limits.h>
37096 #else
37097 # include <assert.h>
37098 #endif
37099
37100 #undef $ac_func
37101
37102 /* Override any gcc2 internal prototype to avoid an error.  */
37103 #ifdef __cplusplus
37104 extern "C"
37105 {
37106 #endif
37107 /* We use char because int might match the return type of a gcc2
37108    builtin and then its argument prototype would still apply.  */
37109 char $ac_func ();
37110 /* The GNU C library defines this for functions which it implements
37111     to always fail with ENOSYS.  Some functions are actually named
37112     something starting with __ and the normal name is an alias.  */
37113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37114 choke me
37115 #else
37116 char (*f) () = $ac_func;
37117 #endif
37118 #ifdef __cplusplus
37119 }
37120 #endif
37121
37122 int
37123 main ()
37124 {
37125 return f != $ac_func;
37126   ;
37127   return 0;
37128 }
37129 _ACEOF
37130 rm -f conftest.$ac_objext conftest$ac_exeext
37131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37132   (eval $ac_link) 2>conftest.er1
37133   ac_status=$?
37134   grep -v '^ *+' conftest.er1 >conftest.err
37135   rm -f conftest.er1
37136   cat conftest.err >&5
37137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37138   (exit $ac_status); } &&
37139          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37141   (eval $ac_try) 2>&5
37142   ac_status=$?
37143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37144   (exit $ac_status); }; } &&
37145          { ac_try='test -s conftest$ac_exeext'
37146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37147   (eval $ac_try) 2>&5
37148   ac_status=$?
37149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37150   (exit $ac_status); }; }; then
37151   eval "$as_ac_var=yes"
37152 else
37153   echo "$as_me: failed program was:" >&5
37154 sed 's/^/| /' conftest.$ac_ext >&5
37155
37156 eval "$as_ac_var=no"
37157 fi
37158 rm -f conftest.err conftest.$ac_objext \
37159       conftest$ac_exeext conftest.$ac_ext
37160 fi
37161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37163 if test `eval echo '${'$as_ac_var'}'` = yes; then
37164   cat >>confdefs.h <<_ACEOF
37165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37166 _ACEOF
37167
37168 fi
37169 done
37170
37171
37172             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
37173 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
37174 if test "${wx_cv_var_timezone+set}" = set; then
37175   echo $ECHO_N "(cached) $ECHO_C" >&6
37176 else
37177
37178                         cat >conftest.$ac_ext <<_ACEOF
37179 /* confdefs.h.  */
37180 _ACEOF
37181 cat confdefs.h >>conftest.$ac_ext
37182 cat >>conftest.$ac_ext <<_ACEOF
37183 /* end confdefs.h.  */
37184
37185                                 #include <time.h>
37186
37187 int
37188 main ()
37189 {
37190
37191                                 int tz;
37192                                 tz = timezone;
37193
37194   ;
37195   return 0;
37196 }
37197 _ACEOF
37198 rm -f conftest.$ac_objext
37199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37200   (eval $ac_compile) 2>conftest.er1
37201   ac_status=$?
37202   grep -v '^ *+' conftest.er1 >conftest.err
37203   rm -f conftest.er1
37204   cat conftest.err >&5
37205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37206   (exit $ac_status); } &&
37207          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37209   (eval $ac_try) 2>&5
37210   ac_status=$?
37211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37212   (exit $ac_status); }; } &&
37213          { ac_try='test -s conftest.$ac_objext'
37214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37215   (eval $ac_try) 2>&5
37216   ac_status=$?
37217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37218   (exit $ac_status); }; }; then
37219
37220                                 wx_cv_var_timezone=timezone
37221
37222 else
37223   echo "$as_me: failed program was:" >&5
37224 sed 's/^/| /' conftest.$ac_ext >&5
37225
37226
37227                                 cat >conftest.$ac_ext <<_ACEOF
37228 /* confdefs.h.  */
37229 _ACEOF
37230 cat confdefs.h >>conftest.$ac_ext
37231 cat >>conftest.$ac_ext <<_ACEOF
37232 /* end confdefs.h.  */
37233
37234                                         #include <time.h>
37235
37236 int
37237 main ()
37238 {
37239
37240                                         int tz;
37241                                         tz = _timezone;
37242
37243   ;
37244   return 0;
37245 }
37246 _ACEOF
37247 rm -f conftest.$ac_objext
37248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37249   (eval $ac_compile) 2>conftest.er1
37250   ac_status=$?
37251   grep -v '^ *+' conftest.er1 >conftest.err
37252   rm -f conftest.er1
37253   cat conftest.err >&5
37254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37255   (exit $ac_status); } &&
37256          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37258   (eval $ac_try) 2>&5
37259   ac_status=$?
37260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37261   (exit $ac_status); }; } &&
37262          { ac_try='test -s conftest.$ac_objext'
37263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37264   (eval $ac_try) 2>&5
37265   ac_status=$?
37266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37267   (exit $ac_status); }; }; then
37268
37269                                         wx_cv_var_timezone=_timezone
37270
37271 else
37272   echo "$as_me: failed program was:" >&5
37273 sed 's/^/| /' conftest.$ac_ext >&5
37274
37275
37276                                         cat >conftest.$ac_ext <<_ACEOF
37277 /* confdefs.h.  */
37278 _ACEOF
37279 cat confdefs.h >>conftest.$ac_ext
37280 cat >>conftest.$ac_ext <<_ACEOF
37281 /* end confdefs.h.  */
37282
37283                                                 #include <time.h>
37284
37285 int
37286 main ()
37287 {
37288
37289                                                 int tz;
37290                                                 tz = __timezone;
37291
37292   ;
37293   return 0;
37294 }
37295 _ACEOF
37296 rm -f conftest.$ac_objext
37297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37298   (eval $ac_compile) 2>conftest.er1
37299   ac_status=$?
37300   grep -v '^ *+' conftest.er1 >conftest.err
37301   rm -f conftest.er1
37302   cat conftest.err >&5
37303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37304   (exit $ac_status); } &&
37305          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37307   (eval $ac_try) 2>&5
37308   ac_status=$?
37309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37310   (exit $ac_status); }; } &&
37311          { ac_try='test -s conftest.$ac_objext'
37312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37313   (eval $ac_try) 2>&5
37314   ac_status=$?
37315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37316   (exit $ac_status); }; }; then
37317
37318                                                 wx_cv_var_timezone=__timezone
37319
37320 else
37321   echo "$as_me: failed program was:" >&5
37322 sed 's/^/| /' conftest.$ac_ext >&5
37323
37324
37325                                                 if test "$USE_DOS" = 0 ; then
37326                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
37327 echo "$as_me: WARNING: no timezone variable" >&2;}
37328                                                 fi
37329
37330
37331 fi
37332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37333
37334
37335 fi
37336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37337
37338
37339 fi
37340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37341
37342
37343 fi
37344 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
37345 echo "${ECHO_T}$wx_cv_var_timezone" >&6
37346
37347         if test "x$wx_cv_var_timezone" != x ; then
37348         cat >>confdefs.h <<_ACEOF
37349 #define WX_TIMEZONE $wx_cv_var_timezone
37350 _ACEOF
37351
37352     fi
37353
37354
37355 for ac_func in localtime
37356 do
37357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37358 echo "$as_me:$LINENO: checking for $ac_func" >&5
37359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37360 if eval "test \"\${$as_ac_var+set}\" = set"; then
37361   echo $ECHO_N "(cached) $ECHO_C" >&6
37362 else
37363   cat >conftest.$ac_ext <<_ACEOF
37364 /* confdefs.h.  */
37365 _ACEOF
37366 cat confdefs.h >>conftest.$ac_ext
37367 cat >>conftest.$ac_ext <<_ACEOF
37368 /* end confdefs.h.  */
37369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37371 #define $ac_func innocuous_$ac_func
37372
37373 /* System header to define __stub macros and hopefully few prototypes,
37374     which can conflict with char $ac_func (); below.
37375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37376     <limits.h> exists even on freestanding compilers.  */
37377
37378 #ifdef __STDC__
37379 # include <limits.h>
37380 #else
37381 # include <assert.h>
37382 #endif
37383
37384 #undef $ac_func
37385
37386 /* Override any gcc2 internal prototype to avoid an error.  */
37387 #ifdef __cplusplus
37388 extern "C"
37389 {
37390 #endif
37391 /* We use char because int might match the return type of a gcc2
37392    builtin and then its argument prototype would still apply.  */
37393 char $ac_func ();
37394 /* The GNU C library defines this for functions which it implements
37395     to always fail with ENOSYS.  Some functions are actually named
37396     something starting with __ and the normal name is an alias.  */
37397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37398 choke me
37399 #else
37400 char (*f) () = $ac_func;
37401 #endif
37402 #ifdef __cplusplus
37403 }
37404 #endif
37405
37406 int
37407 main ()
37408 {
37409 return f != $ac_func;
37410   ;
37411   return 0;
37412 }
37413 _ACEOF
37414 rm -f conftest.$ac_objext conftest$ac_exeext
37415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37416   (eval $ac_link) 2>conftest.er1
37417   ac_status=$?
37418   grep -v '^ *+' conftest.er1 >conftest.err
37419   rm -f conftest.er1
37420   cat conftest.err >&5
37421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37422   (exit $ac_status); } &&
37423          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37425   (eval $ac_try) 2>&5
37426   ac_status=$?
37427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37428   (exit $ac_status); }; } &&
37429          { ac_try='test -s conftest$ac_exeext'
37430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37431   (eval $ac_try) 2>&5
37432   ac_status=$?
37433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37434   (exit $ac_status); }; }; then
37435   eval "$as_ac_var=yes"
37436 else
37437   echo "$as_me: failed program was:" >&5
37438 sed 's/^/| /' conftest.$ac_ext >&5
37439
37440 eval "$as_ac_var=no"
37441 fi
37442 rm -f conftest.err conftest.$ac_objext \
37443       conftest$ac_exeext conftest.$ac_ext
37444 fi
37445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37447 if test `eval echo '${'$as_ac_var'}'` = yes; then
37448   cat >>confdefs.h <<_ACEOF
37449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37450 _ACEOF
37451
37452 fi
37453 done
37454
37455
37456     if test "$ac_cv_func_localtime" = "yes"; then
37457         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
37458 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
37459 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
37460   echo $ECHO_N "(cached) $ECHO_C" >&6
37461 else
37462
37463             cat >conftest.$ac_ext <<_ACEOF
37464 /* confdefs.h.  */
37465 _ACEOF
37466 cat confdefs.h >>conftest.$ac_ext
37467 cat >>conftest.$ac_ext <<_ACEOF
37468 /* end confdefs.h.  */
37469
37470                     #include <time.h>
37471
37472 int
37473 main ()
37474 {
37475
37476                     struct tm tm;
37477                     tm.tm_gmtoff++;
37478
37479   ;
37480   return 0;
37481 }
37482 _ACEOF
37483 rm -f conftest.$ac_objext
37484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37485   (eval $ac_compile) 2>conftest.er1
37486   ac_status=$?
37487   grep -v '^ *+' conftest.er1 >conftest.err
37488   rm -f conftest.er1
37489   cat conftest.err >&5
37490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37491   (exit $ac_status); } &&
37492          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37494   (eval $ac_try) 2>&5
37495   ac_status=$?
37496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37497   (exit $ac_status); }; } &&
37498          { ac_try='test -s conftest.$ac_objext'
37499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37500   (eval $ac_try) 2>&5
37501   ac_status=$?
37502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37503   (exit $ac_status); }; }; then
37504
37505                     wx_cv_struct_tm_has_gmtoff=yes
37506
37507 else
37508   echo "$as_me: failed program was:" >&5
37509 sed 's/^/| /' conftest.$ac_ext >&5
37510
37511 wx_cv_struct_tm_has_gmtoff=no
37512
37513 fi
37514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37515
37516 fi
37517 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
37518 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
37519     fi
37520
37521     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
37522         cat >>confdefs.h <<\_ACEOF
37523 #define WX_GMTOFF_IN_TM 1
37524 _ACEOF
37525
37526     fi
37527
37528
37529
37530 for ac_func in gettimeofday ftime
37531 do
37532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37533 echo "$as_me:$LINENO: checking for $ac_func" >&5
37534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37535 if eval "test \"\${$as_ac_var+set}\" = set"; then
37536   echo $ECHO_N "(cached) $ECHO_C" >&6
37537 else
37538   cat >conftest.$ac_ext <<_ACEOF
37539 /* confdefs.h.  */
37540 _ACEOF
37541 cat confdefs.h >>conftest.$ac_ext
37542 cat >>conftest.$ac_ext <<_ACEOF
37543 /* end confdefs.h.  */
37544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37546 #define $ac_func innocuous_$ac_func
37547
37548 /* System header to define __stub macros and hopefully few prototypes,
37549     which can conflict with char $ac_func (); below.
37550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37551     <limits.h> exists even on freestanding compilers.  */
37552
37553 #ifdef __STDC__
37554 # include <limits.h>
37555 #else
37556 # include <assert.h>
37557 #endif
37558
37559 #undef $ac_func
37560
37561 /* Override any gcc2 internal prototype to avoid an error.  */
37562 #ifdef __cplusplus
37563 extern "C"
37564 {
37565 #endif
37566 /* We use char because int might match the return type of a gcc2
37567    builtin and then its argument prototype would still apply.  */
37568 char $ac_func ();
37569 /* The GNU C library defines this for functions which it implements
37570     to always fail with ENOSYS.  Some functions are actually named
37571     something starting with __ and the normal name is an alias.  */
37572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37573 choke me
37574 #else
37575 char (*f) () = $ac_func;
37576 #endif
37577 #ifdef __cplusplus
37578 }
37579 #endif
37580
37581 int
37582 main ()
37583 {
37584 return f != $ac_func;
37585   ;
37586   return 0;
37587 }
37588 _ACEOF
37589 rm -f conftest.$ac_objext conftest$ac_exeext
37590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37591   (eval $ac_link) 2>conftest.er1
37592   ac_status=$?
37593   grep -v '^ *+' conftest.er1 >conftest.err
37594   rm -f conftest.er1
37595   cat conftest.err >&5
37596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37597   (exit $ac_status); } &&
37598          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37600   (eval $ac_try) 2>&5
37601   ac_status=$?
37602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37603   (exit $ac_status); }; } &&
37604          { ac_try='test -s conftest$ac_exeext'
37605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37606   (eval $ac_try) 2>&5
37607   ac_status=$?
37608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37609   (exit $ac_status); }; }; then
37610   eval "$as_ac_var=yes"
37611 else
37612   echo "$as_me: failed program was:" >&5
37613 sed 's/^/| /' conftest.$ac_ext >&5
37614
37615 eval "$as_ac_var=no"
37616 fi
37617 rm -f conftest.err conftest.$ac_objext \
37618       conftest$ac_exeext conftest.$ac_ext
37619 fi
37620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37622 if test `eval echo '${'$as_ac_var'}'` = yes; then
37623   cat >>confdefs.h <<_ACEOF
37624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37625 _ACEOF
37626  break
37627 fi
37628 done
37629
37630
37631     if test "$ac_cv_func_gettimeofday" = "yes"; then
37632         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37633 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37634 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37635   echo $ECHO_N "(cached) $ECHO_C" >&6
37636 else
37637
37638
37639
37640             ac_ext=cc
37641 ac_cpp='$CXXCPP $CPPFLAGS'
37642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37645
37646
37647             cat >conftest.$ac_ext <<_ACEOF
37648 /* confdefs.h.  */
37649 _ACEOF
37650 cat confdefs.h >>conftest.$ac_ext
37651 cat >>conftest.$ac_ext <<_ACEOF
37652 /* end confdefs.h.  */
37653
37654                     #include <sys/time.h>
37655                     #include <unistd.h>
37656
37657 int
37658 main ()
37659 {
37660
37661                     struct timeval tv;
37662                     gettimeofday(&tv, NULL);
37663
37664   ;
37665   return 0;
37666 }
37667 _ACEOF
37668 rm -f conftest.$ac_objext
37669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37670   (eval $ac_compile) 2>conftest.er1
37671   ac_status=$?
37672   grep -v '^ *+' conftest.er1 >conftest.err
37673   rm -f conftest.er1
37674   cat conftest.err >&5
37675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37676   (exit $ac_status); } &&
37677          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37679   (eval $ac_try) 2>&5
37680   ac_status=$?
37681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37682   (exit $ac_status); }; } &&
37683          { ac_try='test -s conftest.$ac_objext'
37684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37685   (eval $ac_try) 2>&5
37686   ac_status=$?
37687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37688   (exit $ac_status); }; }; then
37689   wx_cv_func_gettimeofday_has_2_args=yes
37690 else
37691   echo "$as_me: failed program was:" >&5
37692 sed 's/^/| /' conftest.$ac_ext >&5
37693
37694 cat >conftest.$ac_ext <<_ACEOF
37695 /* confdefs.h.  */
37696 _ACEOF
37697 cat confdefs.h >>conftest.$ac_ext
37698 cat >>conftest.$ac_ext <<_ACEOF
37699 /* end confdefs.h.  */
37700
37701                         #include <sys/time.h>
37702                         #include <unistd.h>
37703
37704 int
37705 main ()
37706 {
37707
37708                         struct timeval tv;
37709                         gettimeofday(&tv);
37710
37711   ;
37712   return 0;
37713 }
37714 _ACEOF
37715 rm -f conftest.$ac_objext
37716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37717   (eval $ac_compile) 2>conftest.er1
37718   ac_status=$?
37719   grep -v '^ *+' conftest.er1 >conftest.err
37720   rm -f conftest.er1
37721   cat conftest.err >&5
37722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37723   (exit $ac_status); } &&
37724          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
37725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37726   (eval $ac_try) 2>&5
37727   ac_status=$?
37728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37729   (exit $ac_status); }; } &&
37730          { ac_try='test -s conftest.$ac_objext'
37731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37732   (eval $ac_try) 2>&5
37733   ac_status=$?
37734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37735   (exit $ac_status); }; }; then
37736   wx_cv_func_gettimeofday_has_2_args=no
37737 else
37738   echo "$as_me: failed program was:" >&5
37739 sed 's/^/| /' conftest.$ac_ext >&5
37740
37741
37742                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
37743 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
37744                         wx_cv_func_gettimeofday_has_2_args=unknown
37745
37746
37747 fi
37748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37749
37750 fi
37751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37752             ac_ext=c
37753 ac_cpp='$CPP $CPPFLAGS'
37754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37757
37758
37759 fi
37760 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
37761 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
37762
37763         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
37764             cat >>confdefs.h <<\_ACEOF
37765 #define WX_GETTIMEOFDAY_NO_TZ 1
37766 _ACEOF
37767
37768         fi
37769     fi
37770
37771     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
37772 fi
37773
37774
37775 if test "$wxUSE_SOCKETS" = "yes"; then
37776     if test "$wxUSE_MGL" = "1"; then
37777         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
37778 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
37779         wxUSE_SOCKETS="no"
37780     fi
37781 fi
37782
37783 if test "$wxUSE_SOCKETS" = "yes"; then
37784         if test "$TOOLKIT" != "MSW"; then
37785                 echo "$as_me:$LINENO: checking for socket" >&5
37786 echo $ECHO_N "checking for socket... $ECHO_C" >&6
37787 if test "${ac_cv_func_socket+set}" = set; then
37788   echo $ECHO_N "(cached) $ECHO_C" >&6
37789 else
37790   cat >conftest.$ac_ext <<_ACEOF
37791 /* confdefs.h.  */
37792 _ACEOF
37793 cat confdefs.h >>conftest.$ac_ext
37794 cat >>conftest.$ac_ext <<_ACEOF
37795 /* end confdefs.h.  */
37796 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
37797    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37798 #define socket innocuous_socket
37799
37800 /* System header to define __stub macros and hopefully few prototypes,
37801     which can conflict with char socket (); below.
37802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37803     <limits.h> exists even on freestanding compilers.  */
37804
37805 #ifdef __STDC__
37806 # include <limits.h>
37807 #else
37808 # include <assert.h>
37809 #endif
37810
37811 #undef socket
37812
37813 /* Override any gcc2 internal prototype to avoid an error.  */
37814 #ifdef __cplusplus
37815 extern "C"
37816 {
37817 #endif
37818 /* We use char because int might match the return type of a gcc2
37819    builtin and then its argument prototype would still apply.  */
37820 char socket ();
37821 /* The GNU C library defines this for functions which it implements
37822     to always fail with ENOSYS.  Some functions are actually named
37823     something starting with __ and the normal name is an alias.  */
37824 #if defined (__stub_socket) || defined (__stub___socket)
37825 choke me
37826 #else
37827 char (*f) () = socket;
37828 #endif
37829 #ifdef __cplusplus
37830 }
37831 #endif
37832
37833 int
37834 main ()
37835 {
37836 return f != socket;
37837   ;
37838   return 0;
37839 }
37840 _ACEOF
37841 rm -f conftest.$ac_objext conftest$ac_exeext
37842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37843   (eval $ac_link) 2>conftest.er1
37844   ac_status=$?
37845   grep -v '^ *+' conftest.er1 >conftest.err
37846   rm -f conftest.er1
37847   cat conftest.err >&5
37848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37849   (exit $ac_status); } &&
37850          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37852   (eval $ac_try) 2>&5
37853   ac_status=$?
37854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37855   (exit $ac_status); }; } &&
37856          { ac_try='test -s conftest$ac_exeext'
37857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37858   (eval $ac_try) 2>&5
37859   ac_status=$?
37860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37861   (exit $ac_status); }; }; then
37862   ac_cv_func_socket=yes
37863 else
37864   echo "$as_me: failed program was:" >&5
37865 sed 's/^/| /' conftest.$ac_ext >&5
37866
37867 ac_cv_func_socket=no
37868 fi
37869 rm -f conftest.err conftest.$ac_objext \
37870       conftest$ac_exeext conftest.$ac_ext
37871 fi
37872 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
37873 echo "${ECHO_T}$ac_cv_func_socket" >&6
37874 if test $ac_cv_func_socket = yes; then
37875   :
37876 else
37877
37878                 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
37879 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
37880 if test "${ac_cv_lib_socket_socket+set}" = set; then
37881   echo $ECHO_N "(cached) $ECHO_C" >&6
37882 else
37883   ac_check_lib_save_LIBS=$LIBS
37884 LIBS="-lsocket  $LIBS"
37885 cat >conftest.$ac_ext <<_ACEOF
37886 /* confdefs.h.  */
37887 _ACEOF
37888 cat confdefs.h >>conftest.$ac_ext
37889 cat >>conftest.$ac_ext <<_ACEOF
37890 /* end confdefs.h.  */
37891
37892 /* Override any gcc2 internal prototype to avoid an error.  */
37893 #ifdef __cplusplus
37894 extern "C"
37895 #endif
37896 /* We use char because int might match the return type of a gcc2
37897    builtin and then its argument prototype would still apply.  */
37898 char socket ();
37899 int
37900 main ()
37901 {
37902 socket ();
37903   ;
37904   return 0;
37905 }
37906 _ACEOF
37907 rm -f conftest.$ac_objext conftest$ac_exeext
37908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37909   (eval $ac_link) 2>conftest.er1
37910   ac_status=$?
37911   grep -v '^ *+' conftest.er1 >conftest.err
37912   rm -f conftest.er1
37913   cat conftest.err >&5
37914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37915   (exit $ac_status); } &&
37916          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
37917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37918   (eval $ac_try) 2>&5
37919   ac_status=$?
37920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37921   (exit $ac_status); }; } &&
37922          { ac_try='test -s conftest$ac_exeext'
37923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37924   (eval $ac_try) 2>&5
37925   ac_status=$?
37926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37927   (exit $ac_status); }; }; then
37928   ac_cv_lib_socket_socket=yes
37929 else
37930   echo "$as_me: failed program was:" >&5
37931 sed 's/^/| /' conftest.$ac_ext >&5
37932
37933 ac_cv_lib_socket_socket=no
37934 fi
37935 rm -f conftest.err conftest.$ac_objext \
37936       conftest$ac_exeext conftest.$ac_ext
37937 LIBS=$ac_check_lib_save_LIBS
37938 fi
37939 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
37940 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
37941 if test $ac_cv_lib_socket_socket = yes; then
37942   if test "$INET_LINK" != " -lsocket"; then
37943                         INET_LINK="$INET_LINK -lsocket"
37944                     fi
37945 else
37946
37947                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
37948 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
37949                         wxUSE_SOCKETS=no
37950
37951
37952 fi
37953
37954
37955
37956 fi
37957
37958     fi
37959 fi
37960
37961 if test "$wxUSE_SOCKETS" = "yes" ; then
37962                 if test "$TOOLKIT" != "MSW"; then
37963                                         ac_ext=cc
37964 ac_cpp='$CXXCPP $CPPFLAGS'
37965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37968
37969         echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
37970 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
37971 if test "${wx_cv_type_getsockname3+set}" = set; then
37972   echo $ECHO_N "(cached) $ECHO_C" >&6
37973 else
37974
37975                 cat >conftest.$ac_ext <<_ACEOF
37976 /* confdefs.h.  */
37977 _ACEOF
37978 cat confdefs.h >>conftest.$ac_ext
37979 cat >>conftest.$ac_ext <<_ACEOF
37980 /* end confdefs.h.  */
37981
37982                         #include <sys/types.h>
37983                         #include <sys/socket.h>
37984
37985 int
37986 main ()
37987 {
37988
37989                         socklen_t len;
37990                         getsockname(0, 0, &len);
37991
37992   ;
37993   return 0;
37994 }
37995 _ACEOF
37996 rm -f conftest.$ac_objext
37997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37998   (eval $ac_compile) 2>conftest.er1
37999   ac_status=$?
38000   grep -v '^ *+' conftest.er1 >conftest.err
38001   rm -f conftest.er1
38002   cat conftest.err >&5
38003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38004   (exit $ac_status); } &&
38005          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38007   (eval $ac_try) 2>&5
38008   ac_status=$?
38009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38010   (exit $ac_status); }; } &&
38011          { ac_try='test -s conftest.$ac_objext'
38012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38013   (eval $ac_try) 2>&5
38014   ac_status=$?
38015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38016   (exit $ac_status); }; }; then
38017   wx_cv_type_getsockname3=socklen_t
38018 else
38019   echo "$as_me: failed program was:" >&5
38020 sed 's/^/| /' conftest.$ac_ext >&5
38021
38022
38023                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
38024                         if test "$GCC" = yes ; then
38025                             CFLAGS="$CFLAGS -Werror"
38026                         fi
38027
38028                         cat >conftest.$ac_ext <<_ACEOF
38029 /* confdefs.h.  */
38030 _ACEOF
38031 cat confdefs.h >>conftest.$ac_ext
38032 cat >>conftest.$ac_ext <<_ACEOF
38033 /* end confdefs.h.  */
38034
38035                                 #include <sys/types.h>
38036                                 #include <sys/socket.h>
38037
38038 int
38039 main ()
38040 {
38041
38042                                 size_t len;
38043                                 getsockname(0, 0, &len);
38044
38045   ;
38046   return 0;
38047 }
38048 _ACEOF
38049 rm -f conftest.$ac_objext
38050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38051   (eval $ac_compile) 2>conftest.er1
38052   ac_status=$?
38053   grep -v '^ *+' conftest.er1 >conftest.err
38054   rm -f conftest.er1
38055   cat conftest.err >&5
38056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38057   (exit $ac_status); } &&
38058          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38060   (eval $ac_try) 2>&5
38061   ac_status=$?
38062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38063   (exit $ac_status); }; } &&
38064          { ac_try='test -s conftest.$ac_objext'
38065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38066   (eval $ac_try) 2>&5
38067   ac_status=$?
38068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38069   (exit $ac_status); }; }; then
38070   wx_cv_type_getsockname3=size_t
38071 else
38072   echo "$as_me: failed program was:" >&5
38073 sed 's/^/| /' conftest.$ac_ext >&5
38074
38075 cat >conftest.$ac_ext <<_ACEOF
38076 /* confdefs.h.  */
38077 _ACEOF
38078 cat confdefs.h >>conftest.$ac_ext
38079 cat >>conftest.$ac_ext <<_ACEOF
38080 /* end confdefs.h.  */
38081
38082                                     #include <sys/types.h>
38083                                     #include <sys/socket.h>
38084
38085 int
38086 main ()
38087 {
38088
38089                                     int len;
38090                                     getsockname(0, 0, &len);
38091
38092   ;
38093   return 0;
38094 }
38095 _ACEOF
38096 rm -f conftest.$ac_objext
38097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38098   (eval $ac_compile) 2>conftest.er1
38099   ac_status=$?
38100   grep -v '^ *+' conftest.er1 >conftest.err
38101   rm -f conftest.er1
38102   cat conftest.err >&5
38103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38104   (exit $ac_status); } &&
38105          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38107   (eval $ac_try) 2>&5
38108   ac_status=$?
38109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38110   (exit $ac_status); }; } &&
38111          { ac_try='test -s conftest.$ac_objext'
38112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38113   (eval $ac_try) 2>&5
38114   ac_status=$?
38115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38116   (exit $ac_status); }; }; then
38117   wx_cv_type_getsockname3=int
38118 else
38119   echo "$as_me: failed program was:" >&5
38120 sed 's/^/| /' conftest.$ac_ext >&5
38121
38122 wx_cv_type_getsockname3=unknown
38123
38124 fi
38125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38126
38127 fi
38128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38129
38130                         CFLAGS="$CFLAGS_OLD"
38131
38132
38133 fi
38134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38135
38136 fi
38137 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
38138 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
38139
38140         if test "$wx_cv_type_getsockname3" = "unknown"; then
38141             wxUSE_SOCKETS=no
38142             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38143 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38144         else
38145             cat >>confdefs.h <<_ACEOF
38146 #define SOCKLEN_T $wx_cv_type_getsockname3
38147 _ACEOF
38148
38149         fi
38150                 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
38151 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
38152 if test "${wx_cv_type_getsockopt5+set}" = set; then
38153   echo $ECHO_N "(cached) $ECHO_C" >&6
38154 else
38155
38156                 cat >conftest.$ac_ext <<_ACEOF
38157 /* confdefs.h.  */
38158 _ACEOF
38159 cat confdefs.h >>conftest.$ac_ext
38160 cat >>conftest.$ac_ext <<_ACEOF
38161 /* end confdefs.h.  */
38162
38163                         #include <sys/types.h>
38164                         #include <sys/socket.h>
38165
38166 int
38167 main ()
38168 {
38169
38170                         socklen_t len;
38171                         getsockopt(0, 0, 0, 0, &len);
38172
38173   ;
38174   return 0;
38175 }
38176 _ACEOF
38177 rm -f conftest.$ac_objext
38178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38179   (eval $ac_compile) 2>conftest.er1
38180   ac_status=$?
38181   grep -v '^ *+' conftest.er1 >conftest.err
38182   rm -f conftest.er1
38183   cat conftest.err >&5
38184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38185   (exit $ac_status); } &&
38186          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38188   (eval $ac_try) 2>&5
38189   ac_status=$?
38190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38191   (exit $ac_status); }; } &&
38192          { ac_try='test -s conftest.$ac_objext'
38193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38194   (eval $ac_try) 2>&5
38195   ac_status=$?
38196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38197   (exit $ac_status); }; }; then
38198   wx_cv_type_getsockopt5=socklen_t
38199 else
38200   echo "$as_me: failed program was:" >&5
38201 sed 's/^/| /' conftest.$ac_ext >&5
38202
38203
38204                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
38205                         if test "$GCC" = yes ; then
38206                             CFLAGS="$CFLAGS -Werror"
38207                         fi
38208
38209                         cat >conftest.$ac_ext <<_ACEOF
38210 /* confdefs.h.  */
38211 _ACEOF
38212 cat confdefs.h >>conftest.$ac_ext
38213 cat >>conftest.$ac_ext <<_ACEOF
38214 /* end confdefs.h.  */
38215
38216                                 #include <sys/types.h>
38217                                 #include <sys/socket.h>
38218
38219 int
38220 main ()
38221 {
38222
38223                                 size_t len;
38224                                 getsockopt(0, 0, 0, 0, &len);
38225
38226   ;
38227   return 0;
38228 }
38229 _ACEOF
38230 rm -f conftest.$ac_objext
38231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38232   (eval $ac_compile) 2>conftest.er1
38233   ac_status=$?
38234   grep -v '^ *+' conftest.er1 >conftest.err
38235   rm -f conftest.er1
38236   cat conftest.err >&5
38237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38238   (exit $ac_status); } &&
38239          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38241   (eval $ac_try) 2>&5
38242   ac_status=$?
38243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38244   (exit $ac_status); }; } &&
38245          { ac_try='test -s conftest.$ac_objext'
38246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38247   (eval $ac_try) 2>&5
38248   ac_status=$?
38249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38250   (exit $ac_status); }; }; then
38251   wx_cv_type_getsockopt5=size_t
38252 else
38253   echo "$as_me: failed program was:" >&5
38254 sed 's/^/| /' conftest.$ac_ext >&5
38255
38256 cat >conftest.$ac_ext <<_ACEOF
38257 /* confdefs.h.  */
38258 _ACEOF
38259 cat confdefs.h >>conftest.$ac_ext
38260 cat >>conftest.$ac_ext <<_ACEOF
38261 /* end confdefs.h.  */
38262
38263                                     #include <sys/types.h>
38264                                     #include <sys/socket.h>
38265
38266 int
38267 main ()
38268 {
38269
38270                                     int len;
38271                                     getsockopt(0, 0, 0, 0, &len);
38272
38273   ;
38274   return 0;
38275 }
38276 _ACEOF
38277 rm -f conftest.$ac_objext
38278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38279   (eval $ac_compile) 2>conftest.er1
38280   ac_status=$?
38281   grep -v '^ *+' conftest.er1 >conftest.err
38282   rm -f conftest.er1
38283   cat conftest.err >&5
38284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38285   (exit $ac_status); } &&
38286          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38288   (eval $ac_try) 2>&5
38289   ac_status=$?
38290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38291   (exit $ac_status); }; } &&
38292          { ac_try='test -s conftest.$ac_objext'
38293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38294   (eval $ac_try) 2>&5
38295   ac_status=$?
38296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38297   (exit $ac_status); }; }; then
38298   wx_cv_type_getsockopt5=int
38299 else
38300   echo "$as_me: failed program was:" >&5
38301 sed 's/^/| /' conftest.$ac_ext >&5
38302
38303 wx_cv_type_getsockopt5=unknown
38304
38305 fi
38306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38307
38308 fi
38309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38310
38311                         CFLAGS="$CFLAGS_OLD"
38312
38313
38314 fi
38315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38316
38317 fi
38318 echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
38319 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
38320
38321         if test "$wx_cv_type_getsockopt5" = "unknown"; then
38322             wxUSE_SOCKETS=no
38323             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38324 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38325         else
38326             cat >>confdefs.h <<_ACEOF
38327 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
38328 _ACEOF
38329
38330         fi
38331         ac_ext=c
38332 ac_cpp='$CPP $CPPFLAGS'
38333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38336
38337     fi
38338 fi
38339
38340 if test "$wxUSE_SOCKETS" = "yes" ; then
38341     cat >>confdefs.h <<\_ACEOF
38342 #define wxUSE_SOCKETS 1
38343 _ACEOF
38344
38345     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
38346 fi
38347
38348 if test "$wxUSE_PROTOCOL" = "yes"; then
38349     if test "$wxUSE_SOCKETS" != "yes"; then
38350         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
38351 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
38352         wxUSE_PROTOCOL=no
38353     fi
38354 fi
38355
38356 if test "$wxUSE_PROTOCOL" = "yes"; then
38357     cat >>confdefs.h <<\_ACEOF
38358 #define wxUSE_PROTOCOL 1
38359 _ACEOF
38360
38361
38362     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
38363         cat >>confdefs.h <<\_ACEOF
38364 #define wxUSE_PROTOCOL_HTTP 1
38365 _ACEOF
38366
38367     fi
38368     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
38369         cat >>confdefs.h <<\_ACEOF
38370 #define wxUSE_PROTOCOL_FTP 1
38371 _ACEOF
38372
38373     fi
38374     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
38375         cat >>confdefs.h <<\_ACEOF
38376 #define wxUSE_PROTOCOL_FILE 1
38377 _ACEOF
38378
38379     fi
38380 else
38381     if test "$wxUSE_FS_INET" = "yes"; then
38382         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
38383 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
38384         wxUSE_FS_INET="no"
38385     fi
38386 fi
38387
38388 if test "$wxUSE_URL" = "yes"; then
38389     if test "$wxUSE_PROTOCOL" != "yes"; then
38390         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
38391 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
38392         wxUSE_URL=no
38393     fi
38394     if test "$wxUSE_URL" = "yes"; then
38395         cat >>confdefs.h <<\_ACEOF
38396 #define wxUSE_URL 1
38397 _ACEOF
38398
38399     fi
38400 fi
38401
38402 if test "$wxUSE_FS_INET" = "yes"; then
38403   cat >>confdefs.h <<\_ACEOF
38404 #define wxUSE_FS_INET 1
38405 _ACEOF
38406
38407 fi
38408
38409
38410 if test "$wxUSE_GUI" = "yes"; then
38411           if test "$wxUSE_JOYSTICK" = "yes"; then
38412
38413                 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
38414
38415 for ac_header in linux/joystick.h
38416 do
38417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38419   echo "$as_me:$LINENO: checking for $ac_header" >&5
38420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38422   echo $ECHO_N "(cached) $ECHO_C" >&6
38423 fi
38424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38426 else
38427   # Is the header compilable?
38428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38430 cat >conftest.$ac_ext <<_ACEOF
38431 /* confdefs.h.  */
38432 _ACEOF
38433 cat confdefs.h >>conftest.$ac_ext
38434 cat >>conftest.$ac_ext <<_ACEOF
38435 /* end confdefs.h.  */
38436 $ac_includes_default
38437 #include <$ac_header>
38438 _ACEOF
38439 rm -f conftest.$ac_objext
38440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38441   (eval $ac_compile) 2>conftest.er1
38442   ac_status=$?
38443   grep -v '^ *+' conftest.er1 >conftest.err
38444   rm -f conftest.er1
38445   cat conftest.err >&5
38446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38447   (exit $ac_status); } &&
38448          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38450   (eval $ac_try) 2>&5
38451   ac_status=$?
38452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453   (exit $ac_status); }; } &&
38454          { ac_try='test -s conftest.$ac_objext'
38455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38456   (eval $ac_try) 2>&5
38457   ac_status=$?
38458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38459   (exit $ac_status); }; }; then
38460   ac_header_compiler=yes
38461 else
38462   echo "$as_me: failed program was:" >&5
38463 sed 's/^/| /' conftest.$ac_ext >&5
38464
38465 ac_header_compiler=no
38466 fi
38467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38469 echo "${ECHO_T}$ac_header_compiler" >&6
38470
38471 # Is the header present?
38472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38474 cat >conftest.$ac_ext <<_ACEOF
38475 /* confdefs.h.  */
38476 _ACEOF
38477 cat confdefs.h >>conftest.$ac_ext
38478 cat >>conftest.$ac_ext <<_ACEOF
38479 /* end confdefs.h.  */
38480 #include <$ac_header>
38481 _ACEOF
38482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38483   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38484   ac_status=$?
38485   grep -v '^ *+' conftest.er1 >conftest.err
38486   rm -f conftest.er1
38487   cat conftest.err >&5
38488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38489   (exit $ac_status); } >/dev/null; then
38490   if test -s conftest.err; then
38491     ac_cpp_err=$ac_c_preproc_warn_flag
38492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38493   else
38494     ac_cpp_err=
38495   fi
38496 else
38497   ac_cpp_err=yes
38498 fi
38499 if test -z "$ac_cpp_err"; then
38500   ac_header_preproc=yes
38501 else
38502   echo "$as_me: failed program was:" >&5
38503 sed 's/^/| /' conftest.$ac_ext >&5
38504
38505   ac_header_preproc=no
38506 fi
38507 rm -f conftest.err conftest.$ac_ext
38508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38509 echo "${ECHO_T}$ac_header_preproc" >&6
38510
38511 # So?  What about this header?
38512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38513   yes:no: )
38514     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38518     ac_header_preproc=yes
38519     ;;
38520   no:yes:* )
38521     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38523     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38524 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38525     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38527     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38528 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38531     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38533     (
38534       cat <<\_ASBOX
38535 ## ----------------------------------------- ##
38536 ## Report this to wx-dev@lists.wxwidgets.org ##
38537 ## ----------------------------------------- ##
38538 _ASBOX
38539     ) |
38540       sed "s/^/$as_me: WARNING:     /" >&2
38541     ;;
38542 esac
38543 echo "$as_me:$LINENO: checking for $ac_header" >&5
38544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38546   echo $ECHO_N "(cached) $ECHO_C" >&6
38547 else
38548   eval "$as_ac_Header=\$ac_header_preproc"
38549 fi
38550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38552
38553 fi
38554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38555   cat >>confdefs.h <<_ACEOF
38556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38557 _ACEOF
38558
38559 fi
38560
38561 done
38562
38563             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
38564                 wxUSE_JOYSTICK=no
38565                 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38566 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38567             fi
38568         else
38569                       if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
38570                 wxUSE_JOYSTICK=no
38571                 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38572 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38573            fi
38574         fi
38575
38576
38577         if test "$wxUSE_JOYSTICK" = "yes"; then
38578             cat >>confdefs.h <<\_ACEOF
38579 #define wxUSE_JOYSTICK 1
38580 _ACEOF
38581
38582             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
38583         fi
38584     fi
38585 fi
38586
38587
38588
38589 if test "$wxUSE_FONTMAP" = "yes" ; then
38590   cat >>confdefs.h <<\_ACEOF
38591 #define wxUSE_FONTMAP 1
38592 _ACEOF
38593
38594 fi
38595
38596 if test "$wxUSE_UNICODE" = "yes" ; then
38597   cat >>confdefs.h <<\_ACEOF
38598 #define wxUSE_UNICODE 1
38599 _ACEOF
38600
38601
38602   if test "$USE_WIN32" != 1; then
38603       wxUSE_UNICODE_MSLU=no
38604   fi
38605
38606   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38607         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38608 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38609 if test "${ac_cv_lib_unicows_main+set}" = set; then
38610   echo $ECHO_N "(cached) $ECHO_C" >&6
38611 else
38612   ac_check_lib_save_LIBS=$LIBS
38613 LIBS="-lunicows  $LIBS"
38614 cat >conftest.$ac_ext <<_ACEOF
38615 /* confdefs.h.  */
38616 _ACEOF
38617 cat confdefs.h >>conftest.$ac_ext
38618 cat >>conftest.$ac_ext <<_ACEOF
38619 /* end confdefs.h.  */
38620
38621
38622 int
38623 main ()
38624 {
38625 main ();
38626   ;
38627   return 0;
38628 }
38629 _ACEOF
38630 rm -f conftest.$ac_objext conftest$ac_exeext
38631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38632   (eval $ac_link) 2>conftest.er1
38633   ac_status=$?
38634   grep -v '^ *+' conftest.er1 >conftest.err
38635   rm -f conftest.er1
38636   cat conftest.err >&5
38637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38638   (exit $ac_status); } &&
38639          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38641   (eval $ac_try) 2>&5
38642   ac_status=$?
38643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38644   (exit $ac_status); }; } &&
38645          { ac_try='test -s conftest$ac_exeext'
38646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38647   (eval $ac_try) 2>&5
38648   ac_status=$?
38649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38650   (exit $ac_status); }; }; then
38651   ac_cv_lib_unicows_main=yes
38652 else
38653   echo "$as_me: failed program was:" >&5
38654 sed 's/^/| /' conftest.$ac_ext >&5
38655
38656 ac_cv_lib_unicows_main=no
38657 fi
38658 rm -f conftest.err conftest.$ac_objext \
38659       conftest$ac_exeext conftest.$ac_ext
38660 LIBS=$ac_check_lib_save_LIBS
38661 fi
38662 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
38663 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
38664 if test $ac_cv_lib_unicows_main = yes; then
38665
38666                 cat >>confdefs.h <<\_ACEOF
38667 #define wxUSE_UNICODE_MSLU 1
38668 _ACEOF
38669
38670
38671 else
38672
38673                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38674                              Applications will only run on Windows NT/2000/XP!" >&5
38675 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38676                              Applications will only run on Windows NT/2000/XP!" >&2;}
38677                 wxUSE_UNICODE_MSLU=no
38678
38679 fi
38680
38681     fi
38682 fi
38683
38684 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
38685   cat >>confdefs.h <<\_ACEOF
38686 #define wxUSE_EXPERIMENTAL_PRINTF 1
38687 _ACEOF
38688
38689 fi
38690
38691
38692 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
38693   cat >>confdefs.h <<\_ACEOF
38694 #define wxUSE_POSTSCRIPT 1
38695 _ACEOF
38696
38697 fi
38698
38699 cat >>confdefs.h <<\_ACEOF
38700 #define wxUSE_AFM_FOR_POSTSCRIPT 1
38701 _ACEOF
38702
38703
38704 cat >>confdefs.h <<\_ACEOF
38705 #define wxUSE_NORMALIZED_PS_FONTS 1
38706 _ACEOF
38707
38708
38709
38710 if test "$wxUSE_CONSTRAINTS" = "yes"; then
38711     cat >>confdefs.h <<\_ACEOF
38712 #define wxUSE_CONSTRAINTS 1
38713 _ACEOF
38714
38715     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
38716 fi
38717
38718 if test "$wxUSE_MDI" = "yes"; then
38719     cat >>confdefs.h <<\_ACEOF
38720 #define wxUSE_MDI 1
38721 _ACEOF
38722
38723
38724     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38725         cat >>confdefs.h <<\_ACEOF
38726 #define wxUSE_MDI_ARCHITECTURE 1
38727 _ACEOF
38728
38729         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
38730     fi
38731 fi
38732
38733 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
38734     cat >>confdefs.h <<\_ACEOF
38735 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
38736 _ACEOF
38737
38738     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
38739     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38740         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
38741     fi
38742 fi
38743
38744 if test "$wxUSE_HELP" = "yes"; then
38745     cat >>confdefs.h <<\_ACEOF
38746 #define wxUSE_HELP 1
38747 _ACEOF
38748
38749     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
38750
38751     if test "$wxUSE_MSW" = 1; then
38752       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
38753         cat >>confdefs.h <<\_ACEOF
38754 #define wxUSE_MS_HTML_HELP 1
38755 _ACEOF
38756
38757       fi
38758     fi
38759
38760     if test "$wxUSE_WXHTML_HELP" = "yes"; then
38761       if test "$wxUSE_HTML" = "yes"; then
38762         cat >>confdefs.h <<\_ACEOF
38763 #define wxUSE_WXHTML_HELP 1
38764 _ACEOF
38765
38766       else
38767         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
38768 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
38769         wxUSE_WXHTML_HELP=no
38770       fi
38771     fi
38772 fi
38773
38774 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38775     if test "$wxUSE_CONSTRAINTS" != "yes"; then
38776         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
38777 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
38778     else
38779         cat >>confdefs.h <<\_ACEOF
38780 #define wxUSE_PRINTING_ARCHITECTURE 1
38781 _ACEOF
38782
38783     fi
38784     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
38785 fi
38786
38787 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
38788     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
38789 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
38790    { (exit 1); exit 1; }; }
38791 fi
38792
38793
38794 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
38795                           -o "$wxUSE_CLIPBOARD"     = "yes" \
38796                           -o "$wxUSE_OLE"     = "yes" \
38797                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
38798
38799 for ac_header in ole2.h
38800 do
38801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38803   echo "$as_me:$LINENO: checking for $ac_header" >&5
38804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38806   echo $ECHO_N "(cached) $ECHO_C" >&6
38807 fi
38808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38810 else
38811   # Is the header compilable?
38812 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38814 cat >conftest.$ac_ext <<_ACEOF
38815 /* confdefs.h.  */
38816 _ACEOF
38817 cat confdefs.h >>conftest.$ac_ext
38818 cat >>conftest.$ac_ext <<_ACEOF
38819 /* end confdefs.h.  */
38820 $ac_includes_default
38821 #include <$ac_header>
38822 _ACEOF
38823 rm -f conftest.$ac_objext
38824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38825   (eval $ac_compile) 2>conftest.er1
38826   ac_status=$?
38827   grep -v '^ *+' conftest.er1 >conftest.err
38828   rm -f conftest.er1
38829   cat conftest.err >&5
38830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38831   (exit $ac_status); } &&
38832          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
38833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38834   (eval $ac_try) 2>&5
38835   ac_status=$?
38836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38837   (exit $ac_status); }; } &&
38838          { ac_try='test -s conftest.$ac_objext'
38839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38840   (eval $ac_try) 2>&5
38841   ac_status=$?
38842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38843   (exit $ac_status); }; }; then
38844   ac_header_compiler=yes
38845 else
38846   echo "$as_me: failed program was:" >&5
38847 sed 's/^/| /' conftest.$ac_ext >&5
38848
38849 ac_header_compiler=no
38850 fi
38851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38853 echo "${ECHO_T}$ac_header_compiler" >&6
38854
38855 # Is the header present?
38856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38858 cat >conftest.$ac_ext <<_ACEOF
38859 /* confdefs.h.  */
38860 _ACEOF
38861 cat confdefs.h >>conftest.$ac_ext
38862 cat >>conftest.$ac_ext <<_ACEOF
38863 /* end confdefs.h.  */
38864 #include <$ac_header>
38865 _ACEOF
38866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38868   ac_status=$?
38869   grep -v '^ *+' conftest.er1 >conftest.err
38870   rm -f conftest.er1
38871   cat conftest.err >&5
38872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38873   (exit $ac_status); } >/dev/null; then
38874   if test -s conftest.err; then
38875     ac_cpp_err=$ac_c_preproc_warn_flag
38876     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38877   else
38878     ac_cpp_err=
38879   fi
38880 else
38881   ac_cpp_err=yes
38882 fi
38883 if test -z "$ac_cpp_err"; then
38884   ac_header_preproc=yes
38885 else
38886   echo "$as_me: failed program was:" >&5
38887 sed 's/^/| /' conftest.$ac_ext >&5
38888
38889   ac_header_preproc=no
38890 fi
38891 rm -f conftest.err conftest.$ac_ext
38892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38893 echo "${ECHO_T}$ac_header_preproc" >&6
38894
38895 # So?  What about this header?
38896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38897   yes:no: )
38898     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38900     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38902     ac_header_preproc=yes
38903     ;;
38904   no:yes:* )
38905     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38907     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38908 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38909     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38911     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38912 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38915     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38917     (
38918       cat <<\_ASBOX
38919 ## ----------------------------------------- ##
38920 ## Report this to wx-dev@lists.wxwidgets.org ##
38921 ## ----------------------------------------- ##
38922 _ASBOX
38923     ) |
38924       sed "s/^/$as_me: WARNING:     /" >&2
38925     ;;
38926 esac
38927 echo "$as_me:$LINENO: checking for $ac_header" >&5
38928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38930   echo $ECHO_N "(cached) $ECHO_C" >&6
38931 else
38932   eval "$as_ac_Header=\$ac_header_preproc"
38933 fi
38934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38936
38937 fi
38938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38939   cat >>confdefs.h <<_ACEOF
38940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38941 _ACEOF
38942
38943 fi
38944
38945 done
38946
38947
38948     if test "$ac_cv_header_ole2_h" = "yes" ; then
38949         if test "$GCC" = yes ; then
38950
38951
38952             ac_ext=cc
38953 ac_cpp='$CXXCPP $CPPFLAGS'
38954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38957
38958
38959             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
38960 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
38961             cat >conftest.$ac_ext <<_ACEOF
38962 /* confdefs.h.  */
38963 _ACEOF
38964 cat confdefs.h >>conftest.$ac_ext
38965 cat >>conftest.$ac_ext <<_ACEOF
38966 /* end confdefs.h.  */
38967 #include <windows.h>
38968                             #include <ole2.h>
38969 int
38970 main ()
38971 {
38972
38973   ;
38974   return 0;
38975 }
38976 _ACEOF
38977 rm -f conftest.$ac_objext
38978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38979   (eval $ac_compile) 2>conftest.er1
38980   ac_status=$?
38981   grep -v '^ *+' conftest.er1 >conftest.err
38982   rm -f conftest.er1
38983   cat conftest.err >&5
38984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38985   (exit $ac_status); } &&
38986          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
38987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38988   (eval $ac_try) 2>&5
38989   ac_status=$?
38990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38991   (exit $ac_status); }; } &&
38992          { ac_try='test -s conftest.$ac_objext'
38993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38994   (eval $ac_try) 2>&5
38995   ac_status=$?
38996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38997   (exit $ac_status); }; }; then
38998   echo "$as_me:$LINENO: result: no" >&5
38999 echo "${ECHO_T}no" >&6
39000 else
39001   echo "$as_me: failed program was:" >&5
39002 sed 's/^/| /' conftest.$ac_ext >&5
39003
39004 echo "$as_me:$LINENO: result: yes" >&5
39005 echo "${ECHO_T}yes" >&6
39006                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
39007 fi
39008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39009             ac_ext=c
39010 ac_cpp='$CPP $CPPFLAGS'
39011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39014
39015             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
39016             if test "$wxUSE_OLE" = "yes" ; then
39017                 cat >>confdefs.h <<\_ACEOF
39018 #define wxUSE_OLE 1
39019 _ACEOF
39020
39021                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
39022             fi
39023         fi
39024
39025                 if test "$wxUSE_DATAOBJ" = "yes" ; then
39026             cat >>confdefs.h <<\_ACEOF
39027 #define wxUSE_DATAOBJ 1
39028 _ACEOF
39029
39030         fi
39031     else
39032         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
39033 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
39034
39035         wxUSE_CLIPBOARD=no
39036         wxUSE_DRAG_AND_DROP=no
39037         wxUSE_DATAOBJ=no
39038         wxUSE_OLE=no
39039     fi
39040
39041     if test "$wxUSE_METAFILE" = "yes"; then
39042         cat >>confdefs.h <<\_ACEOF
39043 #define wxUSE_METAFILE 1
39044 _ACEOF
39045
39046
39047                 cat >>confdefs.h <<\_ACEOF
39048 #define wxUSE_ENH_METAFILE 1
39049 _ACEOF
39050
39051     fi
39052 fi
39053
39054 if test "$wxUSE_IPC" = "yes"; then
39055     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
39056         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
39057 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
39058         wxUSE_IPC=no
39059     fi
39060
39061     if test "$wxUSE_IPC" = "yes"; then
39062         cat >>confdefs.h <<\_ACEOF
39063 #define wxUSE_IPC 1
39064 _ACEOF
39065
39066         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
39067     fi
39068 fi
39069
39070 if test "$wxUSE_CLIPBOARD" = "yes"; then
39071     if test "$wxUSE_MGL" = 1; then
39072         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
39073 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
39074         wxUSE_CLIPBOARD=no
39075     fi
39076
39077     if test "$wxUSE_CLIPBOARD" = "yes"; then
39078         cat >>confdefs.h <<\_ACEOF
39079 #define wxUSE_CLIPBOARD 1
39080 _ACEOF
39081
39082
39083                 cat >>confdefs.h <<\_ACEOF
39084 #define wxUSE_DATAOBJ 1
39085 _ACEOF
39086
39087     fi
39088 fi
39089
39090 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
39091     if test "$wxUSE_GTK" = 1; then
39092         if test "$WXGTK12" != 1; then
39093             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
39094 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
39095             wxUSE_DRAG_AND_DROP=no
39096         fi
39097     fi
39098
39099     if test "$wxUSE_MOTIF" = 1; then
39100         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
39101 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
39102         wxUSE_DRAG_AND_DROP=no
39103     fi
39104
39105     if test "$wxUSE_X11" = 1; then
39106         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
39107 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
39108         wxUSE_DRAG_AND_DROP=no
39109     fi
39110
39111     if test "$wxUSE_MGL" = 1; then
39112         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
39113 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
39114         wxUSE_DRAG_AND_DROP=no
39115     fi
39116
39117     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
39118         cat >>confdefs.h <<\_ACEOF
39119 #define wxUSE_DRAG_AND_DROP 1
39120 _ACEOF
39121
39122     fi
39123
39124 fi
39125
39126 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
39127     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
39128 fi
39129
39130 if test "$wxUSE_SPLINES" = "yes" ; then
39131   cat >>confdefs.h <<\_ACEOF
39132 #define wxUSE_SPLINES 1
39133 _ACEOF
39134
39135 fi
39136
39137 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
39138   cat >>confdefs.h <<\_ACEOF
39139 #define wxUSE_MOUSEWHEEL 1
39140 _ACEOF
39141
39142 fi
39143
39144
39145 USES_CONTROLS=0
39146 if test "$wxUSE_CONTROLS" = "yes"; then
39147   USES_CONTROLS=1
39148 fi
39149
39150 if test "$wxUSE_ACCEL" = "yes"; then
39151   cat >>confdefs.h <<\_ACEOF
39152 #define wxUSE_ACCEL 1
39153 _ACEOF
39154
39155   USES_CONTROLS=1
39156 fi
39157
39158 if test "$wxUSE_BUTTON" = "yes"; then
39159   cat >>confdefs.h <<\_ACEOF
39160 #define wxUSE_BUTTON 1
39161 _ACEOF
39162
39163   USES_CONTROLS=1
39164 fi
39165
39166 if test "$wxUSE_BMPBUTTON" = "yes"; then
39167   cat >>confdefs.h <<\_ACEOF
39168 #define wxUSE_BMPBUTTON 1
39169 _ACEOF
39170
39171   USES_CONTROLS=1
39172 fi
39173
39174 if test "$wxUSE_CALCTRL" = "yes"; then
39175   cat >>confdefs.h <<\_ACEOF
39176 #define wxUSE_CALENDARCTRL 1
39177 _ACEOF
39178
39179   USES_CONTROLS=1
39180   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
39181 fi
39182
39183 if test "$wxUSE_CARET" = "yes"; then
39184   cat >>confdefs.h <<\_ACEOF
39185 #define wxUSE_CARET 1
39186 _ACEOF
39187
39188   USES_CONTROLS=1
39189   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
39190 fi
39191
39192 if test "$wxUSE_COMBOBOX" = "yes"; then
39193   cat >>confdefs.h <<\_ACEOF
39194 #define wxUSE_COMBOBOX 1
39195 _ACEOF
39196
39197   USES_CONTROLS=1
39198 fi
39199
39200 if test "$wxUSE_CHOICE" = "yes"; then
39201   cat >>confdefs.h <<\_ACEOF
39202 #define wxUSE_CHOICE 1
39203 _ACEOF
39204
39205   USES_CONTROLS=1
39206 fi
39207
39208 if test "$wxUSE_CHOICEBOOK" = "yes"; then
39209     cat >>confdefs.h <<\_ACEOF
39210 #define wxUSE_CHOICEBOOK 1
39211 _ACEOF
39212
39213     USES_CONTROLS=1
39214 fi
39215
39216 if test "$wxUSE_CHECKBOX" = "yes"; then
39217   cat >>confdefs.h <<\_ACEOF
39218 #define wxUSE_CHECKBOX 1
39219 _ACEOF
39220
39221   USES_CONTROLS=1
39222 fi
39223
39224 if test "$wxUSE_CHECKLST" = "yes"; then
39225   cat >>confdefs.h <<\_ACEOF
39226 #define wxUSE_CHECKLISTBOX 1
39227 _ACEOF
39228
39229   USES_CONTROLS=1
39230   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
39231 fi
39232
39233 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
39234   cat >>confdefs.h <<\_ACEOF
39235 #define wxUSE_DATEPICKCTRL 1
39236 _ACEOF
39237
39238   USES_CONTROLS=1
39239 fi
39240
39241 if test "$wxUSE_DISPLAY" = "yes"; then
39242     cat >>confdefs.h <<\_ACEOF
39243 #define wxUSE_DISPLAY 1
39244 _ACEOF
39245
39246     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
39247 fi
39248
39249 if test "$wxUSE_GAUGE" = "yes"; then
39250   cat >>confdefs.h <<\_ACEOF
39251 #define wxUSE_GAUGE 1
39252 _ACEOF
39253
39254   USES_CONTROLS=1
39255 fi
39256
39257 if test "$wxUSE_GRID" = "yes"; then
39258   cat >>confdefs.h <<\_ACEOF
39259 #define wxUSE_GRID 1
39260 _ACEOF
39261
39262   USES_CONTROLS=1
39263   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
39264 fi
39265
39266 if test "$wxUSE_IMAGLIST" = "yes"; then
39267     cat >>confdefs.h <<\_ACEOF
39268 #define wxUSE_IMAGLIST 1
39269 _ACEOF
39270
39271 fi
39272
39273 if test "$wxUSE_LISTBOOK" = "yes"; then
39274     cat >>confdefs.h <<\_ACEOF
39275 #define wxUSE_LISTBOOK 1
39276 _ACEOF
39277
39278     USES_CONTROLS=1
39279 fi
39280
39281 if test "$wxUSE_LISTBOX" = "yes"; then
39282     cat >>confdefs.h <<\_ACEOF
39283 #define wxUSE_LISTBOX 1
39284 _ACEOF
39285
39286     USES_CONTROLS=1
39287     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
39288 fi
39289
39290 if test "$wxUSE_LISTCTRL" = "yes"; then
39291     if test "$wxUSE_IMAGLIST" = "yes"; then
39292         cat >>confdefs.h <<\_ACEOF
39293 #define wxUSE_LISTCTRL 1
39294 _ACEOF
39295
39296         USES_CONTROLS=1
39297         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
39298     else
39299         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
39300 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
39301     fi
39302 fi
39303
39304 if test "$wxUSE_NOTEBOOK" = "yes"; then
39305     cat >>confdefs.h <<\_ACEOF
39306 #define wxUSE_NOTEBOOK 1
39307 _ACEOF
39308
39309     USES_CONTROLS=1
39310     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
39311 fi
39312
39313
39314 if test "$wxUSE_RADIOBOX" = "yes"; then
39315     cat >>confdefs.h <<\_ACEOF
39316 #define wxUSE_RADIOBOX 1
39317 _ACEOF
39318
39319     USES_CONTROLS=1
39320 fi
39321
39322 if test "$wxUSE_RADIOBTN" = "yes"; then
39323     cat >>confdefs.h <<\_ACEOF
39324 #define wxUSE_RADIOBTN 1
39325 _ACEOF
39326
39327     USES_CONTROLS=1
39328 fi
39329
39330 if test "$wxUSE_SASH" = "yes"; then
39331     cat >>confdefs.h <<\_ACEOF
39332 #define wxUSE_SASH 1
39333 _ACEOF
39334
39335     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
39336 fi
39337
39338 if test "$wxUSE_SCROLLBAR" = "yes"; then
39339     cat >>confdefs.h <<\_ACEOF
39340 #define wxUSE_SCROLLBAR 1
39341 _ACEOF
39342
39343     USES_CONTROLS=1
39344     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
39345 fi
39346
39347 if test "$wxUSE_SLIDER" = "yes"; then
39348     cat >>confdefs.h <<\_ACEOF
39349 #define wxUSE_SLIDER 1
39350 _ACEOF
39351
39352     USES_CONTROLS=1
39353 fi
39354
39355 if test "$wxUSE_SPINBTN" = "yes"; then
39356     cat >>confdefs.h <<\_ACEOF
39357 #define wxUSE_SPINBTN 1
39358 _ACEOF
39359
39360     USES_CONTROLS=1
39361 fi
39362
39363 if test "$wxUSE_SPINCTRL" = "yes"; then
39364     cat >>confdefs.h <<\_ACEOF
39365 #define wxUSE_SPINCTRL 1
39366 _ACEOF
39367
39368     USES_CONTROLS=1
39369 fi
39370
39371 if test "$wxUSE_SPLITTER" = "yes"; then
39372     cat >>confdefs.h <<\_ACEOF
39373 #define wxUSE_SPLITTER 1
39374 _ACEOF
39375
39376     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
39377 fi
39378
39379 if test "$wxUSE_STATBMP" = "yes"; then
39380     cat >>confdefs.h <<\_ACEOF
39381 #define wxUSE_STATBMP 1
39382 _ACEOF
39383
39384     USES_CONTROLS=1
39385 fi
39386
39387 if test "$wxUSE_STATBOX" = "yes"; then
39388     cat >>confdefs.h <<\_ACEOF
39389 #define wxUSE_STATBOX 1
39390 _ACEOF
39391
39392     USES_CONTROLS=1
39393 fi
39394
39395 if test "$wxUSE_STATTEXT" = "yes"; then
39396     cat >>confdefs.h <<\_ACEOF
39397 #define wxUSE_STATTEXT 1
39398 _ACEOF
39399
39400     USES_CONTROLS=1
39401 fi
39402
39403 if test "$wxUSE_STATLINE" = "yes"; then
39404     cat >>confdefs.h <<\_ACEOF
39405 #define wxUSE_STATLINE 1
39406 _ACEOF
39407
39408     USES_CONTROLS=1
39409 fi
39410
39411 if test "$wxUSE_STATUSBAR" = "yes"; then
39412         cat >>confdefs.h <<\_ACEOF
39413 #define wxUSE_NATIVE_STATUSBAR 1
39414 _ACEOF
39415
39416     cat >>confdefs.h <<\_ACEOF
39417 #define wxUSE_STATUSBAR 1
39418 _ACEOF
39419
39420     USES_CONTROLS=1
39421
39422     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
39423 fi
39424
39425 if test "$wxUSE_TABDIALOG" = "yes"; then
39426     cat >>confdefs.h <<\_ACEOF
39427 #define wxUSE_TAB_DIALOG 1
39428 _ACEOF
39429
39430 fi
39431
39432 if test "$wxUSE_TEXTCTRL" = "yes"; then
39433     cat >>confdefs.h <<\_ACEOF
39434 #define wxUSE_TEXTCTRL 1
39435 _ACEOF
39436
39437     USES_CONTROLS=1
39438     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
39439 fi
39440
39441 if test "$wxUSE_TOGGLEBTN" = "yes"; then
39442     if test "$wxUSE_COCOA" = 1 ; then
39443         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
39444 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
39445         wxUSE_TOGGLEBTN=no
39446     fi
39447     if test "$wxUSE_UNIVERSAL" = "yes"; then
39448         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
39449 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
39450         wxUSE_TOGGLEBTN=no
39451     fi
39452
39453     if test "$wxUSE_TOGGLEBTN" = "yes"; then
39454         cat >>confdefs.h <<\_ACEOF
39455 #define wxUSE_TOGGLEBTN 1
39456 _ACEOF
39457
39458         USES_CONTROLS=1
39459     fi
39460 fi
39461
39462 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
39463     cat >>confdefs.h <<\_ACEOF
39464 #define wxUSE_TOOLBAR_SIMPLE 1
39465 _ACEOF
39466
39467     wxUSE_TOOLBAR="yes"
39468     USES_CONTROLS=1
39469 fi
39470
39471 if test "$wxUSE_TOOLBAR" = "yes"; then
39472     cat >>confdefs.h <<\_ACEOF
39473 #define wxUSE_TOOLBAR 1
39474 _ACEOF
39475
39476     USES_CONTROLS=1
39477
39478         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
39479         wxUSE_TOOLBAR_NATIVE="yes"
39480     fi
39481
39482     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
39483         cat >>confdefs.h <<\_ACEOF
39484 #define wxUSE_TOOLBAR_NATIVE 1
39485 _ACEOF
39486
39487         USES_CONTROLS=1
39488     fi
39489
39490     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
39491 fi
39492
39493 if test "$wxUSE_TOOLTIPS" = "yes"; then
39494     if test "$wxUSE_MOTIF" = 1; then
39495         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
39496 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
39497     else
39498         if test "$wxUSE_UNIVERSAL" = "yes"; then
39499             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
39500 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
39501         else
39502             cat >>confdefs.h <<\_ACEOF
39503 #define wxUSE_TOOLTIPS 1
39504 _ACEOF
39505
39506         fi
39507     fi
39508 fi
39509
39510 if test "$wxUSE_TREECTRL" = "yes"; then
39511     if test "$wxUSE_IMAGLIST" = "yes"; then
39512         cat >>confdefs.h <<\_ACEOF
39513 #define wxUSE_TREECTRL 1
39514 _ACEOF
39515
39516         USES_CONTROLS=1
39517         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
39518     else
39519         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
39520 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
39521     fi
39522 fi
39523
39524 if test "$wxUSE_POPUPWIN" = "yes"; then
39525     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39526         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
39527 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
39528     else
39529         if test "$wxUSE_PM" = 1; then
39530             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
39531 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
39532         else
39533             cat >>confdefs.h <<\_ACEOF
39534 #define wxUSE_POPUPWIN 1
39535 _ACEOF
39536
39537             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
39538
39539             USES_CONTROLS=1
39540         fi
39541     fi
39542 fi
39543
39544 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
39545     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39546         { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
39547 echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
39548     else
39549         cat >>confdefs.h <<\_ACEOF
39550 #define wxUSE_DIALUP_MANAGER 1
39551 _ACEOF
39552
39553         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
39554     fi
39555 fi
39556
39557 if test "$wxUSE_TIPWINDOW" = "yes"; then
39558     if test "$wxUSE_PM" = 1; then
39559         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
39560 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
39561     else
39562         cat >>confdefs.h <<\_ACEOF
39563 #define wxUSE_TIPWINDOW 1
39564 _ACEOF
39565
39566     fi
39567 fi
39568
39569 if test "$USES_CONTROLS" = 1; then
39570     cat >>confdefs.h <<\_ACEOF
39571 #define wxUSE_CONTROLS 1
39572 _ACEOF
39573
39574 fi
39575
39576
39577 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
39578     cat >>confdefs.h <<\_ACEOF
39579 #define wxUSE_ACCESSIBILITY 1
39580 _ACEOF
39581
39582     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
39583 fi
39584
39585 if test "$wxUSE_DRAGIMAGE" = "yes"; then
39586     cat >>confdefs.h <<\_ACEOF
39587 #define wxUSE_DRAGIMAGE 1
39588 _ACEOF
39589
39590     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
39591 fi
39592
39593 if test "$wxUSE_EXCEPTIONS" = "yes"; then
39594     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39595         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39596 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39597     else
39598         cat >>confdefs.h <<\_ACEOF
39599 #define wxUSE_EXCEPTIONS 1
39600 _ACEOF
39601
39602         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39603     fi
39604 fi
39605
39606 USE_HTML=0
39607 if test "$wxUSE_HTML" = "yes"; then
39608     cat >>confdefs.h <<\_ACEOF
39609 #define wxUSE_HTML 1
39610 _ACEOF
39611
39612     USE_HTML=1
39613     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
39614     if test "$wxUSE_MAC" = 1; then
39615         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
39616     fi
39617 fi
39618 if test "$wxUSE_WEBKIT" = "yes"; then
39619     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
39620         old_CPPFLAGS="$CPPFLAGS"
39621         CPPFLAGS="$CPPFLAGS -x objective-c++"
39622         echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
39623 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
39624 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
39625   echo $ECHO_N "(cached) $ECHO_C" >&6
39626 else
39627   cat >conftest.$ac_ext <<_ACEOF
39628 /* confdefs.h.  */
39629 _ACEOF
39630 cat confdefs.h >>conftest.$ac_ext
39631 cat >>conftest.$ac_ext <<_ACEOF
39632 /* end confdefs.h.  */
39633 #include <Carbon/Carbon.h>
39634
39635 #include <WebKit/HIWebView.h>
39636 _ACEOF
39637 rm -f conftest.$ac_objext
39638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39639   (eval $ac_compile) 2>conftest.er1
39640   ac_status=$?
39641   grep -v '^ *+' conftest.er1 >conftest.err
39642   rm -f conftest.er1
39643   cat conftest.err >&5
39644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39645   (exit $ac_status); } &&
39646          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39648   (eval $ac_try) 2>&5
39649   ac_status=$?
39650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39651   (exit $ac_status); }; } &&
39652          { ac_try='test -s conftest.$ac_objext'
39653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39654   (eval $ac_try) 2>&5
39655   ac_status=$?
39656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39657   (exit $ac_status); }; }; then
39658   ac_cv_header_WebKit_HIWebView_h=yes
39659 else
39660   echo "$as_me: failed program was:" >&5
39661 sed 's/^/| /' conftest.$ac_ext >&5
39662
39663 ac_cv_header_WebKit_HIWebView_h=no
39664 fi
39665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39666 fi
39667 echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
39668 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
39669 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
39670
39671                            cat >>confdefs.h <<\_ACEOF
39672 #define wxUSE_WEBKIT 1
39673 _ACEOF
39674
39675                            WEBKIT_LINK="-framework WebKit"
39676
39677 else
39678
39679                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
39680 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
39681                            wxUSE_WEBKIT=no
39682
39683 fi
39684
39685
39686         CPPFLAGS="$old_CPPFLAGS"
39687     elif test "$wxUSE_COCOA" = 1; then
39688         cat >>confdefs.h <<\_ACEOF
39689 #define wxUSE_WEBKIT 1
39690 _ACEOF
39691
39692     else
39693         wxUSE_WEBKIT=no
39694     fi
39695 fi
39696
39697 USE_XRC=0
39698 if test "$wxUSE_XRC" = "yes"; then
39699     if test "$wxUSE_XML" != "yes"; then
39700         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
39701 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
39702         wxUSE_XRC=no
39703     else
39704         cat >>confdefs.h <<\_ACEOF
39705 #define wxUSE_XRC 1
39706 _ACEOF
39707
39708         USE_XRC=1
39709         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
39710     fi
39711 fi
39712
39713 if test "$wxUSE_MENUS" = "yes"; then
39714     cat >>confdefs.h <<\_ACEOF
39715 #define wxUSE_MENUS 1
39716 _ACEOF
39717
39718     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
39719 fi
39720
39721 if test "$wxUSE_METAFILE" = "yes"; then
39722     cat >>confdefs.h <<\_ACEOF
39723 #define wxUSE_METAFILE 1
39724 _ACEOF
39725
39726 fi
39727
39728 if test "$wxUSE_MIMETYPE" = "yes"; then
39729     cat >>confdefs.h <<\_ACEOF
39730 #define wxUSE_MIMETYPE 1
39731 _ACEOF
39732
39733 fi
39734
39735 if test "$wxUSE_MINIFRAME" = "yes"; then
39736     cat >>confdefs.h <<\_ACEOF
39737 #define wxUSE_MINIFRAME 1
39738 _ACEOF
39739
39740     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
39741 fi
39742
39743 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
39744     cat >>confdefs.h <<\_ACEOF
39745 #define wxUSE_SYSTEM_OPTIONS 1
39746 _ACEOF
39747
39748     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
39749         "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
39750         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
39751     fi
39752 fi
39753
39754
39755 if test "$wxUSE_VALIDATORS" = "yes"; then
39756     cat >>confdefs.h <<\_ACEOF
39757 #define wxUSE_VALIDATORS 1
39758 _ACEOF
39759
39760     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
39761 fi
39762
39763 if test "$wxUSE_PALETTE" = "yes" ; then
39764   cat >>confdefs.h <<\_ACEOF
39765 #define wxUSE_PALETTE 1
39766 _ACEOF
39767
39768 fi
39769
39770 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
39771     LIBS=" -lunicows $LIBS"
39772 fi
39773
39774
39775 if test "$wxUSE_IMAGE" = "yes" ; then
39776     cat >>confdefs.h <<\_ACEOF
39777 #define wxUSE_IMAGE 1
39778 _ACEOF
39779
39780
39781     if test "$wxUSE_GIF" = "yes" ; then
39782       cat >>confdefs.h <<\_ACEOF
39783 #define wxUSE_GIF 1
39784 _ACEOF
39785
39786     fi
39787
39788     if test "$wxUSE_PCX" = "yes" ; then
39789       cat >>confdefs.h <<\_ACEOF
39790 #define wxUSE_PCX 1
39791 _ACEOF
39792
39793     fi
39794
39795     if test "$wxUSE_IFF" = "yes" ; then
39796       cat >>confdefs.h <<\_ACEOF
39797 #define wxUSE_IFF 1
39798 _ACEOF
39799
39800     fi
39801
39802     if test "$wxUSE_PNM" = "yes" ; then
39803       cat >>confdefs.h <<\_ACEOF
39804 #define wxUSE_PNM 1
39805 _ACEOF
39806
39807     fi
39808
39809     if test "$wxUSE_XPM" = "yes" ; then
39810       cat >>confdefs.h <<\_ACEOF
39811 #define wxUSE_XPM 1
39812 _ACEOF
39813
39814     fi
39815
39816     if test "$wxUSE_ICO_CUR" = "yes" ; then
39817       cat >>confdefs.h <<\_ACEOF
39818 #define wxUSE_ICO_CUR 1
39819 _ACEOF
39820
39821     fi
39822 fi
39823
39824
39825 if test "$wxUSE_CHOICEDLG" = "yes"; then
39826     cat >>confdefs.h <<\_ACEOF
39827 #define wxUSE_CHOICEDLG 1
39828 _ACEOF
39829
39830 fi
39831
39832 if test "$wxUSE_COLOURDLG" = "yes"; then
39833     cat >>confdefs.h <<\_ACEOF
39834 #define wxUSE_COLOURDLG 1
39835 _ACEOF
39836
39837 fi
39838
39839 if test "$wxUSE_FILEDLG" = "yes"; then
39840     cat >>confdefs.h <<\_ACEOF
39841 #define wxUSE_FILEDLG 1
39842 _ACEOF
39843
39844 fi
39845
39846 if test "$wxUSE_FINDREPLDLG" = "yes"; then
39847     cat >>confdefs.h <<\_ACEOF
39848 #define wxUSE_FINDREPLDLG 1
39849 _ACEOF
39850
39851 fi
39852
39853 if test "$wxUSE_FONTDLG" = "yes"; then
39854     cat >>confdefs.h <<\_ACEOF
39855 #define wxUSE_FONTDLG 1
39856 _ACEOF
39857
39858 fi
39859
39860 if test "$wxUSE_DIRDLG" = "yes"; then
39861     if test "$wxUSE_TREECTRL" != "yes"; then
39862         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
39863 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
39864     else
39865         cat >>confdefs.h <<\_ACEOF
39866 #define wxUSE_DIRDLG 1
39867 _ACEOF
39868
39869     fi
39870 fi
39871
39872 if test "$wxUSE_MSGDLG" = "yes"; then
39873     cat >>confdefs.h <<\_ACEOF
39874 #define wxUSE_MSGDLG 1
39875 _ACEOF
39876
39877 fi
39878
39879 if test "$wxUSE_NUMBERDLG" = "yes"; then
39880     cat >>confdefs.h <<\_ACEOF
39881 #define wxUSE_NUMBERDLG 1
39882 _ACEOF
39883
39884 fi
39885
39886 if test "$wxUSE_PROGRESSDLG" = "yes"; then
39887     if test "$wxUSE_CONSTRAINTS" != "yes"; then
39888        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
39889 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
39890     else
39891         cat >>confdefs.h <<\_ACEOF
39892 #define wxUSE_PROGRESSDLG 1
39893 _ACEOF
39894
39895     fi
39896 fi
39897
39898 if test "$wxUSE_SPLASH" = "yes"; then
39899     cat >>confdefs.h <<\_ACEOF
39900 #define wxUSE_SPLASH 1
39901 _ACEOF
39902
39903     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
39904 fi
39905
39906 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
39907     if test "$wxUSE_CONSTRAINTS" != "yes"; then
39908        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
39909 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
39910     else
39911         cat >>confdefs.h <<\_ACEOF
39912 #define wxUSE_STARTUP_TIPS 1
39913 _ACEOF
39914
39915     fi
39916 fi
39917
39918 if test "$wxUSE_TEXTDLG" = "yes"; then
39919     cat >>confdefs.h <<\_ACEOF
39920 #define wxUSE_TEXTDLG 1
39921 _ACEOF
39922
39923 fi
39924
39925 if test "$wxUSE_WIZARDDLG" = "yes"; then
39926     cat >>confdefs.h <<\_ACEOF
39927 #define wxUSE_WIZARDDLG 1
39928 _ACEOF
39929
39930     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
39931 fi
39932
39933
39934 if test "$wxUSE_MEDIACTRL" = "yes"; then
39935     if test "$wxUSE_MSW" = 1; then
39936                     wxUSE_DIRECTSHOW="yes"
39937
39938 for ac_header in dshow.h
39939 do
39940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39941 echo "$as_me:$LINENO: checking for $ac_header" >&5
39942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39944   echo $ECHO_N "(cached) $ECHO_C" >&6
39945 else
39946   cat >conftest.$ac_ext <<_ACEOF
39947 /* confdefs.h.  */
39948 _ACEOF
39949 cat confdefs.h >>conftest.$ac_ext
39950 cat >>conftest.$ac_ext <<_ACEOF
39951 /* end confdefs.h.  */
39952 #include <windows.h>
39953
39954 #include <$ac_header>
39955 _ACEOF
39956 rm -f conftest.$ac_objext
39957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39958   (eval $ac_compile) 2>conftest.er1
39959   ac_status=$?
39960   grep -v '^ *+' conftest.er1 >conftest.err
39961   rm -f conftest.er1
39962   cat conftest.err >&5
39963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39964   (exit $ac_status); } &&
39965          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
39966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39967   (eval $ac_try) 2>&5
39968   ac_status=$?
39969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39970   (exit $ac_status); }; } &&
39971          { ac_try='test -s conftest.$ac_objext'
39972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39973   (eval $ac_try) 2>&5
39974   ac_status=$?
39975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39976   (exit $ac_status); }; }; then
39977   eval "$as_ac_Header=yes"
39978 else
39979   echo "$as_me: failed program was:" >&5
39980 sed 's/^/| /' conftest.$ac_ext >&5
39981
39982 eval "$as_ac_Header=no"
39983 fi
39984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39985 fi
39986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39989   cat >>confdefs.h <<_ACEOF
39990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39991 _ACEOF
39992
39993 else
39994
39995                 wxUSE_DIRECTSHOW="no"
39996                 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
39997 echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
39998
39999 fi
40000
40001 done
40002
40003
40004        if test "$wxUSE_DIRECTSHOW" = "yes"; then
40005             cat >>confdefs.h <<\_ACEOF
40006 #define wxUSE_DIRECTSHOW 1
40007 _ACEOF
40008
40009             LIBS="$LIBS -lstrmiids"
40010        fi
40011     fi
40012
40013                 if test "$wxUSE_GTK" = 1; then
40014         wxUSE_GSTREAMER="yes"
40015
40016
40017   succeeded=no
40018
40019   if test -z "$PKG_CONFIG"; then
40020     # Extract the first word of "pkg-config", so it can be a program name with args.
40021 set dummy pkg-config; ac_word=$2
40022 echo "$as_me:$LINENO: checking for $ac_word" >&5
40023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40024 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40025   echo $ECHO_N "(cached) $ECHO_C" >&6
40026 else
40027   case $PKG_CONFIG in
40028   [\\/]* | ?:[\\/]*)
40029   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40030   ;;
40031   *)
40032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40033 for as_dir in $PATH
40034 do
40035   IFS=$as_save_IFS
40036   test -z "$as_dir" && as_dir=.
40037   for ac_exec_ext in '' $ac_executable_extensions; do
40038   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40039     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40041     break 2
40042   fi
40043 done
40044 done
40045
40046   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40047   ;;
40048 esac
40049 fi
40050 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40051
40052 if test -n "$PKG_CONFIG"; then
40053   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40054 echo "${ECHO_T}$PKG_CONFIG" >&6
40055 else
40056   echo "$as_me:$LINENO: result: no" >&5
40057 echo "${ECHO_T}no" >&6
40058 fi
40059
40060   fi
40061
40062   if test "$PKG_CONFIG" = "no" ; then
40063      echo "*** The pkg-config script could not be found. Make sure it is"
40064      echo "*** in your path, or set the PKG_CONFIG environment variable"
40065      echo "*** to the full path to pkg-config."
40066      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40067   else
40068      PKG_CONFIG_MIN_VERSION=0.9.0
40069      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
40070         echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
40071 echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
40072
40073         if $PKG_CONFIG --exists "gstreamer-0.8" ; then
40074             echo "$as_me:$LINENO: result: yes" >&5
40075 echo "${ECHO_T}yes" >&6
40076             succeeded=yes
40077
40078             echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
40079 echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
40080             GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
40081             echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
40082 echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
40083
40084             echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
40085 echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
40086             GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
40087             echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
40088 echo "${ECHO_T}$GSTREAMER_LIBS" >&6
40089         else
40090             GSTREAMER_CFLAGS=""
40091             GSTREAMER_LIBS=""
40092             ## If we have a custom action on failure, don't print errors, but
40093             ## do set a variable so people can do so.
40094             GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
40095
40096         fi
40097
40098
40099
40100      else
40101         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40102         echo "*** See http://www.freedesktop.org/software/pkgconfig"
40103      fi
40104   fi
40105
40106   if test $succeeded = yes; then
40107
40108             CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
40109             LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
40110
40111   else
40112
40113             { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
40114 echo "$as_me: WARNING: GStreamer installation not found" >&2;}
40115             wxUSE_GSTREAMER="no"
40116
40117   fi
40118
40119
40120
40121
40122
40123         if test "x$GST_INSPECT" == "x"; then
40124             # Extract the first word of "gst-inspect", so it can be a program name with args.
40125 set dummy gst-inspect; ac_word=$2
40126 echo "$as_me:$LINENO: checking for $ac_word" >&5
40127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40128 if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
40129   echo $ECHO_N "(cached) $ECHO_C" >&6
40130 else
40131   if test -n "$GST_INSPECT"; then
40132   ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
40133 else
40134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40135 for as_dir in $PATH
40136 do
40137   IFS=$as_save_IFS
40138   test -z "$as_dir" && as_dir=.
40139   for ac_exec_ext in '' $ac_executable_extensions; do
40140   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40141     ac_cv_prog_GST_INSPECT="gst-inspect"
40142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40143     break 2
40144   fi
40145 done
40146 done
40147
40148 fi
40149 fi
40150 GST_INSPECT=$ac_cv_prog_GST_INSPECT
40151 if test -n "$GST_INSPECT"; then
40152   echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
40153 echo "${ECHO_T}$GST_INSPECT" >&6
40154 else
40155   echo "$as_me:$LINENO: result: no" >&5
40156 echo "${ECHO_T}no" >&6
40157 fi
40158
40159         fi
40160
40161         if test "x$GST_INSPECT" != "x"; then
40162             echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
40163 echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
40164             if  $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
40165             echo "$as_me:$LINENO: result: found." >&5
40166 echo "${ECHO_T}found." >&6
40167
40168             else
40169             echo "$as_me:$LINENO: result: not found." >&5
40170 echo "${ECHO_T}not found." >&6
40171
40172                             wxUSE_GSTREAMER="no"
40173                             { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
40174 echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
40175
40176             fi
40177         fi
40178
40179
40180                                 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
40181 echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
40182 if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
40183   echo $ECHO_N "(cached) $ECHO_C" >&6
40184 else
40185   cat >conftest.$ac_ext <<_ACEOF
40186 /* confdefs.h.  */
40187 _ACEOF
40188 cat confdefs.h >>conftest.$ac_ext
40189 cat >>conftest.$ac_ext <<_ACEOF
40190 /* end confdefs.h.  */
40191 #include <gst/gst.h>
40192
40193 #include <gst/xoverlay/xoverlay.h>
40194 _ACEOF
40195 rm -f conftest.$ac_objext
40196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40197   (eval $ac_compile) 2>conftest.er1
40198   ac_status=$?
40199   grep -v '^ *+' conftest.er1 >conftest.err
40200   rm -f conftest.er1
40201   cat conftest.err >&5
40202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40203   (exit $ac_status); } &&
40204          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40206   (eval $ac_try) 2>&5
40207   ac_status=$?
40208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40209   (exit $ac_status); }; } &&
40210          { ac_try='test -s conftest.$ac_objext'
40211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40212   (eval $ac_try) 2>&5
40213   ac_status=$?
40214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40215   (exit $ac_status); }; }; then
40216   ac_cv_header_gst_xoverlay_xoverlay_h=yes
40217 else
40218   echo "$as_me: failed program was:" >&5
40219 sed 's/^/| /' conftest.$ac_ext >&5
40220
40221 ac_cv_header_gst_xoverlay_xoverlay_h=no
40222 fi
40223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40224 fi
40225 echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
40226 echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
40227 if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
40228   :
40229 else
40230
40231                             wxUSE_GSTREAMER="no"
40232                             { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
40233 echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
40234
40235 fi
40236
40237
40238
40239         echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
40240 echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
40241
40242 ac_find_libraries=
40243 for ac_dir in $SEARCH_LIB /usr/lib;
40244   do
40245     for ac_extension in a so sl dylib; do
40246       if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
40247         ac_find_libraries=$ac_dir
40248         break 2
40249       fi
40250     done
40251   done
40252
40253
40254         if test "$ac_find_libraries" = "" ; then
40255             echo "$as_me:$LINENO: result: no" >&5
40256 echo "${ECHO_T}no" >&6
40257             wxUSE_GSTREAMER="no"
40258         else
40259             echo "$as_me:$LINENO: result: yes" >&5
40260 echo "${ECHO_T}yes" >&6
40261         fi
40262
40263         if test "$wxUSE_GSTREAMER" = "yes"; then
40264             cat >>confdefs.h <<\_ACEOF
40265 #define wxUSE_GSTREAMER 1
40266 _ACEOF
40267
40268             echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
40269 echo "${ECHO_T}GStreamer detection successful" >&6
40270         fi
40271     fi
40272     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
40273     cat >>confdefs.h <<\_ACEOF
40274 #define wxUSE_MEDIACTRL 1
40275 _ACEOF
40276
40277 fi
40278
40279
40280 if test "$cross_compiling" = "yes"; then
40281         OSINFO="\"$host\""
40282 else
40283         OSINFO=`uname -s -r -m`
40284     OSINFO="\"$OSINFO\""
40285 fi
40286
40287 cat >>confdefs.h <<_ACEOF
40288 #define WXWIN_OS_DESCRIPTION $OSINFO
40289 _ACEOF
40290
40291
40292
40293 if test "x$prefix" != "xNONE"; then
40294     wxPREFIX=$prefix
40295 else
40296     wxPREFIX=$ac_default_prefix
40297 fi
40298
40299 cat >>confdefs.h <<_ACEOF
40300 #define wxINSTALL_PREFIX "$wxPREFIX"
40301 _ACEOF
40302
40303
40304
40305
40306 CORE_BASE_LIBS="net base"
40307 CORE_GUI_LIBS="adv core"
40308
40309 if test "$wxUSE_XML" = "yes" ; then
40310     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
40311 fi
40312 if test "$wxUSE_ODBC" != "no" ; then
40313     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
40314     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
40315 fi
40316 if test "$wxUSE_HTML" = "yes" ; then
40317     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
40318 fi
40319 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40320     CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
40321 fi
40322 if test "$wxUSE_XRC" = "yes" ; then
40323     CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
40324 fi
40325
40326 if test "$wxUSE_GUI" != "yes"; then
40327     CORE_GUI_LIBS=""
40328 fi
40329
40330
40331
40332
40333
40334
40335
40336
40337 if test "$wxUSE_MAC" = 1 ; then
40338     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
40339         if test "$USE_DARWIN" = 1; then
40340             LDFLAGS="$LDFLAGS -framework QuickTime"
40341         else
40342             LDFLAGS="$LDFLAGS -lQuickTimeLib"
40343         fi
40344     fi
40345     if test "$USE_DARWIN" = 1; then
40346         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
40347     else
40348         LDFLAGS="$LDFLAGS -lCarbonLib"
40349     fi
40350 elif test "$USE_DARWIN" = 1; then
40351     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System"
40352 fi
40353 if test "$wxUSE_COCOA" = 1 ; then
40354     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
40355     if test "$wxUSE_MEDIACTRL" = "yes"; then
40356         LDFLAGS="$LDFLAGS -framework QuickTime"
40357     fi
40358 fi
40359
40360
40361 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
40362
40363 have_cos=0
40364 have_floor=0
40365
40366 for ac_func in cos
40367 do
40368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40369 echo "$as_me:$LINENO: checking for $ac_func" >&5
40370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40371 if eval "test \"\${$as_ac_var+set}\" = set"; then
40372   echo $ECHO_N "(cached) $ECHO_C" >&6
40373 else
40374   cat >conftest.$ac_ext <<_ACEOF
40375 /* confdefs.h.  */
40376 _ACEOF
40377 cat confdefs.h >>conftest.$ac_ext
40378 cat >>conftest.$ac_ext <<_ACEOF
40379 /* end confdefs.h.  */
40380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40382 #define $ac_func innocuous_$ac_func
40383
40384 /* System header to define __stub macros and hopefully few prototypes,
40385     which can conflict with char $ac_func (); below.
40386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40387     <limits.h> exists even on freestanding compilers.  */
40388
40389 #ifdef __STDC__
40390 # include <limits.h>
40391 #else
40392 # include <assert.h>
40393 #endif
40394
40395 #undef $ac_func
40396
40397 /* Override any gcc2 internal prototype to avoid an error.  */
40398 #ifdef __cplusplus
40399 extern "C"
40400 {
40401 #endif
40402 /* We use char because int might match the return type of a gcc2
40403    builtin and then its argument prototype would still apply.  */
40404 char $ac_func ();
40405 /* The GNU C library defines this for functions which it implements
40406     to always fail with ENOSYS.  Some functions are actually named
40407     something starting with __ and the normal name is an alias.  */
40408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40409 choke me
40410 #else
40411 char (*f) () = $ac_func;
40412 #endif
40413 #ifdef __cplusplus
40414 }
40415 #endif
40416
40417 int
40418 main ()
40419 {
40420 return f != $ac_func;
40421   ;
40422   return 0;
40423 }
40424 _ACEOF
40425 rm -f conftest.$ac_objext conftest$ac_exeext
40426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40427   (eval $ac_link) 2>conftest.er1
40428   ac_status=$?
40429   grep -v '^ *+' conftest.er1 >conftest.err
40430   rm -f conftest.er1
40431   cat conftest.err >&5
40432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40433   (exit $ac_status); } &&
40434          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40436   (eval $ac_try) 2>&5
40437   ac_status=$?
40438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40439   (exit $ac_status); }; } &&
40440          { ac_try='test -s conftest$ac_exeext'
40441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40442   (eval $ac_try) 2>&5
40443   ac_status=$?
40444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40445   (exit $ac_status); }; }; then
40446   eval "$as_ac_var=yes"
40447 else
40448   echo "$as_me: failed program was:" >&5
40449 sed 's/^/| /' conftest.$ac_ext >&5
40450
40451 eval "$as_ac_var=no"
40452 fi
40453 rm -f conftest.err conftest.$ac_objext \
40454       conftest$ac_exeext conftest.$ac_ext
40455 fi
40456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40458 if test `eval echo '${'$as_ac_var'}'` = yes; then
40459   cat >>confdefs.h <<_ACEOF
40460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40461 _ACEOF
40462  have_cos=1
40463 fi
40464 done
40465
40466
40467 for ac_func in floor
40468 do
40469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40470 echo "$as_me:$LINENO: checking for $ac_func" >&5
40471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40472 if eval "test \"\${$as_ac_var+set}\" = set"; then
40473   echo $ECHO_N "(cached) $ECHO_C" >&6
40474 else
40475   cat >conftest.$ac_ext <<_ACEOF
40476 /* confdefs.h.  */
40477 _ACEOF
40478 cat confdefs.h >>conftest.$ac_ext
40479 cat >>conftest.$ac_ext <<_ACEOF
40480 /* end confdefs.h.  */
40481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40483 #define $ac_func innocuous_$ac_func
40484
40485 /* System header to define __stub macros and hopefully few prototypes,
40486     which can conflict with char $ac_func (); below.
40487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40488     <limits.h> exists even on freestanding compilers.  */
40489
40490 #ifdef __STDC__
40491 # include <limits.h>
40492 #else
40493 # include <assert.h>
40494 #endif
40495
40496 #undef $ac_func
40497
40498 /* Override any gcc2 internal prototype to avoid an error.  */
40499 #ifdef __cplusplus
40500 extern "C"
40501 {
40502 #endif
40503 /* We use char because int might match the return type of a gcc2
40504    builtin and then its argument prototype would still apply.  */
40505 char $ac_func ();
40506 /* The GNU C library defines this for functions which it implements
40507     to always fail with ENOSYS.  Some functions are actually named
40508     something starting with __ and the normal name is an alias.  */
40509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40510 choke me
40511 #else
40512 char (*f) () = $ac_func;
40513 #endif
40514 #ifdef __cplusplus
40515 }
40516 #endif
40517
40518 int
40519 main ()
40520 {
40521 return f != $ac_func;
40522   ;
40523   return 0;
40524 }
40525 _ACEOF
40526 rm -f conftest.$ac_objext conftest$ac_exeext
40527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40528   (eval $ac_link) 2>conftest.er1
40529   ac_status=$?
40530   grep -v '^ *+' conftest.er1 >conftest.err
40531   rm -f conftest.er1
40532   cat conftest.err >&5
40533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40534   (exit $ac_status); } &&
40535          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40537   (eval $ac_try) 2>&5
40538   ac_status=$?
40539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40540   (exit $ac_status); }; } &&
40541          { ac_try='test -s conftest$ac_exeext'
40542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40543   (eval $ac_try) 2>&5
40544   ac_status=$?
40545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40546   (exit $ac_status); }; }; then
40547   eval "$as_ac_var=yes"
40548 else
40549   echo "$as_me: failed program was:" >&5
40550 sed 's/^/| /' conftest.$ac_ext >&5
40551
40552 eval "$as_ac_var=no"
40553 fi
40554 rm -f conftest.err conftest.$ac_objext \
40555       conftest$ac_exeext conftest.$ac_ext
40556 fi
40557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40559 if test `eval echo '${'$as_ac_var'}'` = yes; then
40560   cat >>confdefs.h <<_ACEOF
40561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40562 _ACEOF
40563  have_floor=1
40564 fi
40565 done
40566
40567 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
40568 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
40569 if test "$have_cos" = 1 -a "$have_floor" = 1; then
40570     echo "$as_me:$LINENO: result: yes" >&5
40571 echo "${ECHO_T}yes" >&6
40572 else
40573     echo "$as_me:$LINENO: result: no" >&5
40574 echo "${ECHO_T}no" >&6
40575     LIBS="$LIBS -lm"
40576     # use different functions to avoid configure caching
40577     have_sin=0
40578     have_ceil=0
40579
40580 for ac_func in sin
40581 do
40582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40583 echo "$as_me:$LINENO: checking for $ac_func" >&5
40584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40585 if eval "test \"\${$as_ac_var+set}\" = set"; then
40586   echo $ECHO_N "(cached) $ECHO_C" >&6
40587 else
40588   cat >conftest.$ac_ext <<_ACEOF
40589 /* confdefs.h.  */
40590 _ACEOF
40591 cat confdefs.h >>conftest.$ac_ext
40592 cat >>conftest.$ac_ext <<_ACEOF
40593 /* end confdefs.h.  */
40594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40596 #define $ac_func innocuous_$ac_func
40597
40598 /* System header to define __stub macros and hopefully few prototypes,
40599     which can conflict with char $ac_func (); below.
40600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40601     <limits.h> exists even on freestanding compilers.  */
40602
40603 #ifdef __STDC__
40604 # include <limits.h>
40605 #else
40606 # include <assert.h>
40607 #endif
40608
40609 #undef $ac_func
40610
40611 /* Override any gcc2 internal prototype to avoid an error.  */
40612 #ifdef __cplusplus
40613 extern "C"
40614 {
40615 #endif
40616 /* We use char because int might match the return type of a gcc2
40617    builtin and then its argument prototype would still apply.  */
40618 char $ac_func ();
40619 /* The GNU C library defines this for functions which it implements
40620     to always fail with ENOSYS.  Some functions are actually named
40621     something starting with __ and the normal name is an alias.  */
40622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40623 choke me
40624 #else
40625 char (*f) () = $ac_func;
40626 #endif
40627 #ifdef __cplusplus
40628 }
40629 #endif
40630
40631 int
40632 main ()
40633 {
40634 return f != $ac_func;
40635   ;
40636   return 0;
40637 }
40638 _ACEOF
40639 rm -f conftest.$ac_objext conftest$ac_exeext
40640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40641   (eval $ac_link) 2>conftest.er1
40642   ac_status=$?
40643   grep -v '^ *+' conftest.er1 >conftest.err
40644   rm -f conftest.er1
40645   cat conftest.err >&5
40646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40647   (exit $ac_status); } &&
40648          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40650   (eval $ac_try) 2>&5
40651   ac_status=$?
40652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40653   (exit $ac_status); }; } &&
40654          { ac_try='test -s conftest$ac_exeext'
40655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40656   (eval $ac_try) 2>&5
40657   ac_status=$?
40658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40659   (exit $ac_status); }; }; then
40660   eval "$as_ac_var=yes"
40661 else
40662   echo "$as_me: failed program was:" >&5
40663 sed 's/^/| /' conftest.$ac_ext >&5
40664
40665 eval "$as_ac_var=no"
40666 fi
40667 rm -f conftest.err conftest.$ac_objext \
40668       conftest$ac_exeext conftest.$ac_ext
40669 fi
40670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40672 if test `eval echo '${'$as_ac_var'}'` = yes; then
40673   cat >>confdefs.h <<_ACEOF
40674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40675 _ACEOF
40676  have_sin=1
40677 fi
40678 done
40679
40680
40681 for ac_func in ceil
40682 do
40683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40684 echo "$as_me:$LINENO: checking for $ac_func" >&5
40685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40686 if eval "test \"\${$as_ac_var+set}\" = set"; then
40687   echo $ECHO_N "(cached) $ECHO_C" >&6
40688 else
40689   cat >conftest.$ac_ext <<_ACEOF
40690 /* confdefs.h.  */
40691 _ACEOF
40692 cat confdefs.h >>conftest.$ac_ext
40693 cat >>conftest.$ac_ext <<_ACEOF
40694 /* end confdefs.h.  */
40695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40697 #define $ac_func innocuous_$ac_func
40698
40699 /* System header to define __stub macros and hopefully few prototypes,
40700     which can conflict with char $ac_func (); below.
40701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40702     <limits.h> exists even on freestanding compilers.  */
40703
40704 #ifdef __STDC__
40705 # include <limits.h>
40706 #else
40707 # include <assert.h>
40708 #endif
40709
40710 #undef $ac_func
40711
40712 /* Override any gcc2 internal prototype to avoid an error.  */
40713 #ifdef __cplusplus
40714 extern "C"
40715 {
40716 #endif
40717 /* We use char because int might match the return type of a gcc2
40718    builtin and then its argument prototype would still apply.  */
40719 char $ac_func ();
40720 /* The GNU C library defines this for functions which it implements
40721     to always fail with ENOSYS.  Some functions are actually named
40722     something starting with __ and the normal name is an alias.  */
40723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40724 choke me
40725 #else
40726 char (*f) () = $ac_func;
40727 #endif
40728 #ifdef __cplusplus
40729 }
40730 #endif
40731
40732 int
40733 main ()
40734 {
40735 return f != $ac_func;
40736   ;
40737   return 0;
40738 }
40739 _ACEOF
40740 rm -f conftest.$ac_objext conftest$ac_exeext
40741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40742   (eval $ac_link) 2>conftest.er1
40743   ac_status=$?
40744   grep -v '^ *+' conftest.er1 >conftest.err
40745   rm -f conftest.er1
40746   cat conftest.err >&5
40747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40748   (exit $ac_status); } &&
40749          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
40750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40751   (eval $ac_try) 2>&5
40752   ac_status=$?
40753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40754   (exit $ac_status); }; } &&
40755          { ac_try='test -s conftest$ac_exeext'
40756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40757   (eval $ac_try) 2>&5
40758   ac_status=$?
40759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40760   (exit $ac_status); }; }; then
40761   eval "$as_ac_var=yes"
40762 else
40763   echo "$as_me: failed program was:" >&5
40764 sed 's/^/| /' conftest.$ac_ext >&5
40765
40766 eval "$as_ac_var=no"
40767 fi
40768 rm -f conftest.err conftest.$ac_objext \
40769       conftest$ac_exeext conftest.$ac_ext
40770 fi
40771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40773 if test `eval echo '${'$as_ac_var'}'` = yes; then
40774   cat >>confdefs.h <<_ACEOF
40775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40776 _ACEOF
40777  have_ceil=1
40778 fi
40779 done
40780
40781     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
40782 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
40783     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
40784         echo "$as_me:$LINENO: result: yes" >&5
40785 echo "${ECHO_T}yes" >&6
40786     else
40787         echo "$as_me:$LINENO: result: no" >&5
40788 echo "${ECHO_T}no" >&6
40789         # not sure we should warn the user, crash, etc.
40790     fi
40791 fi
40792
40793 if test "$wxUSE_GUI" = "yes"; then
40794
40795
40796         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
40797                      dynamic erase event exec font image minimal mobile \
40798                      mobile/wxedit mobile/styles propsize render \
40799                      richedit rotate shaped vscroll widgets"
40800
40801     if test "$wxUSE_MONOLITHIC" != "yes"; then
40802         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
40803     fi
40804     if test "$TOOLKIT" = "MSW"; then
40805         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
40806         if test "$wxUSE_UNIVERSAL" != "yes"; then
40807             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
40808         fi
40809     fi
40810     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
40811         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
40812     fi
40813 else
40814     SAMPLES_SUBDIRS="console"
40815 fi
40816
40817
40818 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
40819 -I\${top_srcdir}/include $TOOLKIT_INCLUDE"
40820
40821 if test "$GXX" = yes ; then
40822         CWARNINGS="-Wall"
40823     CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
40824         fi
40825
40826 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
40827
40828 CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
40829 CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
40830 CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
40831
40832 if test "x$MWCC" = "xyes"; then
40833
40834             CC="$CC -cwd source -I-"
40835     CXX="$CXX -cwd source -I-"
40836 fi
40837
40838
40839 LIBS=`echo $LIBS`
40840 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
40841 EXTRALIBS_XML="$EXPAT_LINK"
40842 EXTRALIBS_HTML="$MSPACK_LINK"
40843 EXTRALIBS_ODBC="$ODBC_LINK"
40844 if test "$wxUSE_GUI" = "yes"; then
40845     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
40846 fi
40847 if test "$wxUSE_OPENGL" = "yes"; then
40848     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
40849 fi
40850
40851 LDFLAGS="$LDFLAGS $PROFILE"
40852
40853 if test "$wxUSE_GTK" = 1; then
40854     WXCONFIG_INCLUDE=
40855 else
40856     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
40857 fi
40858
40859 WXCONFIG_EXTRALIBS="$LIBS"
40860
40861 if test "$wxUSE_REGEX" = "builtin" ; then
40862     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
40863 fi
40864 if test "$wxUSE_EXPAT" = "builtin" ; then
40865     wxconfig_3rdparty="expat $wxconfig_3rdparty"
40866 fi
40867 if test "$wxUSE_ODBC" = "builtin" ; then
40868     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
40869 fi
40870 if test "$wxUSE_LIBTIFF" = "builtin" ; then
40871     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
40872 fi
40873 if test "$wxUSE_LIBJPEG" = "builtin" ; then
40874     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
40875 fi
40876 if test "$wxUSE_LIBPNG" = "builtin" ; then
40877     wxconfig_3rdparty="png $wxconfig_3rdparty"
40878 fi
40879 if test "$wxUSE_ZLIB" = "builtin" ; then
40880     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
40881 fi
40882
40883 for i in $wxconfig_3rdparty ; do
40884     WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
40885 done
40886
40887
40888 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
40889     WXUNIV=1
40890 else
40891     WXUNIV=0
40892 fi
40893
40894
40895
40896
40897
40898
40899
40900
40901
40902 if test $wxUSE_MONOLITHIC = "yes" ; then
40903     MONOLITHIC=1
40904 else
40905     MONOLITHIC=0
40906 fi
40907
40908 if test $wxUSE_PLUGINS = "yes" ; then
40909     USE_PLUGINS=1
40910 else
40911     USE_PLUGINS=0
40912 fi
40913
40914 if test $wxUSE_ODBC != "no" ; then
40915     USE_ODBC=1
40916 else
40917     USE_ODBC=0
40918 fi
40919
40920 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40921     USE_QA=1
40922 else
40923     USE_QA=0
40924 fi
40925
40926 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
40927     OFFICIAL_BUILD=1
40928 else
40929     OFFICIAL_BUILD=0
40930 fi
40931
40932
40933
40934
40935
40936
40937
40938
40939
40940
40941
40942
40943
40944
40945
40946
40947
40948
40949
40950
40951
40952
40953
40954 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
40955
40956
40957
40958
40959
40960
40961
40962
40963 case "$TOOLKIT" in
40964     GTK)
40965         TOOLKIT_USER="GTK+"
40966         if test "$WXGTK20" = 1; then
40967             TOOLKIT_USER="$TOOLKIT_USER 2"
40968         fi
40969         ;;
40970
40971     *)
40972         TOOLKIT_USER=$TOOLKIT_LOWERCASE
40973         ;;
40974 esac
40975
40976
40977
40978
40979     if test "x$BAKEFILE_HOST" = "x"; then
40980         BAKEFILE_HOST="${host}"
40981     fi
40982
40983     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
40984
40985     if test -n "$ac_tool_prefix"; then
40986   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
40987 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
40988 echo "$as_me:$LINENO: checking for $ac_word" >&5
40989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40990 if test "${ac_cv_prog_RANLIB+set}" = set; then
40991   echo $ECHO_N "(cached) $ECHO_C" >&6
40992 else
40993   if test -n "$RANLIB"; then
40994   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
40995 else
40996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40997 for as_dir in $PATH
40998 do
40999   IFS=$as_save_IFS
41000   test -z "$as_dir" && as_dir=.
41001   for ac_exec_ext in '' $ac_executable_extensions; do
41002   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41003     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
41004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41005     break 2
41006   fi
41007 done
41008 done
41009
41010 fi
41011 fi
41012 RANLIB=$ac_cv_prog_RANLIB
41013 if test -n "$RANLIB"; then
41014   echo "$as_me:$LINENO: result: $RANLIB" >&5
41015 echo "${ECHO_T}$RANLIB" >&6
41016 else
41017   echo "$as_me:$LINENO: result: no" >&5
41018 echo "${ECHO_T}no" >&6
41019 fi
41020
41021 fi
41022 if test -z "$ac_cv_prog_RANLIB"; then
41023   ac_ct_RANLIB=$RANLIB
41024   # Extract the first word of "ranlib", so it can be a program name with args.
41025 set dummy ranlib; ac_word=$2
41026 echo "$as_me:$LINENO: checking for $ac_word" >&5
41027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41028 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
41029   echo $ECHO_N "(cached) $ECHO_C" >&6
41030 else
41031   if test -n "$ac_ct_RANLIB"; then
41032   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
41033 else
41034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41035 for as_dir in $PATH
41036 do
41037   IFS=$as_save_IFS
41038   test -z "$as_dir" && as_dir=.
41039   for ac_exec_ext in '' $ac_executable_extensions; do
41040   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41041     ac_cv_prog_ac_ct_RANLIB="ranlib"
41042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41043     break 2
41044   fi
41045 done
41046 done
41047
41048   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
41049 fi
41050 fi
41051 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
41052 if test -n "$ac_ct_RANLIB"; then
41053   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
41054 echo "${ECHO_T}$ac_ct_RANLIB" >&6
41055 else
41056   echo "$as_me:$LINENO: result: no" >&5
41057 echo "${ECHO_T}no" >&6
41058 fi
41059
41060   RANLIB=$ac_ct_RANLIB
41061 else
41062   RANLIB="$ac_cv_prog_RANLIB"
41063 fi
41064
41065     # Find a good install program.  We prefer a C program (faster),
41066 # so one script is as good as another.  But avoid the broken or
41067 # incompatible versions:
41068 # SysV /etc/install, /usr/sbin/install
41069 # SunOS /usr/etc/install
41070 # IRIX /sbin/install
41071 # AIX /bin/install
41072 # AmigaOS /C/install, which installs bootblocks on floppy discs
41073 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
41074 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
41075 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
41076 # OS/2's system install, which has a completely different semantic
41077 # ./install, which can be erroneously created by make from ./install.sh.
41078 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
41079 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
41080 if test -z "$INSTALL"; then
41081 if test "${ac_cv_path_install+set}" = set; then
41082   echo $ECHO_N "(cached) $ECHO_C" >&6
41083 else
41084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41085 for as_dir in $PATH
41086 do
41087   IFS=$as_save_IFS
41088   test -z "$as_dir" && as_dir=.
41089   # Account for people who put trailing slashes in PATH elements.
41090 case $as_dir/ in
41091   ./ | .// | /cC/* | \
41092   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
41093   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
41094   /usr/ucb/* ) ;;
41095   *)
41096     # OSF1 and SCO ODT 3.0 have their own names for install.
41097     # Don't use installbsd from OSF since it installs stuff as root
41098     # by default.
41099     for ac_prog in ginstall scoinst install; do
41100       for ac_exec_ext in '' $ac_executable_extensions; do
41101         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
41102           if test $ac_prog = install &&
41103             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41104             # AIX install.  It has an incompatible calling convention.
41105             :
41106           elif test $ac_prog = install &&
41107             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41108             # program-specific install script used by HP pwplus--don't use.
41109             :
41110           else
41111             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
41112             break 3
41113           fi
41114         fi
41115       done
41116     done
41117     ;;
41118 esac
41119 done
41120
41121
41122 fi
41123   if test "${ac_cv_path_install+set}" = set; then
41124     INSTALL=$ac_cv_path_install
41125   else
41126     # As a last resort, use the slow shell script.  We don't cache a
41127     # path for INSTALL within a source directory, because that will
41128     # break other packages using the cache if that directory is
41129     # removed, or if the path is relative.
41130     INSTALL=$ac_install_sh
41131   fi
41132 fi
41133 echo "$as_me:$LINENO: result: $INSTALL" >&5
41134 echo "${ECHO_T}$INSTALL" >&6
41135
41136 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
41137 # It thinks the first close brace ends the variable substitution.
41138 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
41139
41140 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
41141
41142 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
41143
41144     echo "$as_me:$LINENO: checking whether ln -s works" >&5
41145 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
41146 LN_S=$as_ln_s
41147 if test "$LN_S" = "ln -s"; then
41148   echo "$as_me:$LINENO: result: yes" >&5
41149 echo "${ECHO_T}yes" >&6
41150 else
41151   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
41152 echo "${ECHO_T}no, using $LN_S" >&6
41153 fi
41154
41155
41156     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41157 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
41158 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
41159 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41160   echo $ECHO_N "(cached) $ECHO_C" >&6
41161 else
41162   cat >conftest.make <<\_ACEOF
41163 all:
41164         @echo 'ac_maketemp="$(MAKE)"'
41165 _ACEOF
41166 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41167 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41168 if test -n "$ac_maketemp"; then
41169   eval ac_cv_prog_make_${ac_make}_set=yes
41170 else
41171   eval ac_cv_prog_make_${ac_make}_set=no
41172 fi
41173 rm -f conftest.make
41174 fi
41175 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41176   echo "$as_me:$LINENO: result: yes" >&5
41177 echo "${ECHO_T}yes" >&6
41178   SET_MAKE=
41179 else
41180   echo "$as_me:$LINENO: result: no" >&5
41181 echo "${ECHO_T}no" >&6
41182   SET_MAKE="MAKE=${MAKE-make}"
41183 fi
41184
41185
41186
41187     if test -n "$ac_tool_prefix"; then
41188   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
41189 set dummy ${ac_tool_prefix}ar; ac_word=$2
41190 echo "$as_me:$LINENO: checking for $ac_word" >&5
41191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41192 if test "${ac_cv_prog_AR+set}" = set; then
41193   echo $ECHO_N "(cached) $ECHO_C" >&6
41194 else
41195   if test -n "$AR"; then
41196   ac_cv_prog_AR="$AR" # Let the user override the test.
41197 else
41198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41199 for as_dir in $PATH
41200 do
41201   IFS=$as_save_IFS
41202   test -z "$as_dir" && as_dir=.
41203   for ac_exec_ext in '' $ac_executable_extensions; do
41204   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41205     ac_cv_prog_AR="${ac_tool_prefix}ar"
41206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41207     break 2
41208   fi
41209 done
41210 done
41211
41212 fi
41213 fi
41214 AR=$ac_cv_prog_AR
41215 if test -n "$AR"; then
41216   echo "$as_me:$LINENO: result: $AR" >&5
41217 echo "${ECHO_T}$AR" >&6
41218 else
41219   echo "$as_me:$LINENO: result: no" >&5
41220 echo "${ECHO_T}no" >&6
41221 fi
41222
41223 fi
41224 if test -z "$ac_cv_prog_AR"; then
41225   ac_ct_AR=$AR
41226   # Extract the first word of "ar", so it can be a program name with args.
41227 set dummy ar; ac_word=$2
41228 echo "$as_me:$LINENO: checking for $ac_word" >&5
41229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41230 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
41231   echo $ECHO_N "(cached) $ECHO_C" >&6
41232 else
41233   if test -n "$ac_ct_AR"; then
41234   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
41235 else
41236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41237 for as_dir in $PATH
41238 do
41239   IFS=$as_save_IFS
41240   test -z "$as_dir" && as_dir=.
41241   for ac_exec_ext in '' $ac_executable_extensions; do
41242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41243     ac_cv_prog_ac_ct_AR="ar"
41244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41245     break 2
41246   fi
41247 done
41248 done
41249
41250   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
41251 fi
41252 fi
41253 ac_ct_AR=$ac_cv_prog_ac_ct_AR
41254 if test -n "$ac_ct_AR"; then
41255   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
41256 echo "${ECHO_T}$ac_ct_AR" >&6
41257 else
41258   echo "$as_me:$LINENO: result: no" >&5
41259 echo "${ECHO_T}no" >&6
41260 fi
41261
41262   AR=$ac_ct_AR
41263 else
41264   AR="$ac_cv_prog_AR"
41265 fi
41266
41267     if test -n "$ac_tool_prefix"; then
41268   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
41269 set dummy ${ac_tool_prefix}strip; ac_word=$2
41270 echo "$as_me:$LINENO: checking for $ac_word" >&5
41271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41272 if test "${ac_cv_prog_STRIP+set}" = set; then
41273   echo $ECHO_N "(cached) $ECHO_C" >&6
41274 else
41275   if test -n "$STRIP"; then
41276   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
41277 else
41278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41279 for as_dir in $PATH
41280 do
41281   IFS=$as_save_IFS
41282   test -z "$as_dir" && as_dir=.
41283   for ac_exec_ext in '' $ac_executable_extensions; do
41284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41285     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
41286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41287     break 2
41288   fi
41289 done
41290 done
41291
41292 fi
41293 fi
41294 STRIP=$ac_cv_prog_STRIP
41295 if test -n "$STRIP"; then
41296   echo "$as_me:$LINENO: result: $STRIP" >&5
41297 echo "${ECHO_T}$STRIP" >&6
41298 else
41299   echo "$as_me:$LINENO: result: no" >&5
41300 echo "${ECHO_T}no" >&6
41301 fi
41302
41303 fi
41304 if test -z "$ac_cv_prog_STRIP"; then
41305   ac_ct_STRIP=$STRIP
41306   # Extract the first word of "strip", so it can be a program name with args.
41307 set dummy strip; ac_word=$2
41308 echo "$as_me:$LINENO: checking for $ac_word" >&5
41309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41310 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
41311   echo $ECHO_N "(cached) $ECHO_C" >&6
41312 else
41313   if test -n "$ac_ct_STRIP"; then
41314   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
41315 else
41316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41317 for as_dir in $PATH
41318 do
41319   IFS=$as_save_IFS
41320   test -z "$as_dir" && as_dir=.
41321   for ac_exec_ext in '' $ac_executable_extensions; do
41322   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41323     ac_cv_prog_ac_ct_STRIP="strip"
41324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41325     break 2
41326   fi
41327 done
41328 done
41329
41330   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
41331 fi
41332 fi
41333 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
41334 if test -n "$ac_ct_STRIP"; then
41335   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
41336 echo "${ECHO_T}$ac_ct_STRIP" >&6
41337 else
41338   echo "$as_me:$LINENO: result: no" >&5
41339 echo "${ECHO_T}no" >&6
41340 fi
41341
41342   STRIP=$ac_ct_STRIP
41343 else
41344   STRIP="$ac_cv_prog_STRIP"
41345 fi
41346
41347     if test -n "$ac_tool_prefix"; then
41348   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
41349 set dummy ${ac_tool_prefix}nm; ac_word=$2
41350 echo "$as_me:$LINENO: checking for $ac_word" >&5
41351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41352 if test "${ac_cv_prog_NM+set}" = set; then
41353   echo $ECHO_N "(cached) $ECHO_C" >&6
41354 else
41355   if test -n "$NM"; then
41356   ac_cv_prog_NM="$NM" # Let the user override the test.
41357 else
41358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41359 for as_dir in $PATH
41360 do
41361   IFS=$as_save_IFS
41362   test -z "$as_dir" && as_dir=.
41363   for ac_exec_ext in '' $ac_executable_extensions; do
41364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41365     ac_cv_prog_NM="${ac_tool_prefix}nm"
41366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41367     break 2
41368   fi
41369 done
41370 done
41371
41372 fi
41373 fi
41374 NM=$ac_cv_prog_NM
41375 if test -n "$NM"; then
41376   echo "$as_me:$LINENO: result: $NM" >&5
41377 echo "${ECHO_T}$NM" >&6
41378 else
41379   echo "$as_me:$LINENO: result: no" >&5
41380 echo "${ECHO_T}no" >&6
41381 fi
41382
41383 fi
41384 if test -z "$ac_cv_prog_NM"; then
41385   ac_ct_NM=$NM
41386   # Extract the first word of "nm", so it can be a program name with args.
41387 set dummy nm; ac_word=$2
41388 echo "$as_me:$LINENO: checking for $ac_word" >&5
41389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41390 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
41391   echo $ECHO_N "(cached) $ECHO_C" >&6
41392 else
41393   if test -n "$ac_ct_NM"; then
41394   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
41395 else
41396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41397 for as_dir in $PATH
41398 do
41399   IFS=$as_save_IFS
41400   test -z "$as_dir" && as_dir=.
41401   for ac_exec_ext in '' $ac_executable_extensions; do
41402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41403     ac_cv_prog_ac_ct_NM="nm"
41404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41405     break 2
41406   fi
41407 done
41408 done
41409
41410   test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
41411 fi
41412 fi
41413 ac_ct_NM=$ac_cv_prog_ac_ct_NM
41414 if test -n "$ac_ct_NM"; then
41415   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
41416 echo "${ECHO_T}$ac_ct_NM" >&6
41417 else
41418   echo "$as_me:$LINENO: result: no" >&5
41419 echo "${ECHO_T}no" >&6
41420 fi
41421
41422   NM=$ac_ct_NM
41423 else
41424   NM="$ac_cv_prog_NM"
41425 fi
41426
41427
41428     case ${BAKEFILE_HOST} in
41429         *-hp-hpux* )
41430                                     INSTALL_DIR="mkdir -p"
41431             ;;
41432         *)  INSTALL_DIR="$INSTALL -d"
41433             ;;
41434     esac
41435
41436
41437     LDFLAGS_GUI=
41438     case ${BAKEFILE_HOST} in
41439         *-*-cygwin* | *-*-mingw32* )
41440         LDFLAGS_GUI="-mwindows"
41441     esac
41442
41443
41444     fi
41445
41446         echo "$as_me:$LINENO: checking if make is GNU make" >&5
41447 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
41448 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
41449   echo $ECHO_N "(cached) $ECHO_C" >&6
41450 else
41451
41452         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
41453                 egrep -s GNU > /dev/null); then
41454             bakefile_cv_prog_makeisgnu="yes"
41455         else
41456             bakefile_cv_prog_makeisgnu="no"
41457         fi
41458
41459 fi
41460 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
41461 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
41462
41463     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
41464         IF_GNU_MAKE=""
41465     else
41466         IF_GNU_MAKE="#"
41467     fi
41468
41469
41470
41471     PLATFORM_UNIX=0
41472     PLATFORM_WIN32=0
41473     PLATFORM_MSDOS=0
41474     PLATFORM_MAC=0
41475     PLATFORM_MACOS=0
41476     PLATFORM_MACOSX=0
41477     PLATFORM_OS2=0
41478     PLATFORM_BEOS=0
41479
41480     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
41481         case "${BAKEFILE_HOST}" in
41482             *-*-cygwin* | *-*-mingw32* )
41483                 PLATFORM_WIN32=1
41484             ;;
41485             *-pc-msdosdjgpp )
41486                 PLATFORM_MSDOS=1
41487             ;;
41488             *-pc-os2_emx | *-pc-os2-emx )
41489                 PLATFORM_OS2=1
41490             ;;
41491             powerpc-*-darwin* )
41492                 PLATFORM_MAC=1
41493                 PLATFORM_MACOSX=1
41494             ;;
41495             *-*-beos* )
41496                 PLATFORM_BEOS=1
41497             ;;
41498             powerpc-apple-macos* )
41499                 PLATFORM_MAC=1
41500                 PLATFORM_MACOS=1
41501             ;;
41502             * )
41503                 PLATFORM_UNIX=1
41504             ;;
41505         esac
41506     else
41507         case "$BAKEFILE_FORCE_PLATFORM" in
41508             win32 )
41509                 PLATFORM_WIN32=1
41510             ;;
41511             msdos )
41512                 PLATFORM_MSDOS=1
41513             ;;
41514             os2 )
41515                 PLATFORM_OS2=1
41516             ;;
41517             darwin )
41518                 PLATFORM_MAC=1
41519                 PLATFORM_MACOSX=1
41520             ;;
41521             unix )
41522                 PLATFORM_UNIX=1
41523             ;;
41524             beos )
41525                 PLATFORM_BEOS=1
41526             ;;
41527             * )
41528                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
41529 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
41530    { (exit 1); exit 1; }; }
41531             ;;
41532         esac
41533     fi
41534
41535
41536
41537
41538
41539
41540
41541
41542
41543
41544
41545     # Check whether --enable-omf or --disable-omf was given.
41546 if test "${enable_omf+set}" = set; then
41547   enableval="$enable_omf"
41548   bk_os2_use_omf="$enableval"
41549 fi;
41550
41551     case "${BAKEFILE_HOST}" in
41552       *-*-darwin* )
41553                         CFLAGS="$CFLAGS -fno-common"
41554         CXXFLAGS="$CXXFLAGS -fno-common"
41555         ;;
41556
41557       *-pc-os2_emx | *-pc-os2-emx )
41558         if test "x$bk_os2_use_omf" = "xyes" ; then
41559             AR=emxomfar
41560             RANLIB=:
41561             LDFLAGS="-Zomf $LDFLAGS"
41562             CFLAGS="-Zomf $CFLAGS"
41563             CXXFLAGS="-Zomf $CXXFLAGS"
41564             OS2_LIBEXT="lib"
41565         else
41566             OS2_LIBEXT="a"
41567         fi
41568         ;;
41569
41570       i*86-*-beos* )
41571         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
41572         ;;
41573     esac
41574
41575
41576     SO_SUFFIX="so"
41577     SO_SUFFIX_MODULE="so"
41578     EXEEXT=""
41579     LIBPREFIX="lib"
41580     LIBEXT=".a"
41581     DLLPREFIX="lib"
41582     DLLPREFIX_MODULE=""
41583     DLLIMP_SUFFIX=""
41584
41585     case "${BAKEFILE_HOST}" in
41586         *-hp-hpux* )
41587             SO_SUFFIX="sl"
41588             SO_SUFFIX_MODULE="sl"
41589         ;;
41590         *-*-aix* )
41591                                                                         SO_SUFFIX="a"
41592             SO_SUFFIX_MODULE="a"
41593         ;;
41594         *-*-cygwin* | *-*-mingw32* )
41595             SO_SUFFIX="dll"
41596             SO_SUFFIX_MODULE="dll"
41597             DLLIMP_SUFFIX="dll.a"
41598             EXEEXT=".exe"
41599             DLLPREFIX=""
41600         ;;
41601         *-pc-msdosdjgpp )
41602             EXEEXT=".exe"
41603             DLLPREFIX=""
41604         ;;
41605         *-pc-os2_emx | *-pc-os2-emx )
41606             SO_SUFFIX="dll"
41607             SO_SUFFIX_MODULE="dll"
41608             DLLIMP_SUFFIX=$OS2_LIBEXT
41609             EXEEXT=".exe"
41610             DLLPREFIX=""
41611             LIBPREFIX=""
41612             LIBEXT=".$OS2_LIBEXT"
41613         ;;
41614         powerpc-*-darwin* )
41615             SO_SUFFIX="dylib"
41616             SO_SUFFIX_MODULE="bundle"
41617         ;;
41618     esac
41619
41620     if test "x$DLLIMP_SUFFIX" = "x" ; then
41621         DLLIMP_SUFFIX="$SO_SUFFIX"
41622     fi
41623
41624
41625
41626
41627
41628
41629
41630
41631
41632
41633
41634         PIC_FLAG=""
41635     if test "x$GCC" = "xyes"; then
41636                 PIC_FLAG="-fPIC"
41637     fi
41638
41639         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41640     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41641
41642     case "${BAKEFILE_HOST}" in
41643       *-hp-hpux* )
41644                 if test "x$GCC" != "xyes"; then
41645                         LDFLAGS="$LDFLAGS -L/usr/lib"
41646
41647             SHARED_LD_CC="${CC} -b -o"
41648             SHARED_LD_CXX="${CXX} -b -o"
41649             PIC_FLAG="+Z"
41650         fi
41651       ;;
41652
41653       *-*-linux* )
41654         if test "x$GCC" != "xyes"; then
41655             echo "$as_me:$LINENO: checking for Intel compiler" >&5
41656 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41657 if test "${bakefile_cv_prog_icc+set}" = set; then
41658   echo $ECHO_N "(cached) $ECHO_C" >&6
41659 else
41660
41661                 cat >conftest.$ac_ext <<_ACEOF
41662 /* confdefs.h.  */
41663 _ACEOF
41664 cat confdefs.h >>conftest.$ac_ext
41665 cat >>conftest.$ac_ext <<_ACEOF
41666 /* end confdefs.h.  */
41667
41668 int
41669 main ()
41670 {
41671
41672                         #ifndef __INTEL_COMPILER
41673                         #error Not icc
41674                         #endif
41675
41676   ;
41677   return 0;
41678 }
41679 _ACEOF
41680 rm -f conftest.$ac_objext
41681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41682   (eval $ac_compile) 2>conftest.er1
41683   ac_status=$?
41684   grep -v '^ *+' conftest.er1 >conftest.err
41685   rm -f conftest.er1
41686   cat conftest.err >&5
41687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41688   (exit $ac_status); } &&
41689          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41691   (eval $ac_try) 2>&5
41692   ac_status=$?
41693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41694   (exit $ac_status); }; } &&
41695          { ac_try='test -s conftest.$ac_objext'
41696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41697   (eval $ac_try) 2>&5
41698   ac_status=$?
41699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41700   (exit $ac_status); }; }; then
41701   bakefile_cv_prog_icc=yes
41702 else
41703   echo "$as_me: failed program was:" >&5
41704 sed 's/^/| /' conftest.$ac_ext >&5
41705
41706 bakefile_cv_prog_icc=no
41707
41708 fi
41709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41710
41711 fi
41712 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
41713 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
41714             if test "$bakefile_cv_prog_icc" = "yes"; then
41715                 PIC_FLAG="-KPIC"
41716             fi
41717         fi
41718       ;;
41719
41720       *-*-solaris2* )
41721         if test "x$GCC" != xyes ; then
41722             SHARED_LD_CC="${CC} -G -o"
41723             SHARED_LD_CXX="${CXX} -G -o"
41724             PIC_FLAG="-KPIC"
41725         fi
41726       ;;
41727
41728       *-*-darwin* )
41729
41730                                 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
41731 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
41732 if test "${wx_cv_gcc31+set}" = set; then
41733   echo $ECHO_N "(cached) $ECHO_C" >&6
41734 else
41735
41736            cat >conftest.$ac_ext <<_ACEOF
41737 /* confdefs.h.  */
41738 _ACEOF
41739 cat confdefs.h >>conftest.$ac_ext
41740 cat >>conftest.$ac_ext <<_ACEOF
41741 /* end confdefs.h.  */
41742
41743 int
41744 main ()
41745 {
41746
41747                    #if (__GNUC__ < 3) || \
41748                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
41749                        #error old gcc
41750                    #endif
41751
41752   ;
41753   return 0;
41754 }
41755 _ACEOF
41756 rm -f conftest.$ac_objext
41757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41758   (eval $ac_compile) 2>conftest.er1
41759   ac_status=$?
41760   grep -v '^ *+' conftest.er1 >conftest.err
41761   rm -f conftest.er1
41762   cat conftest.err >&5
41763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41764   (exit $ac_status); } &&
41765          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
41766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41767   (eval $ac_try) 2>&5
41768   ac_status=$?
41769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41770   (exit $ac_status); }; } &&
41771          { ac_try='test -s conftest.$ac_objext'
41772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41773   (eval $ac_try) 2>&5
41774   ac_status=$?
41775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41776   (exit $ac_status); }; }; then
41777
41778                    wx_cv_gcc31=yes
41779
41780 else
41781   echo "$as_me: failed program was:" >&5
41782 sed 's/^/| /' conftest.$ac_ext >&5
41783
41784
41785                    wx_cv_gcc31=no
41786
41787
41788 fi
41789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41790
41791 fi
41792 echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
41793 echo "${ECHO_T}$wx_cv_gcc31" >&6
41794         if test "$wx_cv_gcc31" = "no"; then
41795
41796 D='$'
41797 cat <<EOF >shared-ld-sh
41798 #!/bin/sh
41799 #-----------------------------------------------------------------------------
41800 #-- Name:        distrib/mac/shared-ld-sh
41801 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
41802 #-- Author:      Gilles Depeyrot
41803 #-- Copyright:   (c) 2002 Gilles Depeyrot
41804 #-- Licence:     any use permitted
41805 #-----------------------------------------------------------------------------
41806
41807 verbose=0
41808 args=""
41809 objects=""
41810 linking_flag="-dynamiclib"
41811
41812 while test ${D}# -gt 0; do
41813     case ${D}1 in
41814
41815        -v)
41816         verbose=1
41817         ;;
41818
41819        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
41820         # collect these options and values
41821         args="${D}{args} ${D}1 ${D}2"
41822         shift
41823         ;;
41824
41825        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
41826         # collect these options
41827         args="${D}{args} ${D}1"
41828         ;;
41829
41830        -dynamiclib|-bundle)
41831         linking_flag="${D}1"
41832         ;;
41833
41834        -*)
41835         echo "shared-ld: unhandled option '${D}1'"
41836         exit 1
41837         ;;
41838
41839         *.o | *.a | *.dylib)
41840         # collect object files
41841         objects="${D}{objects} ${D}1"
41842         ;;
41843
41844         *)
41845         echo "shared-ld: unhandled argument '${D}1'"
41846         exit 1
41847         ;;
41848
41849     esac
41850     shift
41851 done
41852
41853 #
41854 # Link one module containing all the others
41855 #
41856 if test ${D}{verbose} = 1; then
41857     echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
41858 fi
41859 c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
41860 status=${D}?
41861 if test ${D}{status} != 0; then
41862     exit ${D}{status}
41863 fi
41864
41865 #
41866 # Link the shared library from the single module created
41867 #
41868 if test ${D}{verbose} = 1; then
41869     echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
41870 fi
41871 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
41872 status=${D}?
41873 if test ${D}{status} != 0; then
41874     exit ${D}{status}
41875 fi
41876
41877 #
41878 # Remove intermediate module
41879 #
41880 rm -f master.${D}${D}.o
41881
41882 exit 0
41883 EOF
41884
41885             chmod +x shared-ld-sh
41886
41887                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
41888             SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
41889             SHARED_LD_CXX="$SHARED_LD_CC"
41890             SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
41891         else
41892                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
41893             SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
41894             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
41895             SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
41896         fi
41897
41898         PIC_FLAG="-dynamic -fPIC"
41899       ;;
41900
41901       *-*-aix* )
41902                 if test "x$GCC" != "xyes"; then
41903                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
41904 set dummy makeC++SharedLib; ac_word=$2
41905 echo "$as_me:$LINENO: checking for $ac_word" >&5
41906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41907 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
41908   echo $ECHO_N "(cached) $ECHO_C" >&6
41909 else
41910   if test -n "$AIX_CXX_LD"; then
41911   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
41912 else
41913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41914 for as_dir in $PATH
41915 do
41916   IFS=$as_save_IFS
41917   test -z "$as_dir" && as_dir=.
41918   for ac_exec_ext in '' $ac_executable_extensions; do
41919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41920     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
41921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41922     break 2
41923   fi
41924 done
41925 done
41926
41927   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
41928 fi
41929 fi
41930 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
41931 if test -n "$AIX_CXX_LD"; then
41932   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
41933 echo "${ECHO_T}$AIX_CXX_LD" >&6
41934 else
41935   echo "$as_me:$LINENO: result: no" >&5
41936 echo "${ECHO_T}no" >&6
41937 fi
41938
41939                         SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
41940             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
41941         fi
41942       ;;
41943
41944       *-*-beos* )
41945                         SHARED_LD_CC="${LD} -nostart -o"
41946         SHARED_LD_CXX="${LD} -nostart -o"
41947       ;;
41948
41949       *-*-irix* )
41950                 if test "x$GCC" != "xyes"; then
41951             PIC_FLAG="-KPIC"
41952         fi
41953       ;;
41954
41955       *-*-cygwin* | *-*-mingw32* )
41956         PIC_FLAG=""
41957         SHARED_LD_CC="\$(CC) -shared -o"
41958         SHARED_LD_CXX="\$(CXX) -shared -o"
41959       ;;
41960
41961       *-pc-os2_emx | *-pc-os2-emx )
41962         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41963         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41964         PIC_FLAG=""
41965
41966 D='$'
41967 cat <<EOF >dllar.sh
41968 #!/bin/sh
41969 #
41970 # dllar - a tool to build both a .dll and an .a file
41971 # from a set of object (.o) files for EMX/OS2.
41972 #
41973 #  Written by Andrew Zabolotny, bit@freya.etu.ru
41974 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
41975 #
41976 #  This script will accept a set of files on the command line.
41977 #  All the public symbols from the .o files will be exported into
41978 #  a .DEF file, then linker will be run (through gcc) against them to
41979 #  build a shared library consisting of all given .o files. All libraries
41980 #  (.a) will be first decompressed into component .o files then act as
41981 #  described above. You can optionally give a description (-d "description")
41982 #  which will be put into .DLL. To see the list of accepted options (as well
41983 #  as command-line format) simply run this program without options. The .DLL
41984 #  is built to be imported by name (there is no guarantee that new versions
41985 #  of the library you build will have same ordinals for same symbols).
41986 #
41987 #  dllar is free software; you can redistribute it and/or modify
41988 #  it under the terms of the GNU General Public License as published by
41989 #  the Free Software Foundation; either version 2, or (at your option)
41990 #  any later version.
41991 #
41992 #  dllar is distributed in the hope that it will be useful,
41993 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
41994 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
41995 #  GNU General Public License for more details.
41996 #
41997 #  You should have received a copy of the GNU General Public License
41998 #  along with dllar; see the file COPYING.  If not, write to the Free
41999 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
42000 #  02111-1307, USA.
42001
42002 # To successfuly run this program you will need:
42003 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
42004 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
42005 #  - gcc
42006 #    (used to build the .dll)
42007 #  - emxexp
42008 #    (used to create .def file from .o files)
42009 #  - emximp
42010 #    (used to create .a file from .def file)
42011 #  - GNU text utilites (cat, sort, uniq)
42012 #    used to process emxexp output
42013 #  - GNU file utilities (mv, rm)
42014 #  - GNU sed
42015 #  - lxlite (optional, see flag below)
42016 #    (used for general .dll cleanup)
42017 #
42018
42019 flag_USE_LXLITE=1;
42020
42021 #
42022 # helper functions
42023 # basnam, variant of basename, which does _not_ remove the path, _iff_
42024 #                              second argument (suffix to remove) is given
42025 basnam(){
42026     case ${D}# in
42027     1)
42028         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
42029         ;;
42030     2)
42031         echo ${D}1 | sed 's/'${D}2'${D}//'
42032         ;;
42033     *)
42034         echo "error in basnam ${D}*"
42035         exit 8
42036         ;;
42037     esac
42038 }
42039
42040 # Cleanup temporary files and output
42041 CleanUp() {
42042     cd ${D}curDir
42043     for i in ${D}inputFiles ; do
42044         case ${D}i in
42045         *!)
42046             rm -rf \`basnam ${D}i !\`
42047             ;;
42048         *)
42049             ;;
42050         esac
42051     done
42052
42053     # Kill result in case of failure as there is just to many stupid make/nmake
42054     # things out there which doesn't do this.
42055     if [ ${D}# -eq 0 ]; then
42056         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
42057     fi
42058 }
42059
42060 # Print usage and exit script with rc=1.
42061 PrintHelp() {
42062  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
42063  echo '       [-name-mangler-script script.sh]'
42064  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
42065  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
42066  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
42067  echo '       [*.o] [*.a]'
42068  echo '*> "output_file" should have no extension.'
42069  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
42070  echo '   The import library name is derived from this and is set to "name".a,'
42071  echo '   unless overridden by -import'
42072  echo '*> "importlib_name" should have no extension.'
42073  echo '   If it has the .o, or .a extension, it is automatically removed.'
42074  echo '   This name is used as the import library name and may be longer and'
42075  echo '   more descriptive than the DLL name which has to follow the old '
42076  echo '   8.3 convention of FAT.'
42077  echo '*> "script.sh may be given to override the output_file name by a'
42078  echo '   different name. It is mainly useful if the regular make process'
42079  echo '   of some package does not take into account OS/2 restriction of'
42080  echo '   DLL name lengths. It takes the importlib name as input and is'
42081  echo '   supposed to procude a shorter name as output. The script should'
42082  echo '   expect to get importlib_name without extension and should produce'
42083  echo '   a (max.) 8 letter name without extension.'
42084  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
42085  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
42086  echo '   These flags will be put at the start of GCC command line.'
42087  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
42088  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
42089  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
42090  echo '   If the last character of a symbol is "*", all symbols beginning'
42091  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
42092  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
42093  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
42094  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
42095  echo '   C runtime DLLs.'
42096  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
42097  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
42098  echo '   unchanged to GCC at the end of command line.'
42099  echo '*> If you create a DLL from a library and you do not specify -o,'
42100  echo '   the basename for DLL and import library will be set to library name,'
42101  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
42102  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
42103  echo '   library will be renamed into gcc_s.a.'
42104  echo '--------'
42105  echo 'Example:'
42106  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
42107  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
42108  CleanUp
42109  exit 1
42110 }
42111
42112 # Execute a command.
42113 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
42114 # @Uses    Whatever CleanUp() uses.
42115 doCommand() {
42116     echo "${D}*"
42117     eval ${D}*
42118     rcCmd=${D}?
42119
42120     if [ ${D}rcCmd -ne 0 ]; then
42121         echo "command failed, exit code="${D}rcCmd
42122         CleanUp
42123         exit ${D}rcCmd
42124     fi
42125 }
42126
42127 # main routine
42128 # setup globals
42129 cmdLine=${D}*
42130 outFile=""
42131 outimpFile=""
42132 inputFiles=""
42133 renameScript=""
42134 description=""
42135 CC=gcc.exe
42136 CFLAGS="-s -Zcrtdll"
42137 EXTRA_CFLAGS=""
42138 EXPORT_BY_ORDINALS=0
42139 exclude_symbols=""
42140 library_flags=""
42141 curDir=\`pwd\`
42142 curDirS=curDir
42143 case ${D}curDirS in
42144 */)
42145   ;;
42146 *)
42147   curDirS=${D}{curDirS}"/"
42148   ;;
42149 esac
42150 # Parse commandline
42151 libsToLink=0
42152 omfLinking=0
42153 while [ ${D}1 ]; do
42154     case ${D}1 in
42155     -ord*)
42156         EXPORT_BY_ORDINALS=1;
42157         ;;
42158     -o*)
42159         shift
42160         outFile=${D}1
42161         ;;
42162     -i*)
42163         shift
42164         outimpFile=${D}1
42165         ;;
42166     -name-mangler-script)
42167         shift
42168         renameScript=${D}1
42169         ;;
42170     -d*)
42171         shift
42172         description=${D}1
42173         ;;
42174     -f*)
42175         shift
42176         CFLAGS=${D}1
42177         ;;
42178     -c*)
42179         shift
42180         CC=${D}1
42181         ;;
42182     -h*)
42183         PrintHelp
42184         ;;
42185     -ex*)
42186         shift
42187         exclude_symbols=${D}{exclude_symbols}${D}1" "
42188         ;;
42189     -libf*)
42190         shift
42191         library_flags=${D}{library_flags}${D}1" "
42192         ;;
42193     -nocrt*)
42194         CFLAGS="-s"
42195         ;;
42196     -nolxl*)
42197         flag_USE_LXLITE=0
42198         ;;
42199     -* | /*)
42200         case ${D}1 in
42201         -L* | -l*)
42202             libsToLink=1
42203             ;;
42204         -Zomf)
42205             omfLinking=1
42206             ;;
42207         *)
42208             ;;
42209         esac
42210         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42211         ;;
42212     *.dll)
42213         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
42214         if [ ${D}omfLinking -eq 1 ]; then
42215             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
42216         else
42217             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
42218         fi
42219         ;;
42220     *)
42221         found=0;
42222         if [ ${D}libsToLink -ne 0 ]; then
42223             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42224         else
42225             for file in ${D}1 ; do
42226                 if [ -f ${D}file ]; then
42227                     inputFiles="${D}{inputFiles} ${D}file"
42228                     found=1
42229                 fi
42230             done
42231             if [ ${D}found -eq 0 ]; then
42232                 echo "ERROR: No file(s) found: "${D}1
42233                 exit 8
42234             fi
42235         fi
42236       ;;
42237     esac
42238     shift
42239 done # iterate cmdline words
42240
42241 #
42242 if [ -z "${D}inputFiles" ]; then
42243     echo "dllar: no input files"
42244     PrintHelp
42245 fi
42246
42247 # Now extract all .o files from .a files
42248 newInputFiles=""
42249 for file in ${D}inputFiles ; do
42250     case ${D}file in
42251     *.a | *.lib)
42252         case ${D}file in
42253         *.a)
42254             suffix=".a"
42255             AR="ar"
42256             ;;
42257         *.lib)
42258             suffix=".lib"
42259             AR="emxomfar"
42260             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
42261             ;;
42262         *)
42263             ;;
42264         esac
42265         dirname=\`basnam ${D}file ${D}suffix\`"_%"
42266         mkdir ${D}dirname
42267         if [ ${D}? -ne 0 ]; then
42268             echo "Failed to create subdirectory ./${D}dirname"
42269             CleanUp
42270             exit 8;
42271         fi
42272         # Append '!' to indicate archive
42273         newInputFiles="${D}newInputFiles ${D}{dirname}!"
42274         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
42275         cd ${D}curDir
42276         found=0;
42277         for subfile in ${D}dirname/*.o* ; do
42278             if [ -f ${D}subfile ]; then
42279                 found=1
42280                 if [ -s ${D}subfile ]; then
42281                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
42282                     newInputFiles="${D}newInputFiles ${D}subfile"
42283                 fi
42284             fi
42285         done
42286         if [ ${D}found -eq 0 ]; then
42287             echo "WARNING: there are no files in archive \\'${D}file\\'"
42288         fi
42289         ;;
42290     *)
42291         newInputFiles="${D}{newInputFiles} ${D}file"
42292         ;;
42293     esac
42294 done
42295 inputFiles="${D}newInputFiles"
42296
42297 # Output filename(s).
42298 do_backup=0;
42299 if [ -z ${D}outFile ]; then
42300     do_backup=1;
42301     set outFile ${D}inputFiles; outFile=${D}2
42302 fi
42303
42304 # If it is an archive, remove the '!' and the '_%' suffixes
42305 case ${D}outFile in
42306 *_%!)
42307     outFile=\`basnam ${D}outFile _%!\`
42308     ;;
42309 *)
42310     ;;
42311 esac
42312 case ${D}outFile in
42313 *.dll)
42314     outFile=\`basnam ${D}outFile .dll\`
42315     ;;
42316 *.DLL)
42317     outFile=\`basnam ${D}outFile .DLL\`
42318     ;;
42319 *.o)
42320     outFile=\`basnam ${D}outFile .o\`
42321     ;;
42322 *.obj)
42323     outFile=\`basnam ${D}outFile .obj\`
42324     ;;
42325 *.a)
42326     outFile=\`basnam ${D}outFile .a\`
42327     ;;
42328 *.lib)
42329     outFile=\`basnam ${D}outFile .lib\`
42330     ;;
42331 *)
42332     ;;
42333 esac
42334 case ${D}outimpFile in
42335 *.a)
42336     outimpFile=\`basnam ${D}outimpFile .a\`
42337     ;;
42338 *.lib)
42339     outimpFile=\`basnam ${D}outimpFile .lib\`
42340     ;;
42341 *)
42342     ;;
42343 esac
42344 if [ -z ${D}outimpFile ]; then
42345     outimpFile=${D}outFile
42346 fi
42347 defFile="${D}{outFile}.def"
42348 arcFile="${D}{outimpFile}.a"
42349 arcFile2="${D}{outimpFile}.lib"
42350
42351 #create ${D}dllFile as something matching 8.3 restrictions,
42352 if [ -z ${D}renameScript ] ; then
42353     dllFile="${D}outFile"
42354 else
42355     dllFile=\`${D}renameScript ${D}outimpFile\`
42356 fi
42357
42358 if [ ${D}do_backup -ne 0 ] ; then
42359     if [ -f ${D}arcFile ] ; then
42360         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
42361     fi
42362     if [ -f ${D}arcFile2 ] ; then
42363         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
42364     fi
42365 fi
42366
42367 # Extract public symbols from all the object files.
42368 tmpdefFile=${D}{defFile}_%
42369 rm -f ${D}tmpdefFile
42370 for file in ${D}inputFiles ; do
42371     case ${D}file in
42372     *!)
42373         ;;
42374     *)
42375         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
42376         ;;
42377     esac
42378 done
42379
42380 # Create the def file.
42381 rm -f ${D}defFile
42382 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
42383 dllFile="${D}{dllFile}.dll"
42384 if [ ! -z ${D}description ]; then
42385     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
42386 fi
42387 echo "EXPORTS" >> ${D}defFile
42388
42389 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
42390 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
42391
42392 # Checks if the export is ok or not.
42393 for word in ${D}exclude_symbols; do
42394     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
42395     mv ${D}{tmpdefFile}% ${D}tmpdefFile
42396 done
42397
42398
42399 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
42400     sed "=" < ${D}tmpdefFile | \\
42401     sed '
42402       N
42403       : loop
42404       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
42405       t loop
42406     ' > ${D}{tmpdefFile}%
42407     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
42408 else
42409     rm -f ${D}{tmpdefFile}%
42410 fi
42411 cat ${D}tmpdefFile >> ${D}defFile
42412 rm -f ${D}tmpdefFile
42413
42414 # Do linking, create implib, and apply lxlite.
42415 gccCmdl="";
42416 for file in ${D}inputFiles ; do
42417     case ${D}file in
42418     *!)
42419         ;;
42420     *)
42421         gccCmdl="${D}gccCmdl ${D}file"
42422         ;;
42423     esac
42424 done
42425 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
42426 touch "${D}{outFile}.dll"
42427
42428 doCommand "emximp -o ${D}arcFile ${D}defFile"
42429 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
42430     add_flags="";
42431     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
42432         add_flags="-ynd"
42433     fi
42434     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
42435 fi
42436 doCommand "emxomf -s -l ${D}arcFile"
42437
42438 # Successful exit.
42439 CleanUp 1
42440 exit 0
42441 EOF
42442
42443         chmod +x dllar.sh
42444       ;;
42445
42446       powerpc-apple-macos* | \
42447       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
42448       *-*-sunos4* | \
42449       *-*-osf* | \
42450       *-*-dgux5* | \
42451       *-*-sysv5* | \
42452       *-pc-msdosdjgpp )
42453               ;;
42454
42455       *)
42456         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
42457 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
42458    { (exit 1); exit 1; }; }
42459     esac
42460
42461     if test "x$PIC_FLAG" != "x" ; then
42462         PIC_FLAG="$PIC_FLAG -DPIC"
42463     fi
42464
42465     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
42466         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
42467     fi
42468     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
42469         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
42470     fi
42471
42472
42473
42474
42475
42476
42477
42478
42479     USE_SOVERSION=0
42480     USE_SOVERLINUX=0
42481     USE_SOVERSOLARIS=0
42482     USE_SOSYMLINKS=0
42483     USE_MACVERSION=0
42484     SONAME_FLAG=
42485
42486     case "${BAKEFILE_HOST}" in
42487       *-*-linux* | *-*-freebsd* )
42488         SONAME_FLAG="-Wl,-soname,"
42489         USE_SOVERSION=1
42490         USE_SOVERLINUX=1
42491         USE_SOSYMLINKS=1
42492       ;;
42493
42494       *-*-solaris2* )
42495         SONAME_FLAG="-h "
42496         USE_SOVERSION=1
42497         USE_SOVERSOLARIS=1
42498         USE_SOSYMLINKS=1
42499       ;;
42500
42501       *-*-darwin* )
42502         USE_MACVERSION=1
42503         USE_SOVERSION=1
42504         USE_SOSYMLINKS=1
42505       ;;
42506     esac
42507
42508
42509
42510
42511
42512
42513
42514
42515
42516     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
42517 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
42518     DEPS_TRACKING=0
42519
42520     if test "x$GCC" = "xyes"; then
42521         DEPSMODE=gcc
42522         DEPS_TRACKING=1
42523         case "${BAKEFILE_HOST}" in
42524             powerpc-*-darwin* )
42525                                                 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
42526             ;;
42527             * )
42528                 DEPSFLAG_GCC="-MMD"
42529             ;;
42530         esac
42531         echo "$as_me:$LINENO: result: gcc" >&5
42532 echo "${ECHO_T}gcc" >&6
42533     elif test "x$MWCC" = "xyes"; then
42534         DEPSMODE=mwcc
42535         DEPS_TRACKING=1
42536         DEPSFLAG_MWCC="-MM"
42537         echo "$as_me:$LINENO: result: mwcc" >&5
42538 echo "${ECHO_T}mwcc" >&6
42539     else
42540         echo "$as_me:$LINENO: result: none" >&5
42541 echo "${ECHO_T}none" >&6
42542     fi
42543
42544     if test $DEPS_TRACKING = 1 ; then
42545
42546 D='$'
42547 cat <<EOF >bk-deps
42548 #!/bin/sh
42549
42550 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42551 # script. It is used to track C/C++ files dependencies in portable way.
42552 #
42553 # Permission is given to use this file in any way.
42554
42555 DEPSMODE=${DEPSMODE}
42556 DEPSDIR=.deps
42557 DEPSFLAG_GCC="${DEPSFLAG_GCC}"
42558 DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
42559
42560 mkdir -p ${D}DEPSDIR
42561
42562 if test ${D}DEPSMODE = gcc ; then
42563     ${D}* ${D}{DEPSFLAG_GCC}
42564     status=${D}?
42565     if test ${D}{status} != 0 ; then
42566         exit ${D}{status}
42567     fi
42568     # move created file to the location we want it in:
42569     while test ${D}# -gt 0; do
42570         case "${D}1" in
42571             -o )
42572                 shift
42573                 objfile=${D}1
42574             ;;
42575             -* )
42576             ;;
42577             * )
42578                 srcfile=${D}1
42579             ;;
42580         esac
42581         shift
42582     done
42583     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
42584     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
42585     if test -f ${D}depfile ; then
42586         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42587         rm -f ${D}depfile
42588     else
42589         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
42590         if test -f ${D}depfile ; then
42591             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42592             rm -f ${D}depfile
42593         fi
42594     fi
42595     exit 0
42596 elif test ${D}DEPSMODE = mwcc ; then
42597     ${D}*
42598     status=${D}?
42599     if test ${D}{status} != 0 ; then
42600         exit ${D}{status}
42601     fi
42602     # Run mwcc again with -MM and redirect into the dep file we want
42603     # NOTE: We can't use shift here because we need ${D}* to be valid
42604     prevarg=
42605     for arg in ${D}* ; do
42606         if test "${D}prevarg" = "-o"; then
42607             objfile=${D}arg
42608         else
42609             case "${D}arg" in
42610                 -* )
42611                 ;;
42612                 * )
42613                     srcfile=${D}arg
42614                 ;;
42615             esac
42616         fi
42617         prevarg="${D}arg"
42618     done
42619     ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42620     exit 0
42621 else
42622     ${D}*
42623     exit ${D}?
42624 fi
42625 EOF
42626
42627         chmod +x bk-deps
42628     fi
42629
42630
42631
42632
42633     RESCOMP=
42634     SETFILE=
42635
42636     case ${BAKEFILE_HOST} in
42637         *-*-cygwin* | *-*-mingw32* )
42638                         if test "$build" != "$host" ; then
42639                 RESCOMP=$host_alias-windres
42640             else
42641                 # Extract the first word of "windres", so it can be a program name with args.
42642 set dummy windres; ac_word=$2
42643 echo "$as_me:$LINENO: checking for $ac_word" >&5
42644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42645 if test "${ac_cv_prog_RESCOMP+set}" = set; then
42646   echo $ECHO_N "(cached) $ECHO_C" >&6
42647 else
42648   if test -n "$RESCOMP"; then
42649   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42650 else
42651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42652 for as_dir in $PATH
42653 do
42654   IFS=$as_save_IFS
42655   test -z "$as_dir" && as_dir=.
42656   for ac_exec_ext in '' $ac_executable_extensions; do
42657   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42658     ac_cv_prog_RESCOMP="windres"
42659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42660     break 2
42661   fi
42662 done
42663 done
42664
42665   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
42666 fi
42667 fi
42668 RESCOMP=$ac_cv_prog_RESCOMP
42669 if test -n "$RESCOMP"; then
42670   echo "$as_me:$LINENO: result: $RESCOMP" >&5
42671 echo "${ECHO_T}$RESCOMP" >&6
42672 else
42673   echo "$as_me:$LINENO: result: no" >&5
42674 echo "${ECHO_T}no" >&6
42675 fi
42676
42677             fi
42678          ;;
42679
42680       *-*-darwin* | powerpc-apple-macos* )
42681             # Extract the first word of "Rez", so it can be a program name with args.
42682 set dummy Rez; ac_word=$2
42683 echo "$as_me:$LINENO: checking for $ac_word" >&5
42684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42685 if test "${ac_cv_prog_RESCOMP+set}" = set; then
42686   echo $ECHO_N "(cached) $ECHO_C" >&6
42687 else
42688   if test -n "$RESCOMP"; then
42689   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42690 else
42691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42692 for as_dir in $PATH
42693 do
42694   IFS=$as_save_IFS
42695   test -z "$as_dir" && as_dir=.
42696   for ac_exec_ext in '' $ac_executable_extensions; do
42697   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42698     ac_cv_prog_RESCOMP="Rez"
42699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42700     break 2
42701   fi
42702 done
42703 done
42704
42705   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
42706 fi
42707 fi
42708 RESCOMP=$ac_cv_prog_RESCOMP
42709 if test -n "$RESCOMP"; then
42710   echo "$as_me:$LINENO: result: $RESCOMP" >&5
42711 echo "${ECHO_T}$RESCOMP" >&6
42712 else
42713   echo "$as_me:$LINENO: result: no" >&5
42714 echo "${ECHO_T}no" >&6
42715 fi
42716
42717             # Extract the first word of "SetFile", so it can be a program name with args.
42718 set dummy SetFile; ac_word=$2
42719 echo "$as_me:$LINENO: checking for $ac_word" >&5
42720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42721 if test "${ac_cv_prog_SETFILE+set}" = set; then
42722   echo $ECHO_N "(cached) $ECHO_C" >&6
42723 else
42724   if test -n "$SETFILE"; then
42725   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
42726 else
42727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42728 for as_dir in $PATH
42729 do
42730   IFS=$as_save_IFS
42731   test -z "$as_dir" && as_dir=.
42732   for ac_exec_ext in '' $ac_executable_extensions; do
42733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42734     ac_cv_prog_SETFILE="SetFile"
42735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42736     break 2
42737   fi
42738 done
42739 done
42740
42741   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
42742 fi
42743 fi
42744 SETFILE=$ac_cv_prog_SETFILE
42745 if test -n "$SETFILE"; then
42746   echo "$as_me:$LINENO: result: $SETFILE" >&5
42747 echo "${ECHO_T}$SETFILE" >&6
42748 else
42749   echo "$as_me:$LINENO: result: no" >&5
42750 echo "${ECHO_T}no" >&6
42751 fi
42752
42753         ;;
42754     esac
42755
42756
42757
42758
42759
42760     BAKEFILE_BAKEFILE_M4_VERSION="0.1.8"
42761
42762
42763 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8"
42764
42765
42766
42767     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
42768 if test "${enable_precomp_headers+set}" = set; then
42769   enableval="$enable_precomp_headers"
42770   bk_use_pch="$enableval"
42771 fi;
42772
42773     GCC_PCH=0
42774
42775     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
42776         if test "x$GCC" = "xyes"; then
42777                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
42778 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
42779             cat >conftest.$ac_ext <<_ACEOF
42780 /* confdefs.h.  */
42781 _ACEOF
42782 cat confdefs.h >>conftest.$ac_ext
42783 cat >>conftest.$ac_ext <<_ACEOF
42784 /* end confdefs.h.  */
42785
42786 int
42787 main ()
42788 {
42789
42790                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
42791                         #error "no pch support"
42792                     #endif
42793                     #if (__GNUC__ < 3)
42794                         #error "no pch support"
42795                     #endif
42796                     #if (__GNUC__ == 3) && \
42797                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
42798                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
42799                         #error "no pch support"
42800                     #endif
42801
42802   ;
42803   return 0;
42804 }
42805 _ACEOF
42806 rm -f conftest.$ac_objext
42807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42808   (eval $ac_compile) 2>conftest.er1
42809   ac_status=$?
42810   grep -v '^ *+' conftest.er1 >conftest.err
42811   rm -f conftest.er1
42812   cat conftest.err >&5
42813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42814   (exit $ac_status); } &&
42815          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
42816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42817   (eval $ac_try) 2>&5
42818   ac_status=$?
42819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42820   (exit $ac_status); }; } &&
42821          { ac_try='test -s conftest.$ac_objext'
42822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42823   (eval $ac_try) 2>&5
42824   ac_status=$?
42825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42826   (exit $ac_status); }; }; then
42827
42828                     echo "$as_me:$LINENO: result: yes" >&5
42829 echo "${ECHO_T}yes" >&6
42830                     GCC_PCH=1
42831
42832 else
42833   echo "$as_me: failed program was:" >&5
42834 sed 's/^/| /' conftest.$ac_ext >&5
42835
42836
42837                     echo "$as_me:$LINENO: result: no" >&5
42838 echo "${ECHO_T}no" >&6
42839
42840 fi
42841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42842             if test $GCC_PCH = 1 ; then
42843
42844 D='$'
42845 cat <<EOF >bk-make-pch
42846 #!/bin/sh
42847
42848 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42849 # script. It is used to generated precompiled headers.
42850 #
42851 # Permission is given to use this file in any way.
42852
42853 outfile="${D}{1}"
42854 header="${D}{2}"
42855 shift
42856 shift
42857
42858 compiler=
42859 headerfile=
42860 while test ${D}{#} -gt 0; do
42861     case "${D}{1}" in
42862         -I* )
42863             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
42864             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
42865                 headerfile="${D}{incdir}/${D}{header}"
42866             fi
42867         ;;
42868     esac
42869     compiler="${D}{compiler} ${D}{1}"
42870     shift
42871 done
42872
42873 if test "x${D}{headerfile}" = "x" ; then
42874     echo "error: can't find header ${D}{header} in include paths" >2
42875 else
42876     if test -f ${D}{outfile} ; then
42877         rm -f ${D}{outfile}
42878     else
42879         mkdir -p \`dirname ${D}{outfile}\`
42880     fi
42881     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
42882     mkdir -p .deps
42883     # can do this because gcc is >= 3.4:
42884     ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
42885     exit ${D}{?}
42886 fi
42887 EOF
42888
42889                 chmod +x bk-make-pch
42890             fi
42891         fi
42892     fi
42893
42894
42895
42896     COND_BUILD_DEBUG="#"
42897     if test "x$BUILD" = "xdebug" ; then
42898         COND_BUILD_DEBUG=""
42899     fi
42900
42901     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
42902     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
42903         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
42904     fi
42905
42906     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
42907     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
42908         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
42909     fi
42910
42911     COND_BUILD_DEBUG_UNICODE_0="#"
42912     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
42913         COND_BUILD_DEBUG_UNICODE_0=""
42914     fi
42915
42916     COND_BUILD_DEBUG_UNICODE_1="#"
42917     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
42918         COND_BUILD_DEBUG_UNICODE_1=""
42919     fi
42920
42921     COND_BUILD_RELEASE="#"
42922     if test "x$BUILD" = "xrelease" ; then
42923         COND_BUILD_RELEASE=""
42924     fi
42925
42926     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
42927     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
42928         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
42929     fi
42930
42931     COND_BUILD_RELEASE_UNICODE_0="#"
42932     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
42933         COND_BUILD_RELEASE_UNICODE_0=""
42934     fi
42935
42936     COND_BUILD_RELEASE_UNICODE_1="#"
42937     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
42938         COND_BUILD_RELEASE_UNICODE_1=""
42939     fi
42940
42941     COND_DEBUG_FLAG_1="#"
42942     if test "x$DEBUG_FLAG" = "x1" ; then
42943         COND_DEBUG_FLAG_1=""
42944     fi
42945
42946     COND_DEBUG_INFO_0="#"
42947     if test "x$DEBUG_INFO" = "x0" ; then
42948         COND_DEBUG_INFO_0=""
42949     fi
42950
42951     COND_DEBUG_INFO_1="#"
42952     if test "x$DEBUG_INFO" = "x1" ; then
42953         COND_DEBUG_INFO_1=""
42954     fi
42955
42956     COND_DEPS_TRACKING_0="#"
42957     if test "x$DEPS_TRACKING" = "x0" ; then
42958         COND_DEPS_TRACKING_0=""
42959     fi
42960
42961     COND_DEPS_TRACKING_1="#"
42962     if test "x$DEPS_TRACKING" = "x1" ; then
42963         COND_DEPS_TRACKING_1=""
42964     fi
42965
42966     COND_GCC_PCH_1="#"
42967     if test "x$GCC_PCH" = "x1" ; then
42968         COND_GCC_PCH_1=""
42969     fi
42970
42971     COND_MONOLITHIC_0="#"
42972     if test "x$MONOLITHIC" = "x0" ; then
42973         COND_MONOLITHIC_0=""
42974     fi
42975
42976     COND_MONOLITHIC_0_SHARED_0="#"
42977     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
42978         COND_MONOLITHIC_0_SHARED_0=""
42979     fi
42980
42981     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
42982     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
42983         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
42984     fi
42985
42986     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
42987     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42988         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
42989     fi
42990
42991     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
42992     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42993         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
42994     fi
42995
42996     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
42997     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42998         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
42999     fi
43000
43001     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
43002     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
43003         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
43004     fi
43005
43006     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
43007     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43008         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
43009     fi
43010
43011     COND_MONOLITHIC_0_SHARED_1="#"
43012     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
43013         COND_MONOLITHIC_0_SHARED_1=""
43014     fi
43015
43016     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
43017     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
43018         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
43019     fi
43020
43021     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
43022     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43023         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
43024     fi
43025
43026     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
43027     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43028         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
43029     fi
43030
43031     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
43032     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43033         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
43034     fi
43035
43036     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
43037     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
43038         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
43039     fi
43040
43041     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
43042     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43043         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
43044     fi
43045
43046     COND_MONOLITHIC_0_USE_ODBC_1="#"
43047     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
43048         COND_MONOLITHIC_0_USE_ODBC_1=""
43049     fi
43050
43051     COND_MONOLITHIC_1="#"
43052     if test "x$MONOLITHIC" = "x1" ; then
43053         COND_MONOLITHIC_1=""
43054     fi
43055
43056     COND_MONOLITHIC_1_SHARED_0="#"
43057     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
43058         COND_MONOLITHIC_1_SHARED_0=""
43059     fi
43060
43061     COND_MONOLITHIC_1_SHARED_1="#"
43062     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
43063         COND_MONOLITHIC_1_SHARED_1=""
43064     fi
43065
43066     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
43067     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
43068         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
43069     fi
43070
43071     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
43072     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
43073         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
43074     fi
43075
43076     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
43077     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
43078         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
43079     fi
43080
43081     COND_PLATFORM_MACOSX_1="#"
43082     if test "x$PLATFORM_MACOSX" = "x1" ; then
43083         COND_PLATFORM_MACOSX_1=""
43084     fi
43085
43086     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
43087     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
43088         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
43089     fi
43090
43091     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
43092     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
43093         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
43094     fi
43095
43096     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
43097     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
43098         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
43099     fi
43100
43101     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
43102     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
43103         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
43104     fi
43105
43106     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
43107     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43108         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
43109     fi
43110
43111     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43112     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43113         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43114     fi
43115
43116     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
43117     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
43118         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
43119     fi
43120
43121     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
43122     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
43123         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
43124     fi
43125
43126     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
43127     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
43128         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
43129     fi
43130
43131     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
43132     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
43133         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
43134     fi
43135
43136     COND_PLATFORM_MACOS_1="#"
43137     if test "x$PLATFORM_MACOS" = "x1" ; then
43138         COND_PLATFORM_MACOS_1=""
43139     fi
43140
43141     COND_PLATFORM_MAC_1="#"
43142     if test "x$PLATFORM_MAC" = "x1" ; then
43143         COND_PLATFORM_MAC_1=""
43144     fi
43145
43146     COND_PLATFORM_MSDOS_1="#"
43147     if test "x$PLATFORM_MSDOS" = "x1" ; then
43148         COND_PLATFORM_MSDOS_1=""
43149     fi
43150
43151     COND_PLATFORM_OS2_1="#"
43152     if test "x$PLATFORM_OS2" = "x1" ; then
43153         COND_PLATFORM_OS2_1=""
43154     fi
43155
43156     COND_PLATFORM_UNIX_0="#"
43157     if test "x$PLATFORM_UNIX" = "x0" ; then
43158         COND_PLATFORM_UNIX_0=""
43159     fi
43160
43161     COND_PLATFORM_UNIX_1="#"
43162     if test "x$PLATFORM_UNIX" = "x1" ; then
43163         COND_PLATFORM_UNIX_1=""
43164     fi
43165
43166     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
43167     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
43168         COND_PLATFORM_UNIX_1_USE_GUI_1=""
43169     fi
43170
43171     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
43172     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
43173         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
43174     fi
43175
43176     COND_PLATFORM_WIN32_0="#"
43177     if test "x$PLATFORM_WIN32" = "x0" ; then
43178         COND_PLATFORM_WIN32_0=""
43179     fi
43180
43181     COND_PLATFORM_WIN32_1="#"
43182     if test "x$PLATFORM_WIN32" = "x1" ; then
43183         COND_PLATFORM_WIN32_1=""
43184     fi
43185
43186     COND_SHARED_0="#"
43187     if test "x$SHARED" = "x0" ; then
43188         COND_SHARED_0=""
43189     fi
43190
43191     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
43192     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
43193         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
43194     fi
43195
43196     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
43197     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
43198         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
43199     fi
43200
43201     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
43202     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
43203         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
43204     fi
43205
43206     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
43207     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43208         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
43209     fi
43210
43211     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43212     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43213         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43214     fi
43215
43216     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43217     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43218         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43219     fi
43220
43221     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43222     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43223         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43224     fi
43225
43226     COND_SHARED_0_USE_XRC_1="#"
43227     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43228         COND_SHARED_0_USE_XRC_1=""
43229     fi
43230
43231     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
43232     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
43233         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
43234     fi
43235
43236     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
43237     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
43238         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
43239     fi
43240
43241     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
43242     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
43243         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
43244     fi
43245
43246     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
43247     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
43248         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
43249     fi
43250
43251     COND_SHARED_1="#"
43252     if test "x$SHARED" = "x1" ; then
43253         COND_SHARED_1=""
43254     fi
43255
43256     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
43257     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43258         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
43259     fi
43260
43261     COND_SHARED_1_USE_XRC_1="#"
43262     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43263         COND_SHARED_1_USE_XRC_1=""
43264     fi
43265
43266     COND_TOOLKIT_="#"
43267     if test "x$TOOLKIT" = "x" ; then
43268         COND_TOOLKIT_=""
43269     fi
43270
43271     COND_TOOLKIT_COCOA="#"
43272     if test "x$TOOLKIT" = "xCOCOA" ; then
43273         COND_TOOLKIT_COCOA=""
43274     fi
43275
43276     COND_TOOLKIT_COCOA_USE_GUI_1="#"
43277     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
43278         COND_TOOLKIT_COCOA_USE_GUI_1=""
43279     fi
43280
43281     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
43282     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43283         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
43284     fi
43285
43286     COND_TOOLKIT_GTK="#"
43287     if test "x$TOOLKIT" = "xGTK" ; then
43288         COND_TOOLKIT_GTK=""
43289     fi
43290
43291     COND_TOOLKIT_GTK_USE_GUI_1="#"
43292     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
43293         COND_TOOLKIT_GTK_USE_GUI_1=""
43294     fi
43295
43296     COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
43297     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43298         COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
43299     fi
43300
43301     COND_TOOLKIT_MAC="#"
43302     if test "x$TOOLKIT" = "xMAC" ; then
43303         COND_TOOLKIT_MAC=""
43304     fi
43305
43306     COND_TOOLKIT_MAC_USE_GUI_1="#"
43307     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43308         COND_TOOLKIT_MAC_USE_GUI_1=""
43309     fi
43310
43311     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43312     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43313         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43314     fi
43315
43316     COND_TOOLKIT_MGL="#"
43317     if test "x$TOOLKIT" = "xMGL" ; then
43318         COND_TOOLKIT_MGL=""
43319     fi
43320
43321     COND_TOOLKIT_MGL_USE_GUI_1="#"
43322     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
43323         COND_TOOLKIT_MGL_USE_GUI_1=""
43324     fi
43325
43326     COND_TOOLKIT_MOTIF="#"
43327     if test "x$TOOLKIT" = "xMOTIF" ; then
43328         COND_TOOLKIT_MOTIF=""
43329     fi
43330
43331     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
43332     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
43333         COND_TOOLKIT_MOTIF_USE_GUI_1=""
43334     fi
43335
43336     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
43337     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43338         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
43339     fi
43340
43341     COND_TOOLKIT_MSW="#"
43342     if test "x$TOOLKIT" = "xMSW" ; then
43343         COND_TOOLKIT_MSW=""
43344     fi
43345
43346     COND_TOOLKIT_MSW_USE_GUI_1="#"
43347     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
43348         COND_TOOLKIT_MSW_USE_GUI_1=""
43349     fi
43350
43351     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
43352     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43353         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
43354     fi
43355
43356     COND_TOOLKIT_PM="#"
43357     if test "x$TOOLKIT" = "xPM" ; then
43358         COND_TOOLKIT_PM=""
43359     fi
43360
43361     COND_TOOLKIT_PM_USE_GUI_1="#"
43362     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
43363         COND_TOOLKIT_PM_USE_GUI_1=""
43364     fi
43365
43366     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
43367     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43368         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
43369     fi
43370
43371     COND_TOOLKIT_WINCE="#"
43372     if test "x$TOOLKIT" = "xWINCE" ; then
43373         COND_TOOLKIT_WINCE=""
43374     fi
43375
43376     COND_TOOLKIT_WINCE_USE_GUI_1="#"
43377     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
43378         COND_TOOLKIT_WINCE_USE_GUI_1=""
43379     fi
43380
43381     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
43382     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43383         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
43384     fi
43385
43386     COND_TOOLKIT_X11="#"
43387     if test "x$TOOLKIT" = "xX11" ; then
43388         COND_TOOLKIT_X11=""
43389     fi
43390
43391     COND_TOOLKIT_X11_USE_GUI_1="#"
43392     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
43393         COND_TOOLKIT_X11_USE_GUI_1=""
43394     fi
43395
43396     COND_UNICODE_1="#"
43397     if test "x$UNICODE" = "x1" ; then
43398         COND_UNICODE_1=""
43399     fi
43400
43401     COND_USE_EXCEPTIONS_0="#"
43402     if test "x$USE_EXCEPTIONS" = "x0" ; then
43403         COND_USE_EXCEPTIONS_0=""
43404     fi
43405
43406     COND_USE_EXCEPTIONS_1="#"
43407     if test "x$USE_EXCEPTIONS" = "x1" ; then
43408         COND_USE_EXCEPTIONS_1=""
43409     fi
43410
43411     COND_USE_GUI_0="#"
43412     if test "x$USE_GUI" = "x0" ; then
43413         COND_USE_GUI_0=""
43414     fi
43415
43416     COND_USE_GUI_1="#"
43417     if test "x$USE_GUI" = "x1" ; then
43418         COND_USE_GUI_1=""
43419     fi
43420
43421     COND_USE_GUI_1_WXUNIV_0="#"
43422     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43423         COND_USE_GUI_1_WXUNIV_0=""
43424     fi
43425
43426     COND_USE_GUI_1_WXUNIV_1="#"
43427     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
43428         COND_USE_GUI_1_WXUNIV_1=""
43429     fi
43430
43431     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43432     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43433         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43434     fi
43435
43436     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43437     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43438         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43439     fi
43440
43441     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43442     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43443         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43444     fi
43445
43446     COND_USE_ODBC_1="#"
43447     if test "x$USE_ODBC" = "x1" ; then
43448         COND_USE_ODBC_1=""
43449     fi
43450
43451     COND_USE_OPENGL_1="#"
43452     if test "x$USE_OPENGL" = "x1" ; then
43453         COND_USE_OPENGL_1=""
43454     fi
43455
43456     COND_USE_PLUGINS_0="#"
43457     if test "x$USE_PLUGINS" = "x0" ; then
43458         COND_USE_PLUGINS_0=""
43459     fi
43460
43461     COND_USE_RTTI_0="#"
43462     if test "x$USE_RTTI" = "x0" ; then
43463         COND_USE_RTTI_0=""
43464     fi
43465
43466     COND_USE_RTTI_1="#"
43467     if test "x$USE_RTTI" = "x1" ; then
43468         COND_USE_RTTI_1=""
43469     fi
43470
43471     COND_USE_SOSYMLINKS_1="#"
43472     if test "x$USE_SOSYMLINKS" = "x1" ; then
43473         COND_USE_SOSYMLINKS_1=""
43474     fi
43475
43476     COND_USE_SOVERLINUX_1="#"
43477     if test "x$USE_SOVERLINUX" = "x1" ; then
43478         COND_USE_SOVERLINUX_1=""
43479     fi
43480
43481     COND_USE_SOVERSION_0="#"
43482     if test "x$USE_SOVERSION" = "x0" ; then
43483         COND_USE_SOVERSION_0=""
43484     fi
43485
43486     COND_USE_SOVERSOLARIS_1="#"
43487     if test "x$USE_SOVERSOLARIS" = "x1" ; then
43488         COND_USE_SOVERSOLARIS_1=""
43489     fi
43490
43491     COND_USE_THREADS_0="#"
43492     if test "x$USE_THREADS" = "x0" ; then
43493         COND_USE_THREADS_0=""
43494     fi
43495
43496     COND_USE_THREADS_1="#"
43497     if test "x$USE_THREADS" = "x1" ; then
43498         COND_USE_THREADS_1=""
43499     fi
43500
43501     COND_USE_XRC_1="#"
43502     if test "x$USE_XRC" = "x1" ; then
43503         COND_USE_XRC_1=""
43504     fi
43505
43506     COND_WITH_PLUGIN_SDL_1="#"
43507     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
43508         COND_WITH_PLUGIN_SDL_1=""
43509     fi
43510
43511     COND_WXUNIV_0="#"
43512     if test "x$WXUNIV" = "x0" ; then
43513         COND_WXUNIV_0=""
43514     fi
43515
43516     COND_WXUNIV_1="#"
43517     if test "x$WXUNIV" = "x1" ; then
43518         COND_WXUNIV_1=""
43519     fi
43520
43521     COND_WXUSE_EXPAT_BUILTIN="#"
43522     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
43523         COND_WXUSE_EXPAT_BUILTIN=""
43524     fi
43525
43526     COND_WXUSE_LIBJPEG_BUILTIN="#"
43527     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43528         COND_WXUSE_LIBJPEG_BUILTIN=""
43529     fi
43530
43531     COND_WXUSE_LIBPNG_BUILTIN="#"
43532     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43533         COND_WXUSE_LIBPNG_BUILTIN=""
43534     fi
43535
43536     COND_WXUSE_LIBTIFF_BUILTIN="#"
43537     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43538         COND_WXUSE_LIBTIFF_BUILTIN=""
43539     fi
43540
43541     COND_WXUSE_ODBC_BUILTIN="#"
43542     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
43543         COND_WXUSE_ODBC_BUILTIN=""
43544     fi
43545
43546     COND_WXUSE_REGEX_BUILTIN="#"
43547     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
43548         COND_WXUSE_REGEX_BUILTIN=""
43549     fi
43550
43551     COND_WXUSE_ZLIB_BUILTIN="#"
43552     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
43553         COND_WXUSE_ZLIB_BUILTIN=""
43554     fi
43555
43556
43557
43558     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
43559         { { 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
43560 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;}
43561    { (exit 1); exit 1; }; }
43562     fi
43563
43564
43565 if test "$wxUSE_SHARED" = "yes"; then
43566
43567                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
43568     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
43569
43570                 case "${host}" in
43571       *-pc-os2_emx | *-pc-os2-emx )
43572         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43573         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43574         cp -p ${srcdir}/src/os2/dllnames.sh .
43575         cp -p ${srcdir}/src/os2/dllar.sh .
43576       ;;
43577     esac
43578 else
43579
43580         EXE_LINKER="$CXX -o"
43581
43582 fi
43583 if test "$wxUSE_OMF" = "yes"; then
43584     case "${host}" in
43585       *-pc-os2_emx | *-pc-os2-emx )
43586         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
43587         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43588         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
43589       ;;
43590     esac
43591 fi
43592
43593 GCC_PRAGMA_FLAGS=""
43594 PCH_FLAGS=""
43595 if test $GCC_PCH = 1 ; then
43596     GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43597     PCH_FLAGS="-DWX_PRECOMP"
43598 else
43599     case "${host}" in
43600         powerpc-*-darwin* )
43601                                     GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43602             ;;
43603         *-*-mingw32* )
43604                                                                                     if test "$wxUSE_STL" = "yes" -o \
43605                     "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
43606                     "$wxUSE_NO_RTTI" != "yes"; then
43607                echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
43608 echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43609                cat >conftest.$ac_ext <<_ACEOF
43610 /* confdefs.h.  */
43611 _ACEOF
43612 cat confdefs.h >>conftest.$ac_ext
43613 cat >>conftest.$ac_ext <<_ACEOF
43614 /* end confdefs.h.  */
43615
43616 int
43617 main ()
43618 {
43619 #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43620                                #error "Not GCC 3.2 or greater"
43621                                #endif
43622
43623   ;
43624   return 0;
43625 }
43626 _ACEOF
43627 rm -f conftest.$ac_objext
43628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43629   (eval $ac_compile) 2>conftest.er1
43630   ac_status=$?
43631   grep -v '^ *+' conftest.er1 >conftest.err
43632   rm -f conftest.er1
43633   cat conftest.err >&5
43634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43635   (exit $ac_status); } &&
43636          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43638   (eval $ac_try) 2>&5
43639   ac_status=$?
43640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43641   (exit $ac_status); }; } &&
43642          { ac_try='test -s conftest.$ac_objext'
43643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43644   (eval $ac_try) 2>&5
43645   ac_status=$?
43646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43647   (exit $ac_status); }; }; then
43648   GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43649                                echo "$as_me:$LINENO: result: yes" >&5
43650 echo "${ECHO_T}yes" >&6
43651 else
43652   echo "$as_me: failed program was:" >&5
43653 sed 's/^/| /' conftest.$ac_ext >&5
43654
43655 echo "$as_me:$LINENO: result: no" >&5
43656 echo "${ECHO_T}no" >&6
43657 fi
43658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43659             fi
43660             ;;
43661         *-pc-os2_emx | *-pc-os2-emx )
43662                                                 if test "$wxUSE_STL" = "yes"; then
43663                echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
43664 echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43665                cat >conftest.$ac_ext <<_ACEOF
43666 /* confdefs.h.  */
43667 _ACEOF
43668 cat confdefs.h >>conftest.$ac_ext
43669 cat >>conftest.$ac_ext <<_ACEOF
43670 /* end confdefs.h.  */
43671
43672 int
43673 main ()
43674 {
43675 #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43676                                #error "Not GCC 3.2 or greater"
43677                                #endif
43678
43679   ;
43680   return 0;
43681 }
43682 _ACEOF
43683 rm -f conftest.$ac_objext
43684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43685   (eval $ac_compile) 2>conftest.er1
43686   ac_status=$?
43687   grep -v '^ *+' conftest.er1 >conftest.err
43688   rm -f conftest.er1
43689   cat conftest.err >&5
43690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43691   (exit $ac_status); } &&
43692          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
43693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43694   (eval $ac_try) 2>&5
43695   ac_status=$?
43696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43697   (exit $ac_status); }; } &&
43698          { ac_try='test -s conftest.$ac_objext'
43699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43700   (eval $ac_try) 2>&5
43701   ac_status=$?
43702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43703   (exit $ac_status); }; }; then
43704   GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43705                                echo "$as_me:$LINENO: result: yes" >&5
43706 echo "${ECHO_T}yes" >&6
43707 else
43708   echo "$as_me: failed program was:" >&5
43709 sed 's/^/| /' conftest.$ac_ext >&5
43710
43711 echo "$as_me:$LINENO: result: no" >&5
43712 echo "${ECHO_T}no" >&6
43713 fi
43714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43715             fi
43716             ;;
43717     esac
43718 fi
43719 CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
43720
43721
43722 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43723
43724
43725
43726
43727
43728
43729
43730
43731
43732
43733
43734
43735
43736
43737
43738
43739
43740
43741
43742
43743
43744
43745
43746
43747
43748
43749
43750
43751
43752
43753
43754
43755
43756
43757
43758
43759
43760
43761
43762
43763
43764
43765
43766
43767
43768
43769
43770
43771
43772
43773
43774
43775
43776
43777
43778
43779
43780
43781
43782
43783
43784
43785
43786 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43787 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
43788 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
43789 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43790   echo $ECHO_N "(cached) $ECHO_C" >&6
43791 else
43792   cat >conftest.make <<\_ACEOF
43793 all:
43794         @echo 'ac_maketemp="$(MAKE)"'
43795 _ACEOF
43796 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43797 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43798 if test -n "$ac_maketemp"; then
43799   eval ac_cv_prog_make_${ac_make}_set=yes
43800 else
43801   eval ac_cv_prog_make_${ac_make}_set=no
43802 fi
43803 rm -f conftest.make
43804 fi
43805 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43806   echo "$as_me:$LINENO: result: yes" >&5
43807 echo "${ECHO_T}yes" >&6
43808   SET_MAKE=
43809 else
43810   echo "$as_me:$LINENO: result: no" >&5
43811 echo "${ECHO_T}no" >&6
43812   SET_MAKE="MAKE=${MAKE-make}"
43813 fi
43814
43815
43816
43817           ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
43818
43819
43820           ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
43821
43822
43823           ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
43824
43825
43826                     ac_config_files="$ac_config_files version-script Makefile"
43827
43828
43829           ac_config_commands="$ac_config_commands  wx-config
43830                    "
43831
43832
43833
43834
43835 if test "$wxUSE_GUI" = "yes"; then
43836     SUBDIRS="samples demos utils contrib"
43837 else         SUBDIRS="samples utils"
43838 fi
43839
43840
43841
43842 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
43843 if test "${with_cppunit_prefix+set}" = set; then
43844   withval="$with_cppunit_prefix"
43845   cppunit_config_prefix="$withval"
43846 else
43847   cppunit_config_prefix=""
43848 fi;
43849
43850 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
43851 if test "${with_cppunit_exec_prefix+set}" = set; then
43852   withval="$with_cppunit_exec_prefix"
43853   cppunit_config_exec_prefix="$withval"
43854 else
43855   cppunit_config_exec_prefix=""
43856 fi;
43857
43858   if test x$cppunit_config_exec_prefix != x ; then
43859      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
43860      if test x${CPPUNIT_CONFIG+set} != xset ; then
43861         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
43862      fi
43863   fi
43864   if test x$cppunit_config_prefix != x ; then
43865      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
43866      if test x${CPPUNIT_CONFIG+set} != xset ; then
43867         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
43868      fi
43869   fi
43870
43871   # Extract the first word of "cppunit-config", so it can be a program name with args.
43872 set dummy cppunit-config; ac_word=$2
43873 echo "$as_me:$LINENO: checking for $ac_word" >&5
43874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43875 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
43876   echo $ECHO_N "(cached) $ECHO_C" >&6
43877 else
43878   case $CPPUNIT_CONFIG in
43879   [\\/]* | ?:[\\/]*)
43880   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
43881   ;;
43882   *)
43883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43884 for as_dir in $PATH
43885 do
43886   IFS=$as_save_IFS
43887   test -z "$as_dir" && as_dir=.
43888   for ac_exec_ext in '' $ac_executable_extensions; do
43889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43890     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43892     break 2
43893   fi
43894 done
43895 done
43896
43897   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
43898   ;;
43899 esac
43900 fi
43901 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
43902
43903 if test -n "$CPPUNIT_CONFIG"; then
43904   echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
43905 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
43906 else
43907   echo "$as_me:$LINENO: result: no" >&5
43908 echo "${ECHO_T}no" >&6
43909 fi
43910
43911   cppunit_version_min=1.8.0
43912
43913   echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
43914 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
43915   no_cppunit=""
43916   if test "$CPPUNIT_CONFIG" = "no" ; then
43917     no_cppunit=yes
43918   else
43919     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
43920     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
43921     cppunit_version=`$CPPUNIT_CONFIG --version`
43922
43923     cppunit_major_version=`echo $cppunit_version | \
43924            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43925     cppunit_minor_version=`echo $cppunit_version | \
43926            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43927     cppunit_micro_version=`echo $cppunit_version | \
43928            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43929
43930     cppunit_major_min=`echo $cppunit_version_min | \
43931            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43932     cppunit_minor_min=`echo $cppunit_version_min | \
43933            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43934     cppunit_micro_min=`echo $cppunit_version_min | \
43935            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43936
43937     cppunit_version_proper=`expr \
43938         $cppunit_major_version \> $cppunit_major_min \| \
43939         $cppunit_major_version \= $cppunit_major_min \& \
43940         $cppunit_minor_version \> $cppunit_minor_min \| \
43941         $cppunit_major_version \= $cppunit_major_min \& \
43942         $cppunit_minor_version \= $cppunit_minor_min \& \
43943         $cppunit_micro_version \>= $cppunit_micro_min `
43944
43945     if test "$cppunit_version_proper" = "1" ; then
43946       echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
43947 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
43948     else
43949       echo "$as_me:$LINENO: result: no" >&5
43950 echo "${ECHO_T}no" >&6
43951       no_cppunit=yes
43952     fi
43953   fi
43954
43955   if test "x$no_cppunit" = x ; then
43956      SUBDIRS="$SUBDIRS tests"
43957   else
43958      CPPUNIT_CFLAGS=""
43959      CPPUNIT_LIBS=""
43960      :
43961   fi
43962
43963
43964
43965
43966
43967 for subdir in `echo $SUBDIRS`; do
43968     if test -d ${srcdir}/${subdir} ; then
43969         if test "$wxUSE_GUI" = "yes"; then
43970             if test ${subdir} = "samples"; then
43971                                                 makefiles="samples/Makefile.in $makefiles"
43972                 for sample in `echo $SAMPLES_SUBDIRS`; do
43973                     if test -d $srcdir/samples/$sample; then
43974                         makefiles="samples/$sample/Makefile.in $makefiles"
43975                     fi
43976                 done
43977             else
43978                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
43979                 eval "disabled=\$$disabled_var"
43980                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
43981                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
43982             fi
43983         else                                     if test ${subdir} = "samples"; then
43984                 makefiles="samples/Makefile.in samples/console/Makefile.in"
43985             elif test ${subdir} = "utils"; then
43986                 makefiles=""
43987                 for util in HelpGen tex2rtf ; do
43988                     if test -d $srcdir/utils/$util ; then
43989                         makefiles="utils/$util/Makefile.in \
43990                                    utils/$util/src/Makefile.in \
43991                                    $makefiles"
43992                     fi
43993                 done
43994             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43995             fi
43996         fi
43997
43998         for mkin in $makefiles ; do
43999             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
44000                       ac_config_files="$ac_config_files $mk"
44001
44002         done
44003     fi
44004 done
44005
44006
44007 cat >confcache <<\_ACEOF
44008 # This file is a shell script that caches the results of configure
44009 # tests run on this system so they can be shared between configure
44010 # scripts and configure runs, see configure's option --config-cache.
44011 # It is not useful on other systems.  If it contains results you don't
44012 # want to keep, you may remove or edit it.
44013 #
44014 # config.status only pays attention to the cache file if you give it
44015 # the --recheck option to rerun configure.
44016 #
44017 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44018 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44019 # following values.
44020
44021 _ACEOF
44022
44023 # The following way of writing the cache mishandles newlines in values,
44024 # but we know of no workaround that is simple, portable, and efficient.
44025 # So, don't put newlines in cache variables' values.
44026 # Ultrix sh set writes to stderr and can't be redirected directly,
44027 # and sets the high bit in the cache file unless we assign to the vars.
44028 {
44029   (set) 2>&1 |
44030     case `(ac_space=' '; set | grep ac_space) 2>&1` in
44031     *ac_space=\ *)
44032       # `set' does not quote correctly, so add quotes (double-quote
44033       # substitution turns \\\\ into \\, and sed turns \\ into \).
44034       sed -n \
44035         "s/'/'\\\\''/g;
44036           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44037       ;;
44038     *)
44039       # `set' quotes correctly as required by POSIX, so do not add quotes.
44040       sed -n \
44041         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
44042       ;;
44043     esac;
44044 } |
44045   sed '
44046      t clear
44047      : clear
44048      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44049      t end
44050      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44051      : end' >>confcache
44052 if diff $cache_file confcache >/dev/null 2>&1; then :; else
44053   if test -w $cache_file; then
44054     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
44055     cat confcache >$cache_file
44056   else
44057     echo "not updating unwritable cache $cache_file"
44058   fi
44059 fi
44060 rm -f confcache
44061
44062 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44063 # Let make expand exec_prefix.
44064 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44065
44066 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44067 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44068 # trailing colons and then remove the whole line if VPATH becomes empty
44069 # (actually we leave an empty line to preserve line numbers).
44070 if test "x$srcdir" = x.; then
44071   ac_vpsub='/^[  ]*VPATH[        ]*=/{
44072 s/:*\$(srcdir):*/:/;
44073 s/:*\${srcdir}:*/:/;
44074 s/:*@srcdir@:*/:/;
44075 s/^\([^=]*=[     ]*\):*/\1/;
44076 s/:*$//;
44077 s/^[^=]*=[       ]*$//;
44078 }'
44079 fi
44080
44081 DEFS=-DHAVE_CONFIG_H
44082
44083 ac_libobjs=
44084 ac_ltlibobjs=
44085 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44086   # 1. Remove the extension, and $U if already installed.
44087   ac_i=`echo "$ac_i" |
44088          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
44089   # 2. Add them.
44090   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44091   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44092 done
44093 LIBOBJS=$ac_libobjs
44094
44095 LTLIBOBJS=$ac_ltlibobjs
44096
44097
44098
44099 : ${CONFIG_STATUS=./config.status}
44100 ac_clean_files_save=$ac_clean_files
44101 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44102 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44103 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44104 cat >$CONFIG_STATUS <<_ACEOF
44105 #! $SHELL
44106 # Generated by $as_me.
44107 # Run this file to recreate the current configuration.
44108 # Compiler output produced by configure, useful for debugging
44109 # configure, is in config.log if it exists.
44110
44111 debug=false
44112 ac_cs_recheck=false
44113 ac_cs_silent=false
44114 SHELL=\${CONFIG_SHELL-$SHELL}
44115 _ACEOF
44116
44117 cat >>$CONFIG_STATUS <<\_ACEOF
44118 ## --------------------- ##
44119 ## M4sh Initialization.  ##
44120 ## --------------------- ##
44121
44122 # Be Bourne compatible
44123 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44124   emulate sh
44125   NULLCMD=:
44126   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44127   # is contrary to our usage.  Disable this feature.
44128   alias -g '${1+"$@"}'='"$@"'
44129 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44130   set -o posix
44131 fi
44132 DUALCASE=1; export DUALCASE # for MKS sh
44133
44134 # Support unset when possible.
44135 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44136   as_unset=unset
44137 else
44138   as_unset=false
44139 fi
44140
44141
44142 # Work around bugs in pre-3.0 UWIN ksh.
44143 $as_unset ENV MAIL MAILPATH
44144 PS1='$ '
44145 PS2='> '
44146 PS4='+ '
44147
44148 # NLS nuisances.
44149 for as_var in \
44150   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44151   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44152   LC_TELEPHONE LC_TIME
44153 do
44154   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44155     eval $as_var=C; export $as_var
44156   else
44157     $as_unset $as_var
44158   fi
44159 done
44160
44161 # Required to use basename.
44162 if expr a : '\(a\)' >/dev/null 2>&1; then
44163   as_expr=expr
44164 else
44165   as_expr=false
44166 fi
44167
44168 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44169   as_basename=basename
44170 else
44171   as_basename=false
44172 fi
44173
44174
44175 # Name of the executable.
44176 as_me=`$as_basename "$0" ||
44177 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44178          X"$0" : 'X\(//\)$' \| \
44179          X"$0" : 'X\(/\)$' \| \
44180          .     : '\(.\)' 2>/dev/null ||
44181 echo X/"$0" |
44182     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44183           /^X\/\(\/\/\)$/{ s//\1/; q; }
44184           /^X\/\(\/\).*/{ s//\1/; q; }
44185           s/.*/./; q'`
44186
44187
44188 # PATH needs CR, and LINENO needs CR and PATH.
44189 # Avoid depending upon Character Ranges.
44190 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44191 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44192 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44193 as_cr_digits='0123456789'
44194 as_cr_alnum=$as_cr_Letters$as_cr_digits
44195
44196 # The user is always right.
44197 if test "${PATH_SEPARATOR+set}" != set; then
44198   echo "#! /bin/sh" >conf$$.sh
44199   echo  "exit 0"   >>conf$$.sh
44200   chmod +x conf$$.sh
44201   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44202     PATH_SEPARATOR=';'
44203   else
44204     PATH_SEPARATOR=:
44205   fi
44206   rm -f conf$$.sh
44207 fi
44208
44209
44210   as_lineno_1=$LINENO
44211   as_lineno_2=$LINENO
44212   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44213   test "x$as_lineno_1" != "x$as_lineno_2" &&
44214   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
44215   # Find who we are.  Look in the path if we contain no path at all
44216   # relative or not.
44217   case $0 in
44218     *[\\/]* ) as_myself=$0 ;;
44219     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44220 for as_dir in $PATH
44221 do
44222   IFS=$as_save_IFS
44223   test -z "$as_dir" && as_dir=.
44224   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44225 done
44226
44227        ;;
44228   esac
44229   # We did not find ourselves, most probably we were run as `sh COMMAND'
44230   # in which case we are not to be found in the path.
44231   if test "x$as_myself" = x; then
44232     as_myself=$0
44233   fi
44234   if test ! -f "$as_myself"; then
44235     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
44236 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
44237    { (exit 1); exit 1; }; }
44238   fi
44239   case $CONFIG_SHELL in
44240   '')
44241     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44242 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44243 do
44244   IFS=$as_save_IFS
44245   test -z "$as_dir" && as_dir=.
44246   for as_base in sh bash ksh sh5; do
44247          case $as_dir in
44248          /*)
44249            if ("$as_dir/$as_base" -c '
44250   as_lineno_1=$LINENO
44251   as_lineno_2=$LINENO
44252   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44253   test "x$as_lineno_1" != "x$as_lineno_2" &&
44254   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
44255              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
44256              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
44257              CONFIG_SHELL=$as_dir/$as_base
44258              export CONFIG_SHELL
44259              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
44260            fi;;
44261          esac
44262        done
44263 done
44264 ;;
44265   esac
44266
44267   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44268   # uniformly replaced by the line number.  The first 'sed' inserts a
44269   # line-number line before each line; the second 'sed' does the real
44270   # work.  The second script uses 'N' to pair each line-number line
44271   # with the numbered line, and appends trailing '-' during
44272   # substitution so that $LINENO is not a special case at line end.
44273   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44274   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
44275   sed '=' <$as_myself |
44276     sed '
44277       N
44278       s,$,-,
44279       : loop
44280       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
44281       t loop
44282       s,-$,,
44283       s,^['$as_cr_digits']*\n,,
44284     ' >$as_me.lineno &&
44285   chmod +x $as_me.lineno ||
44286     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
44287 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
44288    { (exit 1); exit 1; }; }
44289
44290   # Don't try to exec as it changes $[0], causing all sort of problems
44291   # (the dirname of $[0] is not the place where we might find the
44292   # original and so on.  Autoconf is especially sensible to this).
44293   . ./$as_me.lineno
44294   # Exit status is that of the last command.
44295   exit
44296 }
44297
44298
44299 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
44300   *c*,-n*) ECHO_N= ECHO_C='
44301 ' ECHO_T='      ' ;;
44302   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
44303   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
44304 esac
44305
44306 if expr a : '\(a\)' >/dev/null 2>&1; then
44307   as_expr=expr
44308 else
44309   as_expr=false
44310 fi
44311
44312 rm -f conf$$ conf$$.exe conf$$.file
44313 echo >conf$$.file
44314 if ln -s conf$$.file conf$$ 2>/dev/null; then
44315   # We could just check for DJGPP; but this test a) works b) is more generic
44316   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
44317   if test -f conf$$.exe; then
44318     # Don't use ln at all; we don't have any links
44319     as_ln_s='cp -p'
44320   else
44321     as_ln_s='ln -s'
44322   fi
44323 elif ln conf$$.file conf$$ 2>/dev/null; then
44324   as_ln_s=ln
44325 else
44326   as_ln_s='cp -p'
44327 fi
44328 rm -f conf$$ conf$$.exe conf$$.file
44329
44330 if mkdir -p . 2>/dev/null; then
44331   as_mkdir_p=:
44332 else
44333   test -d ./-p && rmdir ./-p
44334   as_mkdir_p=false
44335 fi
44336
44337 as_executable_p="test -f"
44338
44339 # Sed expression to map a string onto a valid CPP name.
44340 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44341
44342 # Sed expression to map a string onto a valid variable name.
44343 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44344
44345
44346 # IFS
44347 # We need space, tab and new line, in precisely that order.
44348 as_nl='
44349 '
44350 IFS="   $as_nl"
44351
44352 # CDPATH.
44353 $as_unset CDPATH
44354
44355 exec 6>&1
44356
44357 # Open the log real soon, to keep \$[0] and so on meaningful, and to
44358 # report actual input values of CONFIG_FILES etc. instead of their
44359 # values after options handling.  Logging --version etc. is OK.
44360 exec 5>>config.log
44361 {
44362   echo
44363   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44364 ## Running $as_me. ##
44365 _ASBOX
44366 } >&5
44367 cat >&5 <<_CSEOF
44368
44369 This file was extended by wxWidgets $as_me 2.6.0, which was
44370 generated by GNU Autoconf 2.59.  Invocation command line was
44371
44372   CONFIG_FILES    = $CONFIG_FILES
44373   CONFIG_HEADERS  = $CONFIG_HEADERS
44374   CONFIG_LINKS    = $CONFIG_LINKS
44375   CONFIG_COMMANDS = $CONFIG_COMMANDS
44376   $ $0 $@
44377
44378 _CSEOF
44379 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
44380 echo >&5
44381 _ACEOF
44382
44383 # Files that config.status was made for.
44384 if test -n "$ac_config_files"; then
44385   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
44386 fi
44387
44388 if test -n "$ac_config_headers"; then
44389   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
44390 fi
44391
44392 if test -n "$ac_config_links"; then
44393   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
44394 fi
44395
44396 if test -n "$ac_config_commands"; then
44397   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
44398 fi
44399
44400 cat >>$CONFIG_STATUS <<\_ACEOF
44401
44402 ac_cs_usage="\
44403 \`$as_me' instantiates files from templates according to the
44404 current configuration.
44405
44406 Usage: $0 [OPTIONS] [FILE]...
44407
44408   -h, --help       print this help, then exit
44409   -V, --version    print version number, then exit
44410   -q, --quiet      do not print progress messages
44411   -d, --debug      don't remove temporary files
44412       --recheck    update $as_me by reconfiguring in the same conditions
44413   --file=FILE[:TEMPLATE]
44414                    instantiate the configuration file FILE
44415   --header=FILE[:TEMPLATE]
44416                    instantiate the configuration header FILE
44417
44418 Configuration files:
44419 $config_files
44420
44421 Configuration headers:
44422 $config_headers
44423
44424 Configuration commands:
44425 $config_commands
44426
44427 Report bugs to <bug-autoconf@gnu.org>."
44428 _ACEOF
44429
44430 cat >>$CONFIG_STATUS <<_ACEOF
44431 ac_cs_version="\\
44432 wxWidgets config.status 2.6.0
44433 configured by $0, generated by GNU Autoconf 2.59,
44434   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
44435
44436 Copyright (C) 2003 Free Software Foundation, Inc.
44437 This config.status script is free software; the Free Software Foundation
44438 gives unlimited permission to copy, distribute and modify it."
44439 srcdir=$srcdir
44440 INSTALL="$INSTALL"
44441 _ACEOF
44442
44443 cat >>$CONFIG_STATUS <<\_ACEOF
44444 # If no file are specified by the user, then we need to provide default
44445 # value.  By we need to know if files were specified by the user.
44446 ac_need_defaults=:
44447 while test $# != 0
44448 do
44449   case $1 in
44450   --*=*)
44451     ac_option=`expr "x$1" : 'x\([^=]*\)='`
44452     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
44453     ac_shift=:
44454     ;;
44455   -*)
44456     ac_option=$1
44457     ac_optarg=$2
44458     ac_shift=shift
44459     ;;
44460   *) # This is not an option, so the user has probably given explicit
44461      # arguments.
44462      ac_option=$1
44463      ac_need_defaults=false;;
44464   esac
44465
44466   case $ac_option in
44467   # Handling of the options.
44468 _ACEOF
44469 cat >>$CONFIG_STATUS <<\_ACEOF
44470   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44471     ac_cs_recheck=: ;;
44472   --version | --vers* | -V )
44473     echo "$ac_cs_version"; exit 0 ;;
44474   --he | --h)
44475     # Conflict between --help and --header
44476     { { echo "$as_me:$LINENO: error: ambiguous option: $1
44477 Try \`$0 --help' for more information." >&5
44478 echo "$as_me: error: ambiguous option: $1
44479 Try \`$0 --help' for more information." >&2;}
44480    { (exit 1); exit 1; }; };;
44481   --help | --hel | -h )
44482     echo "$ac_cs_usage"; exit 0 ;;
44483   --debug | --d* | -d )
44484     debug=: ;;
44485   --file | --fil | --fi | --f )
44486     $ac_shift
44487     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44488     ac_need_defaults=false;;
44489   --header | --heade | --head | --hea )
44490     $ac_shift
44491     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44492     ac_need_defaults=false;;
44493   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44494   | -silent | --silent | --silen | --sile | --sil | --si | --s)
44495     ac_cs_silent=: ;;
44496
44497   # This is an error.
44498   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44499 Try \`$0 --help' for more information." >&5
44500 echo "$as_me: error: unrecognized option: $1
44501 Try \`$0 --help' for more information." >&2;}
44502    { (exit 1); exit 1; }; } ;;
44503
44504   *) ac_config_targets="$ac_config_targets $1" ;;
44505
44506   esac
44507   shift
44508 done
44509
44510 ac_configure_extra_args=
44511
44512 if $ac_cs_silent; then
44513   exec 6>/dev/null
44514   ac_configure_extra_args="$ac_configure_extra_args --silent"
44515 fi
44516
44517 _ACEOF
44518 cat >>$CONFIG_STATUS <<_ACEOF
44519 if \$ac_cs_recheck; then
44520   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44521   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44522 fi
44523
44524 _ACEOF
44525
44526 cat >>$CONFIG_STATUS <<_ACEOF
44527 #
44528 # INIT-COMMANDS section.
44529 #
44530
44531  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44532  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44533  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44534                      LN_S="${LN_S}"
44535
44536
44537 _ACEOF
44538
44539
44540
44541 cat >>$CONFIG_STATUS <<\_ACEOF
44542 for ac_config_target in $ac_config_targets
44543 do
44544   case "$ac_config_target" in
44545   # Handling of arguments.
44546   "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
44547   "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
44548   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
44549   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44550   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
44551   "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
44552   "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
44553   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44554 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44555    { (exit 1); exit 1; }; };;
44556   esac
44557 done
44558
44559 # If the user did not use the arguments to specify the items to instantiate,
44560 # then the envvar interface is used.  Set only those that are not.
44561 # We use the long form for the default assignment because of an extremely
44562 # bizarre bug on SunOS 4.1.3.
44563 if $ac_need_defaults; then
44564   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44565   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44566   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44567 fi
44568
44569 # Have a temporary directory for convenience.  Make it in the build tree
44570 # simply because there is no reason to put it here, and in addition,
44571 # creating and moving files from /tmp can sometimes cause problems.
44572 # Create a temporary directory, and hook for its removal unless debugging.
44573 $debug ||
44574 {
44575   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44576   trap '{ (exit 1); exit 1; }' 1 2 13 15
44577 }
44578
44579 # Create a (secure) tmp directory for tmp files.
44580
44581 {
44582   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44583   test -n "$tmp" && test -d "$tmp"
44584 }  ||
44585 {
44586   tmp=./confstat$$-$RANDOM
44587   (umask 077 && mkdir $tmp)
44588 } ||
44589 {
44590    echo "$me: cannot create a temporary directory in ." >&2
44591    { (exit 1); exit 1; }
44592 }
44593
44594 _ACEOF
44595
44596 cat >>$CONFIG_STATUS <<_ACEOF
44597
44598 #
44599 # CONFIG_FILES section.
44600 #
44601
44602 # No need to generate the scripts if there are no CONFIG_FILES.
44603 # This happens for instance when ./config.status config.h
44604 if test -n "\$CONFIG_FILES"; then
44605   # Protect against being on the right side of a sed subst in config.status.
44606   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44607    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44608 s,@SHELL@,$SHELL,;t t
44609 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44610 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44611 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44612 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44613 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44614 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44615 s,@exec_prefix@,$exec_prefix,;t t
44616 s,@prefix@,$prefix,;t t
44617 s,@program_transform_name@,$program_transform_name,;t t
44618 s,@bindir@,$bindir,;t t
44619 s,@sbindir@,$sbindir,;t t
44620 s,@libexecdir@,$libexecdir,;t t
44621 s,@datadir@,$datadir,;t t
44622 s,@sysconfdir@,$sysconfdir,;t t
44623 s,@sharedstatedir@,$sharedstatedir,;t t
44624 s,@localstatedir@,$localstatedir,;t t
44625 s,@libdir@,$libdir,;t t
44626 s,@includedir@,$includedir,;t t
44627 s,@oldincludedir@,$oldincludedir,;t t
44628 s,@infodir@,$infodir,;t t
44629 s,@mandir@,$mandir,;t t
44630 s,@build_alias@,$build_alias,;t t
44631 s,@host_alias@,$host_alias,;t t
44632 s,@target_alias@,$target_alias,;t t
44633 s,@DEFS@,$DEFS,;t t
44634 s,@ECHO_C@,$ECHO_C,;t t
44635 s,@ECHO_N@,$ECHO_N,;t t
44636 s,@ECHO_T@,$ECHO_T,;t t
44637 s,@LIBS@,$LIBS,;t t
44638 s,@build@,$build,;t t
44639 s,@build_cpu@,$build_cpu,;t t
44640 s,@build_vendor@,$build_vendor,;t t
44641 s,@build_os@,$build_os,;t t
44642 s,@host@,$host,;t t
44643 s,@host_cpu@,$host_cpu,;t t
44644 s,@host_vendor@,$host_vendor,;t t
44645 s,@host_os@,$host_os,;t t
44646 s,@target@,$target,;t t
44647 s,@target_cpu@,$target_cpu,;t t
44648 s,@target_vendor@,$target_vendor,;t t
44649 s,@target_os@,$target_os,;t t
44650 s,@CC@,$CC,;t t
44651 s,@CFLAGS@,$CFLAGS,;t t
44652 s,@LDFLAGS@,$LDFLAGS,;t t
44653 s,@CPPFLAGS@,$CPPFLAGS,;t t
44654 s,@ac_ct_CC@,$ac_ct_CC,;t t
44655 s,@EXEEXT@,$EXEEXT,;t t
44656 s,@OBJEXT@,$OBJEXT,;t t
44657 s,@CPP@,$CPP,;t t
44658 s,@EGREP@,$EGREP,;t t
44659 s,@CXX@,$CXX,;t t
44660 s,@CXXFLAGS@,$CXXFLAGS,;t t
44661 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44662 s,@RANLIB@,$RANLIB,;t t
44663 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44664 s,@AR@,$AR,;t t
44665 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44666 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44667 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44668 s,@STRIP@,$STRIP,;t t
44669 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44670 s,@LN_S@,$LN_S,;t t
44671 s,@CXXCPP@,$CXXCPP,;t t
44672 s,@subdirs@,$subdirs,;t t
44673 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44674 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44675 s,@GTK_LIBS@,$GTK_LIBS,;t t
44676 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
44677 s,@X_CFLAGS@,$X_CFLAGS,;t t
44678 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44679 s,@X_LIBS@,$X_LIBS,;t t
44680 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44681 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44682 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
44683 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44684 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
44685 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44686 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44687 s,@RESCOMP@,$RESCOMP,;t t
44688 s,@DEREZ@,$DEREZ,;t t
44689 s,@SETFILE@,$SETFILE,;t t
44690 s,@LIBICONV@,$LIBICONV,;t t
44691 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44692 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44693 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44694 s,@SDL_LIBS@,$SDL_LIBS,;t t
44695 s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44696 s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
44697 s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44698 s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44699 s,@GST_INSPECT@,$GST_INSPECT,;t t
44700 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44701 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44702 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44703 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44704 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44705 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44706 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44707 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44708 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44709 s,@VENDOR@,$VENDOR,;t t
44710 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
44711 s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44712 s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
44713 s,@WXUNIV@,$WXUNIV,;t t
44714 s,@MONOLITHIC@,$MONOLITHIC,;t t
44715 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44716 s,@EXTRALIBS@,$EXTRALIBS,;t t
44717 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44718 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44719 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44720 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44721 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44722 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44723 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
44724 s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
44725 s,@UNICODE@,$UNICODE,;t t
44726 s,@BUILD@,$BUILD,;t t
44727 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44728 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
44729 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44730 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44731 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44732 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44733 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44734 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44735 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44736 s,@SET_MAKE@,$SET_MAKE,;t t
44737 s,@MAKE_SET@,$MAKE_SET,;t t
44738 s,@ac_ct_AR@,$ac_ct_AR,;t t
44739 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44740 s,@NM@,$NM,;t t
44741 s,@ac_ct_NM@,$ac_ct_NM,;t t
44742 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44743 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44744 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44745 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44746 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44747 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
44748 s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
44749 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44750 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
44751 s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
44752 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44753 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44754 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44755 s,@LIBPREFIX@,$LIBPREFIX,;t t
44756 s,@LIBEXT@,$LIBEXT,;t t
44757 s,@DLLPREFIX@,$DLLPREFIX,;t t
44758 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44759 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44760 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44761 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44762 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44763 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44764 s,@PIC_FLAG@,$PIC_FLAG,;t t
44765 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44766 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
44767 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
44768 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
44769 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
44770 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
44771 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
44772 s,@GCC_PCH@,$GCC_PCH,;t t
44773 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
44774 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
44775 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
44776 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
44777 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
44778 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
44779 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
44780 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
44781 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
44782 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
44783 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
44784 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
44785 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
44786 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
44787 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
44788 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
44789 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
44790 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
44791 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
44792 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
44793 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1,;t t
44794 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
44795 s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
44796 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
44797 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
44798 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
44799 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
44800 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1,;t t
44801 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
44802 s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
44803 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
44804 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
44805 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
44806 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
44807 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
44808 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
44809 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
44810 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
44811 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
44812 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
44813 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
44814 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
44815 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
44816 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
44817 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
44818 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
44819 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
44820 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
44821 s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
44822 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
44823 s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
44824 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
44825 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
44826 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
44827 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
44828 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
44829 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
44830 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
44831 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
44832 s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
44833 s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
44834 s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
44835 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
44836 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44837 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44838 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
44839 s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
44840 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
44841 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
44842 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
44843 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
44844 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
44845 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
44846 s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
44847 s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
44848 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
44849 s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
44850 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
44851 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
44852 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
44853 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
44854 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
44855 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
44856 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
44857 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
44858 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
44859 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
44860 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
44861 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
44862 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
44863 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
44864 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
44865 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
44866 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
44867 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
44868 s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
44869 s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
44870 s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
44871 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
44872 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
44873 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
44874 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
44875 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
44876 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
44877 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
44878 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
44879 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
44880 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44881 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44882 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
44883 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
44884 s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
44885 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
44886 s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
44887 s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
44888 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
44889 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
44890 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
44891 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
44892 s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
44893 s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
44894 s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
44895 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
44896 s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
44897 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
44898 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
44899 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
44900 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
44901 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
44902 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
44903 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
44904 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
44905 s,@SHARED@,$SHARED,;t t
44906 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
44907 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
44908 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
44909 s,@USE_GUI@,$USE_GUI,;t t
44910 s,@AFMINSTALL@,$AFMINSTALL,;t t
44911 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
44912 s,@TOOLKIT@,$TOOLKIT,;t t
44913 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
44914 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
44915 s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
44916 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
44917 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
44918 s,@cross_compiling@,$cross_compiling,;t t
44919 s,@WIDGET_SET@,$WIDGET_SET,;t t
44920 s,@WX_RELEASE@,$WX_RELEASE,;t t
44921 s,@WX_VERSION@,$WX_VERSION,;t t
44922 s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
44923 s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
44924 s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
44925 s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
44926 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
44927 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
44928 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
44929 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
44930 s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
44931 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
44932 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
44933 s,@EXE_LINKER@,$EXE_LINKER,;t t
44934 s,@GUIDIST@,$GUIDIST,;t t
44935 s,@DISTDIR@,$DISTDIR,;t t
44936 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
44937 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
44938 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
44939 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
44940 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
44941 s,@RESFLAGS@,$RESFLAGS,;t t
44942 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
44943 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
44944 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
44945 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
44946 s,@MACRESCOMP@,$MACRESCOMP,;t t
44947 s,@MACSETFILE@,$MACSETFILE,;t t
44948 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
44949 s,@GCC@,$GCC,;t t
44950 s,@DLLTOOL@,$DLLTOOL,;t t
44951 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
44952 s,@LIBOBJS@,$LIBOBJS,;t t
44953 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
44954 CEOF
44955
44956 _ACEOF
44957
44958   cat >>$CONFIG_STATUS <<\_ACEOF
44959   # Split the substitutions into bite-sized pieces for seds with
44960   # small command number limits, like on Digital OSF/1 and HP-UX.
44961   ac_max_sed_lines=48
44962   ac_sed_frag=1 # Number of current file.
44963   ac_beg=1 # First line for current file.
44964   ac_end=$ac_max_sed_lines # Line after last line for current file.
44965   ac_more_lines=:
44966   ac_sed_cmds=
44967   while $ac_more_lines; do
44968     if test $ac_beg -gt 1; then
44969       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44970     else
44971       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44972     fi
44973     if test ! -s $tmp/subs.frag; then
44974       ac_more_lines=false
44975     else
44976       # The purpose of the label and of the branching condition is to
44977       # speed up the sed processing (if there are no `@' at all, there
44978       # is no need to browse any of the substitutions).
44979       # These are the two extra sed commands mentioned above.
44980       (echo ':t
44981   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
44982       if test -z "$ac_sed_cmds"; then
44983         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
44984       else
44985         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
44986       fi
44987       ac_sed_frag=`expr $ac_sed_frag + 1`
44988       ac_beg=$ac_end
44989       ac_end=`expr $ac_end + $ac_max_sed_lines`
44990     fi
44991   done
44992   if test -z "$ac_sed_cmds"; then
44993     ac_sed_cmds=cat
44994   fi
44995 fi # test -n "$CONFIG_FILES"
44996
44997 _ACEOF
44998 cat >>$CONFIG_STATUS <<\_ACEOF
44999 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45000   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45001   case $ac_file in
45002   - | *:- | *:-:* ) # input from stdin
45003         cat >$tmp/stdin
45004         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45005         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45006   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45007         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45008   * )   ac_file_in=$ac_file.in ;;
45009   esac
45010
45011   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45012   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45013 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45014          X"$ac_file" : 'X\(//\)[^/]' \| \
45015          X"$ac_file" : 'X\(//\)$' \| \
45016          X"$ac_file" : 'X\(/\)' \| \
45017          .     : '\(.\)' 2>/dev/null ||
45018 echo X"$ac_file" |
45019     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45020           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45021           /^X\(\/\/\)$/{ s//\1/; q; }
45022           /^X\(\/\).*/{ s//\1/; q; }
45023           s/.*/./; q'`
45024   { if $as_mkdir_p; then
45025     mkdir -p "$ac_dir"
45026   else
45027     as_dir="$ac_dir"
45028     as_dirs=
45029     while test ! -d "$as_dir"; do
45030       as_dirs="$as_dir $as_dirs"
45031       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45032 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45033          X"$as_dir" : 'X\(//\)[^/]' \| \
45034          X"$as_dir" : 'X\(//\)$' \| \
45035          X"$as_dir" : 'X\(/\)' \| \
45036          .     : '\(.\)' 2>/dev/null ||
45037 echo X"$as_dir" |
45038     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45039           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45040           /^X\(\/\/\)$/{ s//\1/; q; }
45041           /^X\(\/\).*/{ s//\1/; q; }
45042           s/.*/./; q'`
45043     done
45044     test ! -n "$as_dirs" || mkdir $as_dirs
45045   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45046 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45047    { (exit 1); exit 1; }; }; }
45048
45049   ac_builddir=.
45050
45051 if test "$ac_dir" != .; then
45052   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45053   # A "../" for each directory in $ac_dir_suffix.
45054   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45055 else
45056   ac_dir_suffix= ac_top_builddir=
45057 fi
45058
45059 case $srcdir in
45060   .)  # No --srcdir option.  We are building in place.
45061     ac_srcdir=.
45062     if test -z "$ac_top_builddir"; then
45063        ac_top_srcdir=.
45064     else
45065        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45066     fi ;;
45067   [\\/]* | ?:[\\/]* )  # Absolute path.
45068     ac_srcdir=$srcdir$ac_dir_suffix;
45069     ac_top_srcdir=$srcdir ;;
45070   *) # Relative path.
45071     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45072     ac_top_srcdir=$ac_top_builddir$srcdir ;;
45073 esac
45074
45075 # Do not use `cd foo && pwd` to compute absolute paths, because
45076 # the directories may not exist.
45077 case `pwd` in
45078 .) ac_abs_builddir="$ac_dir";;
45079 *)
45080   case "$ac_dir" in
45081   .) ac_abs_builddir=`pwd`;;
45082   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45083   *) ac_abs_builddir=`pwd`/"$ac_dir";;
45084   esac;;
45085 esac
45086 case $ac_abs_builddir in
45087 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45088 *)
45089   case ${ac_top_builddir}. in
45090   .) ac_abs_top_builddir=$ac_abs_builddir;;
45091   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45092   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45093   esac;;
45094 esac
45095 case $ac_abs_builddir in
45096 .) ac_abs_srcdir=$ac_srcdir;;
45097 *)
45098   case $ac_srcdir in
45099   .) ac_abs_srcdir=$ac_abs_builddir;;
45100   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45101   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45102   esac;;
45103 esac
45104 case $ac_abs_builddir in
45105 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45106 *)
45107   case $ac_top_srcdir in
45108   .) ac_abs_top_srcdir=$ac_abs_builddir;;
45109   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45110   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45111   esac;;
45112 esac
45113
45114
45115   case $INSTALL in
45116   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45117   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45118   esac
45119
45120   # Let's still pretend it is `configure' which instantiates (i.e., don't
45121   # use $as_me), people would be surprised to read:
45122   #    /* config.h.  Generated by config.status.  */
45123   if test x"$ac_file" = x-; then
45124     configure_input=
45125   else
45126     configure_input="$ac_file.  "
45127   fi
45128   configure_input=$configure_input"Generated from `echo $ac_file_in |
45129                                      sed 's,.*/,,'` by configure."
45130
45131   # First look for the input files in the build tree, otherwise in the
45132   # src tree.
45133   ac_file_inputs=`IFS=:
45134     for f in $ac_file_in; do
45135       case $f in
45136       -) echo $tmp/stdin ;;
45137       [\\/$]*)
45138          # Absolute (can't be DOS-style, as IFS=:)
45139          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45140 echo "$as_me: error: cannot find input file: $f" >&2;}
45141    { (exit 1); exit 1; }; }
45142          echo "$f";;
45143       *) # Relative
45144          if test -f "$f"; then
45145            # Build tree
45146            echo "$f"
45147          elif test -f "$srcdir/$f"; then
45148            # Source tree
45149            echo "$srcdir/$f"
45150          else
45151            # /dev/null tree
45152            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45153 echo "$as_me: error: cannot find input file: $f" >&2;}
45154    { (exit 1); exit 1; }; }
45155          fi;;
45156       esac
45157     done` || { (exit 1); exit 1; }
45158
45159   if test x"$ac_file" != x-; then
45160     { echo "$as_me:$LINENO: creating $ac_file" >&5
45161 echo "$as_me: creating $ac_file" >&6;}
45162     rm -f "$ac_file"
45163   fi
45164 _ACEOF
45165 cat >>$CONFIG_STATUS <<_ACEOF
45166   sed "$ac_vpsub
45167 $extrasub
45168 _ACEOF
45169 cat >>$CONFIG_STATUS <<\_ACEOF
45170 :t
45171 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45172 s,@configure_input@,$configure_input,;t t
45173 s,@srcdir@,$ac_srcdir,;t t
45174 s,@abs_srcdir@,$ac_abs_srcdir,;t t
45175 s,@top_srcdir@,$ac_top_srcdir,;t t
45176 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45177 s,@builddir@,$ac_builddir,;t t
45178 s,@abs_builddir@,$ac_abs_builddir,;t t
45179 s,@top_builddir@,$ac_top_builddir,;t t
45180 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45181 s,@INSTALL@,$ac_INSTALL,;t t
45182 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45183   rm -f $tmp/stdin
45184   if test x"$ac_file" != x-; then
45185     mv $tmp/out $ac_file
45186   else
45187     cat $tmp/out
45188     rm -f $tmp/out
45189   fi
45190
45191   # Run the commands associated with the file.
45192   case $ac_file in
45193     lib/wx/config/${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
45194     lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} )  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
45195   esac
45196 done
45197 _ACEOF
45198 cat >>$CONFIG_STATUS <<\_ACEOF
45199
45200 #
45201 # CONFIG_HEADER section.
45202 #
45203
45204 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45205 # NAME is the cpp macro being defined and VALUE is the value it is being given.
45206 #
45207 # ac_d sets the value in "#define NAME VALUE" lines.
45208 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
45209 ac_dB='[         ].*$,\1#\2'
45210 ac_dC=' '
45211 ac_dD=',;t'
45212 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
45213 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
45214 ac_uB='$,\1#\2define\3'
45215 ac_uC=' '
45216 ac_uD=',;t'
45217
45218 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45219   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45220   case $ac_file in
45221   - | *:- | *:-:* ) # input from stdin
45222         cat >$tmp/stdin
45223         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45224         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45225   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45226         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45227   * )   ac_file_in=$ac_file.in ;;
45228   esac
45229
45230   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45231 echo "$as_me: creating $ac_file" >&6;}
45232
45233   # First look for the input files in the build tree, otherwise in the
45234   # src tree.
45235   ac_file_inputs=`IFS=:
45236     for f in $ac_file_in; do
45237       case $f in
45238       -) echo $tmp/stdin ;;
45239       [\\/$]*)
45240          # Absolute (can't be DOS-style, as IFS=:)
45241          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45242 echo "$as_me: error: cannot find input file: $f" >&2;}
45243    { (exit 1); exit 1; }; }
45244          # Do quote $f, to prevent DOS paths from being IFS'd.
45245          echo "$f";;
45246       *) # Relative
45247          if test -f "$f"; then
45248            # Build tree
45249            echo "$f"
45250          elif test -f "$srcdir/$f"; then
45251            # Source tree
45252            echo "$srcdir/$f"
45253          else
45254            # /dev/null tree
45255            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45256 echo "$as_me: error: cannot find input file: $f" >&2;}
45257    { (exit 1); exit 1; }; }
45258          fi;;
45259       esac
45260     done` || { (exit 1); exit 1; }
45261   # Remove the trailing spaces.
45262   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
45263
45264 _ACEOF
45265
45266 # Transform confdefs.h into two sed scripts, `conftest.defines' and
45267 # `conftest.undefs', that substitutes the proper values into
45268 # config.h.in to produce config.h.  The first handles `#define'
45269 # templates, and the second `#undef' templates.
45270 # And first: Protect against being on the right side of a sed subst in
45271 # config.status.  Protect against being in an unquoted here document
45272 # in config.status.
45273 rm -f conftest.defines conftest.undefs
45274 # Using a here document instead of a string reduces the quoting nightmare.
45275 # Putting comments in sed scripts is not portable.
45276 #
45277 # `end' is used to avoid that the second main sed command (meant for
45278 # 0-ary CPP macros) applies to n-ary macro definitions.
45279 # See the Autoconf documentation for `clear'.
45280 cat >confdef2sed.sed <<\_ACEOF
45281 s/[\\&,]/\\&/g
45282 s,[\\$`],\\&,g
45283 t clear
45284 : clear
45285 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
45286 t end
45287 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
45288 : end
45289 _ACEOF
45290 # If some macros were called several times there might be several times
45291 # the same #defines, which is useless.  Nevertheless, we may not want to
45292 # sort them, since we want the *last* AC-DEFINE to be honored.
45293 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45294 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45295 rm -f confdef2sed.sed
45296
45297 # This sed command replaces #undef with comments.  This is necessary, for
45298 # example, in the case of _POSIX_SOURCE, which is predefined and required
45299 # on some systems where configure will not decide to define it.
45300 cat >>conftest.undefs <<\_ACEOF
45301 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
45302 _ACEOF
45303
45304 # Break up conftest.defines because some shells have a limit on the size
45305 # of here documents, and old seds have small limits too (100 cmds).
45306 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
45307 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
45308 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45309 echo '  :' >>$CONFIG_STATUS
45310 rm -f conftest.tail
45311 while grep . conftest.defines >/dev/null
45312 do
45313   # Write a limited-size here document to $tmp/defines.sed.
45314   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45315   # Speed up: don't consider the non `#define' lines.
45316   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
45317   # Work around the forget-to-reset-the-flag bug.
45318   echo 't clr' >>$CONFIG_STATUS
45319   echo ': clr' >>$CONFIG_STATUS
45320   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45321   echo 'CEOF
45322   sed -f $tmp/defines.sed $tmp/in >$tmp/out
45323   rm -f $tmp/in
45324   mv $tmp/out $tmp/in
45325 ' >>$CONFIG_STATUS
45326   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45327   rm -f conftest.defines
45328   mv conftest.tail conftest.defines
45329 done
45330 rm -f conftest.defines
45331 echo '  fi # grep' >>$CONFIG_STATUS
45332 echo >>$CONFIG_STATUS
45333
45334 # Break up conftest.undefs because some shells have a limit on the size
45335 # of here documents, and old seds have small limits too (100 cmds).
45336 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
45337 rm -f conftest.tail
45338 while grep . conftest.undefs >/dev/null
45339 do
45340   # Write a limited-size here document to $tmp/undefs.sed.
45341   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45342   # Speed up: don't consider the non `#undef'
45343   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
45344   # Work around the forget-to-reset-the-flag bug.
45345   echo 't clr' >>$CONFIG_STATUS
45346   echo ': clr' >>$CONFIG_STATUS
45347   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45348   echo 'CEOF
45349   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45350   rm -f $tmp/in
45351   mv $tmp/out $tmp/in
45352 ' >>$CONFIG_STATUS
45353   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
45354   rm -f conftest.undefs
45355   mv conftest.tail conftest.undefs
45356 done
45357 rm -f conftest.undefs
45358
45359 cat >>$CONFIG_STATUS <<\_ACEOF
45360   # Let's still pretend it is `configure' which instantiates (i.e., don't
45361   # use $as_me), people would be surprised to read:
45362   #    /* config.h.  Generated by config.status.  */
45363   if test x"$ac_file" = x-; then
45364     echo "/* Generated by configure.  */" >$tmp/config.h
45365   else
45366     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
45367   fi
45368   cat $tmp/in >>$tmp/config.h
45369   rm -f $tmp/in
45370   if test x"$ac_file" != x-; then
45371     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
45372       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45373 echo "$as_me: $ac_file is unchanged" >&6;}
45374     else
45375       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45376 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45377          X"$ac_file" : 'X\(//\)[^/]' \| \
45378          X"$ac_file" : 'X\(//\)$' \| \
45379          X"$ac_file" : 'X\(/\)' \| \
45380          .     : '\(.\)' 2>/dev/null ||
45381 echo X"$ac_file" |
45382     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45383           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45384           /^X\(\/\/\)$/{ s//\1/; q; }
45385           /^X\(\/\).*/{ s//\1/; q; }
45386           s/.*/./; q'`
45387       { if $as_mkdir_p; then
45388     mkdir -p "$ac_dir"
45389   else
45390     as_dir="$ac_dir"
45391     as_dirs=
45392     while test ! -d "$as_dir"; do
45393       as_dirs="$as_dir $as_dirs"
45394       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45395 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45396          X"$as_dir" : 'X\(//\)[^/]' \| \
45397          X"$as_dir" : 'X\(//\)$' \| \
45398          X"$as_dir" : 'X\(/\)' \| \
45399          .     : '\(.\)' 2>/dev/null ||
45400 echo X"$as_dir" |
45401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45402           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45403           /^X\(\/\/\)$/{ s//\1/; q; }
45404           /^X\(\/\).*/{ s//\1/; q; }
45405           s/.*/./; q'`
45406     done
45407     test ! -n "$as_dirs" || mkdir $as_dirs
45408   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45409 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45410    { (exit 1); exit 1; }; }; }
45411
45412       rm -f $ac_file
45413       mv $tmp/config.h $ac_file
45414     fi
45415   else
45416     cat $tmp/config.h
45417     rm -f $tmp/config.h
45418   fi
45419 done
45420 _ACEOF
45421 cat >>$CONFIG_STATUS <<\_ACEOF
45422
45423 #
45424 # CONFIG_COMMANDS section.
45425 #
45426 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
45427   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
45428   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
45429   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
45430 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45431          X"$ac_dest" : 'X\(//\)[^/]' \| \
45432          X"$ac_dest" : 'X\(//\)$' \| \
45433          X"$ac_dest" : 'X\(/\)' \| \
45434          .     : '\(.\)' 2>/dev/null ||
45435 echo X"$ac_dest" |
45436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45437           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45438           /^X\(\/\/\)$/{ s//\1/; q; }
45439           /^X\(\/\).*/{ s//\1/; q; }
45440           s/.*/./; q'`
45441   { if $as_mkdir_p; then
45442     mkdir -p "$ac_dir"
45443   else
45444     as_dir="$ac_dir"
45445     as_dirs=
45446     while test ! -d "$as_dir"; do
45447       as_dirs="$as_dir $as_dirs"
45448       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45450          X"$as_dir" : 'X\(//\)[^/]' \| \
45451          X"$as_dir" : 'X\(//\)$' \| \
45452          X"$as_dir" : 'X\(/\)' \| \
45453          .     : '\(.\)' 2>/dev/null ||
45454 echo X"$as_dir" |
45455     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45456           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45457           /^X\(\/\/\)$/{ s//\1/; q; }
45458           /^X\(\/\).*/{ s//\1/; q; }
45459           s/.*/./; q'`
45460     done
45461     test ! -n "$as_dirs" || mkdir $as_dirs
45462   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45463 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45464    { (exit 1); exit 1; }; }; }
45465
45466   ac_builddir=.
45467
45468 if test "$ac_dir" != .; then
45469   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45470   # A "../" for each directory in $ac_dir_suffix.
45471   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45472 else
45473   ac_dir_suffix= ac_top_builddir=
45474 fi
45475
45476 case $srcdir in
45477   .)  # No --srcdir option.  We are building in place.
45478     ac_srcdir=.
45479     if test -z "$ac_top_builddir"; then
45480        ac_top_srcdir=.
45481     else
45482        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45483     fi ;;
45484   [\\/]* | ?:[\\/]* )  # Absolute path.
45485     ac_srcdir=$srcdir$ac_dir_suffix;
45486     ac_top_srcdir=$srcdir ;;
45487   *) # Relative path.
45488     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45489     ac_top_srcdir=$ac_top_builddir$srcdir ;;
45490 esac
45491
45492 # Do not use `cd foo && pwd` to compute absolute paths, because
45493 # the directories may not exist.
45494 case `pwd` in
45495 .) ac_abs_builddir="$ac_dir";;
45496 *)
45497   case "$ac_dir" in
45498   .) ac_abs_builddir=`pwd`;;
45499   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45500   *) ac_abs_builddir=`pwd`/"$ac_dir";;
45501   esac;;
45502 esac
45503 case $ac_abs_builddir in
45504 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45505 *)
45506   case ${ac_top_builddir}. in
45507   .) ac_abs_top_builddir=$ac_abs_builddir;;
45508   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45509   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45510   esac;;
45511 esac
45512 case $ac_abs_builddir in
45513 .) ac_abs_srcdir=$ac_srcdir;;
45514 *)
45515   case $ac_srcdir in
45516   .) ac_abs_srcdir=$ac_abs_builddir;;
45517   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45518   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45519   esac;;
45520 esac
45521 case $ac_abs_builddir in
45522 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45523 *)
45524   case $ac_top_srcdir in
45525   .) ac_abs_top_srcdir=$ac_abs_builddir;;
45526   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45527   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45528   esac;;
45529 esac
45530
45531
45532   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45533 echo "$as_me: executing $ac_dest commands" >&6;}
45534   case $ac_dest in
45535     wx-config )  rm -f wx-config
45536                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
45537                     ;;
45538   esac
45539 done
45540 _ACEOF
45541
45542 cat >>$CONFIG_STATUS <<\_ACEOF
45543
45544 { (exit 0); exit 0; }
45545 _ACEOF
45546 chmod +x $CONFIG_STATUS
45547 ac_clean_files=$ac_clean_files_save
45548
45549
45550 # configure is writing to config.log, and then calls config.status.
45551 # config.status does its own redirection, appending to config.log.
45552 # Unfortunately, on DOS this fails, as config.log is still kept open
45553 # by configure, so config.status won't be able to write to it; its
45554 # output is simply discarded.  So we exec the FD to /dev/null,
45555 # effectively closing config.log, so it can be properly (re)opened and
45556 # appended to by config.status.  When coming back to configure, we
45557 # need to make the FD available again.
45558 if test "$no_create" != yes; then
45559   ac_cs_success=:
45560   ac_config_status_args=
45561   test "$silent" = yes &&
45562     ac_config_status_args="$ac_config_status_args --quiet"
45563   exec 5>/dev/null
45564   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45565   exec 5>>config.log
45566   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45567   # would make configure fail if this is the last instruction.
45568   $ac_cs_success || { (exit 1); exit 1; }
45569 fi
45570
45571 #
45572 # CONFIG_SUBDIRS section.
45573 #
45574 if test "$no_recursion" != yes; then
45575
45576   # Remove --cache-file and --srcdir arguments so they do not pile up.
45577   ac_sub_configure_args=
45578   ac_prev=
45579   for ac_arg in $ac_configure_args; do
45580     if test -n "$ac_prev"; then
45581       ac_prev=
45582       continue
45583     fi
45584     case $ac_arg in
45585     -cache-file | --cache-file | --cache-fil | --cache-fi \
45586     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45587       ac_prev=cache_file ;;
45588     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45589     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45590     | --c=*)
45591       ;;
45592     --config-cache | -C)
45593       ;;
45594     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45595       ac_prev=srcdir ;;
45596     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45597       ;;
45598     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45599       ac_prev=prefix ;;
45600     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45601       ;;
45602     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45603     esac
45604   done
45605
45606   # Always prepend --prefix to ensure using the same prefix
45607   # in subdir configurations.
45608   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45609
45610   ac_popdir=`pwd`
45611   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45612
45613     # Do not complain, so a configure script can configure whichever
45614     # parts of a large source tree are present.
45615     test -d $srcdir/$ac_dir || continue
45616
45617     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45618 echo "$as_me: configuring in $ac_dir" >&6;}
45619     { if $as_mkdir_p; then
45620     mkdir -p "$ac_dir"
45621   else
45622     as_dir="$ac_dir"
45623     as_dirs=
45624     while test ! -d "$as_dir"; do
45625       as_dirs="$as_dir $as_dirs"
45626       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45627 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45628          X"$as_dir" : 'X\(//\)[^/]' \| \
45629          X"$as_dir" : 'X\(//\)$' \| \
45630          X"$as_dir" : 'X\(/\)' \| \
45631          .     : '\(.\)' 2>/dev/null ||
45632 echo X"$as_dir" |
45633     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45634           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45635           /^X\(\/\/\)$/{ s//\1/; q; }
45636           /^X\(\/\).*/{ s//\1/; q; }
45637           s/.*/./; q'`
45638     done
45639     test ! -n "$as_dirs" || mkdir $as_dirs
45640   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45641 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45642    { (exit 1); exit 1; }; }; }
45643
45644     ac_builddir=.
45645
45646 if test "$ac_dir" != .; then
45647   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45648   # A "../" for each directory in $ac_dir_suffix.
45649   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45650 else
45651   ac_dir_suffix= ac_top_builddir=
45652 fi
45653
45654 case $srcdir in
45655   .)  # No --srcdir option.  We are building in place.
45656     ac_srcdir=.
45657     if test -z "$ac_top_builddir"; then
45658        ac_top_srcdir=.
45659     else
45660        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45661     fi ;;
45662   [\\/]* | ?:[\\/]* )  # Absolute path.
45663     ac_srcdir=$srcdir$ac_dir_suffix;
45664     ac_top_srcdir=$srcdir ;;
45665   *) # Relative path.
45666     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45667     ac_top_srcdir=$ac_top_builddir$srcdir ;;
45668 esac
45669
45670 # Do not use `cd foo && pwd` to compute absolute paths, because
45671 # the directories may not exist.
45672 case `pwd` in
45673 .) ac_abs_builddir="$ac_dir";;
45674 *)
45675   case "$ac_dir" in
45676   .) ac_abs_builddir=`pwd`;;
45677   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45678   *) ac_abs_builddir=`pwd`/"$ac_dir";;
45679   esac;;
45680 esac
45681 case $ac_abs_builddir in
45682 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45683 *)
45684   case ${ac_top_builddir}. in
45685   .) ac_abs_top_builddir=$ac_abs_builddir;;
45686   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45687   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45688   esac;;
45689 esac
45690 case $ac_abs_builddir in
45691 .) ac_abs_srcdir=$ac_srcdir;;
45692 *)
45693   case $ac_srcdir in
45694   .) ac_abs_srcdir=$ac_abs_builddir;;
45695   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45696   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45697   esac;;
45698 esac
45699 case $ac_abs_builddir in
45700 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45701 *)
45702   case $ac_top_srcdir in
45703   .) ac_abs_top_srcdir=$ac_abs_builddir;;
45704   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45705   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45706   esac;;
45707 esac
45708
45709
45710     cd $ac_dir
45711
45712     # Check for guested configure; otherwise get Cygnus style configure.
45713     if test -f $ac_srcdir/configure.gnu; then
45714       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45715     elif test -f $ac_srcdir/configure; then
45716       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45717     elif test -f $ac_srcdir/configure.in; then
45718       ac_sub_configure=$ac_configure
45719     else
45720       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45721 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45722       ac_sub_configure=
45723     fi
45724
45725     # The recursion is here.
45726     if test -n "$ac_sub_configure"; then
45727       # Make the cache file name correct relative to the subdirectory.
45728       case $cache_file in
45729       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45730       *) # Relative path.
45731         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
45732       esac
45733
45734       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45735 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45736       # The eval makes quoting arguments work.
45737       eval $ac_sub_configure $ac_sub_configure_args \
45738            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45739         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
45740 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45741    { (exit 1); exit 1; }; }
45742     fi
45743
45744     cd "$ac_popdir"
45745   done
45746 fi
45747
45748
45749 echo
45750 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
45751 echo ""
45752 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_USER:-base only}"
45753 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
45754
45755 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
45756 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
45757 echo "  Should wxWidgets be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
45758
45759 echo "  What level of wxWidgets compatibility should be enabled?"
45760 echo "                                       wxWidgets 2.2      ${WXWIN_COMPATIBILITY_2_2:-no}"
45761 echo "                                       wxWidgets 2.4      ${WXWIN_COMPATIBILITY_2_4:-yes}"
45762
45763 echo "  Which libraries should wxWidgets use?"
45764 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
45765 echo "                                       png                ${wxUSE_LIBPNG-none}"
45766 echo "                                       regex              ${wxUSE_REGEX}"
45767 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
45768 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
45769 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
45770 fi
45771 echo "                                       zlib               ${wxUSE_ZLIB}"
45772 echo "                                       odbc               ${wxUSE_ODBC}"
45773 echo "                                       expat              ${wxUSE_EXPAT}"
45774 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
45775 echo "                                       sdl                ${wxUSE_LIBSDL}"
45776 echo "                                       gnomeprint         ${wxUSE_LIBGNOMEPRINT-none}"
45777
45778 echo ""
45779